diff options
Diffstat (limited to 'ext/digest/sha1/extconf.rb')
| -rw-r--r-- | ext/digest/sha1/extconf.rb | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/ext/digest/sha1/extconf.rb b/ext/digest/sha1/extconf.rb index c249a415ed..7582cd9ab5 100644 --- a/ext/digest/sha1/extconf.rb +++ b/ext/digest/sha1/extconf.rb @@ -1,25 +1,17 @@ +# -*- coding: us-ascii -*- +# frozen_string_literal: false # $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $ # $Id$ require "mkmf" - -$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.." +require File.expand_path("../../digest_conf", __FILE__) $objs = [ "sha1init.#{$OBJEXT}" ] -dir_config("openssl") - -if !with_config("bundled-sha1") && - have_library("crypto") && have_header("openssl/sha.h") - $objs << "sha1ossl.#{$OBJEXT}" -else - $objs << "sha1.#{$OBJEXT}" << "sha1hl.#{$OBJEXT}" -end +digest_conf("sha1") have_header("sys/cdefs.h") -have_header("inttypes.h") - -have_header("unistd.h") +$preload = %w[digest] create_makefile("digest/sha1") |
