search $Config{incpath} for headers too, why this was left out I don't know
authorTony Cook <tony@develop=help.com>
Fri, 15 Dec 2006 23:05:31 +0000 (23:05 +0000)
committerTony Cook <tony@develop=help.com>
Fri, 15 Dec 2006 23:05:31 +0000 (23:05 +0000)
Makefile.PL

index afe5bc2..e748d23 100644 (file)
@@ -399,6 +399,9 @@ sub init {
   if ($^O =~ /win32/i && $Config{cc} =~ /\bcl\b/i) {
     push(@incs, split /;/, $ENV{INCLUDE}) if exists $ENV{INCLUDE};
   }
+  if ($Config{incpath}) {
+    push @incs, grep -d, split /\Q$Config{path_sep}/, $Config{incpath};
+  }
   push @incs, grep -d,
       qw(/sw/include 
          /usr/include/freetype2