don't rely on . being in @INC
[p5sagit/strictures.git] / Makefile.PL
index 27d6a21..9a1774a 100644 (file)
@@ -1,11 +1,12 @@
 use strict;
 use warnings FATAL => 'all';
 use 5.006;
-require "inc/ExtUtils/HasCompiler.pm";
+use lib 'inc';
+use ExtUtils::HasCompiler 'can_compile_loadable_object';
 
 my $have_compiler
   = ! parse_args()->{PUREPERL_ONLY}
-  && ExtUtils::HasCompiler::can_compile_loadable_object(quiet => 1);
+  && can_compile_loadable_object(quiet => 1);
 
 my %extra_prereqs = (
   indirect => 0,