Disable debugging by default.

This commit is contained in:
Gunnar Beutner 2013-01-23 15:54:08 +01:00
parent e334f126c8
commit fae0cf8b0d
1 changed files with 1 additions and 3 deletions

View File

@ -67,14 +67,12 @@ AC_CHECK_LIB(shlwapi, PathRemoveFileSpecA)
AC_CHECK_FUNCS([backtrace_symbols])
AC_MSG_CHECKING(whether to enable debugging)
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging (default=yes)],, enable_debug=yes)
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging (default=no)],, enable_debug=no)
if test "x$enable_debug" = "xyes"; then
CFLAGS="$CFLAGS -g -O0"
CXXFLAGS="$CXXFLAGS -g -O0"
AC_MSG_RESULT(yes)
else
CFLAGS="$CFLAGS -O2"
CXXFLAGS="$CFLAGS -O2"
AC_MSG_RESULT(no)
fi