Return-Path: Delivered-To: apache-cvs-archive@hyperreal.org Received: (qmail 6981 invoked by uid 6000); 14 Mar 1999 03:53:07 -0000 Received: (qmail 6964 invoked by alias); 14 Mar 1999 03:53:05 -0000 Delivered-To: apache-1.3-cvs@hyperreal.org Received: (qmail 6962 invoked by uid 167); 14 Mar 1999 03:53:04 -0000 Date: 14 Mar 1999 03:53:04 -0000 Message-ID: <19990314035304.6961.qmail@hyperreal.org> From: rasmus@hyperreal.org To: apache-1.3-cvs@hyperreal.org Subject: cvs commit: apache-1.3/src/support apxs.pl Sender: apache-cvs-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org rasmus 99/03/13 19:53:04 Modified: src/support apxs.pl Log: Add a quick sanity check here. The binary could have been moved or the permissions changed which would cause the following grep for mos_so to fail which then resulted in a misleading error message being printed. We might also want to check for people who do ./configure --prefix=. and disallow it or replace it with the absolute path to the current dir since a $CFG_SBINDIR for ./bin in apxs doesn't make any sense. Revision Changes Path 1.19 +4 -0 apache-1.3/src/support/apxs.pl Index: apxs.pl =================================================================== RCS file: /home/cvs/apache-1.3/src/support/apxs.pl,v retrieving revision 1.18 retrieving revision 1.19 diff -u -r1.18 -r1.19 --- apxs.pl 1999/01/01 22:00:15 1.18 +++ apxs.pl 1999/03/14 03:53:03 1.19 @@ -91,6 +91,10 @@ ## ## 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";