From b2a773d487dc474bfd5f9ee4f8f63fcb2f2aa9da Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Mon, 19 Jan 2004 17:55:18 +0000 Subject: * ext/openssl/extconf.rb: add check for OpenSSL version. [ruby-list:39054] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@5509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/openssl/extconf.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'ext/openssl/extconf.rb') diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb index a4239a1225..afcb03816f 100644 --- a/ext/openssl/extconf.rb +++ b/ext/openssl/extconf.rb @@ -58,6 +58,17 @@ if !result end end +check_opensslv = <<_end_of_src_ +#include +#if OPENSSL_VERSION_NUMBER < 0x0090600fL +# error too old +#endif +_end_of_src_ +if !try_compile(check_opensslv) + message "OpenSSL 0.9.6 or later required.\n" + exit 1 +end + message "=== Checking for OpenSSL features... ===\n" have_func("HMAC_CTX_copy") have_func("X509_STORE_get_ex_data") -- cgit v1.2.3