We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f0c5315 + 98d2b92 commit 3a88977Copy full SHA for 3a88977
1 file changed
build/php.m4
@@ -63,7 +63,11 @@ AC_DEFUN([PHP_EXPAND_PATH],[
63
changequote({,})
64
ep_dir=$(echo $1|$SED 's%/*[^/][^/]*/*$%%')
65
changequote([,])
66
- ep_realdir=$(cd "$ep_dir" && pwd)
+ if test -z $ep_dir ; then
67
+ ep_realdir=$(pwd)
68
+ else
69
+ ep_realdir=$(cd "$ep_dir" && pwd)
70
+ fi
71
$2="$ep_realdir"/$(basename "$1")
72
fi
73
])
0 commit comments