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