require the pragmas if a compiler is present
Karen Etheridge [Sat, 6 Oct 2012 20:25:24 +0000 (13:25 -0700)]
Makefile.PL

index cf63958..2bb28b9 100644 (file)
@@ -36,4 +36,13 @@ WriteMakefile(
       },
     },
   },
+
+  (eval { require ExtUtils::CBuilder; 1 }
+      and ExtUtils::CBuilder->new->have_compiler)
+      ? (PREREQ_PM => {
+            indirect => 0,
+            multidimensional => 0,
+            'bareword::filehandles' => 0,
+      })
+      : (),
 );