Commit 21d1424f authored by Niels Möller's avatar Niels Möller
Browse files

Configure option --with(out)-debug-alloc.

Rev: src/acconfig.h:1.2
Rev: src/configure.in:1.10
parent 694af5d2
......@@ -2,3 +2,6 @@
* originates from AM_INIT_AUTOMAKE in the configure.in file. */
#define PACKAGE "configure-generated"
#define VERSION "configure-generated"
/* Define to enable sanity checking on memory allocation and casting */
#undef DEBUG_ALLOC
......@@ -28,6 +28,19 @@ CPPFLAGS="$CPPFLAGS -I$srcdir/include -DLSH"
CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
dnl Check options
AC_ARG_WITH(debug_alloc,
[--with-debug-alloc sanity check memory allocation and casts],
[], [with_debug_alloc=yes])
dnl Can't use if, as it's difficult to quote the square brackets.
case "$with_debug_alloc" in
no)
;;
*) AC_DEFINE(DEBUG_ALLOC)
;;
esac
dnl Checks for programs.
AC_PROG_CC
AC_PROG_MAKE_SET
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment