This repository has been archived by the owner on Sep 7, 2020. It is now read-only.
forked from sbalneav/lightdm-webkit2-greeter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
129 lines (105 loc) · 4.09 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
dnl Process this file with autoconf to produce a configure script.
AC_INIT(lightdm-webkit2-greeter, 2.1.0rc1)
AC_SUBST(THEME_DIR)
AC_CONFIG_HEADER(config.h)
AC_PREREQ([2.59])
LT_INIT()
AM_INIT_AUTOMAKE
AM_PROG_CC_C_O
AM_MAINTAINER_MODE
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)])
GNOME_COMPILE_WARNINGS(maximum)
dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################
PKG_CHECK_MODULES([GREETER], [
liblightdm-gobject-1
gtk+-3.0
webkit2gtk-4.0
dbus-glib-1
x11
])
dnl PKG_CHECK_MODULES(WEB_EXTENSION, [webkit2gtk-4.0 >= 2.8.0])
dnl AC_SUBST(WEB_EXTENSION_CFLAGS)
dnl AC_SUBST(WEB_EXTENSION_LIBS)
PKG_CHECK_MODULES([WEB_EXTENSION], [webkit2gtk-web-extension-4.0 >= 2.8.0])
AC_SUBST([WEB_EXTENSION_CFLAGS])
AC_SUBST([WEB_EXTENSION_LIBS])
dnl ###########################################################################
dnl Configurable values
dnl ###########################################################################
THEME_DIR="/usr/share/lightdm-webkit/themes"
AC_ARG_WITH(theme-dir,
AS_HELP_STRING(--with-theme-dir=<path>,
Theme directory to use for webkit themes),
if test x$withval != x; then
THEME_DIR="$withval"
fi
)
AC_SUBST(THEME_DIR)
AC_DEFINE_UNQUOTED(THEME_DIR, "$THEME_DIR", Theme Dir)
dnl ###########################################################################
dnl ###########################################################################
CONFIG_DIR="/etc/lightdm/"
AC_ARG_WITH(config-dir,
AS_HELP_STRING(--with-config-dir=<path>,
Configuration directory of lightdm),
if test x$withval != x; then
CONFIG_DIR="$withval"
fi
)
AC_SUBST(CONFIG_DIR)
AC_DEFINE_UNQUOTED(CONFIG_DIR, "$CONFIG_DIR", Config Dir)
dnl ###########################################################################
dnl ###########################################################################
DESKTOP_DIR="/usr/share/xgreeters/"
AC_ARG_WITH(desktop-dir,
AS_HELP_STRING(--with-desktop-dir=<path>,
Desktop directory of lightdm),
if test x$withval != x; then
DESKTOP_DIR="$withval"
fi
)
AC_SUBST(DESKTOP_DIR)
AC_DEFINE_UNQUOTED(DESKTOP_DIR, "$DESKTOP_DIR", Desktop Dir)
dnl ###########################################################################
dnl ###########################################################################
AC_ARG_ENABLE([at-spi-command],
AC_HELP_STRING([--enable-at-spi-command[=command]], [Try to start at-spi service]])
AC_HELP_STRING([--disable-at-spi-command], [Do not start at-spi service]),
[], [])
AS_IF([test "x$enable_at_spi_command" != "xno"],
[
if test "x$enable_at_spi_command" = "xyes" || test "x$enable_at_spi_command" = "x"; then
enable_at_spi_command="/usr/lib/at-spi2-core/at-spi-bus-launcher --launch-immediately"
fi
AC_DEFINE_UNQUOTED([AT_SPI_COMMAND], ["$enable_at_spi_command"], [Command to start at-spi service])
])
dnl ###########################################################################
dnl Internationalization
dnl ###########################################################################
IT_PROG_INTLTOOL(0.35.0)
GETTEXT_PACKAGE=lightdm-webkit2-greeter
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", Gettext package)
dnl ###########################################################################
dnl Files to generate
dnl ###########################################################################
AC_OUTPUT([
Makefile
data/Makefile
man/Makefile
src/Makefile
po/Makefile.in
themes/Makefile
themes/simple/Makefile
])
dnl ###########################################################################
dnl Summary
dnl ###########################################################################
echo "
Light Display Manager WebKit2 Greeter $VERSION
==========================================
prefix: $prefix
Theme directory: $THEME_DIR
Configuration directory: $CONFIG_DIR
"