Back to the Main Page. | peti_with_dmalloc |
Download the M4 Source. |
PETI_WITH_DMALLOC
2003-01-15 0.5.65 : InstalledPackages
Peter Simons <simons@cryp.to>
license: AllPermissive
#ifdef DEBUG_DMALLOC
# include <dmalloc.h>
#endif
AC_DEFUN([PETI_WITH_DMALLOC], [ AC_MSG_CHECKING(whether to use the dmalloc library) AC_ARG_WITH(dmalloc, [ --with-dmalloc[=PREFIX] Compile with dmalloc library], if test "$withval" = "" -o "$withval" = "yes"; then ac_cv_dmalloc="/usr/local" else ac_cv_dmalloc="$withval" fi AC_MSG_RESULT(yes) CPPFLAGS="$CPPFLAGS -DDEBUG_DMALLOC -DDMALLOC_FUNC_CHECK -I$ac_cv_dmalloc/include" LDFLAGS="$LDFLAGS -L$ac_cv_dmalloc/lib" LIBS="$LIBS -ldmalloc" ,AC_MSG_RESULT(no)) ])dnl