diff options
| author | Gerd Moellmann | 2000-09-06 21:23:55 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-06 21:23:55 +0000 |
| commit | b1b4ce06bb678b51d9a16ce3d287748225c19484 (patch) | |
| tree | 0490459ac69202d52efb9d56ef9d40c66a81ce78 | |
| parent | fa0b693ce2fa8b1e5888e1becc774b875b95c414 (diff) | |
| download | emacs-b1b4ce06bb678b51d9a16ce3d287748225c19484.tar.gz emacs-b1b4ce06bb678b51d9a16ce3d287748225c19484.zip | |
(REL_ALLOC_MMAP): Recognize in system configuration
file and print informational message.
| -rw-r--r-- | configure.in | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 7806a1e4026..c28ec390971 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -1228,6 +1228,12 @@ configure___ system_malloc=yes | |||
| 1228 | configure___ system_malloc=no | 1228 | configure___ system_malloc=no |
| 1229 | #endif | 1229 | #endif |
| 1230 | 1230 | ||
| 1231 | #ifdef REL_ALLOC_MMAP | ||
| 1232 | configure___ rel_alloc_mmap=yes | ||
| 1233 | #else | ||
| 1234 | configure___ rel_alloc_mmap=no | ||
| 1235 | #endif | ||
| 1236 | |||
| 1231 | #ifndef C_DEBUG_SWITCH | 1237 | #ifndef C_DEBUG_SWITCH |
| 1232 | #define C_DEBUG_SWITCH -g | 1238 | #define C_DEBUG_SWITCH -g |
| 1233 | #endif | 1239 | #endif |
| @@ -1538,6 +1544,15 @@ if test x"${REL_ALLOC}" = x; then | |||
| 1538 | REL_ALLOC=${GNU_MALLOC} | 1544 | REL_ALLOC=${GNU_MALLOC} |
| 1539 | fi | 1545 | fi |
| 1540 | 1546 | ||
| 1547 | @dnl For now, need to use an explicit `#define REL_ALLOC_MMAP 1' in | ||
| 1548 | @dnl the system configuration file (s/*.h) to turn the use of mmap | ||
| 1549 | @dnl in the relocating allocator on. | ||
| 1550 | |||
| 1551 | AC_FUNC_MMAP | ||
| 1552 | if test $rel_alloc_mmap = yes; then | ||
| 1553 | REL_ALLOC=yes | ||
| 1554 | fi | ||
| 1555 | |||
| 1541 | LIBS="$libsrc_libs $LIBS" | 1556 | LIBS="$libsrc_libs $LIBS" |
| 1542 | 1557 | ||
| 1543 | dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks, | 1558 | dnl If found, this defines HAVE_LIBDNET, which m/pmax.h checks, |
| @@ -2089,7 +2104,6 @@ else | |||
| 2089 | fi | 2104 | fi |
| 2090 | 2105 | ||
| 2091 | AC_FUNC_VFORK | 2106 | AC_FUNC_VFORK |
| 2092 | AC_FUNC_MMAP | ||
| 2093 | 2107 | ||
| 2094 | # Fixme: This should be replaced when we have autoconf 2.14. | 2108 | # Fixme: This should be replaced when we have autoconf 2.14. |
| 2095 | AC_SIZE_T | 2109 | AC_SIZE_T |
| @@ -2180,7 +2194,8 @@ Configured for \`${canonical}'. | |||
| 2180 | \`${opsysfile}' and \`${machfile}' | 2194 | \`${opsysfile}' and \`${machfile}' |
| 2181 | What compiler should emacs be built with? ${CC} ${CFLAGS} | 2195 | What compiler should emacs be built with? ${CC} ${CFLAGS} |
| 2182 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} | 2196 | Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason} |
| 2183 | Should Emacs use the relocating allocator for buffers? ${REL_ALLOC} | 2197 | Should Emacs use a relocating allocator for buffers? ${REL_ALLOC} |
| 2198 | Should Emacs use mmap for the relocating allocator? $rel_alloc_mmap | ||
| 2184 | What window system should Emacs use? ${window_system} | 2199 | What window system should Emacs use? ${window_system} |
| 2185 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" | 2200 | What toolkit should Emacs use? ${USE_X_TOOLKIT}" |
| 2186 | 2201 | ||