test "${VERSION%*cvs}" != "$VERSION" && DEBUG="yes"
if test "$DEBUG" = "yes"; then
- AC_MSG_RESULT([debug])
- AC_DEFINE([DEBUG], [1], [Creating a DEBUG build])
+ AC_MSG_RESULT([DEBUG])
+ AC_DEFINE([DEBUG], [1], [Creating a debug build])
else
- AC_MSG_RESULT([release])
- AC_DEFINE([NDEBUG], [1], [Creating a RELEASE build])
+ AC_MSG_RESULT([RELEASE])
+# keep the asserts in
+# AC_DEFINE([NDEBUG], [1], [Creating a release build])
fi
])
AC_MSG_CHECKING([for GNU C++])
if test "$GXX" = "yes"; then
AC_MSG_RESULT([yes])
- FLAGS="-Wall -W"
+ FLAGS="-Wall -W -fno-check-new -fno-exceptions"
# -pedantic
test "$DEBUG" = "yes" && FLAGS="$FLAGS -g -fno-inline"
else