# HG changeset patch # User Richard M. Stallman # Date 860747081 0 # Node ID bbd0f7cb2452aefad1b11e8703f4197d94aeffb9 # Parent e19bb906e8efd1b4741064d306b601b4ec3b4140 (doug_lea_malloc): First check for SYSTEM_MALLOC, in case it is desirable to disable the GNU malloc features withglibc. diff -r e19bb906e8ef -r bbd0f7cb2452 configure.in --- a/configure.in Fri Apr 11 08:23:25 1997 +0000 +++ b/configure.in Fri Apr 11 08:24:41 1997 +0000 @@ -1284,15 +1284,18 @@ doug_lea_malloc=yes AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) -if test "$doug_lea_malloc" = "yes" ; then - GNU_MALLOC_reason=" - (Using new Doug Lea's new malloc from the GNU C Library.)" - AC_DEFINE(DOUG_LEA_MALLOC) -elif test "${system_malloc}" = "yes"; then +if test "${system_malloc}" = "yes"; then GNU_MALLOC=no GNU_MALLOC_reason=" (The GNU allocators don't work with this system configuration.)" fi +if test "$doug_lea_malloc" = "yes" ; then + if test "$GNU_MALLOC" = yes ; then + GNU_MALLOC_reason=" + (Using new Doug Lea's new malloc from the GNU C Library.)" + fi + AC_DEFINE(DOUG_LEA_MALLOC) +fi if test x"${REL_ALLOC}" = x; then REL_ALLOC=${GNU_MALLOC}