]> git.imager.perl.org - imager.git/commitdiff
- check the correct directory when adding the cygwin Win32 API include
authorTony Cook <tony@develop=help.com>
Tue, 29 Nov 2005 08:34:36 +0000 (08:34 +0000)
committerTony Cook <tony@develop=help.com>
Tue, 29 Nov 2005 08:34:36 +0000 (08:34 +0000)
  path (Makefile.PL).  This was a later response to #16094
  Resolves: http://rt.cpan.org/NoAuth/Bug.html?16094
- add --nolog command-line switch to Makefile.PL to disable logging

Changes
Makefile.PL

diff --git a/Changes b/Changes
index 54777a9fae8aa2d2dc8efd6e834f823c2ee049ca..55ff57b206d641f5ade5297336e6a0ed18706fc1 100644 (file)
--- a/Changes
+++ b/Changes
@@ -1185,6 +1185,10 @@ Revision history for Perl extension Imager.
 - added experimental antialiased support to arc()
 - the order of the returned values for Imager::Font's align() method
   was incorrect.
+- check the correct directory when adding the cygwin Win32 API include
+  path (Makefile.PL).  This was a later response to #16094
+  Resolves: http://rt.cpan.org/NoAuth/Bug.html?16094
+- add --nolog command-line switch to Makefile.PL to disable logging
 
 =================================================================
 
index 96af5bb8db312417f3c816987370a480d16c5040..b7828fd47cab01a65127db4ff61877fd2f423f5d 100644 (file)
@@ -36,7 +36,8 @@ GetOptions("help" => \$help,
            "incpath=s", \@incpaths,
            "libpath=s" => \@libpaths,
            "noprobe" => \$noprobe,
-          "verbose|v" => \$VERBOSE);
+           "verbose|v" => \$VERBOSE,
+           "nolog" => \$NOLOG);
 
 if ($VERBOSE) { 
   print "Verbose mode\n"; 
@@ -48,6 +49,16 @@ if ($help) {
   usage();
 }
 
+if ($NOLOG)   { print "Logging not compiled into module\n"; }
+else { 
+  push @defines, [ IMAGER_LOG => 1, "Logging system" ];
+}
+
+if ($DEBUG_MALLOC) {
+  push @defines, [ IMAGER_DEBUG_MALLOC => 1, "Use Imager's DEBUG malloc()" ];
+  print "Malloc debugging enabled\n";
+}
+
 if (@enable && @disable) {
   print STDERR "Only --enable or --disable can be used, not both, try --help\n";
   exit 1;
@@ -379,7 +390,7 @@ sub init {
   }
   if ($^O eq 'cygwin') {
     push(@libs, '/usr/lib/w32api') if -d '/usr/lib/w32api';
-    push(@incs, '/usr/include/w32api') if -d '/usr/lib/w32api';
+    push(@incs, '/usr/include/w32api') if -d '/usr/include/w32api';
   }
 
   my $lext=$Config{'so'};   # Get extensions of libraries
@@ -543,16 +554,6 @@ sub getenv {
                                IM_LFLAGS
                                IM_DFLAGS);
 
-  if ($NOLOG)   { print "Logging not compiled into module\n"; }
-  else { 
-    push @defines, [ IMAGER_LOG => 1, "Logging system" ];
-  }
-
-  if ($DEBUG_MALLOC) {
-    push @defines, [ IMAGER_DEBUG_MALLOC => 1, "Use Imager's DEBUG malloc()" ];
-    print "Malloc debugging enabled\n";
-  }
-
 }
 
 sub make_imconfig {
@@ -658,11 +659,22 @@ sub is_exe {
 
 sub usage {
   print STDERR <<EOS;
-Usage: $0 [-v] [--enable feature1,feature2,...] [--incpath ...] [--libpath ...]
-       $0 [-v] [--disable feature1,feature2,...] [--incpath ...] [--libpath ...]
+Usage: $0 [--enable feature1,feature2,...] [other options]
+       $0 [--disable feature1,feature2,...]  [other options]
        $0 --help
 Possible feature names are:
   png gif ungif jpeg tiff T1-fonts TT-fonts freetype2
+Other options:
+  --verbose | -v
+    Verbose library probing (or set IM_VERBOSE in the environment)
+  --nolog
+    Disable logging (or set IM_NOLOG in the environment)
+  --incpath dir
+    Add to the include search path
+  --libpath dir
+    Add to the library search path
+  --noprobe
+    Don't use pkg-config or freetype2-config to probe for freetype2 and libpng
 EOS
   exit 1;