1.1 --- a/common/autoconf/basics.m4 Wed May 22 17:26:31 2013 +0200 1.2 +++ b/common/autoconf/basics.m4 Tue May 28 08:50:52 2013 +0200 1.3 @@ -60,16 +60,19 @@ 1.4 else 1.5 # We're on a posix platform. Hooray! :) 1.6 path="[$]$1" 1.7 - 1.8 - if test ! -f "$path" && test ! -d "$path"; then 1.9 - AC_MSG_ERROR([The path of $1, which resolves as "$path", is not found.]) 1.10 - fi 1.11 - 1.12 has_space=`$ECHO "$path" | $GREP " "` 1.13 if test "x$has_space" != x; then 1.14 AC_MSG_NOTICE([The path of $1, which resolves as "$path", is invalid.]) 1.15 AC_MSG_ERROR([Spaces are not allowed in this path.]) 1.16 fi 1.17 + 1.18 + # Use eval to expand a potential ~ 1.19 + eval path="$path" 1.20 + if test ! -f "$path" && test ! -d "$path"; then 1.21 + AC_MSG_ERROR([The path of $1, which resolves as "$path", is not found.]) 1.22 + fi 1.23 + 1.24 + $1="`cd "$path"; $THEPWDCMD`" 1.25 fi 1.26 ]) 1.27