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

AC_DEFUN([gl_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) ]
               )
])