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"