source: trunk/essentials/sys-devel/automake-1.4/m4/dmalloc.m4

Last change on this file was 3124, checked in by bird, 18 years ago

automake 1.4-p6

File size: 653 bytes
Line 
1## ----------------------------------- ##
2## Check if --with-dmalloc was given. ##
3## From Franc,ois Pinard ##
4## ----------------------------------- ##
5
6# serial 1
7
8AC_DEFUN([AM_WITH_DMALLOC],
9[AC_MSG_CHECKING(if malloc debugging is wanted)
10AC_ARG_WITH(dmalloc,
11[ --with-dmalloc use dmalloc, as in
12 ftp://ftp.letters.com/src/dmalloc/dmalloc.tar.gz],
13[if test "$withval" = yes; then
14 AC_MSG_RESULT(yes)
15 AC_DEFINE(WITH_DMALLOC,1,
16 [Define if using the dmalloc debugging malloc package])
17 LIBS="$LIBS -ldmalloc"
18 LDFLAGS="$LDFLAGS -g"
19else
20 AC_MSG_RESULT(no)
21fi], [AC_MSG_RESULT(no)])
22])
Note: See TracBrowser for help on using the repository browser.