summaryrefslogtreecommitdiff
path: root/m4/assert.m4
blob: 00e45ab4dff4f0be713463e47580527ec4cc4cb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#serial 1
dnl based on code from Eleftherios Gkioulekas

AC_DEFUN(jm_ASSERT,
[
  AC_MSG_CHECKING(whether to enable assertions)
  AC_ARG_ENABLE(assert,
                [  --disable-assert        turn off assertions],
                [ AC_MSG_RESULT(no)
		  AC_DEFINE(NDEBUG) ],
                [ AC_MSG_RESULT(yes) ]
               )
])