perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Ananiev" <anan...@thegdb.com>
Subject Fix for "undefined value" warning in Makefile.PL
Date Tue, 23 Aug 2005 11:56:16 GMT
This one fixes an "Undefined value" warning in Makefile.PL, when apxs is not
present on Win32.

Index: Makefile.PL
===================================================================
--- Makefile.PL (revision 239256)
+++ Makefile.PL (working copy)
@@ -391,11 +391,15 @@
     if ($build->is_dynamic) {
         warning
             "You'll need to add the following to httpd.conf:",
"",
-            "  LoadModule perl_module modules/$build->{MODPERL_LIB_DSO}",
"",
-            "depending on your build, mod_perl might not live in",
-            "the modules/ directory - check the results of",
"",
-            "  \$ $build->{MP_APXS} -q LIBEXECDIR",
"",
-            "and adjust the LoadModule directive accordingly.\n";
+            "  LoadModule perl_module modules/$build->{MODPERL_LIB_DSO}";
+
+            if($build->{MP_APXS}) {
+                warning "",
+                    "depending on your build, mod_perl might not live in",
+                    "the modules/ directory - check the results of",
"",
+                    "  \$ $build->{MP_APXS} -q LIBEXECDIR",
"",
+                    "and adjust the LoadModule directive accordingly.\n";
+            }
     }

     $build->save;




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message