]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- acx_nlnetlabs.m4 to v34, with -ldl -pthread test for libcrypto.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 21 Mar 2016 10:22:40 +0000 (10:22 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Mon, 21 Mar 2016 10:22:40 +0000 (10:22 +0000)
git-svn-id: file:///svn/unbound/trunk@3686 be551aaa-1e26-0410-a405-d3ace91eadb9

acx_nlnetlabs.m4
configure
doc/Changelog

index 6a05f5ce4f01af5a9a563c56ba7a18f7983332ff..a6c174f1c4210f21aaae3367dfa0a795b91d59d6 100644 (file)
@@ -2,7 +2,8 @@
 # Copyright 2009, Wouter Wijngaards, NLnet Labs.   
 # BSD licensed.
 #
-# Version 33
+# Version 34
+# 2016-03-21 Check -ldl -pthread for libcrypto for ldns and openssl 1.1.0.
 # 2016-03-21 Use HMAC_Update instead of HMAC_CTX_Init (for openssl-1.1.0).
 # 2016-01-04 -D_DEFAULT_SOURCE defined with -D_BSD_SOURCE for Linux glibc 2.20
 # 2015-12-11 FLTO check for new OSX, clang.
@@ -713,7 +714,22 @@ AC_DEFUN([ACX_SSL_CHECKS], [
                         AC_MSG_RESULT(yes) 
                       ],[
                         AC_MSG_RESULT(no)
-                    AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7 or higher is required])
+                        LIBS="$BAKLIBS"
+                        LIBSSL_LIBS="$BAKSSLLIBS"
+                        LIBS="$LIBS -ldl -pthread"
+                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
+                        AC_MSG_CHECKING([if -lcrypto needs -ldl -pthread])
+                        AC_TRY_LINK([], [
+                            int HMAC_Update(void);
+                            (void)HMAC_Update();
+                          ],[
+                            AC_DEFINE([HAVE_HMAC_UPDATE], 1, 
+                                [If you have HMAC_Update])
+                            AC_MSG_RESULT(yes) 
+                          ],[
+                            AC_MSG_RESULT(no)
+                            AC_MSG_ERROR([OpenSSL found in $ssldir, but version 0.9.7 or higher is required])
+                       ])
                     ])
                 ])
             ])
index 40f4481358d4698cbedb00d1b1be2d98a5039d88..7b72be1220412d4a6dd42c44b6a3c044c51d5d2e 100755 (executable)
--- a/configure
+++ b/configure
@@ -17202,7 +17202,43 @@ else
 
                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }
-                    as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
+                        LIBS="$BAKLIBS"
+                        LIBSSL_LIBS="$BAKSSLLIBS"
+                        LIBS="$LIBS -ldl -pthread"
+                        LIBSSL_LIBS="$LIBSSL_LIBS -ldl -pthread"
+                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -lcrypto needs -ldl -pthread" >&5
+$as_echo_n "checking if -lcrypto needs -ldl -pthread... " >&6; }
+                        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+/* end confdefs.h.  */
+
+int
+main ()
+{
+
+                            int HMAC_Update(void);
+                            (void)HMAC_Update();
+
+  ;
+  return 0;
+}
+_ACEOF
+if ac_fn_c_try_link "$LINENO"; then :
+
+
+$as_echo "#define HAVE_HMAC_UPDATE 1" >>confdefs.h
+
+                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+$as_echo "yes" >&6; }
+
+else
+
+                            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
+$as_echo "no" >&6; }
+                            as_fn_error $? "OpenSSL found in $ssldir, but version 0.9.7 or higher is required" "$LINENO" 5
+
+fi
+rm -f core conftest.err conftest.$ac_objext \
+    conftest$ac_exeext conftest.$ac_ext
 
 fi
 rm -f core conftest.err conftest.$ac_objext \
index db8ce4638cf157b95836de6743bffaf506abe88d..a627b143622e1f03ec67d0bd1f2b9ff27462f2df 100644 (file)
@@ -3,6 +3,7 @@
        - Fix dnstap-log-resolver-response-messages, from Nikolay Edigaryev.
        - Fix test for openssl to use HMAC_Update for 1.1.0.
        - acx_nlnetlabs.m4 to v33, with HMAC_Update.
+       - acx_nlnetlabs.m4 to v34, with -ldl -pthread test for libcrypto.
 
 18 March 2016: Ralph
        - Validate QNAME minimised NXDOMAIN responses.