diff options
| author | Richard M. Stallman | 1997-04-11 08:24:41 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-04-11 08:24:41 +0000 |
| commit | 8cd880383cdcfdefdc82f5c3fb6224f52f53fa5b (patch) | |
| tree | 38eae80d0da7dec6c490212b45c9bcacf66eca4e | |
| parent | 27d77e96424743b33a13b0cb3b1d3b2bdf678fa6 (diff) | |
| download | emacs-8cd880383cdcfdefdc82f5c3fb6224f52f53fa5b.tar.gz emacs-8cd880383cdcfdefdc82f5c3fb6224f52f53fa5b.zip | |
(doug_lea_malloc): First check for SYSTEM_MALLOC,
in case it is desirable to disable the GNU malloc features withglibc.
| -rw-r--r-- | configure.in | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/configure.in b/configure.in index 0452c255271..381cb7128ce 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1284,15 +1284,18 @@ GNU_MALLOC=yes | |||
| 1284 | doug_lea_malloc=yes | 1284 | doug_lea_malloc=yes |
| 1285 | AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) | 1285 | AC_CHECK_FUNC(malloc_get_state, ,doug_lea_malloc=no) |
| 1286 | AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) | 1286 | AC_CHECK_FUNC(malloc_set_state, ,doug_lea_malloc=no) |
| 1287 | if test "$doug_lea_malloc" = "yes" ; then | 1287 | if test "${system_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 | ||
| 1292 | GNU_MALLOC=no | 1288 | GNU_MALLOC=no |
| 1293 | GNU_MALLOC_reason=" | 1289 | GNU_MALLOC_reason=" |
| 1294 | (The GNU allocators don't work with this system configuration.)" | 1290 | (The GNU allocators don't work with this system configuration.)" |
| 1295 | fi | 1291 | fi |
| 1292 | if test "$doug_lea_malloc" = "yes" ; then | ||
| 1293 | if test "$GNU_MALLOC" = yes ; then | ||
| 1294 | GNU_MALLOC_reason=" | ||
| 1295 | (Using new Doug Lea's new malloc from the GNU C Library.)" | ||
| 1296 | fi | ||
| 1297 | AC_DEFINE(DOUG_LEA_MALLOC) | ||
| 1298 | fi | ||
| 1296 | 1299 | ||
| 1297 | if test x"${REL_ALLOC}" = x; then | 1300 | if test x"${REL_ALLOC}" = x; then |
| 1298 | REL_ALLOC=${GNU_MALLOC} | 1301 | REL_ALLOC=${GNU_MALLOC} |