mc-assert.m4 469 B

123456789101112131415161718192021
  1. dnl
  2. dnl Check whether to enable/disable assertions.
  3. dnl
  4. AC_DEFUN([mc_ASSERT],
  5. [
  6. AC_ARG_ENABLE([assert],
  7. AS_HELP_STRING([--enable-assert], [turn on assertions @<:@yes@:>@]),
  8. [
  9. if test "x$enableval" = xno; then
  10. enable_assert=no
  11. else
  12. enable_assert=yes
  13. fi
  14. ],
  15. [enable_assert=yes])
  16. if test "x$enable_assert" = xno; then
  17. AC_DEFINE(G_DISABLE_ASSERT, 1, [Define to disable assertions])
  18. fi
  19. ])