httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Jagielski <...@jaguNET.com>
Subject Re: TestCompile, HP-UX and -r/-x
Date Sat, 11 Apr 1998 00:58:08 GMT
Ben Laurie wrote:
> 
> Jim Jagielski wrote:
> > 
> > Here's a quick little fix...
> > 
> > Index: src/helpers/TestCompile
> > ===================================================================
> > RCS file: /export/home/cvs/apache-1.3/src/helpers/TestCompile,v
> > retrieving revision 1.9
> > diff -u -r1.9 TestCompile
> > --- TestCompile 1998/03/05 12:42:30     1.9
> > +++ TestCompile 1998/04/10 22:55:52
> > @@ -120,8 +120,9 @@
> >  # Now run that Makefile
> >  eval "make $TARGET >/dev/null $ERRDIR"
> > 
> > -# And see if dummy exists, if so, then we assume the
> > -# condition we are testing for is good
> > -if [ -f $TARGET ]; then
> > +# And see if dummy exists and is executable, if so, then we
> > +# assume the condition we are testing for is good
> > +TESTTARG=`PATH=".:$PATH" ./PrintPath $TARGET`
> 
> Surely this should just be .?
> 

I'm guessing you mean the PATH part? Well, the problem is that
PrintPath uses 'cat' instead of just '/bin/cat' (ie: it
internally uses $PATH) so if we set PATH to '.' then PrintPath
will fail because ./cat doesn't exist. We could assume cat lives
in /bin but...

That's why it does the mucking around... if we could assume all
cats were in /bin we could fix PrintPath and just

   if PATH=`pwd` ./PrintPath -s $TARGET

which would be cleaner... But I wouldn't want to assume that
and cause Configure to start barfing on weird systems where it
worked before (and we'll need to worry about where it is... Ugg).
-- 
===========================================================================
   Jim Jagielski   |||   jim@jaguNET.com   |||   http://www.jaguNET.com/
            "That's no ordinary rabbit... that's the most foul,
            cruel and bad-tempered rodent you ever laid eyes on"

Mime
View raw message