Commit 8cd88038 authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(doug_lea_malloc): First check for SYSTEM_MALLOC,

in case it is desirable to disable the GNU malloc features withglibc.
parent 27d77e96
...@@ -1284,14 +1284,17 @@ GNU_MALLOC=yes ...@@ -1284,14 +1284,17 @@ GNU_MALLOC=yes
doug_lea_malloc=yes doug_lea_malloc=yes
AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no)
AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no)
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 "$doug_lea_malloc" = "yes" ; then
if test "$GNU_MALLOC" = yes ; then
GNU_MALLOC_reason=" GNU_MALLOC_reason="
(Using new Doug Lea's new malloc from the GNU C Library.)" (Using new Doug Lea's new malloc from the GNU C Library.)"
fi
AC_DEFINE(DOUG_LEA_MALLOC) 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.)"
fi fi
if test x"${REL_ALLOC}" = x; then if test x"${REL_ALLOC}" = x; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment