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