]> git.eshelyaron.com Git - emacs.git/commitdiff
Use hard links to Emacs executable in "make install" on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sun, 29 Mar 2020 13:43:56 +0000 (16:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 29 Mar 2020 13:43:56 +0000 (16:43 +0300)
* configure.ac (LN_S_FILEONLY): Set to "/bin/ln" for MinGW
unconditionally.

configure.ac

index a4daf1414d3ced89e07929edf5ea4834e4099819..9907160482e5b44be6b72eaed68f4da47da1479e 100644 (file)
@@ -1246,18 +1246,12 @@ emacs_cv_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
-    if test "$opsys" = "mingw32"; then
-      emacs_cv_ln_s_fileonly='/bin/ln -s'
-    else
-      emacs_cv_ln_s_fileonly='ln -s'
-    fi
+  if test "$opsys" = "mingw32"; then
+    emacs_cv_ln_s_fileonly=/bin/ln
+  elif ln -s conf$$.file conf$$ 2>/dev/null; then
+    emacs_cv_ln_s_fileonly='ln -s'
   elif ln conf$$.file conf$$ 2>/dev/null; then
-    if test "$opsys" = "mingw32"; then
-      emacs_cv_ln_s_fileonly=/bin/ln
-    else
-      emacs_cv_ln_s_fileonly=ln
-    fi
+    emacs_cv_ln_s_fileonly=ln
   fi
 fi