3226 |
14 May 14 |
peter |
## $Id$ |
3226 |
14 May 14 |
peter |
2 |
# |
3226 |
14 May 14 |
peter |
# serial 1 (yat 0.13) |
3226 |
14 May 14 |
peter |
4 |
# |
3226 |
14 May 14 |
peter |
# see http://www.gnu.org/software/automake/manual/automake.html#Serials |
3226 |
14 May 14 |
peter |
6 |
# |
3226 |
14 May 14 |
peter |
# SYNOPSIS |
3226 |
14 May 14 |
peter |
8 |
# |
3226 |
14 May 14 |
peter |
# YAT_HEADER_ASSERT |
3226 |
14 May 14 |
peter |
10 |
# |
3226 |
14 May 14 |
peter |
# DESCRIPTION |
3226 |
14 May 14 |
peter |
12 |
# |
3226 |
14 May 14 |
peter |
# Add an option --enable-assertion; when not given NDEBUG is AC_DEFINEd |
3226 |
14 May 14 |
peter |
14 |
# |
3226 |
14 May 14 |
peter |
# LAST MODIFICATION |
3226 |
14 May 14 |
peter |
16 |
# |
3226 |
14 May 14 |
peter |
# $Date$ |
3226 |
14 May 14 |
peter |
18 |
# |
3226 |
14 May 14 |
peter |
# COPYLEFT |
3226 |
14 May 14 |
peter |
20 |
# |
3226 |
14 May 14 |
peter |
# Copyright (C) 2014 Peter Johansson |
3226 |
14 May 14 |
peter |
22 |
# |
3226 |
14 May 14 |
peter |
# This file is part of the yat library, http://dev.thep.lu.se/yat |
3226 |
14 May 14 |
peter |
24 |
# |
3226 |
14 May 14 |
peter |
# The yat library is free software; you can redistribute it and/or |
3226 |
14 May 14 |
peter |
# modify it under the terms of the GNU General Public License as |
3226 |
14 May 14 |
peter |
# published by the Free Software Foundation; either version 3 of the |
3226 |
14 May 14 |
peter |
# License, or (at your option) any later version. |
3226 |
14 May 14 |
peter |
29 |
# |
3226 |
14 May 14 |
peter |
# The yat library is distributed in the hope that it will be useful, |
3226 |
14 May 14 |
peter |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
3226 |
14 May 14 |
peter |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
3226 |
14 May 14 |
peter |
# General Public License for more details. |
3226 |
14 May 14 |
peter |
34 |
# |
3226 |
14 May 14 |
peter |
# You should have received a copy of the GNU General Public License |
3226 |
14 May 14 |
peter |
# along with yat. If not, see <http://www.gnu.org/licenses/>. |
3226 |
14 May 14 |
peter |
37 |
# |
3226 |
14 May 14 |
peter |
38 |
|
3226 |
14 May 14 |
peter |
39 |
AC_DEFUN([YAT_HEADER_ASSERT], |
3226 |
14 May 14 |
peter |
40 |
[ |
3226 |
14 May 14 |
peter |
41 |
AC_ARG_ENABLE([assert], |
3226 |
14 May 14 |
peter |
42 |
[AS_HELP_STRING([--enable-assert], [turn on assertions])], |
3226 |
14 May 14 |
peter |
43 |
[], [enable_assert=no]) |
3226 |
14 May 14 |
peter |
44 |
AS_IF([test x"$enable_assert" = x"no"], [ |
3226 |
14 May 14 |
peter |
45 |
AC_DEFINE([NDEBUG], [1], [Define to turn off assertions]) |
3226 |
14 May 14 |
peter |
46 |
]) |
3226 |
14 May 14 |
peter |
47 |
]) # YAT_HEADER_ASSERT |