X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=Makefile.PL;fp=Makefile.PL;h=cf7f30e41c8ab2c69e3b39ced29c39809f6d2d0a;hb=058acc2be0bed8de9d581a9f01a5ee6d9b6631d2;hp=90be8ea7230ec61fcf4cde6ae9ac56958a0d311e;hpb=2be44a4b5a53c37680c7bd1749a91131eebf4375;p=p5sagit%2Fstrictures.git diff --git a/Makefile.PL b/Makefile.PL index 90be8ea..cf7f30e 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -1,11 +1,11 @@ use strict; use warnings FATAL => 'all'; use 5.006; +require "inc/ExtUtils/HasCompiler.pm"; my $have_compiler = ! parse_args()->{PUREPERL_ONLY} - && eval { require ExtUtils::CBuilder; 1 } - && ExtUtils::CBuilder->new->have_compiler; + && ExtUtils::HasCompiler::can_compile_loadable_object(quiet => 1); my %extra_prereqs = ( indirect => 0,