* m4/debug.m4, m4/devel.m4, m4/gccoptim.m4, m4/ndebug.m4: New files.

* Makefile.am (EXTRA_DIST): Add them.
* configure.ac: Call adl_ENABLE_DEVEL, adl_ENABLE_DEBUG, ad_GCC_OPTIM,
and adl_NDEBUG.
This commit is contained in:
Alexandre Duret-Lutz 2003-10-01 11:44:57 +00:00
parent 2e97e6447b
commit e5641f5b69
7 changed files with 98 additions and 3 deletions

6
m4/ndebug.m4 Normal file
View file

@ -0,0 +1,6 @@
AC_DEFUN([adl_NDEBUG],
[AC_ARG_ENABLE([assert],
[AC_HELP_STRING([--enable-assert],[turn on assertions])])
if test "$enable_assert" != yes; then
CFLAGS="$CFLAGS -DNDEBUG"
fi])