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";
  
  
  

Reply via email to