aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-04-09 03:52:47 +0000
committerRichard M. Stallman1997-04-09 03:52:47 +0000
commitb05a95cbefcc974fb7188d787bf2a9c30d3849ca (patch)
treebd21dfd61c46a72bfb30588e74be3244156a783b
parent486ece3d969a24cd695f19f0e27f71f3ef03770f (diff)
downloademacs-b05a95cbefcc974fb7188d787bf2a9c30d3849ca.tar.gz
emacs-b05a95cbefcc974fb7188d787bf2a9c30d3849ca.zip
If malloc_{get,set}_state exist, set DOUG_LEA_MALLOC.
-rw-r--r--configure.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 97c21d9804e..0452c255271 100644
--- a/configure.in
+++ b/configure.in
@@ -1281,10 +1281,17 @@ UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
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.
1283GNU_MALLOC=yes 1283GNU_MALLOC=yes
1284if test "${system_malloc}" = "yes"; then 1284doug_lea_malloc=yes
1285AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no)
1286AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no)
1287if 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)
1291elif 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.)"
1288fi 1295fi
1289 1296
1290if test x"${REL_ALLOC}" = x; then 1297if test x"${REL_ALLOC}" = x; then