Browse Source

Merge pull request #3833

f5f157b add --enable-debug for configure (daniel)
0.10
Wladimir J. van der Laan 10 years ago
parent
commit
1795c69aaa
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 17
      configure.ac

17
configure.ac

@ -137,6 +137,23 @@ AC_PATH_PROG(XGETTEXT,xgettext) @@ -137,6 +137,23 @@ AC_PATH_PROG(XGETTEXT,xgettext)
AC_PATH_PROG(HEXDUMP,hexdump)
PKG_PROG_PKG_CONFIG
# Enable debug
AC_ARG_ENABLE([debug],
[AS_HELP_STRING([--enable-debug],
[use debug compiler flags and macros (default is no)])],
[enable_debug=$enableval],
[enable_debug=no])
if test "x$enable_debug" = xyes; then
if test "x$GCC" = xyes; then
CFLAGS="-g3 -O0 -DDEBUG"
fi
if test "x$GXX" = xyes; then
CXXFLAGS="-g3 -O0 -DDEBUG"
fi
fi
## TODO: Remove these hard-coded paths and flags. They are here for the sake of
## compatibility with the legacy buildsystem.
##

Loading…
Cancel
Save