diff options
author | Junfeng Dong <junfeng.dong@intel.com> | 2012-06-05 19:01:27 +0800 |
---|---|---|
committer | Junfeng Dong <junfeng.dong@intel.com> | 2012-06-05 19:01:27 +0800 |
commit | b96a56608f48bcf4da01d7cd67aa408cfbdcaf8e (patch) | |
tree | 9b1c1cfc813a277b84ebd077a412ebf13fae70de /acinclude.m4 | |
parent | 8bc38927f5fe05ddec8d3715bc4d6e50908f016b (diff) | |
download | m4-master.tar.gz m4-master.tar.bz2 m4-master.zip |
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 new file mode 100644 index 0000000..4322e94 --- /dev/null +++ b/acinclude.m4 @@ -0,0 +1,25 @@ +# Local additions to Autoconf macros. +# Copyright (C) 1992, 1994, 2004, 2006, 2008, 2009, 2010 Free Software +# Foundation, Inc. +# Francois Pinard <pinard@iro.umontreal.ca>, 1992. +# +# This file is free software; the Free Software Foundation +# gives unlimited permission to copy and/or distribute it, +# with or without modifications, as long as this notice is preserved. + +# 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])])]) |