Improve OpenSSL_add_all_algorithms check.
OpenSSL_add_all_algorithms() may be a macro so check for that too.
This commit is contained in:
parent
9e34e0c59a
commit
98f878d227
11
configure.ac
11
configure.ac
|
@ -2705,10 +2705,19 @@ if test "x$openssl" = "xyes" ; then
|
||||||
EVP_MD_CTX_copy_ex \
|
EVP_MD_CTX_copy_ex \
|
||||||
EVP_MD_CTX_init \
|
EVP_MD_CTX_init \
|
||||||
HMAC_CTX_init \
|
HMAC_CTX_init \
|
||||||
OpenSSL_add_all_algorithms \
|
|
||||||
RSA_generate_key_ex \
|
RSA_generate_key_ex \
|
||||||
RSA_get_default_method \
|
RSA_get_default_method \
|
||||||
])
|
])
|
||||||
|
|
||||||
|
# OpenSSL_add_all_algorithms may be a macro.
|
||||||
|
AC_CHECK_FUNC(OpenSSL_add_all_algorithms,
|
||||||
|
AC_DEFINE(HAVE_OPENSSL_ADD_ALL_ALGORITHMS, 1, [as a function]),
|
||||||
|
AC_CHECK_DECL(OpenSSL_add_all_algorithms,
|
||||||
|
AC_DEFINE(HAVE_OPENSSL_ADD_ALL_ALGORITHMS, 1, [as a macro]), ,
|
||||||
|
[[#include <openssl/evp.h>]]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
# LibreSSL/OpenSSL 1.1x API
|
# LibreSSL/OpenSSL 1.1x API
|
||||||
AC_CHECK_FUNCS([ \
|
AC_CHECK_FUNCS([ \
|
||||||
OPENSSL_init_crypto \
|
OPENSSL_init_crypto \
|
||||||
|
|
Loading…
Reference in New Issue