You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
802 B

  1. --- a/configure.ac
  2. +++ b/configure.ac
  3. @@ -152,8 +152,8 @@ AS_IF([test "x$want_crypto" = "xauto" -o
  4. )
  5. ])
  6. AS_IF([test "x$want_crypto" = "xauto" -o "x$want_crypto" = "xpolarssl"], [
  7. - PKG_CHECK_MODULES(MBEDTLS, [mbedtls >= $POLARSSL_MINIMUM],
  8. - [want_crypto="polarssl"; CRYPTO_PKG="polarssl"; CRYPTO_CFLAGS="$MBEDTLS_CFLAGS"; CRYPTO_LIBS="$MBEDTLS_LIBS"; POLARSSL_IS_MBEDTLS=yes],
  9. + AC_CHECK_LIB(mbedcrypto, mbedtls_strerror,
  10. + [want_crypto="polarssl"; CRYPTO_PKG="polarssl"; CRYPTO_LIBS="-lmbedcrypto"; POLARSSL_IS_MBEDTLS=yes],
  11. [AC_CHECK_HEADER([polarssl/version.h],
  12. [AC_EGREP_CPP([version_ok], [#include <polarssl/version.h>
  13. #if defined (POLARSSL_VERSION_NUMBER) && POLARSSL_VERSION_NUMBER >= $POLARSSL_MINIMUM