summaryrefslogtreecommitdiff
path: root/apr-config.in
diff options
context:
space:
mode:
authorstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2003-06-02 12:50:52 +0000
committerstriker <striker@13f79535-47bb-0310-9956-ffa450edef68>2003-06-02 12:50:52 +0000
commit5cb86202f0c8d3b43c336d11fe7387376ed979ac (patch)
tree7d25e691ccdc9345a7741295e203474fdc033eeb /apr-config.in
parent2e25b329b262a3be3a170f0b949c41a1b991997a (diff)
downloadlibapr-5cb86202f0c8d3b43c336d11fe7387376ed979ac.tar.gz
Add a check to see if the sourcedir actually exists. If it doesn't,
which is likely when installed by a package, don't try and expand the path using realpath. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64525 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'apr-config.in')
-rw-r--r--apr-config.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/apr-config.in b/apr-config.in
index 0593e48fc..6afeb00a1 100644
--- a/apr-config.in
+++ b/apr-config.in
@@ -134,7 +134,9 @@ fi
# Otherwise, being in a symlinked dir may result in incorrect output.
if test -x "`which realpath 2>/dev/null`"; then
thisdir="`realpath $thisdir`"
- APR_SOURCE_DIR="`realpath $APR_SOURCE_DIR`"
+ if test -d "$APR_SOURCE_DIR"; then
+ APR_SOURCE_DIR="`realpath $APR_SOURCE_DIR`"
+ fi
if test -n $tmpbindir; then
tmpbindir="`realpath $tmpbindir`"
fi