2015-12-16 08:31:54 +03:00
|
|
|
# frozen_string_literal: false
|
2017-07-18 14:28:49 +03:00
|
|
|
|
2020-05-27 18:53:41 +03:00
|
|
|
def digest_conf(name)
|
2015-02-11 05:08:50 +03:00
|
|
|
unless with_config("bundled-#{name}")
|
2015-02-11 05:09:55 +03:00
|
|
|
cc = with_config("common-digest")
|
|
|
|
if cc == true or /\b#{name}\b/ =~ cc
|
|
|
|
if File.exist?("#$srcdir/#{name}cc.h") and
|
|
|
|
have_header("CommonCrypto/CommonDigest.h")
|
|
|
|
$defs << "-D#{name.upcase}_USE_COMMONDIGEST"
|
2016-07-06 08:44:58 +03:00
|
|
|
$headers << "#{name}cc.h"
|
2015-02-11 05:09:55 +03:00
|
|
|
return :commondigest
|
|
|
|
end
|
|
|
|
end
|
2015-02-11 05:08:50 +03:00
|
|
|
end
|
|
|
|
$objs << "#{name}.#{$OBJEXT}"
|
|
|
|
return
|
|
|
|
end
|