stas 2003/08/06 17:46:55
Modified: . Makefile.PL
Log:
add an early check whether we can find apr-config, and suggest the user to
pass the MP_AP_CONFIG option if that's the case
Revision Changes Path
1.112 +13 -0 modperl-2.0/Makefile.PL
Index: Makefile.PL
===================================================================
RCS file: /home/cvs/modperl-2.0/Makefile.PL,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -r1.111 -r1.112
--- Makefile.PL 6 Aug 2003 23:53:23 -0000 1.111
+++ Makefile.PL 7 Aug 2003 00:46:55 -0000 1.112
@@ -45,6 +45,8 @@
perl_version_check($build);
+apache_check($build);
+
my $code = ModPerl::Code->new;
configure();
@@ -344,6 +346,17 @@
error "5.7.x development versions of Perl are no longer supported\n" .
"Upgrade to 5.8.0 or higher";
exit 1;
+ }
+}
+
+sub apache_check {
+ my $build = shift;
+
+ # we need to know where apr-config and apu-configs are
+ # which sometimes aren't placed into the same dir with apxs/httpd
+ unless ($build->apr_config_path) {
+ die "can't find 'apr-config', please pass " .
+ "MP_APR_CONFIG=/full/path/to/apr-config to 'perl Makefile.PL'";
}
}