1
dnl PANDORA_HEADER_ASSERT
3
dnl Check whether to enable assertions.
4
AC_DEFUN([PANDORA_HEADER_ASSERT],
6
AC_MSG_CHECKING([whether to enable assertions])
7
AC_ARG_ENABLE([assert],
8
[AS_HELP_STRING([--disable-assert],
9
[Turn off assertions])],
12
AC_MSG_RESULT([$ac_cv_assert])
14
AS_IF([test "$ac_cv_assert" = "yes"],
15
[AC_CHECK_HEADERS(assert.h)],
16
[AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])])