summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 3 insertions, 3 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index c3a2fc6e4c..22a26353e1 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -22,10 +22,10 @@ dnl
dnl expands path to an absolute path and assigns it to variable
dnl
AC_DEFUN(AC_EXPAND_PATH,[
- if echo "$1" | grep -v '^/' >/dev/null ; then
- $2="`pwd`/$1"
- else
+ if test -z "$1" || echo "$1" | grep '^/' >/dev/null ; then
$2="$1"
+ else
+ $2="`pwd`/$1"
fi
])