]> git.imager.perl.org - imager.git/commitdiff
look at the correct %Config library and include paths
authorTony Cook <tony@develop=help.com>
Mon, 13 Sep 2010 10:54:03 +0000 (10:54 +0000)
committerTony Cook <tony@develop=help.com>
Mon, 13 Sep 2010 10:54:03 +0000 (10:54 +0000)
search both /usr/local/{lib,include} and /usr/{lib,include}

lib/Imager/Probe.pm

index b133e19ce99b620326f43f7c1d9b5df9971ab0c4..b333c22c542513a81d71313f310ceca875299cbc 100644 (file)
@@ -268,10 +268,12 @@ sub _lib_paths {
      (
       map { split ' ' }
       grep $_,
-      @Config{qw/loclibpath libpth libspath/}
+      @Config{qw/loclibpth libpth libspath/}
      ),
      $^O eq "MSWin32" ? $ENV{LIB} : "",
      $^O eq "cygwin" ? "/usr/lib/w32api" : "",
+     "/usr/lib",
+     "/usr/local/lib",
     );
 }
 
@@ -287,7 +289,7 @@ sub _inc_paths {
      (
       map { split ' ' }
       grep $_,
-      @Config{qw/locincpath incpath/}
+      @Config{qw/locincpth incpath/}
      ),
      "/usr/include",
      "/usr/local/include",