[v9_10] include dso.h when testing DSO_METHOD_dlfcn

This commit is contained in:
Evan Hunt
2015-02-27 09:05:21 -08:00
parent 0901bea31b
commit 53fa9f3ff4
2 changed files with 7 additions and 1 deletions
Vendored
+3
View File
@@ -15724,6 +15724,8 @@ $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; }
/* end confdefs.h. */
#include <openssl/err.h>
#include <openssl/dso.h>
int
main ()
{
@@ -15741,6 +15743,7 @@ else
/* end confdefs.h. */
#include <openssl/err.h>
#include <openssl/dso.h>
int
main ()
+4 -1
View File
@@ -1539,12 +1539,15 @@ shared library configuration (e.g., LD_LIBRARY_PATH).)],
AC_MSG_CHECKING(whether linking with OpenSSL requires -ldl)
AC_TRY_LINK([
#include <openssl/err.h>],
#include <openssl/err.h>
#include <openssl/dso.h>
],
[ DSO_METHOD_dlfcn(); ],
[AC_MSG_RESULT(no)],
[LIBS="$LIBS -ldl"
AC_TRY_LINK([
#include <openssl/err.h>
#include <openssl/dso.h>
],[ DSO_METHOD_dlfcn(); ],
[AC_MSG_RESULT(yes)
DST_OPENSSL_LIBS="$DST_OPENSSL_LIBS -ldl"