Fix another concatenated filepath in a test for Digest::SHA.
[p5sagit/p5-mst-13.2.git] / ext / Digest / SHA / Makefile.PL
CommitLineData
6bc89f92 1use ExtUtils::MakeMaker;
2use Getopt::Std;
3use Config;
4
5my %opts;
6getopts('tx', \%opts);
7
8my @defines = ('-DSHA_PERL_MODULE');
9
10push(@defines, '-DSHA_THREAD_SAFE') if $opts{'t'};
11push(@defines, '-DNO_SHA_384_512') if $opts{'x'};
12
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.
17
18if ($Config{archname} =~ /^i[3456]86/) {
19 push(@defines, '-DSHA_STO_CLASS=static') unless $opts{'t'};
20}
21
22my $define = join(' ', @defines);
23
24WriteMakefile(
25 'NAME' => 'Digest::SHA',
26 'VERSION_FROM' => 'SHA.pm',
27 'PREREQ_PM' => {},
28 'AUTHOR' => 'Mark Shelor <mshelor@cpan.org>',
29 'LIBS' => [''],
30 MAN3PODS => {}, # Pods will be built by installman.
31 'DEFINE' => $define,
32 'INC' => '-I.',
33 'NO_META' => 1,
34);