configure: Link against potential -ldl when checking for OpenSSL libcrypto

This commit is contained in:
Martin Willi 2015-11-09 17:11:21 +01:00
parent 8b0c9cf155
commit 2b39da2634
1 changed files with 2 additions and 1 deletions

View File

@ -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