Add command to list device objects
[platform/upstream/connman.git] / configure.ac
index c95bdb3..15acdbc 100644 (file)
@@ -1,7 +1,7 @@
-AC_PREREQ(2.50)
+AC_PREREQ(2.60)
 AC_INIT()
 
-AM_INIT_AUTOMAKE(connman, 0.1)
+AM_INIT_AUTOMAKE(connman, 0.5)
 AM_CONFIG_HEADER(config.h)
 
 AM_MAINTAINER_MODE
@@ -32,7 +32,7 @@ AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
                        [enable compiling with debugging information]), [
        if (test "${enableval}" = "yes" &&
                                test "${ac_cv_prog_cc_g}" = "yes"); then
-               CFLAGS="$CFLAGS -g -O0"
+               CFLAGS="$CFLAGS -g -O0 -Werror"
        fi
 ])
 
@@ -45,7 +45,9 @@ AC_ARG_ENABLE(pie, AC_HELP_STRING([--enable-pie],
        fi
 ])
 
+AC_PATH_PROG(UDHCPC, [udhcpc], ,$PATH:/sbin:/usr/sbin)
 AC_PATH_PROG(DHCLIENT, [dhclient], ,$PATH:/sbin:/usr/sbin)
+AC_PATH_PROG(RESOLVCONF, [resolvconf], ,$PATH:/sbin:/usr/sbin)
 AC_PATH_PROG(WPASUPPLICANT, [wpa_supplicant], ,$PATH:/sbin:/usr/sbin)
 
 AC_CHECK_LIB(dl, dlopen, dummy=yes,
@@ -84,10 +86,14 @@ AC_SUBST(POLKIT_CFLAGS)
 AC_SUBST(POLKIT_LIBS)
 AM_CONDITIONAL(POLKIT, test "${polkit_found}" = "yes")
 
+AC_ARG_ENABLE(client, AC_HELP_STRING([--enable-client],
+               [enable command line client]), [enable_client=${enableval}])
+AM_CONDITIONAL(CLIENT, test "${enable_client}" = "yes")
+
 AC_ARG_ENABLE(fake, AC_HELP_STRING([--enable-fake],
                        [enable fake plugin]), [enable_fake=${enableval}])
 AM_CONDITIONAL(FAKE, test "${enable_fake}" = "yes")
 
 AC_OUTPUT(Makefile gdbus/Makefile include/Makefile src/Makefile doc/Makefile
-               test/Makefile plugins/Makefile scripts/Makefile scripts/connman
-                               src/connman.service doc/version.xml connman.pc)
+               test/Makefile plugins/Makefile client/Makefile scripts/Makefile
+               scripts/connman src/connman.service doc/version.xml connman.pc)