diff options
| author | Glenn Morris | 2010-05-20 17:28:47 -0700 |
|---|---|---|
| committer | Glenn Morris | 2010-05-20 17:28:47 -0700 |
| commit | e8752c66e923056fb5e61798a164cf1ae9627975 (patch) | |
| tree | 83527072da372a1505b496861bd6cb81dd1d23a9 /src | |
| parent | 969e684aa5751c8f7a54b08038c26b407b60e12d (diff) | |
| download | emacs-e8752c66e923056fb5e61798a164cf1ae9627975.tar.gz emacs-e8752c66e923056fb5e61798a164cf1ae9627975.zip | |
Handle CANNOT_DUMP (partially) with configure.
* configure.in (cannot_dump): New output variable.
* src/Makefile.in (CANNOT_DUMP): New, set by configure.
(emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP.
* msdos/sed1v2.inp (CANNOT_DUMP): Edit to no.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/Makefile.in | 37 |
2 files changed, 25 insertions, 17 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 13ab4682df3..5c99ed91434 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-05-21 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * Makefile.in (CANNOT_DUMP): New, set by configure. | ||
| 4 | (emacs${EXEEXT}, bootstrap-emacs${EXEEXT}): Use $CANNOT_DUMP. | ||
| 5 | |||
| 1 | 2010-05-20 Juri Linkov <juri@jurta.org> | 6 | 2010-05-20 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * fileio.c (Fdelete_file): Change interative spec to use | 8 | * fileio.c (Fdelete_file): Change interative spec to use |
diff --git a/src/Makefile.in b/src/Makefile.in index 1af812d6e15..dd1eec73c1f 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -284,6 +284,8 @@ START_FILES = @START_FILES@ | |||
| 284 | 284 | ||
| 285 | UNEXEC_OBJ = @unexec@ | 285 | UNEXEC_OBJ = @unexec@ |
| 286 | 286 | ||
| 287 | CANNOT_DUMP=@cannot_dump@ | ||
| 288 | |||
| 287 | DEPDIR=deps | 289 | DEPDIR=deps |
| 288 | ## -MMD -MF ${DEPDIR}/$*.d if AUTO_DEPEND; else empty. | 290 | ## -MMD -MF ${DEPDIR}/$*.d if AUTO_DEPEND; else empty. |
| 289 | DEPFLAGS=@DEPFLAGS@ | 291 | DEPFLAGS=@DEPFLAGS@ |
| @@ -599,18 +601,19 @@ LIBES = $(LOADLIBES) $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \ | |||
| 599 | all: emacs${EXEEXT} $(OTHER_FILES) | 601 | all: emacs${EXEEXT} $(OTHER_FILES) |
| 600 | 602 | ||
| 601 | /* Does anyone ever pay attention to the load-path-shadows output here? */ | 603 | /* Does anyone ever pay attention to the load-path-shadows output here? */ |
| 604 | /* FIXME Add EXEEXT for load-path-shadows? */ | ||
| 605 | /* The dumped Emacs is as functional and more efficient than | ||
| 606 | bootstrap-emacs, so we replace the latter with the former. */ | ||
| 602 | emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp} | 607 | emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp} |
| 603 | #ifdef CANNOT_DUMP | 608 | if test "${CANNOT_DUMP}" = "yes"; then \ |
| 604 | rm -f emacs${EXEEXT} | 609 | ln -f temacs${EXEEXT} emacs${EXEEXT}; \ |
| 605 | ln temacs${EXEEXT} emacs${EXEEXT} | 610 | EMACSLOADPATH=${lispsource} ./emacs -q -batch \ |
| 606 | -EMACSLOADPATH=${lispsource} ./emacs -q -batch -f list-load-path-shadows | 611 | -f list-load-path-shadows || true; \ |
| 607 | #else | 612 | else \ |
| 608 | LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump | 613 | LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump || exit 1; \ |
| 609 | @: This new Emacs is as functional and more efficient then | 614 | ln -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}; \ |
| 610 | @: bootstrap-emacs, so let us replace it. | 615 | ./emacs -q -batch -f list-load-path-shadows || true; \ |
| 611 | -ln -f emacs${EXEEXT} bootstrap-emacs${EXEEXT} | 616 | fi |
| 612 | -./emacs -q -batch -f list-load-path-shadows | ||
| 613 | #endif /* ! defined (CANNOT_DUMP) */ | ||
| 614 | 617 | ||
| 615 | /* We run make-docfile twice because the command line may get too long | 618 | /* We run make-docfile twice because the command line may get too long |
| 616 | on some systems. */ | 619 | on some systems. */ |
| @@ -807,12 +810,12 @@ ${lispsource}loaddefs.el: $(BOOTSTRAPEMACS) $(VCSWITNESS) | |||
| 807 | 810 | ||
| 808 | bootstrap-emacs${EXEEXT}: temacs${EXEEXT} | 811 | bootstrap-emacs${EXEEXT}: temacs${EXEEXT} |
| 809 | cd ../lisp; $(MAKE) $(MFLAGS) update-subdirs | 812 | cd ../lisp; $(MAKE) $(MFLAGS) update-subdirs |
| 810 | #ifdef CANNOT_DUMP | 813 | if test "${CANNOT_DUMP}" = "yes"; then \ |
| 811 | ln -f temacs${EXEEXT} bootstrap-emacs${EXEEXT} | 814 | ln -f temacs${EXEEXT} bootstrap-emacs${EXEEXT}; \ |
| 812 | #else | 815 | else \ |
| 813 | $(RUN_TEMACS) --batch --load loadup bootstrap | 816 | $(RUN_TEMACS) --batch --load loadup bootstrap || exit 1; \ |
| 814 | mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT} | 817 | mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}; \ |
| 815 | #endif /* ! defined (CANNOT_DUMP) */ | 818 | fi |
| 816 | @: Compile some files earlier to speed up further compilation. | 819 | @: Compile some files earlier to speed up further compilation. |
| 817 | cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=${bootstrap_exe} | 820 | cd ../lisp; $(MAKE) $(MFLAGS) compile-first EMACS=${bootstrap_exe} |
| 818 | 821 | ||