Some work on assertions.
[opus.git] / configure.ac
index 5072dcf..d90c216 100644 (file)
@@ -108,6 +108,11 @@ AC_ARG_ENABLE(static-modes, [  --enable-static-modes],
   AC_DEFINE([STATIC_MODES], , [Static modes])
 fi])
 
+AC_ARG_ENABLE(assertions, [  --enable-assertions],
+[if test "$enableval" = yes; then
+  AC_DEFINE([ENABLE_ASSERTIONS], , [Assertions])
+fi])
+
 if test $ac_cv_c_compiler_gnu = yes ; then
         CFLAGS="$CFLAGS -fvisibility=hidden -W -Wstrict-prototypes -Wall -Wextra -Wcast-align -Wnested-externs -Wshadow -Wno-parentheses -Wno-unused-parameter -Wno-sign-compare"
         #CFLAGS="$CFLAGS -fvisibility=hidden -W -Wstrict-prototypes -Wmissing-prototypes -Wall -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wno-parentheses"