1# -*- coding: us-ascii -*- 2# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $ 3# $Id: extconf.rb 37878 2012-11-27 00:58:52Z nobu $ 4 5require "mkmf" 6 7$defs << "-DHAVE_CONFIG_H" 8$INCFLAGS << " -I$(srcdir)/.." 9 10$objs = [ "sha1init.#{$OBJEXT}" ] 11 12dir_config("openssl") 13pkg_config("openssl") 14require File.expand_path('../../../openssl/deprecation', __FILE__) 15 16if !with_config("bundled-sha1") && 17 have_library("crypto") && OpenSSL.check_func("SHA1_Transform", "openssl/sha.h") 18 $objs << "sha1ossl.#{$OBJEXT}" 19else 20 $objs << "sha1cc.#{$OBJEXT}" 21end 22 23have_header("sys/cdefs.h") 24 25$preload = %w[digest] 26 27create_makefile("digest/sha1") 28