From: Guus Sliepen Date: Thu, 21 Jun 2001 16:37:05 +0000 (+0000) Subject: Check for and add -ldl. X-Git-Tag: release-1.0pre5~119 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=b1e97ece9c495ac67e54b8c2675b1eacc645eb1c;p=tinc Check for and add -ldl. --- diff --git a/m4/openssl.m4 b/m4/openssl.m4 index bf5ce9fc..5d91a789 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -28,4 +28,9 @@ AC_DEFUN(tinc_OPENSSL, [LIBS="$LIBS -lcrypto"], [AC_MSG_ERROR("OpenSSL libraries not found.")] ) + + AC_CHECK_LIB(dl, dlopen, + [LIBS="$LIBS -ldl"], + [AC_MSG_ERROR("OpenSSL depends on libdl.")] + ) ])