Macros by Category Revision History
Search:

ax_with_dmalloc

SYNOPSIS

AX_WITH_DMALLOC

DESCRIPTION

Let the user enable/disable support for the dmalloc library available from <http://www.dmalloc.org/>.

The macro adds the command-line flag "--with-dmalloc". Furthermore, "-IPREFIX/include" will be added to "$CPPFLAGS", "-LPREFIX/lib" to "$LDFLAGS", and "-DDEBUG_DMALLOC" and "-DDMALLOC_FUNC_CHECK" to "$CPPFLAGS".

To enable dmalloc support in your code, add the following snippet to your header files:

  #ifdef DEBUG_DMALLOC
  #  include <dmalloc.h>
  #endif

SOURCE CODE

http://autoconf-archive.cryp.to/ax_with_dmalloc.m4

LICENSE

Copyright © 2008 Peter Simons <simons@cryp.to>

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.