m4-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to m4/acinclude.m4 [branch-1_4]


From: Eric Blake
Subject: Changes to m4/acinclude.m4 [branch-1_4]
Date: Mon, 29 May 2006 19:40:04 +0000

Index: m4/acinclude.m4
diff -u /dev/null m4/acinclude.m4:1.6.2.1
--- /dev/null   Mon May 29 19:40:04 2006
+++ m4/acinclude.m4     Mon May 29 19:40:03 2006
@@ -0,0 +1,20 @@
+# Local additions to Autoconf macros.
+# Copyright (C) 1992, 1994, 2004, 2006 Free Software Foundation, Inc.
+# Francois Pinard <address@hidden>, 1992.
+
+# Check if --with-dmalloc was given.
+
+AC_DEFUN([M4_WITH_DMALLOC],
+[AC_MSG_CHECKING([if malloc debugging is wanted])
+AC_ARG_WITH([dmalloc],
+[AS_HELP_STRING([--with-dmalloc],
+   [use dmalloc, as in dmalloc.tar.gz from
+ @/ftp.antaire.com:antaire/src/dmalloc.])],
+[if test "$withval" = yes; then
+  AC_MSG_RESULT([yes])
+  AC_DEFINE([WITH_DMALLOC], [1], [Define to 1 if malloc debugging is enabled])
+  LIBS="$LIBS -ldmalloc"
+  LDFLAGS="$LDFLAGS -g"
+else
+  AC_MSG_RESULT([no])
+fi], [AC_MSG_RESULT([no])])])




reply via email to

[Prev in Thread] Current Thread [Next in Thread]