X-Git-Url: http://git.code-monkey.de/?p=umurmur.git;a=blobdiff_plain;f=configure.ac;h=7664aa4379f3f4f36e1f48eba6d9772b927580b4;hp=3a03f50b8f1ba855659e9ec8a772632b43f4de37;hb=HEAD;hpb=ad9d63e22d3e65adc844f7a1ebd8e65b04022273 diff --git a/configure.ac b/configure.ac index 3a03f50..7664aa4 100644 --- a/configure.ac +++ b/configure.ac @@ -106,14 +106,15 @@ AS_IF([test "x$with_ssl" = xmbedtls], [ AC_DEFINE([USE_MBEDTLS_TESTCERT], [], [Use mbedTLS test certificate]) ]) AS_IF([test "x$enable_mbedtls_havege" = xyes], [ - AC_CHECK_LIB([mbedtls], [havege_init], [], [AC_MSG_ERROR([could not find havege_init])]) + AC_CHECK_HEADERS([mbedtls/havege.h], [], [AC_MSG_ERROR([could not find mbedtls/havege.h])]) + AC_CHECK_LIB([mbedcrypto], [mbedtls_havege_init], [], [AC_MSG_ERROR([could not find mbedtls_havege_init])]) AC_DEFINE([USE_MBEDTLS_HAVEGE], [], [Use mbedTLS HAVEGE random generator]) ]) ]) AS_IF([test "x$with_ssl" = xopenssl], [ AC_CHECK_HEADERS([openssl/ssl.h], [], [AC_MSG_ERROR([could not find openssl/ssl.h])]) - AC_CHECK_LIB([crypto], [BN_init], [], [AC_MSG_ERROR([could not find libcrypto])]) - AC_CHECK_LIB([ssl], [SSL_library_init], [], [AC_MSG_ERROR([could not find libssl])]) + AC_CHECK_LIB([crypto], [CRYPTO_new_ex_data], [], [AC_MSG_ERROR([could not find libcrypto])]) + AC_CHECK_LIB([ssl], [SSL_new], [], [AC_MSG_ERROR([could not find libssl])]) ]) AS_IF([test "x$with_ssl" = xgnutls], [ AC_CHECK_HEADERS([gnutls/gnutls.h], [], [AC_MSG_ERROR([could not find gnutls/gnutls.h])])