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