Branch: Tag:

2002-11-24

2002-11-24 22:37:50 by Martin Stjernholm <mast@lysator.liu.se>

Added macros and configure options to tune blocks to fit pages.

Rev: src/acconfig.h:1.109
Rev: src/configure.in:1.649

1: - AC_REVISION("$Id: configure.in,v 1.648 2002/11/23 16:43:43 mast Exp $") + AC_REVISION("$Id: configure.in,v 1.649 2002/11/24 22:37:50 mast Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
1133:   AC_ARG_WITH(short-int, MY_DESCR([--with-short-int],    [use short native type int (EXPERIMENTAL)]))    - AC_ARG_WITH(gdbm, MY_DESCR([--without-gdbm],[no GNU database manager support])) - AC_ARG_WITH(gmp, MY_DESCR([--without-gmp],[no support for Gmp bignums])) +    MY_AC_ARG_WITH(dmalloc, MY_DESCR([--with-dmalloc],[enable memory-leak tests]),    [AC_DEFINE(DEBUG_MALLOC,10)])   MY_AC_ARG_WITH(dmalloc-malloc, MY_DESCR([--with-dmalloc-malloc],
1193:    with_threads=yes    fi   ]) +  + AC_ARG_WITH(malloc_overhead, +  MY_DESCR([--with-malloc-overhead=n], +  [tune the malloc block overhead (default is 2 * sizeof(void *))]), +  [AC_DEFINE(PIKE_MALLOC_OVERHEAD,($withval))], +  [AC_DEFINE(PIKE_MALLOC_OVERHEAD,(2 * sizeof(void *)))]) + AC_ARG_WITH(malloc_page_size, +  MY_DESCR([--with-malloc-page-size=n], +  [tune to the memory page size (default is 4 kb)]), +  [AC_DEFINE(PIKE_MALLOC_PAGE_SIZE,($withval))], +  [AC_DEFINE(PIKE_MALLOC_PAGE_SIZE,(4 * 1024))]) +  + AC_ARG_WITH(gdbm, MY_DESCR([--without-gdbm],[no GNU database manager support])) + AC_ARG_WITH(gmp, MY_DESCR([--without-gmp],[no support for Gmp bignums]))   AC_ARG_WITH(zlib, MY_DESCR([--without-zlib],[disable gz compression support]),    [],[with_zlib=yes])   AC_ARG_WITH(ssleay,