diff options
author | Glenn Morris <rgm@gnu.org> | 2013-09-19 06:17:39 -0400 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2013-09-19 06:17:39 -0400 |
commit | 52d4169a69b1610680181947cd7784662b0b1730 (patch) | |
tree | b2b2bac685bb6c531cfe6f857e4cae0cc50b2fcc /autogen | |
parent | be9bc55efdc1c1f665a84e5f10cdef9af0685ab7 (diff) |
Auto-commit of generated files.
Diffstat (limited to 'autogen')
-rwxr-xr-x | autogen/configure | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autogen/configure b/autogen/configure index 206f5301e82..c5ee6973db8 100755 --- a/autogen/configure +++ b/autogen/configure @@ -4623,6 +4623,17 @@ case "${srcdir}" in * ) srcdir=`(cd "$srcdir"; pwd)` ;; esac +#### When building with MinGW inside the MSYS tree, 'pwd' produces +#### directories relative to the root of the MSYS tree, +#### e.g. '/home/user/foo' instead of '/d/MSYS/home/user/foo'. When +#### such a value of srcdir is written to the top-level Makefile, it +#### gets propagated to src/epaths.h, and that causes temacs to fail, +#### because, being a MinGW program that knows nothing of MSYS root +#### substitution, it cannot find the data directory. "pwd -W" +#### produces Windows-style 'd:/foo/bar' absolute directory names, so +#### we use it here to countermand that lossage. +test "$MSYSTEM" = "MINGW32" && srcdir=`(cd "$srcdir"; pwd -W | sed -e 's,^\([A-Za-z]\):,/\1,')` + ### Canonicalize the configuration name. # Make sure we can run config.sub. |