Bump to m4 1.4.19
[platform/upstream/m4.git] / acinclude.m4
1 # Local additions to Autoconf macros.
2 # Copyright (C) 1992, 1994, 2004, 2006, 2008-2014, 2016-2017, 2020-2021
3 # Free Software Foundation, Inc.
4 # François Pinard <pinard@iro.umontreal.ca>, 1992.
5 #
6 # This file is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # Check if --with-dmalloc was given.
11
12 AC_DEFUN([M4_WITH_DMALLOC],
13 [AC_MSG_CHECKING([if malloc debugging is wanted])
14 AC_ARG_WITH([dmalloc],
15 [AS_HELP_STRING([--with-dmalloc],
16    [use dmalloc, as in dmalloc.tar.gz from
17  @/ftp.antaire.com:antaire/src/dmalloc.])],
18 [if test "$withval" = yes; then
19   AC_MSG_RESULT([yes])
20   AC_DEFINE([WITH_DMALLOC], [1], [Define to 1 if malloc debugging is enabled])
21   LIBS="$LIBS -ldmalloc"
22   LDFLAGS="$LDFLAGS -g"
23 else
24   AC_MSG_RESULT([no])
25 fi], [AC_MSG_RESULT([no])])])