(tree_move): fix coding style.
[midnight-commander.git] / m4.include / mc-assert.m4
blobfd995c328ee9ed16ea2a24a480eb5929fc1f112a
1 dnl
2 dnl Check whether to enable/disable assertions.
3 dnl
5 AC_DEFUN([mc_ASSERT],
7     AC_ARG_ENABLE([assert],
8     AS_HELP_STRING([--enable-assert], [turn on assertions @<:@yes@:>@]),
9     [
10         if test "x$enableval" = xno; then
11             enable_assert=no
12         else
13             enable_assert=yes
14         fi
15     ],
16     [enable_assert=yes])
18     if test "x$enable_assert" = xno; then
19         AC_DEFINE(G_DISABLE_ASSERT, 1, [Define to disable assertions])
20     fi