# HG changeset patch # User Glenn Morris # Date 1272683091 25200 # Node ID 804e9ced8374f9488d8286727c90de519b207be1 # Parent f4b0e53580918f7166fcfaa1026b9596ec7a6f89 Rework previous autoconf changes, hopefully to make clearer. * configure.in (OTHER_OBJ): Remove. (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New output variables. * configure: Regenerate. * src/Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null, for clarity. (OTHER_OBJ): Remove. (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure. (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ. diff -r f4b0e5358091 -r 804e9ced8374 ChangeLog --- a/ChangeLog Fri Apr 30 19:58:41 2010 -0700 +++ b/ChangeLog Fri Apr 30 20:04:51 2010 -0700 @@ -1,3 +1,8 @@ +2010-05-01 Glenn Morris + + * configure.in (OTHER_OBJ): Remove. + (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New output variables. + 2010-04-30 Glenn Morris * configure.in (OTHER_OBJ): Always include vm-limit.o on Cygwin. diff -r f4b0e5358091 -r 804e9ced8374 configure --- a/configure Fri Apr 30 19:58:41 2010 -0700 +++ b/configure Fri Apr 30 20:04:51 2010 -0700 @@ -802,7 +802,8 @@ OLDXMENU LIBXMENU CYGWIN_OBJ -OTHER_OBJ +PRE_ALLOC_OBJ +POST_ALLOC_OBJ LTLIBOBJS' ac_subst_files='' ac_user_opts=' @@ -26166,15 +26167,17 @@ fi -OTHER_OBJ="\$(gmallocobj) \$(rallocobj)" if test "$opsys" = "cygwin"; then CYGWIN_OBJ="sheap.o" ## Cygwin differs because of its unexec(). - OTHER_OBJ="$OTHER_OBJ lastfile.o vm-limit.o" + PRE_ALLOC_OBJ= + POST_ALLOC_OBJ="lastfile.o vm-limit.o" else CYGWIN_OBJ= - OTHER_OBJ="lastfile.o $OTHER_OBJ \$(vmlimitobj)" -fi + PRE_ALLOC_OBJ=lastfile.o + POST_ALLOC_OBJ="\$(vmlimitobj)" +fi + diff -r f4b0e5358091 -r 804e9ced8374 configure.in --- a/configure.in Fri Apr 30 19:58:41 2010 -0700 +++ b/configure.in Fri Apr 30 20:04:51 2010 -0700 @@ -2952,17 +2952,19 @@ fi -OTHER_OBJ="\$(gmallocobj) \$(rallocobj)" if test "$opsys" = "cygwin"; then CYGWIN_OBJ="sheap.o" ## Cygwin differs because of its unexec(). - OTHER_OBJ="$OTHER_OBJ lastfile.o vm-limit.o" + PRE_ALLOC_OBJ= + POST_ALLOC_OBJ="lastfile.o vm-limit.o" else CYGWIN_OBJ= - OTHER_OBJ="lastfile.o $OTHER_OBJ \$(vmlimitobj)" + PRE_ALLOC_OBJ=lastfile.o + POST_ALLOC_OBJ="\$(vmlimitobj)" fi AC_SUBST(CYGWIN_OBJ) -AC_SUBST(OTHER_OBJ) +AC_SUBST(PRE_ALLOC_OBJ) +AC_SUBST(POST_ALLOC_OBJ) AH_TOP([/* GNU Emacs site configuration template file. Copyright (C) 1988, 1993, 1994, 1999, 2000, 2001, 2002, 2004, 2005, diff -r f4b0e5358091 -r 804e9ced8374 src/ChangeLog --- a/src/ChangeLog Fri Apr 30 19:58:41 2010 -0700 +++ b/src/ChangeLog Fri Apr 30 20:04:51 2010 -0700 @@ -1,3 +1,11 @@ +2010-05-01 Glenn Morris + + * Makefile.in (gmallocobj, rallocobj, vmlimitobj): Initialize to null, + for clarity. + (OTHER_OBJ): Remove. + (PRE_ALLOC_OBJ, POST_ALLOC_OBJ): New, set by configure. + (otherobj): Use PRE_ALLOC_OBJ, POST_ALLOC_OBJ rather than OTHER_OBJ. + 2010-05-01 Karel Klíč * fileio.c (Ffile_selinux_context): Context functions may return null. diff -r f4b0e5358091 -r 804e9ced8374 src/Makefile.in --- a/src/Makefile.in Fri Apr 30 19:58:41 2010 -0700 +++ b/src/Makefile.in Fri Apr 30 20:04:51 2010 -0700 @@ -411,7 +411,9 @@ termcapobj = tparam.o #endif /* ! defined (TERMINFO) */ - +gmallocobj = +rallocobj = +vmlimitobj = #ifndef SYSTEM_MALLOC #ifndef DOUG_LEA_MALLOC gmallocobj = gmalloc.o @@ -424,10 +426,14 @@ vmlimitobj = vm-limit.o #endif /* !SYSTEM_MALLOC */ -OTHER_OBJ=@OTHER_OBJ@ +## Empty on Cygwin, lastfile.o elsewhere. +PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ +## lastfile.o vm-limit.o on Cygwin, $vmlimitobj elsewhere. +POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ /* List of object files that make-docfile should not be told about. */ -otherobj= $(termcapobj) $(OTHER_OBJ) $(WIDGET_OBJ) $(LIBOBJS) +otherobj= $(termcapobj) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \ + $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) #ifdef HAVE_MOUSE #define MOUSE_SUPPORT ${lispsource}mouse.elc \