This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Adaptations to the Makefile.PL of Math::BigInt/FastCalc, for core-ification
[perl5.git] / ext / Math / BigInt / FastCalc / Makefile.PL
index aa7e173..d14c17b 100644 (file)
@@ -1,15 +1,15 @@
 use ExtUtils::MakeMaker;
 
+my @extra;
+my $PERL_CORE = grep $_ eq "PERL_CORE=1", @ARGV;
+push @extra, 'MAN3PODS' => {} if $PERL_CORE;
+push @extra, 'INSTALLDIRS'  => 'perl' if $] >= 5.00903;
+
 WriteMakefile(
     'NAME'             => 'Math::BigInt::FastCalc',
     'VERSION_FROM'     => 'FastCalc.pm',       # finds $VERSION
     'PREREQ_PM'                => {
        Math::BigInt => 1.76,
-      },
-    'LIBS'             => [''],        # e.g., '-lm'
-    'DEFINE'           => '',          # e.g., '-DHAVE_SOMETHING'
-       # Insert -I. if you add *.h files later:
-    'INC'              => '',          # e.g., '-I/usr/include/other'
-       # Un-comment this if you add C files to link with later:
-    # 'OBJECT'         => '$(O_FILES)', # link all the C files too
+    },
+    @extra,
 );