dougm 02/05/23 16:36:31
Modified: lib/Apache Build.pm
Log:
leave out libperl dep if it isnt found in the properl place
Revision Changes Path
1.93 +9 -5 modperl-2.0/lib/Apache/Build.pm
Index: Build.pm
===================================================================
RCS file: /home/cvs/modperl-2.0/lib/Apache/Build.pm,v
retrieving revision 1.92
retrieving revision 1.93
diff -u -r1.92 -r1.93
--- Build.pm 23 May 2002 02:35:19 -0000 1.92
+++ Build.pm 23 May 2002 23:36:31 -0000 1.93
@@ -940,11 +940,15 @@
print $fh $self->canon_make_attr("lib_$type", $libs{$type});
}
- print $fh $self->canon_make_attr('libperl',
- join '/',
- $self->perl_config('archlibexp'),
- 'CORE',
- $self->perl_config('libperl'));
+ my $libperl = join '/',
+ $self->perl_config('archlibexp'), 'CORE', $self->perl_config('libperl');
+
+ #this is only used for deps, if libperl has changed, relink mod_perl.so
+ #not all perl dists put libperl where it should be, so just leave this
+ #out if it isn't in the proper place
+ if (-e $libperl) {
+ print $fh $self->canon_make_attr('libperl', $libperl);
+ }
for my $method (qw(ccopts ldopts inc)) {
print $fh $self->canon_make_attr($method, $self->$method());