From: Guus Sliepen Date: Fri, 29 Jun 2001 14:15:46 +0000 (+0000) Subject: Check for dlopen in standard libraries first (needed for DEC OSF). X-Git-Tag: import-tinc-1.1~785^2~504 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=9391efe4e88077723840a7c085388ba2765ca17c;p=meshlink Check for dlopen in standard libraries first (needed for DEC OSF). --- diff --git a/m4/openssl.m4 b/m4/openssl.m4 index 5d91a789..d9f8e163 100644 --- a/m4/openssl.m4 +++ b/m4/openssl.m4 @@ -29,8 +29,11 @@ AC_DEFUN(tinc_OPENSSL, [AC_MSG_ERROR("OpenSSL libraries not found.")] ) - AC_CHECK_LIB(dl, dlopen, - [LIBS="$LIBS -ldl"], - [AC_MSG_ERROR("OpenSSL depends on libdl.")] + AC_CHECK_FUNC(dlopen, + [], + AC_CHECK_LIB(dl, dlopen, + [LIBS="$LIBS -ldl"], + [AC_MSG_ERROR("OpenSSL depends on libdl.")] + ) ) ])