You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl-cvs@perl.apache.org by do...@apache.org on 2002/06/23 23:46:54 UTC
cvs commit: modperl-2.0/lib/ModPerl MM.pm
dougm 2002/06/23 14:46:54
Modified: lib/ModPerl MM.pm
Log:
dont build modules that require threads if unless APR_HAS_THREADS is 1
Revision Changes Path
1.21 +6 -0 modperl-2.0/lib/ModPerl/MM.pm
Index: MM.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/ModPerl/MM.pm,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- MM.pm 21 May 2002 17:42:39 -0000 1.20
+++ MM.pm 23 Jun 2002 21:46:54 -0000 1.21
@@ -175,6 +175,12 @@
return ''; #XXX: APR::PerlIO does not link on win32
}
+ my $apr_config = build_config()->get_apr_config();
+
+ if ($path =~ m/(Thread|Global)Mutex/) {
+ return unless $apr_config->{HAS_THREADS};
+ }
+
return '' if $path =~ m/\.(pl|cvsignore)$/;
return '' if $path =~ m:\bCVS/:;
return '' if $path =~ m/~$/;