]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix MinGW builds from inside the MSYS installation tree.
authorEli Zaretskii <eliz@gnu.org>
Thu, 19 Sep 2013 08:43:01 +0000 (11:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Thu, 19 Sep 2013 08:43:01 +0000 (11:43 +0300)
 configure.ac <srcdir> [MINGW32]: Make sure the value of 'srcdir'
 is in the full /d/foo/bar form.  See the discussion in
 http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00210.html,
 and in particular
 http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00252.html
 and its followups, for the details.

ChangeLog
configure.ac

index c075c60be23479e9a97d14fbbbf773ee4744f845..990db8da28d6150fcd720d05d633bc70705e879f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2013-09-19  Eli Zaretskii  <eliz@gnu.org>
+
+       * configure.ac <srcdir> [MINGW32]: Make sure the value of 'srcdir'
+       is in the full /d/foo/bar form.  See the discussion in
+       http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00210.html,
+       and in particular
+       http://lists.gnu.org/archive/html/emacs-devel/2013-09/msg00252.html
+       and its followups, for the details.
+
 2013-09-17  Dmitry Antipov  <dmantipov@yandex.ru>
 
        * configure.ac: Do not check for g_type_init because we
index 903537f8a591c3984de5d488c5276ab429393c92..fe326623571e91b8c1a3fea91e5df0554752da5e 100644 (file)
@@ -443,6 +443,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.
 
 AC_CANONICAL_HOST