diff options
author | Joe Orton <jorton@apache.org> | 2007-01-10 11:50:35 +0100 |
---|---|---|
committer | Joe Orton <jorton@apache.org> | 2007-01-10 11:50:35 +0100 |
commit | f3ee5c3736efe3a7ed528edeb67ac110c64faf0a (patch) | |
tree | 030c90b8899ef58aceb008b13a80b6956edd8af8 /support | |
parent | Oh my - how stale :) (diff) | |
download | apache2-f3ee5c3736efe3a7ed528edeb67ac110c64faf0a.tar.xz apache2-f3ee5c3736efe3a7ed528edeb67ac110c64faf0a.zip |
* configure.in: Substitute MOD_SO_ENABLED variable.
* support/apxs.in: Use it to eliminate run-time check for whether
httpd has mod_so built-in.
Submitted by: David M. Lee <dmlee crossroads.com>
PR: 40653
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@494781 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r-- | support/apxs.in | 21 |
1 files changed, 2 insertions, 19 deletions
diff --git a/support/apxs.in b/support/apxs.in index 1dcc82ede4..385d71e5ca 100644 --- a/support/apxs.in +++ b/support/apxs.in @@ -187,28 +187,11 @@ if (@opt_S) { ## ## Initial shared object support check ## -my $httpd = get_vars("sbindir") . "/" . get_vars("progname"); -$httpd = eval qq("$httpd"); -$httpd = eval qq("$httpd"); -my $envvars = get_vars("sbindir") . "/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$:) { - ($httpd = $0) =~ s:support/apxs$::; -} - -unless (-x "$httpd") { - error("$httpd not found or not executable"); - exit 1; -} - -unless (grep /mod_so/, `. $envvars && $httpd -l`) { +unless ("@MOD_SO_ENABLED@" eq "yes") { error("Sorry, no shared object support for Apache"); error("available under your platform. Make sure"); error("the Apache module mod_so is compiled into"); - error("your server binary `$httpd'."); + error("the server binary."); exit 1; } |