3 use ExtUtils::MakeMaker;
7 my $PM = 'lib/Digest/SHA.pm';
10 $PERL_CORE = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV;
13 getopts('tx', \%opts);
16 push(@defines, '-DSHA_PERL_MODULE') if $] >= 5.004;
17 push(@defines, '-DSHA_THREAD_SAFE') if $opts{'t'};
18 push(@defines, '-DNO_SHA_384_512') if $opts{'x'};
20 # Configure SHA source to use static arrays for
21 # message schedules if compiling on Intel platforms.
22 # This seems to speed things up a bit. However,
23 # DON'T do this if thread-safe option is in force.
25 if ($Config{archname} =~ /^i[3456]86/) {
26 push(@defines, '-DSHA_STO_CLASS=static') unless $opts{'t'};
29 my $define = join(' ', @defines);
32 'NAME' => 'Digest::SHA',
33 'VERSION_FROM' => $PM,
37 >>>> ORIGINAL Makefile.PL#3
38 'EXE_FILES' => [ 'shasum' ],
39 'INSTALLDIRS' => ($] >= 5.010) ? 'perl' : 'site',
40 ==== THEIRS Makefile.PL#4
42 'EXE_FILES' => [ 'shasum' ],
43 'INSTALLDIRS' => ($] >= 5.010) ? 'perl' : 'site',
45 ==== YOURS Makefile.PL
46 'MAN3PODS' => {}, # Pods will be built by installman.
48 'INSTALLDIRS' => ($] >= 5.010) ? 'perl' : 'site',
52 my $MMversion = $ExtUtils::MakeMaker::VERSION || 0;
53 $att{NO_META} = 1 unless $MMversion < 6.10_03;