2001-08-14 16:05:21 -04:00
|
|
|
# $RoughId: extconf.rb,v 1.4 2001/08/14 19:54:51 knu Exp $
|
2001-07-13 16:06:14 -04:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
require "mkmf"
|
|
|
|
|
2006-05-25 19:44:08 -04:00
|
|
|
$defs << "-DHAVE_CONFIG_H"
|
|
|
|
$INCFLAGS << " -I$(srcdir)/.."
|
2001-07-13 16:06:14 -04:00
|
|
|
|
|
|
|
$objs = [
|
|
|
|
"sha2.#{$OBJEXT}",
|
|
|
|
"sha2init.#{$OBJEXT}",
|
|
|
|
]
|
|
|
|
|
|
|
|
have_header("sys/cdefs.h")
|
|
|
|
|
|
|
|
have_header("inttypes.h")
|
|
|
|
|
|
|
|
have_header("unistd.h")
|
|
|
|
|
2004-01-07 17:06:38 -05:00
|
|
|
$preload = %w[digest]
|
|
|
|
|
2005-09-06 19:23:04 -04:00
|
|
|
if have_type("uint64_t", "defs.h", $defs.join(' '))
|
2001-08-14 13:04:00 -04:00
|
|
|
create_makefile("digest/sha2")
|
2001-08-14 08:15:21 -04:00
|
|
|
end
|