From 53fa9f3ff4437d498c8395c0b4ca80fdcb6678cf Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Fri, 27 Feb 2015 09:05:21 -0800 Subject: [PATCH] [v9_10] include dso.h when testing DSO_METHOD_dlfcn --- configure | 3 +++ configure.in | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/configure b/configure index bf97d93733..5d93e40c5d 100755 --- a/configure +++ b/configure @@ -15724,6 +15724,8 @@ $as_echo_n "checking whether linking with OpenSSL requires -ldl... " >&6; } /* end confdefs.h. */ #include +#include + int main () { @@ -15741,6 +15743,7 @@ else /* end confdefs.h. */ #include +#include int main () diff --git a/configure.in b/configure.in index d008140cbb..c43f31453d 100644 --- a/configure.in +++ b/configure.in @@ -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 ], +#include +#include +], [ DSO_METHOD_dlfcn(); ], [AC_MSG_RESULT(no)], [LIBS="$LIBS -ldl" AC_TRY_LINK([ #include +#include ],[ DSO_METHOD_dlfcn(); ], [AC_MSG_RESULT(yes) DST_OPENSSL_LIBS="$DST_OPENSSL_LIBS -ldl"