diff options
| author | Eli Zaretskii | 2013-04-17 20:51:31 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2013-04-17 20:51:31 +0300 |
| commit | f576f7fb042d50ff965513f4679aa68343d0a7ee (patch) | |
| tree | 9d14f30c52f77075fc6c04546af56feff0890d94 | |
| parent | 79869f9a4889048ff8fced78fdf737c33943f93c (diff) | |
| download | emacs-f576f7fb042d50ff965513f4679aa68343d0a7ee.tar.gz emacs-f576f7fb042d50ff965513f4679aa68343d0a7ee.zip | |
Fixed the LN_S and LN_EMACS issue.
| -rw-r--r-- | Makefile.in | 4 | ||||
| -rw-r--r-- | configure.ac | 10 |
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@ | |||
| 257 | INSTALL_STRIP = | 257 | INSTALL_STRIP = |
| 258 | MKDIR_P = @MKDIR_P@ | 258 | MKDIR_P = @MKDIR_P@ |
| 259 | LN_S = @LN_S@ | 259 | LN_S = @LN_S@ |
| 260 | # Used in "make install". Usually, $(LN_S), but MS-Windows uses hard links. | ||
| 261 | LN_EMACS = @LN_EMACS@ | ||
| 262 | 260 | ||
| 263 | # We use gzip to compress installed .el files. | 261 | # We use gzip to compress installed .el files. |
| 264 | GZIP_PROG = @GZIP_PROG@ | 262 | GZIP_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 | |||
| 814 | dnl fi | 814 | dnl fi |
| 815 | AC_PROG_LN_S | 815 | AC_PROG_LN_S |
| 816 | 816 | ||
| 817 | LN_EMACS="\$(LN_S)" | 817 | dnl AC_PROG_LN_S sets LN_S to 'cp -pR' for MinGW, on the premise that 'ln' |
| 818 | dnl doesn't support links to directories, as in "ln file dir". But that | ||
| 819 | dnl use is non-portable, and OTOH MinGW wants to use hard links for Emacs | ||
| 820 | dnl executables at "make install" time. | ||
| 821 | dnl See http://lists.gnu.org/archive/html/emacs-devel/2013-04/msg00475.html | ||
| 822 | dnl for more details. | ||
| 818 | if test "$opsys" = "mingw32"; then | 823 | if test "$opsys" = "mingw32"; then |
| 819 | LN_EMACS="ln" | 824 | LN_S="ln" |
| 820 | fi | 825 | fi |
| 821 | AC_SUBST(LN_EMACS) | ||
| 822 | 826 | ||
| 823 | AC_PATH_PROG(INSTALL_INFO, install-info, :, | 827 | AC_PATH_PROG(INSTALL_INFO, install-info, :, |
| 824 | $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin) | 828 | $PATH$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/sbin) |