X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=Makefile.PL;h=464fe392956fa9b27402be073cea9a9076d80163;hb=c879f152be1f415e2333350acd2aac0ca34996b4;hp=72b22a4514dc33a26ffdf4babe3f2bd25d492de7;hpb=554b9290fb1dced04ce28d44bf737d5e4d2d4aaa;p=perl%2Fmodules%2Findirect.git diff --git a/Makefile.PL b/Makefile.PL index 72b22a4..464fe39 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -4,8 +4,26 @@ 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, '-DI_MULTIPLICITY=0'; +} + +# Fork emulation got "fixed" in 5.10.1 +if ($^O eq 'MSWin32' && $^V lt v5.10.1) { + push @DEFINES, '-DI_FORKSAFE=0'; +} + +@DEFINES = (DEFINE => join ' ', @DEFINES) if @DEFINES; + my $dist = 'indirect'; +my %PREREQ_PM = ( + 'XSLoader' => 0, +); + my %META = ( configure_requires => { 'ExtUtils::MakeMaker' => 0, @@ -13,7 +31,9 @@ my %META = ( build_requires => { 'ExtUtils::MakeMaker' => 0, 'Test::More' => 0, + %PREREQ_PM, }, + dynamic_config => 1, resources => { bugtracker => "http://rt.cpan.org/NoAuth/ReportBug.html?Queue=$dist", homepage => "http://search.cpan.org/dist/$dist/", @@ -29,9 +49,8 @@ WriteMakefile( VERSION_FROM => 'lib/indirect.pm', ABSTRACT_FROM => 'lib/indirect.pm', PL_FILES => {}, - PREREQ_PM => { - 'XSLoader' => 0, - }, + @DEFINES, + PREREQ_PM => \%PREREQ_PM, MIN_PERL_VERSION => 5.008, META_MERGE => \%META, dist => {