source: vendor/m4/1.4.8/acinclude.m4@ 3442

Last change on this file since 3442 was 3090, checked in by bird, 18 years ago

m4 1.4.8

File size: 660 bytes
Line 
1# Local additions to Autoconf macros.
2# Copyright (C) 1992, 1994, 2004, 2006 Free Software Foundation, Inc.
3# Francois Pinard <pinard@iro.umontreal.ca>, 1992.
4
5# Check if --with-dmalloc was given.
6
7AC_DEFUN([M4_WITH_DMALLOC],
8[AC_MSG_CHECKING([if malloc debugging is wanted])
9AC_ARG_WITH([dmalloc],
10[AS_HELP_STRING([--with-dmalloc],
11 [use dmalloc, as in dmalloc.tar.gz from
12 @/ftp.antaire.com:antaire/src/dmalloc.])],
13[if test "$withval" = yes; then
14 AC_MSG_RESULT([yes])
15 AC_DEFINE([WITH_DMALLOC], [1], [Define to 1 if malloc debugging is enabled])
16 LIBS="$LIBS -ldmalloc"
17 LDFLAGS="$LDFLAGS -g"
18else
19 AC_MSG_RESULT([no])
20fi], [AC_MSG_RESULT([no])])])
Note: See TracBrowser for help on using the repository browser.