so it looks like apr-config doesn't work when $prefix contains a symlink, due to the fact that we use realpath to figure out some paths, and cd + pwd to figure out others, so when we try to compare them (for determining if we're installed or not), it breaks things.

here's a diff that fixes it on my freebsd 5.0 machine. (note, a similar thing will need to be done for apu-config.in, as it looks like it makes the same mistake).

-garrett

--- apr-config.in.orig  Sat Mar 22 22:55:46 2003
+++ apr-config.in       Sat Mar 22 22:56:08 2003
@@ -130,7 +130,7 @@
   APR_SOURCE_DIR="`realpath $APR_SOURCE_DIR`"
 fi
 if test -d $bindir; then
-  tmpbindir="`cd $bindir && pwd`"
+  tmpbindir="`realpath $bindir`"
 else
   tmpbindir=""
 fi



Reply via email to