jerenkrantz 02/04/01 11:30:27
Modified: . CHANGES apr-config.in
Log:
Fix apr-config so that it will not attempt to cd to bindir if it doesn't
exist yet.
Revision Changes Path
1.250 +3 -0 apr/CHANGES
Index: CHANGES
===================================================================
RCS file: /home/cvs/apr/CHANGES,v
retrieving revision 1.249
retrieving revision 1.250
diff -u -r1.249 -r1.250
--- CHANGES 29 Mar 2002 19:20:40 -0000 1.249
+++ CHANGES 1 Apr 2002 19:30:27 -0000 1.250
@@ -1,5 +1,8 @@
Changes with APR b1
+ *) Fix apr-config so that it will not attempt to cd to a non-existent
+ directory. [Justin Erenkrantz]
+
*) Change the ordering of the apr_lock implementation method to
better match what's done in Apache 1.3. The ordering is
now (highest to lowest): pthread -> sysvsem -> fcntl -> flock.
1.15 +5 -1 apr/apr-config.in
Index: apr-config.in
===================================================================
RCS file: /home/cvs/apr/apr-config.in,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- apr-config.in 14 Mar 2002 02:18:47 -0000 1.14
+++ apr-config.in 1 Apr 2002 19:30:27 -0000 1.15
@@ -114,7 +114,11 @@
thisdir="`dirname $0`"
thisdir="`cd $thisdir && pwd`"
-tmpbindir="`cd $bindir && pwd`"
+if test -d $bindir; then
+ tmpbindir="`cd $bindir && pwd`"
+else
+ tmpbindir=""
+fi
if test "$tmpbindir" = "$thisdir"; then
location=installed
elif test "$APR_SOURCE_DIR" = "$thisdir"; then