aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2010-05-17 19:30:13 -0700
committerGlenn Morris2010-05-17 19:30:13 -0700
commitbe4ff9dad8bf43251f78f58a9ce86cf8bb153300 (patch)
treeb61fdf0af5566b9a1fde833b4beb05df4e4be863
parent5b5262f4da935f37376c548e31e234bf2073ebef (diff)
downloademacs-be4ff9dad8bf43251f78f58a9ce86cf8bb153300.tar.gz
emacs-be4ff9dad8bf43251f78f58a9ce86cf8bb153300.zip
Define some malloc objects with configure, not cpp.
* configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables. * config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc. * src/Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure. (gmallocobj, vmlimitobj): Replace with previous two variables. (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ. * msdos/sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o. (VMLIMIT_OBJ): Edit to vm-limit.o.
-rw-r--r--ChangeLog5
-rw-r--r--config.bat6
-rw-r--r--configure.in11
-rw-r--r--msdos/ChangeLog5
-rw-r--r--msdos/sed1v2.inp2
-rw-r--r--src/ChangeLog6
-rw-r--r--src/Makefile.in23
7 files changed, 44 insertions, 14 deletions
diff --git a/ChangeLog b/ChangeLog
index 88ddf0022a5..f100e0eeb2c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
12010-05-18 Glenn Morris <rgm@gnu.org>
2
3 * config.bat (GMALLOC_OBJ, VMLIMIT_OBJ): Edit to empty if sys_malloc.
4 * configure.in (GMALLOC_OBJ, VMLIMIT_OBJ): New output variables.
5
12010-05-17 Stefan Monnier <monnier@iro.umontreal.ca> 62010-05-17 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * Makefile.in (src): Provide the name of the VCS file that witnesses 8 * Makefile.in (src): Provide the name of the VCS file that witnesses
diff --git a/config.bat b/config.bat
index 953c5d64b12..35fef44b582 100644
--- a/config.bat
+++ b/config.bat
@@ -201,6 +201,12 @@ sed -f ../msdos/sed1x.inp <makefile.tmp >Makefile
201rm -f makefile.tmp 201rm -f makefile.tmp
202:src5 202:src5
203 203
204if "%sys_malloc%" == "" goto src5a
205sed -e "/^GMALLOC_OBJ *=/s/gmalloc.o//" <Makefile >makefile.tmp
206sed -e "/^VMLIMIT_OBJ *=/s/vm-limit.o//" <makefile.tmp >Makefile
207rm -f makefile.tmp
208:src5a
209
204if "%nodebug%" == "" goto src6 210if "%nodebug%" == "" goto src6
205sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp 211sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp
206sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile 212sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile
diff --git a/configure.in b/configure.in
index e667a5f1e05..86d3db67361 100644
--- a/configure.in
+++ b/configure.in
@@ -1592,11 +1592,20 @@ AC_CACHE_CHECK(whether __after_morecore_hook exists,
1592if test $emacs_cv_var___after_morecore_hook = no; then 1592if test $emacs_cv_var___after_morecore_hook = no; then
1593 doug_lea_malloc=no 1593 doug_lea_malloc=no
1594fi 1594fi
1595
1595if test "${system_malloc}" = "yes"; then 1596if test "${system_malloc}" = "yes"; then
1596 GNU_MALLOC=no 1597 GNU_MALLOC=no
1597 GNU_MALLOC_reason=" 1598 GNU_MALLOC_reason="
1598 (The GNU allocators don't work with this system configuration.)" 1599 (The GNU allocators don't work with this system configuration.)"
1600 GMALLOC_OBJ=
1601 VMLIMIT_OBJ=
1602else
1603 test "$doug_lea_malloc" != "yes" && GMALLOC_OBJ=gmalloc.o
1604 VMLIMIT_OBJ=vm-limit.o
1599fi 1605fi
1606AC_SUBST(GMALLOC_OBJ)
1607AC_SUBST(VMLIMIT_OBJ)
1608
1600if test "$doug_lea_malloc" = "yes" ; then 1609if test "$doug_lea_malloc" = "yes" ; then
1601 if test "$GNU_MALLOC" = yes ; then 1610 if test "$GNU_MALLOC" = yes ; then
1602 GNU_MALLOC_reason=" 1611 GNU_MALLOC_reason="
@@ -3208,7 +3217,7 @@ if test "$opsys" = "cygwin"; then
3208else 3217else
3209 CYGWIN_OBJ= 3218 CYGWIN_OBJ=
3210 PRE_ALLOC_OBJ=lastfile.o 3219 PRE_ALLOC_OBJ=lastfile.o
3211 POST_ALLOC_OBJ="\$(vmlimitobj)" 3220 POST_ALLOC_OBJ="\$(VMLIMIT_OBJ)"
3212fi 3221fi
3213AC_SUBST(CYGWIN_OBJ) 3222AC_SUBST(CYGWIN_OBJ)
3214AC_SUBST(PRE_ALLOC_OBJ) 3223AC_SUBST(PRE_ALLOC_OBJ)
diff --git a/msdos/ChangeLog b/msdos/ChangeLog
index 6763fcd6878..4ce549cfd8b 100644
--- a/msdos/ChangeLog
+++ b/msdos/ChangeLog
@@ -1,3 +1,8 @@
12010-05-18 Glenn Morris <rgm@gnu.org>
2
3 * sed1v2.inp (GMALLOC_OBJ): Edit to gmalloc.o.
4 (VMLIMIT_OBJ): Edit to vm-limit.o.
5
12010-05-17 Glenn Morris <rgm@gnu.org> 62010-05-17 Glenn Morris <rgm@gnu.org>
2 7
3 * sed1v2.inp (OLDXMENU_DEPS): Edit to empty. 8 * sed1v2.inp (OLDXMENU_DEPS): Edit to empty.
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp
index ac088cdcf86..906d558ed75 100644
--- a/msdos/sed1v2.inp
+++ b/msdos/sed1v2.inp
@@ -116,6 +116,8 @@ s/\.h\.in/.h-in/
116/^OLDXMENU *=/s/@OLDXMENU@// 116/^OLDXMENU *=/s/@OLDXMENU@//
117/^LIBXMENU *=/s/@LIBXMENU@// 117/^LIBXMENU *=/s/@LIBXMENU@//
118/^LIBX_OTHER *=/s/@LIBX_OTHER@// 118/^LIBX_OTHER *=/s/@LIBX_OTHER@//
119/^GMALLOC_OBJ *=/s/@GMALLOC_OBJ@/gmalloc.o/
120/^VMLIMIT_OBJ *=/s/@VMLIMIT_OBJ@/vm-limit.o/
119/^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/ 121/^PRE_ALLOC_OBJ *=/s/@PRE_ALLOC_OBJ@/lastfile.o/
120/^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/ 122/^POST_ALLOC_OBJ *=/s/@POST_ALLOC_OBJ@/$(vmlimitobj)/
121/^UNEXEC_OBJ *=/s/@unexec@/unexec.o/ 123/^UNEXEC_OBJ *=/s/@unexec@/unexec.o/
diff --git a/src/ChangeLog b/src/ChangeLog
index eedd0474dc2..bb5d7e6d427 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
12010-05-18 Glenn Morris <rgm@gnu.org>
2
3 * Makefile.in (GMALLOC_OBJ, VMLIMIT_OBJ): New, set by configure.
4 (gmallocobj, vmlimitobj): Replace with previous two variables.
5 (otherobj): Use $GMALLOC_OBJ, $VMLIMIT_OBJ.
6
12010-05-17 Glenn Morris <rgm@gnu.org> 72010-05-17 Glenn Morris <rgm@gnu.org>
2 8
3 * Makefile.in (OLDXMENU_DEPS): New, set by configure. 9 * Makefile.in (OLDXMENU_DEPS): New, set by configure.
diff --git a/src/Makefile.in b/src/Makefile.in
index 571fbf5b1b1..ff3726df6f8 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -401,28 +401,25 @@ SOME_MACHINE_OBJECTS = dosfns.o msdos.o \
401 w32.o w32console.o w32fns.o w32heap.o w32inevt.o \ 401 w32.o w32console.o w32fns.o w32heap.o w32inevt.o \
402 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONT_OBJ) 402 w32menu.o w32proc.o w32reg.o w32select.o w32term.o w32xfns.o $(FONT_OBJ)
403 403
404gmallocobj = 404/* gmalloc.o if !SYSTEM_MALLOC && !DOUG_LEA_MALLOC, else empty. */
405rallocobj = 405GMALLOC_OBJ=@GMALLOC_OBJ@
406vmlimitobj = 406
407#ifndef SYSTEM_MALLOC 407/* vm-limit.o if !SYSTEM_MALLOC, else empty. */
408#ifndef DOUG_LEA_MALLOC 408VMLIMIT_OBJ=@VMLIMIT_OBJ@
409gmallocobj = gmalloc.o
410#endif
411 409
412#ifdef REL_ALLOC 410#if defined (REL_ALLOC) && ! defined (SYSTEM_MALLOC)
413rallocobj = ralloc.o 411rallocobj = ralloc.o
412#else
413rallocobj =
414#endif 414#endif
415 415
416vmlimitobj = vm-limit.o
417#endif /* !SYSTEM_MALLOC */
418
419/* Empty on Cygwin, lastfile.o elsewhere. */ 416/* Empty on Cygwin, lastfile.o elsewhere. */
420PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ 417PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@
421/* lastfile.o vm-limit.o on Cygwin, $vmlimitobj elsewhere. */ 418/* lastfile.o vm-limit.o on Cygwin, $VMLIMIT_OBJ elsewhere. */
422POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ 419POST_ALLOC_OBJ=@POST_ALLOC_OBJ@
423 420
424/* List of object files that make-docfile should not be told about. */ 421/* List of object files that make-docfile should not be told about. */
425otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \ 422otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(GMALLOC_OBJ) $(rallocobj) \
426 $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) 423 $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS)
427 424
428/* This is the platform-specific list of Lisp files loaded into the 425/* This is the platform-specific list of Lisp files loaded into the