123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- AC_DEFUN([AX_DEBUG],
- [AC_PREREQ([2.63])dnl
- AC_ARG_ENABLE([debug],
- [AS_HELP_STRING([--enable-debug],
- [Add debug code/turns off optimizations (yes|no) @<:@default=no@:>@])],
- [ax_enable_debug=$enableval],
- [ax_enable_debug=no])
- AS_IF([test "x$ax_enable_debug" = xyes],
- [AC_DEFINE([DEBUG],[1],[Define to 1 to enable debugging code.])],
- [AC_SUBST([MCHECK])
- AC_DEFINE([DEBUG],[0],[Define to 1 to enable debugging code.])])
- AC_MSG_CHECKING([for debug])
- AC_MSG_RESULT([$ax_enable_debug])
- AM_CONDITIONAL([DEBUG],[test "x${ax_enable_debug}" = xyes])])
|