From: Guus Sliepen Date: Thu, 21 Jun 2001 16:37:05 +0000 (+0000) Subject: Check for and add -ldl. X-Git-Tag: import-tinc-1.1~785^2~516 X-Git-Url: http://git.meshlink.io/?p=meshlink;a=commitdiff_plain;h=b1e97ece9c495ac67e54b8c2675b1eacc645eb1c 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.")] + ) ])