m4/acinclude.m4
Eric Blake 65adb311ce * doc/m4.texinfo (Maketemp): Work even when running 'make check'
in read-only dir.
Use automake.
* Makefile.am: New file.
* doc/Makefile.am: Ditto.
* examples/Makefile.am: Ditto.
* lib/Makefile.am: Ditto.
* src/Makefile.am: Ditto.
* acinclude.m4: New file, renamed from aclocal.m4.
* configure.ac (AM_INIT_AUTOMAKE): Invoke new macro.
(AC_ARG_PROGRAM): Now redundant.
(STACKOVF): Turn into automake conditional.
(AC_CONFIG_COMMANDS): stamp-h is a command, not a file.
* checks/Makefile.in: Converting this dir to automake was not
trivial; for now, just add missing targets demanded by top-level.
* INSTALL: Remove files that are now generated from CVS.
* Makefile.in: Ditto.
* aclocal.m4: Ditto.
* install-sh: Ditto.
* mkinstalldirs: Ditto.
* doc/Makefile.in: Ditto.
* doc/texinfo.tex: Ditto.
* examples/Makefile.in: Ditto.
* lib/Makefile.in: Ditto.
* src/Makefile.in: Ditto.
2007-09-21 14:37:41 -06:00

21 lines
660 B
Plaintext

# Local additions to Autoconf macros.
# Copyright (C) 1992, 1994, 2004, 2006 Free Software Foundation, Inc.
# Francois Pinard <pinard@iro.umontreal.ca>, 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])])])