]> granicus.if.org Git - apache/commitdiff
Perform check for "$CFG_SBINDIR/$CFG_TARGET" _after_ the command line
authorWilfredo Sanchez <wsanchez@apache.org>
Tue, 7 Dec 1999 00:06:41 +0000 (00:06 +0000)
committerWilfredo Sanchez <wsanchez@apache.org>
Tue, 7 Dec 1999 00:06:41 +0000 (00:06 +0000)
overrides for CFG_SBINDIR and CFG_TARGET have been evaluated.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84239 13f79535-47bb-0310-9956-ffa450edef68

support/apxs.in

index 3bdd35d2b917b46255eccbf0f46cb446c590d972..5901a4e17b006e34a3ff99f71fd5c79959e70c0d 100644 (file)
@@ -88,21 +88,6 @@ $CFG_CFLAGS =~ s|^\s+||;
 $CFG_CFLAGS =~ s|\s+$||;
 $CFG_CFLAGS =~ s|\s+`.+apaci`||;
 
-##
-##  Initial shared object support check
-##
-if (not -x "$CFG_SBINDIR/$CFG_TARGET") {
-       print STDERR "apxs:Error: $CFG_SBINDIR/$CFG_TARGET not found or not executable\n";
-       exit(1);
-}
-if (not grep(/mod_so/, `$CFG_SBINDIR/$CFG_TARGET -l`)) {
-    print STDERR "apxs:Error: Sorry, no shared object support for Apache\n";
-    print STDERR "apxs:Error: available under your platform. Make sure\n";
-    print STDERR "apxs:Error: the Apache module mod_so is compiled into\n";
-    print STDERR "apxs:Error: your server binary `$CFG_SBINDIR/$CFG_TARGET'.\n";
-    exit(1);
-}
-
 ##
 ##  parse argument line
 ##
@@ -233,6 +218,21 @@ if (@opt_S) {
     }
 }
 
+##
+##  Initial shared object support check
+##
+if (not -x "$CFG_SBINDIR/$CFG_TARGET") {
+       print STDERR "apxs:Error: $CFG_SBINDIR/$CFG_TARGET not found or not executable\n";
+       exit(1);
+}
+if (not grep(/mod_so/, `$CFG_SBINDIR/$CFG_TARGET -l`)) {
+    print STDERR "apxs:Error: Sorry, no shared object support for Apache\n";
+    print STDERR "apxs:Error: available under your platform. Make sure\n";
+    print STDERR "apxs:Error: the Apache module mod_so is compiled into\n";
+    print STDERR "apxs:Error: your server binary `$CFG_SBINDIR/$CFG_TARGET'.\n";
+    exit(1);
+}
+
 ##
 ##  Operation
 ##