diff options
-rw-r--r-- | configure.ac | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 5468432..9d82351 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,18 @@ GTK_CFLAGS="$(printf ' %s' "${GTK_CFLAGS}" | \ WEBKIT2GTK_CFLAGS="$(printf ' %s' "${WEBKIT2GTK_CFLAGS}" | \ sed 's/ -I/ -isystem/g;')" +AC_ARG_ENABLE( + [debug], + [AS_HELP_STRING([--enable-debug], [enable debugging])], + , + [enable_debug=no]) + +if test "x${enable_debug}" = 'xyes'; then + AC_DEFINE([MQ_TREE_DEBUG], [1], [Define to 1 to enable tree debugging.]) +else + AC_DEFINE([MQ_TREE_DEBUG], [0], [Define to 1 to enable tree debugging.]) +fi + AC_CONFIG_FILES([Makefile]) AC_CONFIG_HEADERS([config.h]) AC_OUTPUT() |