]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blobdiff - configure.ac
Move string free
[sojka/lightdm.git] / configure.ac
index 17b7ad64c6e10a13df2eb23280aa409f90562e51..a57e166880c6346895362d7836819fde6056b192 100644 (file)
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
 
-AC_INIT(lightdm, 1.7.2)
+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])
@@ -11,6 +11,21 @@ AC_PROG_CXX
 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 ###########################################################################
@@ -22,7 +37,7 @@ AC_CHECK_HEADERS(security/pam_appl.h, [], AC_MSG_ERROR(PAM not found))
 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
@@ -47,24 +62,7 @@ PKG_CHECK_MODULES(GOBJECT, [
 
 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]]]),
@@ -149,8 +147,6 @@ AC_ARG_ENABLE(tests,
         [], [enable_tests="yes"])
 AM_CONDITIONAL(COMPILE_TESTS, test x"$enable_tests" != "xno")
 
-AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
-
 dnl ###########################################################################
 dnl Configurable values
 dnl ###########################################################################
@@ -221,7 +217,6 @@ po/Makefile.in
 src/Makefile
 tests/Makefile
 tests/src/Makefile
-utils/Makefile
 ])
 AC_OUTPUT
 
@@ -237,7 +232,6 @@ echo "
         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