From: Karen Etheridge Date: Wed, 23 Apr 2014 16:42:38 +0000 (-0700) Subject: add missing configure requires - ExtUtils::CBuilder is not guaranteed to be at the... X-Git-Tag: v1.002001~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c4e0d79f9f766f91e870844c05823113acd9fc4c;p=p5sagit%2FJSON-MaybeXS.git add missing configure requires - ExtUtils::CBuilder is not guaranteed to be at the right version in core --- diff --git a/Makefile.PL b/Makefile.PL index dd7345b..8952a08 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -18,6 +18,11 @@ my %WriteMakefileArgs = ( : ()), perl => '5.006', }, + CONFIGURE_REQUIRES => { + 'ExtUtils::CBuilder' => '0.27', + 'File::Spec' => '0', + 'File::Temp' => '0', + }, TEST_REQUIRES => { 'Test::Without::Module' => '0.17', 'Test::More' => '0.88' @@ -46,15 +51,20 @@ my %WriteMakefileArgs = ( my $eumm_version = eval $ExtUtils::MakeMaker::VERSION; $WriteMakefileArgs{MIN_PERL_VERSION} = delete $WriteMakefileArgs{PREREQ_PM}{perl} || 0; + $WriteMakefileArgs{BUILD_REQUIRES} = { %{$WriteMakefileArgs{BUILD_REQUIRES} || {}}, %{delete $WriteMakefileArgs{TEST_REQUIRES}} } if $eumm_version < 6.63_03; + $WriteMakefileArgs{PREREQ_PM} = { %{$WriteMakefileArgs{PREREQ_PM}}, %{delete $WriteMakefileArgs{BUILD_REQUIRES}} } if $eumm_version < 6.55_01; +delete $WriteMakefileArgs{CONFIGURE_REQUIRES} + if $eumm_version < 6.51_03; + WriteMakefile(%WriteMakefileArgs); # can we locate a (the) C compiler