]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - Makefile.PL
base.pm is also a dependency
[perl/modules/Scope-Upper.git] / Makefile.PL
index 48eace94fbc2da1a9a33e6533eda04be96305a08..c5f16bd35da293f631bb6d43cb479b2cccacc111 100644 (file)
@@ -1,7 +1,18 @@
+use 5.006;
+
 use strict;
 use warnings;
 use ExtUtils::MakeMaker;
 
+my @DEFINES;
+
+# Threads, Windows and 5.8.x don't seem to be best friends
+if ($^O eq 'MSWin32' && $^V lt v5.9.0) {
+ push @DEFINES, '-DSU_MULTIPLICITY=0';
+}
+
+@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES;
+
 my $dist = 'Scope-Upper';
 
 my %META = (
@@ -27,9 +38,11 @@ WriteMakefile(
     VERSION_FROM     => 'lib/Scope/Upper.pm',
     ABSTRACT_FROM    => 'lib/Scope/Upper.pm',
     PL_FILES         => {},
+    @DEFINES,
     PREREQ_PM        => {
         'Exporter' => 0,
         'XSLoader' => 0,
+        'base'     => 0,
     },
     MIN_PERL_VERSION => 5.006,
     META_MERGE       => \%META,