Mercurial > emacs
changeset 17344:0178aa2a41e9
If malloc_{get,set}_state exist, set DOUG_LEA_MALLOC.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 09 Apr 1997 03:52:47 +0000 |
parents | bc616901502d |
children | 4e11e27ce1f1 |
files | configure.in |
diffstat | 1 files changed, 9 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/configure.in Wed Apr 09 00:08:54 1997 +0000 +++ b/configure.in Wed Apr 09 03:52:47 1997 +0000 @@ -1281,10 +1281,17 @@ # Do the opsystem or machine files prohibit the use of the GNU malloc? # Assume not, until told otherwise. GNU_MALLOC=yes -if test "${system_malloc}" = "yes"; then +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 GNU_MALLOC=no GNU_MALLOC_reason=" - (The GNU allocators don't work with this system configuration.)" + (The GNU allocators don't work with this system configuration.)" fi if test x"${REL_ALLOC}" = x; then