stas 2004/09/18 08:35:55
Modified: lib/Apache Build.pm
Log:
pristine source has no apr.h file, but apr.h.in
Revision Changes Path
1.175 +4 -1 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.174
retrieving revision 1.175
diff -u -u -r1.174 -r1.175
--- Build.pm 11 Sep 2004 00:07:33 -0000 1.174
+++ Build.pm 18 Sep 2004 15:35:55 -0000 1.175
@@ -1047,14 +1047,17 @@
$incdir = $self->ap_includedir;
}
+ my $header = "apr.h";
my @tries = ($incdir);
if ($self->httpd_is_source_tree) {
+ $header = "apr.h.in"; # pristine source has no .h file
my $path = catdir $self->dir, "srclib", "apr", "include";
push @tries, $path if -d $path;
}
+
for (@tries) {
- next unless $_ && -e catfile $_, "apr.h";
+ next unless $_ && -e catfile $_, $header;
$self->{apr_includedir} = $_;
last;
}