From 7a2105becdbadf20c1b4e4d2359e339c90610825 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Thu, 4 Mar 1999 11:36:26 +0000 Subject: Use dmalloc instead of EFence when available (dmalloc has lot of improvements over EFence and also hopefully smaller memory overhead, but sadly it's non-free for commercial use). If the DMALLOC_OPTIONS environment variable is not set, switch on `reasonable' checks by default. Also introduced mb_allocz() for cleared mb_alloc(). --- configure.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 0b46949..aa527a0 100644 --- a/configure.in +++ b/configure.in @@ -109,7 +109,10 @@ BIRD_CHECK_TIME_T if test "$enable_debug" = yes ; then AC_DEFINE(PATH_CONFIG_DIR, ".") AC_DEFINE(DEBUGGING) - AC_CHECK_LIB(efence, malloc) + AC_CHECK_LIB(dmalloc, dmalloc_debug) + if test $ac_cv_lib_dmalloc_dmalloc_debug != yes ; then + AC_CHECK_LIB(efence, malloc) + fi else AC_DEFINE_UNQUOTED(PATH_CONFIG_DIR, "$sysconfdir") fi -- cgit v1.2.3