diff --git a/configure.ac b/configure.ac index 3b0dff28bc7c1432b96606ad9e0cff2b7f2aa902..3d35039820bf17ade7116e4d58fc175e9b57c8a5 100644 --- a/configure.ac +++ b/configure.ac @@ -110,6 +110,23 @@ AC_DEFUN([OPENSSL_DEVEL], # run it: OPENSSL_DEVEL +# Verify OpenSSL < 1.1.0 +AC_MSG_CHECKING([for OpenSSL version < 1.1.0]) +AC_EGREP_CPP(yes, + [#include <openssl/crypto.h> + #if (OPENSSL_VERSION_NUMBER < 0x10100000L) + yes + #endif + ], + [ + AC_MSG_RESULT(yes) + ], + [ + AC_MSG_RESULT(no) + AC_MSG_FAILURE([OpenSSL version too new]) + ] +) + # Checks for libraries. AC_CHECK_LIB([crypto], [ERR_peek_last_error], [], [AC_MSG_ERROR([Cannot find libcrypto.])]) AC_CHECK_LIB([pthread], [pthread_create], [], [AC_MSG_ERROR([Cannot find libpthread.])])