disable qt debug

master
Marc Wäckerlin 9 years ago
parent 3fcb7003d7
commit b8ed4ff9a2
  1. 10
      ax_init_standard_project.m4

@ -190,13 +190,15 @@ AC_DEFUN([AX_INIT_STANDARD_PROJECT], [
AC_ARG_ENABLE(debug,
[AS_HELP_STRING([--enable-debug],
[compile for debugger])],
[have_debug="$enableval"; test "$enableval" = "yes" && \
AM_CPPFLAGS="${AM_CPPFLAGS} -DDEBUG" && \
AM_CXXFLAGS="${AM_CXXFLAGS:-} -ggdb3 -O0" && \
AM_LDFLAGS="${AM_LDFLAGS} -ggdb3 -O0"])
[have_debug="$enableval"], [have_debug="no"])
AM_CONDITIONAL(DEBUG, test "$enableval" = "yes")
if test "$have_debug" == "yes"; then
AC_MSG_NOTICE([Debug compile mode enabled]);
AM_CPPFLAGS="${AM_CPPFLAGS} -DDEBUG"
AM_CXXFLAGS="${AM_CXXFLAGS:-} -ggdb3 -O0"
AM_LDFLAGS="${AM_LDFLAGS} -ggdb3 -O0"
else
AM_CPPFLAGS="${AM_CPPFLAGS} -DQT_NO_DEBUG_OUTPUT -DQT_NO_DEBUG"
fi
AC_CONFIG_FILES([makefile])

Loading…
Cancel
Save