I had some problems with apr-config giving back a false path. This happend
because apr-config was invoked under a path name with sym links.
Looking into that script I saw a line trying to filter out any symlinks
of a path.
thisdir="`cd $thisdir && pwd`"
The problem is the pwd.
In bash the built-in pwd doesn't give the physical path ( you can with option
-P )
/bin/pwd is probably a better choice.
The attached patch seems to fix the problem.
cheers,
Erik Sj�lund
--- apr-config.in 2002-09-19 07:31:40.000000000 +0200
+++ apr-config.in.new 2002-11-28 15:50:21.000000000 +0100
@@ -120,9 +120,9 @@
fi
thisdir="`dirname $0`"
-thisdir="`cd $thisdir && pwd`"
+thisdir="`cd $thisdir && env pwd`"
if test -d $bindir; then
- tmpbindir="`cd $bindir && pwd`"
+ tmpbindir="`cd $bindir && env pwd`"
else
tmpbindir=""
fi