diff options
author | Nick Mathewson <nickm@torproject.org> | 2015-09-01 09:02:12 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-09-01 09:02:12 -0400 |
commit | b79e90f6ba9426158cf305655590f70d3ae89875 (patch) | |
tree | 475142e7bdcf93fbb35894f7df1f9aa45dbd8fe9 /configure.ac | |
parent | b531fc7d9a8f75969b0446578ee4afcb109bae3d (diff) | |
download | tor-b79e90f6ba9426158cf305655590f70d3ae89875.tar.gz tor-b79e90f6ba9426158cf305655590f70d3ae89875.zip |
Fail in configure when openssl is too old. #16901.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 3bb70ed88f..984a7084b3 100644 --- a/configure.ac +++ b/configure.ac @@ -632,6 +632,16 @@ save_CPPFLAGS="$CPPFLAGS" LIBS="$TOR_OPENSSL_LIBS $LIBS" LDFLAGS="$TOR_LDFLAGS_openssl $LDFLAGS" CPPFLAGS="$TOR_CPPFLAGS_openssl $CPPFLAGS" + +AC_TRY_COMPILE([ +#include <openssl/opensslv.h> +#if OPENSSL_VERSION_NUMBER < 0x1000000fL +#error "too old" +#endif + ], [], + [ ], + [ AC_ERROR([OpenSSL is too old. We require 1.0.0 or later. You can specify a path to a newer one with --with-openssl-dir.]) ]) + AC_CHECK_MEMBERS([struct ssl_method_st.get_cipher_by_char], , , [#include <openssl/ssl.h> ]) |