From: Martin Willi Date: Mon, 9 Nov 2015 16:11:21 +0000 (+0100) Subject: configure: Link against potential -ldl when checking for OpenSSL libcrypto X-Git-Tag: 5.4.0dr1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b39da2634b2b6659f1c73c6477930767c4f38f1;p=thirdparty%2Fstrongswan.git configure: Link against potential -ldl when checking for OpenSSL libcrypto --- diff --git a/configure.ac b/configure.ac index 1017952e7b..a7419fded0 100644 --- a/configure.ac +++ b/configure.ac @@ -1069,7 +1069,8 @@ if test x$sqlite = xtrue; then fi if test x$openssl = xtrue; then - AC_CHECK_LIB([$openssl_lib],[main],[LIBS="$LIBS"],[AC_MSG_ERROR([OpenSSL lib$openssl_lib not found])],[]) + AC_CHECK_LIB([$openssl_lib],[main],[LIBS="$LIBS"], + [AC_MSG_ERROR([OpenSSL lib$openssl_lib not found])],[$DLLIB]) AC_CHECK_HEADER([openssl/evp.h],,[AC_MSG_ERROR([OpenSSL header openssl/evp.h not found!])]) fi