-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
[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
])
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,
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)