From c173a0a4108f7ab529956db2750fcfa3b0254c64 Mon Sep 17 00:00:00 2001 From: Evan Phoenix Date: Fri, 4 May 2012 15:12:54 -0700 Subject: [PATCH] Respect pkg-config like the openssl extension --- ext/digest/md5/extconf.rb | 1 + ext/digest/rmd160/extconf.rb | 1 + ext/digest/sha1/extconf.rb | 1 + ext/digest/sha2/extconf.rb | 1 + 4 files changed, 4 insertions(+) diff --git a/ext/digest/md5/extconf.rb b/ext/digest/md5/extconf.rb index ddfdb70..006aa2e 100644 --- a/ext/digest/md5/extconf.rb +++ b/ext/digest/md5/extconf.rb @@ -9,6 +9,7 @@ $objs = [ "md5init.#{$OBJEXT}" ] dir_config("openssl") +pkg_config("openssl") if !with_config("bundled-md5") && have_library("crypto") && have_header("openssl/md5.h") diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb index cc361e3..0805b71 100644 --- a/ext/digest/rmd160/extconf.rb +++ b/ext/digest/rmd160/extconf.rb @@ -9,6 +9,7 @@ $objs = [ "rmd160init.#{$OBJEXT}" ] dir_config("openssl") +pkg_config("openssl") if !with_config("bundled-rmd160") && have_library("crypto") && have_header("openssl/ripemd.h") diff --git a/ext/digest/sha1/extconf.rb b/ext/digest/sha1/extconf.rb index fa9945c..e55965d 100644 --- a/ext/digest/sha1/extconf.rb +++ b/ext/digest/sha1/extconf.rb @@ -9,6 +9,7 @@ $objs = [ "sha1init.#{$OBJEXT}" ] dir_config("openssl") +pkg_config("openssl") if !with_config("bundled-sha1") && have_library("crypto") && have_header("openssl/sha.h") diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb index a8f0198..025f1ba 100644 --- a/ext/digest/sha2/extconf.rb +++ b/ext/digest/sha2/extconf.rb @@ -9,6 +9,7 @@ $objs = [ "sha2init.#{$OBJEXT}" ] dir_config("openssl") +pkg_config("openssl") if !with_config("bundled-sha2") && have_library("crypto") && -- 1.7.10