mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
[ruby/digest] Use CommonDigest by default if available
https://github.com/ruby/digest/commit/cce9ada85e
This commit is contained in:
parent
c5ca250eb5
commit
bc28acc347
1 changed files with 1 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
||||||
def digest_conf(name)
|
def digest_conf(name)
|
||||||
unless with_config("bundled-#{name}")
|
unless with_config("bundled-#{name}")
|
||||||
cc = with_config("common-digest")
|
cc = with_config("common-digest")
|
||||||
if cc == true or /\b#{name}\b/ =~ cc
|
if cc != false or /\b#{name}\b/ =~ cc
|
||||||
if File.exist?("#$srcdir/#{name}cc.h") and
|
if File.exist?("#$srcdir/#{name}cc.h") and
|
||||||
have_header("CommonCrypto/CommonDigest.h")
|
have_header("CommonCrypto/CommonDigest.h")
|
||||||
$defs << "-D#{name.upcase}_USE_COMMONDIGEST"
|
$defs << "-D#{name.upcase}_USE_COMMONDIGEST"
|
||||||
|
|
Loading…
Reference in a new issue