From 588da9812e055fbceb900c350ab406f97eccbf37 Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 21 Jul 1999 05:53:23 +0000 Subject: * Add configure option to enable dmalloc library. * Various code cleanups. --- configure.in | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 4bcf56f..f62c192 100644 --- a/configure.in +++ b/configure.in @@ -136,6 +136,18 @@ case "$ac_cv_func_pipe $make_cv_job_server" in "yes yes") AC_DEFINE(MAKE_JOBSERVER) ;; esac +dnl Allow building with dmalloc + +AC_ARG_ENABLE(dmalloc, + [ --enable-dmalloc Enable support for the dmalloc debugging library], + [make_cv_dmalloc="$enableval"], + [make_cv_dmalloc="no"]) + +case "$make_cv_dmalloc" in + yes) AC_CHECK_HEADERS(dmalloc.h) + AC_CHECK_LIB(dmalloc, dmalloc_shutdown) + CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" ;; +esac AC_CACHE_CHECK(for location of SCCS get command, make_cv_path_sccs_get, [ if test -f /usr/sccs/get; then -- cgit v1.2.3