comparison configure.in @ 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 4fc07fcf5eab
children bbd0f7cb2452
comparison
equal deleted inserted replaced
17343:bc616901502d 17344:0178aa2a41e9
1279 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`" 1279 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
1280 1280
1281 # Do the opsystem or machine files prohibit the use of the GNU malloc? 1281 # Do the opsystem or machine files prohibit the use of the GNU malloc?
1282 # Assume not, until told otherwise. 1282 # Assume not, until told otherwise.
1283 GNU_MALLOC=yes 1283 GNU_MALLOC=yes
1284 if test "${system_malloc}" = "yes"; then 1284 doug_lea_malloc=yes
1285 AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no)
1286 AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no)
1287 if test "$doug_lea_malloc" = "yes" ; then
1288 GNU_MALLOC_reason="
1289 (Using new Doug Lea's new malloc from the GNU C Library.)"
1290 AC_DEFINE(DOUG_LEA_MALLOC)
1291 elif test "${system_malloc}" = "yes"; then
1285 GNU_MALLOC=no 1292 GNU_MALLOC=no
1286 GNU_MALLOC_reason=" 1293 GNU_MALLOC_reason="
1287 (The GNU allocators don't work with this system configuration.)" 1294 (The GNU allocators don't work with this system configuration.)"
1288 fi 1295 fi
1289 1296
1290 if test x"${REL_ALLOC}" = x; then 1297 if test x"${REL_ALLOC}" = x; then
1291 REL_ALLOC=${GNU_MALLOC} 1298 REL_ALLOC=${GNU_MALLOC}
1292 fi 1299 fi