2013-12-14 Dani Moncayo <dmoncayo@gmail.com>
- * configure.ac (srcdir) [MINGW32]: Convert to an absolute MSYS
- path of the form "/c/foo/bar" to simplify conversion of formats.
+ * configure.ac (srcdir) [MINGW32]: If it is an absolute path,
+ force the format "/c/foo/bar" to simplify conversions to native
+ windows format.
2013-12-13 Glenn Morris <rgm@gnu.org>
then
. $srcdir/nt/mingw-cfg.site
- # Convert srcdir to an absolute MSYS path of the form "/c/foo/bar"
- # to simplify later conversions of paths to windows-native format
- # "c:/foo/bar"
- srcdir=`cd "${srcdir}" && pwd -W`
- srcdir="/${srcdir:0:1}${srcdir:2}"
+ if test ${srcdir:0:1} = "/" -o ${srcdir:1:1} = ":"
+ then
+ # srcdir is an absolute path. In this case, force the format
+ # "/c/foo/bar", to simplify later conversions to native Windows
+ # format ("c:/foo/bar")
+ srcdir=`cd "${srcdir}" && pwd -W`
+ srcdir="/${srcdir:0:1}${srcdir:2}"
+ fi
fi
dnl Set emacs_config_options to the options of 'configure', quoted for the shell,