Fix for cygpath if cygpath is not installed on Cygwin/Mingw machine or does not support --mixed option
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4232 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
e98c771755
commit
e321b1dfb7
1 changed files with 6 additions and 2 deletions
|
|
@ -980,10 +980,14 @@ AC_SUBST(PIKEDYNAMICLINKING)
|
||||||
#----------------------------------------------------------------
|
#----------------------------------------------------------------
|
||||||
|
|
||||||
# Root directory
|
# Root directory
|
||||||
# Translate path for native Windows compilers on Cygwin for use with 'make check'
|
# Translate path for native Windows compilers for use with 'make check'
|
||||||
ROOT_DIR=`pwd`
|
ROOT_DIR=`pwd`
|
||||||
case $host in
|
case $host in
|
||||||
*-*-cygwin* | *-*-mingw*) ROOT_DIR=`cygpath --mixed $ROOT_DIR`;;
|
*-*-cygwin* | *-*-mingw*)
|
||||||
|
if (cygpath --mixed $ROOT_DIR) >/dev/null 2>/dev/null; then
|
||||||
|
ROOT_DIR=`cygpath --mixed $ROOT_DIR`
|
||||||
|
fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_SUBST(ROOT_DIR)
|
AC_SUBST(ROOT_DIR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue