File: mc-assert.m4

package info (click to toggle)
mc 3%3A4.8.22-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 24,044 kB
  • sloc: ansic: 129,315; sh: 8,278; perl: 3,022; makefile: 2,138; yacc: 291; cs: 44; lisp: 44; sed: 16
file content (21 lines) | stat: -rw-r--r-- 463 bytes parent folder | download
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
])