Check dlopen has RTLD_NOW before enabling pkcs11.

This commit is contained in:
Darren Tucker 2018-02-26 12:51:29 +11:00
parent 1323f120d0
commit 146c3bd28c
1 changed files with 4 additions and 1 deletions

View File

@ -1876,7 +1876,10 @@ AC_ARG_ENABLE([pkcs11],
if test "x$openssl" = "xyes" && test "x$disable_pkcs11" = "x"; then
# PKCS#11 support requires dlopen() and co
AC_SEARCH_LIBS([dlopen], [dl],
[AC_DEFINE([ENABLE_PKCS11], [], [Enable for PKCS#11 support])]
AC_CHECK_DECL([RTLD_NOW],
AC_DEFINE([ENABLE_PKCS11], [], [Enable for PKCS#11 support]),
[], [#include <dlfcn.h>]
)
)
fi