summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-11-13 12:38:23 +0000
committerSascha Schumann <sas@php.net>1999-11-13 12:38:23 +0000
commit7dd7f38003d5a9a94dcee717b24b8d461118c9c6 (patch)
tree0f94ade3dac67ab53b4f86a71fd9bec55a55c1e5
parente82ad7e9c3366b9d7d72428c45d1c18eead18e2c (diff)
downloadphp-git-7dd7f38003d5a9a94dcee717b24b8d461118c9c6.tar.gz
(AC_EXPAND_PATH) Expand relative paths completely
-rw-r--r--acinclude.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 65ab8c3263..a5bfacaf6d 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -46,7 +46,9 @@ AC_DEFUN(AC_EXPAND_PATH,[
if test -z "$1" || echo "$1" | grep '^/' >/dev/null ; then
$2="$1"
else
- $2="`pwd`/$1"
+ ep_dir="`dirname \"$1\"`"
+ ep_realdir="`(cd \"$ep_dir\" && pwd)`"
+ $2="$ep_realdir/`basename \"$1\"`"
fi
])