]> git.imager.perl.org - imager.git/commitdiff
remove debug code
authorTony Cook <tony@develop=help.com>
Thu, 10 May 2007 13:57:47 +0000 (13:57 +0000)
committerTony Cook <tony@develop=help.com>
Thu, 10 May 2007 13:57:47 +0000 (13:57 +0000)
correct handling of adding the second include path

Makefile.PL

index 05d64384a2152db3e07d9a7a627478ac59056da1..e8cd64be8e65d227d2489c40a82136a778956f9c 100644 (file)
@@ -766,16 +766,13 @@ sub freetype2_probe_scan {
     my $path = File::Spec->catfile($inc, 'ft2build.h');
     -e $path or next;
 
-    print "found $path\n";
     # try to find what it's including
     my $ftheader;
     open FT2BUILD, "< $path"
       or next;
-    print "scanning head\n";
     while (<FT2BUILD>) {
       if (m!^\s*\#\s*include\s+<([\w/.]+)>!
          || m!^\s*\#\s*include\s+"([\w/.]+)"!) {
-       print "found $1\n";
        $ftheader = $1;
        last;
       }
@@ -783,7 +780,6 @@ sub freetype2_probe_scan {
     close FT2BUILD;
     $ftheader
       or next;
-    print "header $ftheader\n";
     # non-Unix installs put this directly under the same directory in
     # theory
     if (-e File::Spec->catfile($inc, $ftheader)) {
@@ -818,7 +814,7 @@ sub freetype2_probe_scan {
   return unless $found_inc && $found_lib;
 
   $frm->{cflags} = "-I$found_inc";
-  $frm->{cflags} .= " -I$found_inc2" if $found_inc;
+  $frm->{cflags} .= " -I$found_inc2" if $found_inc2;
   $frm->{libfiles} = "-lfreetype";
 
   return 1;