]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix DSA configure switch (--disable dsa) for libnettle and libnss.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 24 Jul 2017 10:09:05 +0000 (10:09 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 24 Jul 2017 10:09:05 +0000 (10:09 +0000)
git-svn-id: file:///svn/unbound/trunk@4285 be551aaa-1e26-0410-a405-d3ace91eadb9

configure
configure.ac
doc/Changelog

index 9b8496c4b8591741877a3ee0b5d6ab93d10e401d..ce8da03695e346418de3e9a18655cf22f0e1eacd 100755 (executable)
--- a/configure
+++ b/configure
@@ -18053,6 +18053,7 @@ case "$enable_dsa" in
       ;;
     *)
       # detect if DSA is supported, and turn it off if not.
+      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
       ac_fn_c_check_func "$LINENO" "DSA_SIG_new" "ac_cv_func_DSA_SIG_new"
 if test "x$ac_cv_func_DSA_SIG_new" = xyes; then :
 
@@ -18067,6 +18068,13 @@ else
                fi
 fi
 
+      else
+
+cat >>confdefs.h <<_ACEOF
+#define USE_DSA 1
+_ACEOF
+
+      fi
       ;;
 esac
 
index ccbb33d49c41dd28f08b06817ff1465612d0b5ba..c98a6938f6af88a81fe029c4fa0d0b7661f55f7a 100644 (file)
@@ -912,10 +912,14 @@ case "$enable_dsa" in
       ;;
     *)
       # detect if DSA is supported, and turn it off if not.
+      if test $USE_NSS = "no" -a $USE_NETTLE = "no"; then
       AC_CHECK_FUNC(DSA_SIG_new, [
       AC_DEFINE_UNQUOTED([USE_DSA], [1], [Define this to enable DSA support.])
       ], [if test "x$enable_dsa" = "xyes"; then AC_MSG_ERROR([OpenSSL does not support DSA and you used --enable-dsa.])
                fi ])
+      else
+      AC_DEFINE_UNQUOTED([USE_DSA], [1], [Define this to enable DSA support.])
+      fi
       ;;
 esac
 
index c01e6565bf59dcc8c3344bd8cd670ba0b5ce71ed..b7206b763c7ad965592c8fd646be75ce80ed9806 100644 (file)
@@ -8,6 +8,7 @@
          unless verbosity is high.
        - remove warning from windows compile.
        - Fix compile with libnettle
+       - Fix DSA configure switch (--disable dsa) for libnettle and libnss.
 
 17 July 2017: Wouter
        - Fix #1350: make cachedb backend configurable (from JINMEI Tatuya).