1 use ExtUtils::MakeMaker;
8 my @defines = ('-DSHA_PERL_MODULE');
10 push(@defines, '-DSHA_THREAD_SAFE') if $opts{'t'};
11 push(@defines, '-DNO_SHA_384_512') if $opts{'x'};
13 # Configure SHA source to use static arrays for
14 # message schedules if compiling on Intel platforms.
15 # This seems to speed things up a bit. However,
16 # DON'T do this if thread-safe option is in force.
18 if ($Config{archname} =~ /^i[3456]86/) {
19 push(@defines, '-DSHA_STO_CLASS=static') unless $opts{'t'};
22 my $define = join(' ', @defines);
25 'NAME' => 'Digest::SHA',
26 'VERSION_FROM' => 'SHA.pm',
28 'AUTHOR' => 'Mark Shelor <mshelor@cpan.org>',
30 MAN3PODS => {}, # Pods will be built by installman.