Add debugging option to autotools configuration

This commit is contained in:
Jfreegman 2016-09-07 17:21:12 -04:00
parent 584debc7b6
commit a35be20e6a

View File

@ -34,6 +34,7 @@ BUILD_AV="yes"
BUILD_TESTING="yes"
TOX_LOGGER="no"
TOX_DEBUG="no"
LOGGING_OUTNAM="libtoxcore.log"
NCURSES_FOUND="no"
@ -95,6 +96,17 @@ AC_ARG_ENABLE([logging],
]
)
AC_ARG_ENABLE([debug],
[AC_HELP_STRING([--enable-debug], [enable debugging (default: disabled)]) ],
[
if test "x$enableval" = "xyes"; then
TOX_DEBUG="yes"
AC_DEFINE([TOX_DEBUG], [], [If debugging enabled])
fi
]
)
AC_ARG_WITH(log-level,
AC_HELP_STRING([--with-log-level=LEVEL],
[Logger levels: TRACE; DEBUG; INFO; WARNING; ERROR ]),