2001-08-14 16:05:21 -04:00
|
|
|
# $RoughId: extconf.rb,v 1.3 2001/08/14 19:54:51 knu Exp $
|
2001-07-13 16:06:14 -04:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
require "mkmf"
|
|
|
|
|
2001-08-14 16:05:21 -04:00
|
|
|
$CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.."
|
2001-07-13 16:06:14 -04:00
|
|
|
|
2002-09-26 12:27:23 -04:00
|
|
|
$objs = [ "md5init.#{$OBJEXT}" ]
|
|
|
|
|
|
|
|
dir_config("openssl")
|
|
|
|
|
|
|
|
if !with_config("bundled-md5") &&
|
|
|
|
have_library("crypto") && have_header("openssl/md5.h")
|
|
|
|
$objs << "md5ossl.#{$OBJEXT}"
|
|
|
|
|
|
|
|
else
|
|
|
|
$objs << "md5.#{$OBJEXT}"
|
|
|
|
end
|
2001-07-13 16:06:14 -04:00
|
|
|
|
|
|
|
have_header("sys/cdefs.h")
|
|
|
|
|
|
|
|
have_header("inttypes.h")
|
|
|
|
|
|
|
|
have_header("unistd.h")
|
|
|
|
|
2004-01-07 17:06:38 -05:00
|
|
|
$preload = %w[digest]
|
|
|
|
|
2001-07-13 16:06:14 -04:00
|
|
|
create_makefile("digest/md5")
|