From 8b96cd2f405f640db28e45d7d4c2dd98cb04b73e Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 5 Nov 2015 07:56:38 +0900 Subject: [PATCH] Revert "why do we link libgetdns.so to dlopen?" This reverts commit c0bd8444034c528d96d5b1cd0999f15dc60b097b. --- m4/acx_openssl.m4 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/m4/acx_openssl.m4 b/m4/acx_openssl.m4 index 7f5ad0f8..135131fb 100644 --- a/m4/acx_openssl.m4 +++ b/m4/acx_openssl.m4 @@ -95,6 +95,12 @@ AC_DEFUN([ACX_SSL_CHECKS], [ fi AC_SUBST(HAVE_SSL) AC_SUBST(RUNTIME_PATH) + # openssl engine functionality needs dlopen(). + BAKLIBS="$LIBS" + AC_SEARCH_LIBS([dlopen], [dl]) + if test "$LIBS" != "$BAKLIBS"; then + LIBSSL_LIBS="$LIBSSL_LIBS -ldl" + fi fi AC_CHECK_HEADERS([openssl/ssl.h],,, [AC_INCLUDES_DEFAULT]) AC_CHECK_HEADERS([openssl/err.h],,, [AC_INCLUDES_DEFAULT])