DEFINITIONS
This source file includes following functions.
1 # $RoughId: extconf.rb,v 1.4 2001/08/14 19:54:51 knu Exp $
2 # $Id: extconf.rb,v 1.7 2001/08/20 10:55:46 eban Exp $
3
4 require "mkmf"
5
6 $CFLAGS << " -DHAVE_CONFIG_H -I#{File.dirname(__FILE__)}/.."
7
8 $objs = [
9 "sha2.#{$OBJEXT}",
10 "sha2hl.#{$OBJEXT}",
11 "sha2init.#{$OBJEXT}",
12 ]
13
14 have_header("sys/cdefs.h")
15
16 have_header("inttypes.h")
17
18 have_header("unistd.h")
19
20 if try_cpp(<<SRC, $defs.join(' '))
21 #include "defs.h"
22 #ifdef NO_UINT64_T
23 #error ** Cannot find a 64bit integer type - skipping the SHA2 module.
24 #endif
25 SRC
26 then
27 create_makefile("digest/sha2")
28 end