]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
version 34.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 21 Mar 2016 10:21:21 +0000 (11:21 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 21 Mar 2016 10:21:21 +0000 (11:21 +0100)
acx_nlnetlabs.m4

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])
+                       ])
                     ])
                 ])
             ])