summaryrefslogtreecommitdiff
path: root/acinclude.m4
blob: cfc0859e6ed20f0c73e059df313e3cdee4d70f50 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
m4_ifndef([AC_HEADER_ASSERT], [
# AC_HEADER_ASSERT
# ----------------
# Check whether to enable assertions.
AC_DEFUN([AC_HEADER_ASSERT],
[
  AC_MSG_CHECKING([whether to enable assertions])
  AC_ARG_ENABLE([assert],
    [  --disable-assert        turn off assertions],
    [AC_MSG_RESULT([no])
     AC_DEFINE(NDEBUG, 1, [Define to 1 if assertions should be disabled.])],
    [AC_MSG_RESULT(yes)])
])
])