summaryrefslogtreecommitdiff
path: root/ext/digest/rmd160/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/digest/rmd160/extconf.rb')
-rw-r--r--ext/digest/rmd160/extconf.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb
index 8d8cdee6bab..b7aed39ef98 100644
--- a/ext/digest/rmd160/extconf.rb
+++ b/ext/digest/rmd160/extconf.rb
@@ -9,9 +9,11 @@ $INCFLAGS << " -I$(srcdir)/.."
$objs = [ "rmd160init.#{$OBJEXT}" ]
dir_config("openssl")
+pkg_config("openssl")
+require_relative '../../openssl/deprecation'
if !with_config("bundled-rmd160") &&
- have_library("crypto") && have_header("openssl/ripemd.h")
+ have_library("crypto") && OpenSSL.check_func("RMD160_Transform", "openssl/ripemd.h")
$objs << "rmd160ossl.#{$OBJEXT}"
else
$objs << "rmd160.#{$OBJEXT}"
@@ -21,7 +23,4 @@ have_header("sys/cdefs.h")
$preload = %w[digest]
-if try_compile("", flag = " -Wno-deprecated-declarations")
- $warnflags << flag
-end
create_makefile("digest/rmd160")