aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorEli Zaretskii2014-04-13 09:44:22 +0300
committerEli Zaretskii2014-04-13 09:44:22 +0300
commitaa1f3497ed8317b7e4e357e73a7802689ddc52e6 (patch)
treefcc66661e747672c7cd44f7cbcbd0b559ca2020e /configure.ac
parent285d6d5d0fde973a31986877fb04a85be0e362ea (diff)
downloademacs-aa1f3497ed8317b7e4e357e73a7802689ddc52e6.tar.gz
emacs-aa1f3497ed8317b7e4e357e73a7802689ddc52e6.zip
Fix creation of emacs.exe hardlink at "make install" time on MS-Windows.
configure.ac (LN_S_FILEONLY, LN_S): Use "/bin/ln" on MinGW, to ensure the MSYS ln.exe is invoked.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac14
1 files changed, 12 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e427caa03c0..d8225f48a35 100644
--- a/configure.ac
+++ b/configure.ac
@@ -938,11 +938,21 @@ rm -f conf$$ conf$$.file
938 938
939LN_S_FILEONLY='cp -p' 939LN_S_FILEONLY='cp -p'
940 940
941dnl On MinGW, ensure we will call the MSYS /bin/ln.exe, not some
942dnl random program in the current directory.
941if (echo >conf$$.file) 2>/dev/null; then 943if (echo >conf$$.file) 2>/dev/null; then
942 if ln -s conf$$.file conf$$ 2>/dev/null; then 944 if ln -s conf$$.file conf$$ 2>/dev/null; then
943 LN_S_FILEONLY='ln -s' 945 if test "$opsys" = "mingw32"; then
946 LN_S_FILEONLY='/bin/ln -s'
947 else
948 LN_S_FILEONLY='ln -s'
949 fi
944 elif ln conf$$.file conf$$ 2>/dev/null; then 950 elif ln conf$$.file conf$$ 2>/dev/null; then
945 LN_S_FILEONLY=ln 951 if test "$opsys" = "mingw32"; then
952 LN_S_FILEONLY=/bin/ln
953 else
954 LN_S_FILEONLY=ln
955 fi
946 fi 956 fi
947fi 957fi
948 958