summaryrefslogtreecommitdiff
path: root/support/apxs.in
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2002-04-29 18:09:02 +0000
committerJeff Trawick <trawick@apache.org>2002-04-29 18:09:02 +0000
commitd8a43f495904df64c80da9d02ae9d3be79bfeb45 (patch)
tree84e5226ed276813c14478975975539dffff16558 /support/apxs.in
parent5dcc1f9915485af9fd99f71466348bfe2bff7771 (diff)
downloadhttpd-d8a43f495904df64c80da9d02ae9d3be79bfeb45.tar.gz
finish getting apxs to work with a binary build
it now picks up any necessary ld environment variables from the envvars file when invoking "httpd -l" to verify that mod_so was included in the build git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94865 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support/apxs.in')
-rw-r--r--support/apxs.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/support/apxs.in b/support/apxs.in
index e412f223aa..4bc4935740 100644
--- a/support/apxs.in
+++ b/support/apxs.in
@@ -223,6 +223,9 @@ if (@opt_S) {
my $httpd = get_vars("sbindir") . "/" . get_vars("progname");
$httpd = eval qq("$httpd");
$httpd = eval qq("$httpd");
+my $envvars = get_vars("bindir") . "/envvars";
+$envvars = eval qq("$envvars");
+$envvars = eval qq("$envvars");
#allow apxs to be run from the source tree, before installation
if ($0 =~ m:support/apxs$:) {
@@ -234,7 +237,7 @@ unless (-x "$httpd") {
exit 1;
}
-unless (grep /mod_so/, `$httpd -l`) {
+unless (grep /mod_so/, `. $envvars && $httpd -l`) {
error("Sorry, no shared object support for Apache");
error("available under your platform. Make sure");
error("the Apache module mod_so is compiled into");