As we're not passing over (or copying in) a NUL, don't need that extra
[p5sagit/p5-mst-13.2.git] / ext / MIME / Base64 / Makefile.PL
index 7a4e13e..f676159 100644 (file)
@@ -1,9 +1,17 @@
-require 5.005;
+require 5.006;
 use ExtUtils::MakeMaker;
 
+my @makefileopts;
+if (grep { $_ eq 'PERL_CORE=1' } @ARGV) {
+    push @makefileopts, MAN3PODS => {};
+}
+if ($] >= 5.008) {
+    push @makefileopts, INSTALLDIRS => 'perl';
+}
+
 WriteMakefile(
     NAME        => 'MIME::Base64',
-    MAN3PODS    => {},  # Pods will be built by installman.
     VERSION_FROM => 'Base64.pm',
     dist         => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
+    @makefileopts,
 );