From: gfx Date: Tue, 27 Oct 2009 04:54:16 +0000 (+0900) Subject: Improve Makefile.PL X-Git-Tag: 0.40_02~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c6cb4ba05f72afd108afd995b705446849648930;p=gitmo%2FMouse.git Improve Makefile.PL --- diff --git a/Makefile.PL b/Makefile.PL index c86ec24..25e3be5 100755 --- a/Makefile.PL +++ b/Makefile.PL @@ -22,7 +22,7 @@ test_requires 'Test::Exception' => 0.27; # test_requires 'Test::Output' => 0.16; # too many dependencies! -include 'Test::Exception'; # work around 0.27_0x (its use of diehook might be wrong) +include_deps 'Test::Exception'; # work around 0.27_0x (its use of diehook might be wrong) recommends 'MRO::Compat' if $] < 5.010; @@ -38,8 +38,10 @@ if($] < 5.008_001){ } if(!defined $use_xs){ - require ExtUtils::CBuilder; - $use_xs = ExtUtils::CBuilder->new(quiet => 1)->have_compiler(); + $use_xs = eval { + require ExtUtils::CBuilder; + ExtUtils::CBuilder->new(quiet => 1)->have_compiler(); + }; } if($use_xs){