From 8db71e01698f00c71eed124b1609f019776900a1 Mon Sep 17 00:00:00 2001 From: Egor Duda Date: Tue, 24 Apr 2001 15:25:31 +0000 Subject: * dlmalloc.c: New file. Port of Doug Lea's malloc * dlmalloc.h: Ditto. * Makefile.in: Add support for MALLOC_DEBUG * config.h.in: Ditto. * winsup.h: Ditto. * configure.in: Add --enable-malloc-debugging option. * configure: Regenerate. * debug.h: Include declarations for debugging malloc. * tty.cc (grantpt): Fix definition. (unlockpt): Ditto. --- winsup/cygwin/configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'winsup/cygwin/configure.in') diff --git a/winsup/cygwin/configure.in b/winsup/cygwin/configure.in index 81ba6d931..d8e91806b 100644 --- a/winsup/cygwin/configure.in +++ b/winsup/cygwin/configure.in @@ -166,6 +166,17 @@ no) ;; esac ]) +MALLOC_OFILES= +AC_ARG_ENABLE(malloc-debugging, +[ --enable-malloc-debugging Build a cygwin DLL with heap sanity checking (this is very slow, use only if you have heap corruption problems)], +[case "${enableval}" in +yes) AC_DEFINE(MALLOC_DEBUG) + MALLOC_OFILES=dlmalloc.o + ;; +no) ;; +esac +]) + AC_ARG_ENABLE(vfork, [ --enable-vfork Build a cygwin DLL which uses experimental vfork code], [case "${enableval}" in @@ -234,6 +245,7 @@ case "$target_cpu" in *) AC_MSG_ERROR(Invalid target processor \"$target_cpu\") ;; esac +AC_SUBST(MALLOC_OFILES) AC_SUBST(DLL_ENTRY) AC_SUBST(DEF_DLL_ENTRY) AC_SUBST(ALLOCA) -- cgit v1.2.3