]> granicus.if.org Git - pdns/commitdiff
Handle --disable-foo properly
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Jul 2014 21:32:48 +0000 (23:32 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 14 Jul 2014 21:32:48 +0000 (23:32 +0200)
Fixes #1253

configure.ac
m4/pdns_enable_botan.m4
m4/pdns_enable_p11kit.m4
m4/pdns_enable_remotebackend_zeromq.m4
m4/pdns_enable_unit_tests.m4
m4/pdns_enable_verbose_logging.m4
m4/pdns_with_cryptopp.m4

index 64db4a28c4fd1422fbe524dbf4e1631e0fd2c350..3f1c8d993990463c1994586215224dc052f8c6b1 100644 (file)
@@ -238,7 +238,7 @@ AC_ARG_ENABLE([tools],
 )
 
 AC_MSG_RESULT([$enable_tools])
-AM_CONDITIONAL([TOOLS],[test "x$enable_tools" = "xyes"])
+AM_CONDITIONAL([TOOLS],[test "x$enable_tools" != "xno"])
 
 for a in $modules $dynmodules; do
   case "$a" in
index 7a034d4f689bdea2c8d8e37ecada58bcc2c89a79..c4fe7757fdde0c8ec85dabce8c24bb9090a5319e 100644 (file)
@@ -2,29 +2,29 @@ AC_DEFUN([PDNS_ENABLE_BOTAN],[
   AC_MSG_CHECKING([whether we will be linking in Botan 1.10])
   AC_ARG_ENABLE([botan1.10],
     [AS_HELP_STRING([--enable-botan1.10],[use Botan 1.10 @<:@default=no@:>@])],
-    [enable_botan110=yes],
+    [enable_botan110=$enableval],
     [enable_botan110=no]
   )
   AC_MSG_RESULT([$enable_botan110])
-  AM_CONDITIONAL(BOTAN110, [test "x$enable_botan110" = "xyes"])
+  AM_CONDITIONAL(BOTAN110, [test "x$enable_botan110" != "xno"])
 
   AC_MSG_CHECKING([whether we will be linking in Botan 1.8])
   AC_ARG_ENABLE([botan1.8],
     [AS_HELP_STRING([--enable-botan1.8],[use Botan 1.8 @<:@default=no@:>@])],
-    [enable_botan18=yes],
+    [enable_botan18=$enableval],
     [enable_botan18=no]
   )
   AC_MSG_RESULT([$enable_botan18])
-  AM_CONDITIONAL([BOTAN18], [test "x$enable_botan18" = "xyes"])
+  AM_CONDITIONAL([BOTAN18], [test "x$enable_botan18" != "xno"])
 
-  AS_IF([test "x$enable_botan110" = "xyes"], [
+  AS_IF([test "x$enable_botan110" != "xno"], [
     PKG_CHECK_MODULES([BOTAN110], [botan-1.10],
       [AC_DEFINE([HAVE_BOTAN110],[1],[Define to 1 if you have botan 1.10])],
       [AC_MSG_ERROR([Could not find botan 1.10])]
     )]
   )
 
-  AS_IF([test "x$enable_botan18" = "xyes"], [
+  AS_IF([test "x$enable_botan18" != "xno"], [
     PKG_CHECK_MODULES([BOTAN18], [botan-1.8],
       [AC_DEFINE([HAVE_BOTAN18], [1], [Define to 1 if you have botan 1.10])],
       [AC_MSG_ERROR([Could not find botan 1.8])]
index cce64ebce272e82c1508a0be78dc90fb80fb7147..316e9173f3649d985689967564ba1190427022cc 100644 (file)
@@ -2,13 +2,13 @@ AC_DEFUN([PDNS_ENABLE_PKCS11],[
   AC_MSG_CHECKING([whether to enable PKCS11 support])
   AC_ARG_ENABLE([experimental-pkcs11],
     [AS_HELP_STRING([--enable-experimental-pkcs11],[enable experimental PKCS11 support @<:@default=no@:>@])],
-    [enable_pkcs11=yes],
+    [enable_pkcs11=$enableval],
     [enable_pkcs11=no]
   )
   AC_MSG_RESULT([$enable_pkcs11])
-  AM_CONDITIONAL([PKCS11], [test "x$enable_pkcs11" = "xyes"])
+  AM_CONDITIONAL([PKCS11], [test "x$enable_pkcs11" != "xno"])
 
-  AS_IF([test "x$enable_pkcs11" = "xyes"], [
+  AS_IF([test "x$enable_pkcs11" != "xno"], [
     PKG_CHECK_MODULES([P11KIT1], [p11-kit-1],
       [AC_DEFINE([HAVE_P11KIT1],[1],[Define to 1 if you have p11-kit-1])],
       [AC_MSG_ERROR([Could not find p11-kit-1])]
index ff6ce931a92358486e6d6e97629190307d1bc32b..751c62baa09f7616fdc41ce7f0e917bddb0ef4b3 100644 (file)
@@ -4,15 +4,15 @@ AC_DEFUN([PDNS_ENABLE_REMOTEBACKEND_ZEROMQ],[
     AS_HELP_STRING([--enable-remotebackend-zeromq],
       [enable ZeroMQ connector for remotebackend @<:@default=no@:>@]
     ),
-    [enable_remotebackend_zeromq=yes],
+    [enable_remotebackend_zeromq=$enableval],
     [enable_remotebackend_zeromq=no]
   )
 
   AC_MSG_RESULT([$enable_remotebackend_zeromq])
 
-  AM_CONDITIONAL([REMOTEBACKEND_HTTP],[test "x$enable_remotebackend_zeromq" = "xyes"])
+  AM_CONDITIONAL([REMOTEBACKEND_HTTP],[test "x$enable_remotebackend_zeromq" != "xno"])
   AC_SUBST(REMOTEBACKEND_ZEROMQ)
-  AS_IF([test "x$enable_remotebackend_zeromq" = "xyes"],
+  AS_IF([test "x$enable_remotebackend_zeromq" != "xno"],
     [PKG_CHECK_MODULES([LIBZMQ], [libzmq],
       [
         AC_DEFINE([HAVE_LIBZMQ], [1], [Define to 1 if you have libzmq])
index 36c4ca145db0e2a0b5676faa01334c51c205fa09..9853a361aae5774e8ec31b67f4dcdaad62a2eac4 100644 (file)
@@ -3,11 +3,11 @@ AC_DEFUN([PDNS_ENABLE_UNIT_TESTS], [
   AC_ARG_ENABLE([unit-tests],
     AS_HELP_STRING([--enable-unit-tests],
       [enable unit test building @<:@default=no@:>@]),
-    [enable_unit_tests=yes],
+    [enable_unit_tests=$enableval],
     [enable_unit_tests=no]
   )
   AC_MSG_RESULT([$enable_unit_tests])
-  AS_IF([test "x$enable_unit_tests" = "xyes"], [
+  AS_IF([test "x$enable_unit_tests" != "xno"], [
      BOOST_TEST([mt])
    ])
 ])
index fe3cd9b783a56e95ab1906ba485986bce0b3f9f4..0104f43c4f1bd999a549025c38fea0f296632532 100644 (file)
@@ -5,11 +5,11 @@ AC_DEFUN([PDNS_ENABLE_VERBOSE_LOGGING],[
     AS_HELP_STRING([--enable-verbose-logging],
       [enable verbose logging @<:@default=no@:>@]
     ),
-    [enable_verbose_logging=yes],
+    [enable_verbose_logging=$enableval],
     [enable_verbose_logging=no]
   )
 
-  AS_IF([test "x$enable_verbose_logging" = "xyes"],
+  AS_IF([test "x$enable_verbose_logging" != "xno"],
     [AC_DEFINE([VERBOSELOG], [1], [Define to 1 if verbose logging is enabled])]
   )
 
index 055ccb0f78ac667cce4390d4fdfe5ddf35adb8b8..1e4cbefa410eef65f376457fe7f5b3845f9bb076 100644 (file)
@@ -2,13 +2,13 @@ AC_DEFUN([PDNS_WITH_CRYPTOPP],[
   AC_MSG_CHECKING([whether we will be linking in Crypto++])
   AC_ARG_ENABLE([cryptopp],
     [AS_HELP_STRING([--enable-cryptopp],[use Crypto++ @<:@default=no@:>@])],
-    [enable_cryptopp=yes],
-    [enable_cryptopp=no]
+    [enable_cryptopp=$enableval],
+    [enable_cryptopp=no],
   )
   AC_MSG_RESULT([$enable_cryptopp])
-  AM_CONDITIONAL([CRYPTOPP], [test "x$enable_cryptopp" = "xyes"])
+  AM_CONDITIONAL([CRYPTOPP], [test "x$enable_cryptopp" != "xno"])
 
-  AS_IF([test "x$enable_cryptopp" = "xyes"],
+  AS_IF([test "x$enable_cryptopp" != "xno"],
     [AC_DEFINE([HAVE_CRYPTOPP], [1], [Define to 1 if you have crypto++])]
   )
 ])