From 6c949b697a0e71039c5ef66e95cf2efde770e2b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20B=C3=BChler?= Date: Thu, 9 Feb 2017 14:22:36 +0100 Subject: [PATCH] Change required openssl version to be >= 1.0.1 The previous requirement did not make sense. On system that did not use pgk-config then the library happily linked against version 1.0.1 as the required functions are present in that version. If pkg-config was used then suddenly configure would fail with version 1.0.1 due to the version check. --- configure.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure.in b/configure.in index 5e58057be3b2..f61bbff2ec13 100644 --- a/configure.in +++ b/configure.in @@ -227,7 +227,7 @@ if test "$enable_openssl" = "yes"; then [AC_MSG_RESULT([no])]) if test "x$PKG_CONFIG" != "x"; then - PKG_CHECK_MODULES([crypto], [libcrypto > 1.0.1], + PKG_CHECK_MODULES([crypto], [libcrypto >= 1.0.1], [CFLAGS="$CFLAGS $crypto_CFLAGS" LIBS="$crypto_LIBS $LIBS"]) else @@ -236,11 +236,11 @@ if test "$enable_openssl" = "yes"; then fi AC_SEARCH_LIBS([EVP_EncryptInit], [crypto], - [], [AC_MSG_FAILURE([can't find openssl >1.0.1 crypto lib])]) + [], [AC_MSG_FAILURE([can't find openssl >= 1.0.1 crypto lib])]) AC_SEARCH_LIBS([EVP_aes_128_ctr], [crypto], - [], [AC_MSG_FAILURE([can't find openssl >1.0.1 crypto lib])]) + [], [AC_MSG_FAILURE([can't find openssl >= 1.0.1 crypto lib])]) AC_SEARCH_LIBS([EVP_aes_128_gcm], [crypto], - [], [AC_MSG_FAILURE([can't find openssl >1.0.1 crypto lib])]) + [], [AC_MSG_FAILURE([can't find openssl >= 1.0.1 crypto lib])]) AC_DEFINE([OPENSSL], [1], [Define this to use OpenSSL crypto.]) AES_ICM_OBJS="crypto/cipher/aes_icm_ossl.o crypto/cipher/aes_gcm_ossl.o"