Fix creation of emacs.exe hardlink at "make install" time on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Sun, 13 Apr 2014 06:44:22 +0000 (09:44 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 13 Apr 2014 06:44:22 +0000 (09:44 +0300)
 configure.ac (LN_S_FILEONLY, LN_S): Use "/bin/ln" on MinGW, to
 ensure the MSYS ln.exe is invoked.

ChangeLog
configure.ac

index 4dca366..69e03a1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-04-13  Eli Zaretskii  <eliz@gnu.org>
+
+       * configure.ac (LN_S_FILEONLY, LN_S): Use "/bin/ln" on MinGW, to
+       ensure the MSYS ln.exe is invoked.
+
 2014-04-11  Glenn Morris  <rgm@gnu.org>
 
        * make-dist: Do not distribute generated admin/grammars/Makefile.
index e427caa..d8225f4 100644 (file)
@@ -938,11 +938,21 @@ rm -f conf$$ conf$$.file
 
 LN_S_FILEONLY='cp -p'
 
+dnl On MinGW, ensure we will call the MSYS /bin/ln.exe, not some
+dnl random program in the current directory.
 if (echo >conf$$.file) 2>/dev/null; then
   if ln -s conf$$.file conf$$ 2>/dev/null; then
-    LN_S_FILEONLY='ln -s'
+    if test "$opsys" = "mingw32"; then
+      LN_S_FILEONLY='/bin/ln -s'
+    else
+      LN_S_FILEONLY='ln -s'
+    fi
   elif ln conf$$.file conf$$ 2>/dev/null; then
-    LN_S_FILEONLY=ln
+    if test "$opsys" = "mingw32"; then
+      LN_S_FILEONLY=/bin/ln
+    else
+      LN_S_FILEONLY=ln
+    fi
   fi
 fi