diff options
author | Justin Erenkrantz <jerenkrantz@apache.org> | 2002-04-01 19:30:27 +0000 |
---|---|---|
committer | Justin Erenkrantz <jerenkrantz@apache.org> | 2002-04-01 19:30:27 +0000 |
commit | a2a9a91d3961b1f79b1e650f8639b036bee1e62a (patch) | |
tree | 06aeba213e2bd0141ee1bec7175006b3f392993d /apr-config.in | |
parent | b14b56d4a2c10d1b0a76db81771da93b3f240b2e (diff) | |
download | apr-a2a9a91d3961b1f79b1e650f8639b036bee1e62a.tar.gz |
Fix apr-config so that it will not attempt to cd to bindir if it doesn't
exist yet.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@63213 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'apr-config.in')
-rw-r--r-- | apr-config.in | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apr-config.in b/apr-config.in index 8644321c9..a87cd3421 100644 --- a/apr-config.in +++ b/apr-config.in @@ -114,7 +114,11 @@ fi 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 |