perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Randy Kobes <ra...@theoryx5.uwinnipeg.ca>
Subject [mp2] getting Apache2 includes
Date Tue, 07 Dec 2004 05:38:03 GMT
On Win32, within Apache::Build, apu-config is used to
get at the Apache include directories. In doing so
a "-I" is stripped off, but on Win32, apu-config
prepends /I. The following diff:
==================================================================
Index: lib/Apache/Build.pm
===================================================================
--- lib/Apache/Build.pm	(revision 110071)
+++ lib/Apache/Build.pm	(working copy)
@@ -1760,7 +1760,7 @@
         my $apuc = $self->apu_config_path;
         if ($apuc && -x $apuc) {
             chomp(my $apuincs = qx($apuc --includes));
-            $apuincs =~ s|-I||;
+            $apuincs =~ s{^\s*(-|/)I}{};
             push @inc, $apuincs;
         }

=====================================================================
gets rid of either.

-- 
best regards,
randy

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


Mime
View raw message