dnl Process this file with autoconf to produce a configure script.
-AC_INIT(lightdm, 1.6.0)
+AC_INIT(lightdm, 1.9.6)
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
[enable_liblightdm_qt4=$enableval],
[enable_liblightdm_qt4="auto"])
compile_liblightdm_qt4=no
-if test x"$enable_liblightdm_qt4" != "xno"; then
+if test x"$enable_liblightdm_qt4" = "xyes" -o \( x"$enable_liblightdm_qt4" = "xauto" -a x$compile_liblightdm_gobject = xyes \) ; then
PKG_CHECK_MODULES(LIBLIGHTDM_QT4, [
QtCore
QtDBus
if test x"$(readlink $(which $MOC4))" = xqtchooser; then
MOC4="$MOC4 --qt=qt4"
fi
+ if test "x$compile_liblightdm_gobject" != xyes; then
+ AC_MSG_FAILURE(
+ [liblightdm-gobject is required to compile liblightdm-qt])
+ fi
],
[if test "x$enable_liblightdm_qt4" != xauto; then
AC_MSG_FAILURE(
[], [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_SUBST(GREETER_USER)
AC_DEFINE_UNQUOTED(GREETER_USER, "$GREETER_USER", User to run greeter as)
-AC_ARG_ENABLE(consolekit,
- AS_HELP_STRING([--enable-consolekit],
- [Build with ConsoleKit support @<:@default=yes@:>@]),,
- enable_consolekit=yes)
-AM_CONDITIONAL(ENABLE_CONSOLEKIT, test x$enable_consolekit = xyes)
-
-if test x$enable_consolekit = xyes; then
- AC_DEFINE(WITH_CONSOLEKIT, 1, [Define if ConsoleKit support is enabled])
- AC_DEFINE(LOGIND_RUNNING(), 0,
- [Define to a check for whether the system is running logind])
-fi
-
-AC_ARG_ENABLE(logind,
- AS_HELP_STRING([--enable-logind],
- [Build with systemd logind support @<:@default=no@:>@]),,
- enable_logind=no)
-AM_CONDITIONAL(ENABLE_LOGIND, test x$enable_logind = xyes)
-
-if test x$enable_logind = xyes; then
- AC_DEFINE(WITH_LOGIND, 1, [Define if systemd logind support is enabled])
- AC_DEFINE(LOGIND_RUNNING(), (access("/run/systemd/seats/", F_OK) >= 0),
- [Define to a check for whether the system is running logind])
-fi
-
-if test x$enable_consolekit = xno -a x$enable_logind = xno; then
- AC_MSG_ERROR(one of --enable-consolekit or --enable-logind must be supplied)
-fi
-
dnl ###########################################################################
dnl Documentation
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
liblightdm-qt: $compile_liblightdm_qt4
liblightdm-qt5: $compile_liblightdm_qt5
Enable tests: $enable_tests
- ConsoleKit support: $enable_consolekit
- logind support: $enable_logind
"