We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 70b8cb9 + f5f157b commit 1795c69Copy full SHA for 1795c69
configure.ac
@@ -137,6 +137,23 @@ AC_PATH_PROG(XGETTEXT,xgettext)
137
AC_PATH_PROG(HEXDUMP,hexdump)
138
PKG_PROG_PKG_CONFIG
139
140
+# Enable debug
141
+AC_ARG_ENABLE([debug],
142
+ [AS_HELP_STRING([--enable-debug],
143
+ [use debug compiler flags and macros (default is no)])],
144
+ [enable_debug=$enableval],
145
+ [enable_debug=no])
146
+
147
+if test "x$enable_debug" = xyes; then
148
+ if test "x$GCC" = xyes; then
149
+ CFLAGS="-g3 -O0 -DDEBUG"
150
+ fi
151
152
+ if test "x$GXX" = xyes; then
153
+ CXXFLAGS="-g3 -O0 -DDEBUG"
154
155
+fi
156
157
## TODO: Remove these hard-coded paths and flags. They are here for the sake of
158
## compatibility with the legacy buildsystem.
159
##
0 commit comments