aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2013-04-17 20:51:31 +0300
committerEli Zaretskii2013-04-17 20:51:31 +0300
commitf576f7fb042d50ff965513f4679aa68343d0a7ee (patch)
tree9d14f30c52f77075fc6c04546af56feff0890d94
parent79869f9a4889048ff8fced78fdf737c33943f93c (diff)
downloademacs-f576f7fb042d50ff965513f4679aa68343d0a7ee.tar.gz
emacs-f576f7fb042d50ff965513f4679aa68343d0a7ee.zip
Fixed the LN_S and LN_EMACS issue.
-rw-r--r--Makefile.in4
-rw-r--r--configure.ac10
2 files changed, 8 insertions, 6 deletions
diff --git a/Makefile.in b/Makefile.in
index 86eba76005b..6e0f151ea1a 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -257,8 +257,6 @@ INSTALL_INFO = @INSTALL_INFO@
257INSTALL_STRIP = 257INSTALL_STRIP =
258MKDIR_P = @MKDIR_P@ 258MKDIR_P = @MKDIR_P@
259LN_S = @LN_S@ 259LN_S = @LN_S@
260# Used in "make install". Usually, $(LN_S), but MS-Windows uses hard links.
261LN_EMACS = @LN_EMACS@
262 260
263# We use gzip to compress installed .el files. 261# We use gzip to compress installed .el files.
264GZIP_PROG = @GZIP_PROG@ 262GZIP_PROG = @GZIP_PROG@
@@ -473,7 +471,7 @@ install-arch-dep: src install-arch-indep install-doc
473 chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) || true; \ 471 chmod 1755 $(DESTDIR)${bindir}/$(EMACSFULL) || true; \
474 if test "x${NO_BIN_LINK}" = x; then \ 472 if test "x${NO_BIN_LINK}" = x; then \
475 rm -f $(DESTDIR)${bindir}/$(EMACS) ; \ 473 rm -f $(DESTDIR)${bindir}/$(EMACS) ; \
476 cd $(DESTDIR)${bindir} && $(LN_EMACS) $(EMACSFULL) $(EMACS); \ 474 cd $(DESTDIR)${bindir} && $(LN_S) $(EMACSFULL) $(EMACS); \
477 fi; \ 475 fi; \
478 else \ 476 else \
479 subdir=${ns_appresdir}/site-lisp; \ 477 subdir=${ns_appresdir}/site-lisp; \
diff --git a/configure.ac b/configure.ac
index ff7c2ece0bb..d0515147584 100644
--- a/configure.ac
+++ b/configure.ac
@@ -814,11 +814,15 @@ dnl AC_PROG_RANLIB
814dnl fi 814dnl fi
815AC_PROG_LN_S 815AC_PROG_LN_S
816 816
817LN_EMACS="\$(LN_S)" 817dnl AC_PROG_LN_S sets LN_S to 'cp -pR' for MinGW, on the premise that 'ln'
818dnl doesn't support links to directories, as in "ln file dir". But that
819dnl use is non-portable, and OTOH MinGW wants to use hard links for Emacs
820dnl executables at "make install" time.
821dnl See http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00475.html
822dnl for more details.
818if test "$opsys" = "mingw32"; then 823if test "$opsys" = "mingw32"; then
819 LN_EMACS="ln" 824 LN_S="ln"
820fi 825fi
821AC_SUBST(LN_EMACS)
822 826
823AC_PATH_PROG(INSTALL_INFO, install-info, :, 827AC_PATH_PROG(INSTALL_INFO, install-info, :,
824 $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin) 828 $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin)