1 dnl ######################################################################
2 dnl Debugging: "yes" means general, "mem" means general and memory debugging,
3 dnl and "no" means none.
4 AC_DEFUN([AMU_OPT_DEBUG],
5 [AC_MSG_CHECKING(for debugging options)
7 AC_HELP_STRING([--enable-debug=ARG],[enable debugging (yes/mem/no)]),
9 if test "$enableval" = yes; then
13 elif test "$enableval" = mem; then
17 AC_CHECK_FUNC(malloc_verify,,AC_CHECK_LIB(mapmalloc, malloc_verify))
18 AC_CHECK_FUNC(mallinfo,,AC_CHECK_LIB(malloc, mallinfo))
26 # default is no debugging
30 dnl ======================================================================