]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
1209. [port] See if -ldl is required for OpenSSL? [RT #2672]
authorMark Andrews <marka@isc.org>
Wed, 29 May 2002 04:25:51 +0000 (04:25 +0000)
committerMark Andrews <marka@isc.org>
Wed, 29 May 2002 04:25:51 +0000 (04:25 +0000)
CHANGES
configure.in

diff --git a/CHANGES b/CHANGES
index 875b39be08604ef9403ed43709a0bb3d3f71319c..a243ec431404b0347d3b3106d041ef8053fa2458 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+1209.  [port]          See if -ldl is required for OpenSSL? [RT #2672]
+
 1208.  [bug]           Adjusted REQUIRE's in lib/dns/name.c to better
                        reflect written requirements.
 
index dbfd3824347120dff7139c4e562b4154c064c731..c0026eba7c9c0ea930841cc5ebb1998402ccadee 100644 (file)
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
 esyscmd([sed "s/^/# /" COPYRIGHT])dnl
 AC_DIVERT_POP()dnl
 
-AC_REVISION($Revision: 1.323 $)
+AC_REVISION($Revision: 1.324 $)
 
 AC_INIT(lib/dns/name.c)
 AC_PREREQ(2.13)
@@ -356,6 +356,29 @@ $use_openssl/lib and $use_openssl/include.
 Please check the argument to --with-openssl and your
 shared library configuration (e.g., LD_LIBRARY_PATH).)],
                [AC_MSG_RESULT(assuming it does work on target platform)])
+
+               AC_MSG_CHECKING(whether linking with OpenSSL requires -ldl)
+               AC_TRY_LINK([
+#include <openssl/err.h>],
+[ DSO_METHOD_dlfcn(); ],
+               [AC_MSG_RESULT(no)],
+               [LIBS="$LIBS -ldl"
+               AC_TRY_LINK([
+#include <openssl/err.h>
+],[ DSO_METHOD_dlfcn(); ],
+               [AC_MSG_RESULT(yes)
+               DNS_OPENSSL_LIBS="$DNS_OPENSSL_LIBS -ldl"
+               ],
+                [AC_MSG_RESULT(unknown)
+                AC_MSG_ERROR(OpenSSL has unsupported dynamic loading)],
+               [AC_MSG_RESULT(assuming it does work on target platform)])
+               ],
+               [AC_MSG_RESULT(assuming it does work on target platform)]
+               )
+                
+               
+
+
                AC_MSG_CHECKING(OpenSSL library version)
                AC_TRY_RUN([
 #include <stdio.h>