dnl Process this file with autoconf to produce a configure script.
-AC_INIT(lightdm, 1.7.0)
+AC_INIT(lightdm, 1.9.3)
AC_CONFIG_MACRO_DIR(m4)
AC_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE([1.11 no-dist-gzip dist-xz foreign])
AC_PROG_LIBTOOL
AM_MAINTAINER_MODE
+dnl Enable compile warnings (only supporting GCC)
+if test "x$GCC" == xyes; then
+ WARN_CFLAGS="-Wall \
+ -Wstrict-prototypes \
+ -Wnested-externs \
+ -Werror=missing-prototypes \
+ -Werror=implicit-function-declaration \
+ -Werror=pointer-arith \
+ -Werror=init-self \
+ -Werror=format-security \
+ -Werror=format=2 \
+ -Werror=missing-include-dirs"
+fi
+AC_SUBST(WARN_CFLAGS)
+
GOBJECT_INTROSPECTION_CHECK(0.9.5)
dnl ###########################################################################
AC_CHECK_FUNCS(setresgid setresuid clearenv)
PKG_CHECK_MODULES(LIGHTDM, [
- glib-2.0 >= 2.24
+ glib-2.0 >= 2.30
gio-2.0 >= 2.26
gio-unix-2.0
xdmcp
PKG_CHECK_MODULES(XCB, [
xcb
-])
-
-AC_ARG_ENABLE(unity,
- AS_HELP_STRING([--enable-unity],[Enable Unity support [[default=auto]]]),
- [enable_unity=$enableval],
- [enable_unity="auto"])
-compile_unity=no
-if test x"$enable_unity" = "xauto"; then
- PKG_CHECK_MODULES(UNITY, [
- mirclient
- ], compile_unity=yes, compile_unity=no)
-elif test x"$enable_unity" = "xyes"; then
- PKG_CHECK_MODULES(UNITY, [
- mirclient
- ])
- compile_unity=yes
-fi
-AM_CONDITIONAL(COMPILE_UNITY, test x"$compile_unity" != "xno")
+])
AC_ARG_ENABLE(liblightdm-gobject,
AS_HELP_STRING([--enable-liblightdm-gobject],[Enable LightDM client gobject libraries [[default=auto]]]),
[], [enable_tests="yes"])
AM_CONDITIONAL(COMPILE_TESTS, test x"$enable_tests" != "xno")
-AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
-
dnl ###########################################################################
dnl Configurable values
dnl ###########################################################################
AC_CONFIG_FILES([
Makefile
data/Makefile
-data/init/Makefile
doc/Makefile
help/Makefile
liblightdm-gobject/liblightdm-gobject-1.pc
src/Makefile
tests/Makefile
tests/src/Makefile
-utils/Makefile
])
AC_OUTPUT
Greeter session: $GREETER_SESSION
Greeter user: $GREETER_USER
User session: $USER_SESSION
- Unity support: $compile_unity
liblightdm-gobject: $compile_liblightdm_gobject
GObject introspection: $found_introspection
liblightdm-qt: $compile_liblightdm_qt4