Skip to content

Commit

Permalink
m4: Detect OpenSSL version 1.0.2
Browse files Browse the repository at this point in the history
valgrind cannot work in all cases if openssl
version is 1.0.2, so we need to know this to
selectively disable valgrind.
  • Loading branch information
cmouse authored and sirainen committed Nov 29, 2016
1 parent 33498b5 commit a71d70b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions configure.ac
Expand Up @@ -1706,6 +1706,17 @@ if test $want_openssl != no && test $have_ssl = no; then
have_ssl="yes (OpenSSL)"
build_dcrypt_openssl="no"

AC_MSG_CHECKING([if OpenSSL version is 1.0.2 or better])

AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <openssl/opensslv.h>
#if OPENSSL_VERSION_NUMBER < 0x10002000L
#error "fail-compile"
#endif]], [[ return 0; ]])], [ssl_version_ge_102=true], [ssl_version_ge_102=false])
AC_MSG_RESULT([$ssl_version_ge_102])

AM_CONDITIONAL([SSL_VERSION_GE_102], [test x$ssl_version_ge_102 = xtrue])

# SSL_clear_options introduced in openssl 0.9.8m but may be backported to
# older versions in "enterprise" OS releases; originally implemented as a
# macro but as a function in more recent openssl versions
Expand Down

0 comments on commit a71d70b

Please sign in to comment.