build: Build client and testing tools by default
authorMarcel Holtmann <marcel@holtmann.org>
Sat, 21 Apr 2012 20:02:39 +0000 (22:02 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Sat, 21 Apr 2012 20:02:39 +0000 (22:02 +0200)
Makefile.am
bootstrap-configure
configure.ac

index f47c2f8..aeb490f 100644 (file)
@@ -240,9 +240,7 @@ DISTCHECK_CONFIGURE_FLAGS = --disable-gtk-doc \
                                --enable-hh2serial-gps \
                                --enable-openconnect \
                                --enable-nmcompat \
-                               --enable-polkit \
-                               --enable-client \
-                               --enable-tools
+                               --enable-polkit
 
 DISTCLEANFILES = $(pkgconfig_DATA)
 
index a0e6d29..deb73bf 100755 (executable)
@@ -20,6 +20,4 @@ fi
                --enable-openvpn=builtin \
                --enable-nmcompat \
                --enable-polkit \
-               --enable-capng \
-               --enable-client \
-               --enable-tools $*
+               --enable-capng $*
index 8ab7258..6f33c10 100644 (file)
@@ -310,28 +310,16 @@ if (test -n "${path_systemdunit}"); then
 fi
 AM_CONDITIONAL(SYSTEMD, test -n "${path_systemdunit}")
 
+PKG_CHECK_MODULES(GNUTLS, gnutls, dummy=yes,
+                               AC_MSG_ERROR(GnuTLS library is required))
+AC_SUBST(GNUTLS_CFLAGS)
+AC_SUBST(GNUTLS_LIBS)
+
 PKG_CHECK_MODULES(XTABLES, xtables, dummy=yes,
                                AC_MSG_ERROR(Xtables library is required))
 AC_SUBST(XTABLES_CFLAGS)
 AC_SUBST(XTABLES_LIBS)
 
-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(tools, AC_HELP_STRING([--enable-tools],
-               [enable testing tools]), [enable_tools=${enableval}])
-if (test "${enable_tools}" = "yes"); then
-       PKG_CHECK_MODULES(GNUTLS, gnutls, dummy=yes,
-                               AC_MSG_ERROR(GnuTLS library is required))
-       AC_SUBST(GNUTLS_CFLAGS)
-       AC_SUBST(GNUTLS_LIBS)
-
-       AC_CHECK_HEADERS(linux/if_alg.h, dummy=yes,
-               AC_MSG_ERROR(User-space algorithm header files are required))
-fi
-AM_CONDITIONAL(TOOLS, test "${enable_tools}" = "yes")
-
 AC_ARG_ENABLE(test, AC_HELP_STRING([--enable-test],
                [enable test/example scripts]), [enable_test=${enableval}])
 AM_CONDITIONAL(TEST, test "${enable_test}" = "yes")
@@ -394,6 +382,16 @@ AC_ARG_ENABLE(pacrunner, AC_HELP_STRING([--disable-pacrunner],
                                        [enable_pacrunner=${enableval}])
 AM_CONDITIONAL(PACRUNNER, test "${enable_pacrunner}" != "no")
 
+AC_ARG_ENABLE(client, AC_HELP_STRING([--disable-client],
+                               [disable command line client]),
+                                       [disable_client=${enableval}])
+AM_CONDITIONAL(CLIENT, test "${enable_client}" != "no")
+
+AC_ARG_ENABLE(tools, AC_HELP_STRING([--disable-tools],
+                               [disable testing tools]),
+                                       [enable_tools=${enableval}])
+AM_CONDITIONAL(TOOLS, test "${enable_tools}" != "no")
+
 if (test "${enable_loopback}" != "no"); then
        AC_CHECK_HEADERS(sys/inotify.h, dummy=yes,
                        AC_MSG_ERROR(inotify header files are required))