X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=m4%2Fopenssl.m4;h=d9f8e1634d490d52da569b7e1c9b0d4d9ccd41f1;hp=bf5ce9fcaae010fdef98cff8e61c5ec7fd60629a;hb=9391efe4e88077723840a7c085388ba2765ca17c;hpb=c5c02a0861bf540e07fe64704cb97aae29c4cacf diff --git a/m4/openssl.m4 b/m4/openssl.m4 index bf5ce9fc..d9f8e163 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -28,4 +28,12 @@ AC_DEFUN(tinc_OPENSSL, [LIBS="$LIBS -lcrypto"], [AC_MSG_ERROR("OpenSSL libraries not found.")] ) + + AC_CHECK_FUNC(dlopen, + [], + AC_CHECK_LIB(dl, dlopen, + [LIBS="$LIBS -ldl"], + [AC_MSG_ERROR("OpenSSL depends on libdl.")] + ) + ) ])