From: Ran Benita Date: Mon, 12 Dec 2011 20:37:07 +0000 (+0200) Subject: build: set in NDEBUG instead of DEBUG in configure X-Git-Tag: kmscon-7~1319 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ed09101f0a03c51e201e24e969b1c110b884a33;p=platform%2Fupstream%2Fkmscon.git build: set in NDEBUG instead of DEBUG in configure Signed-off-by: Ran Benita Signed-off-by: David Herrmann --- diff --git a/configure.ac b/configure.ac index a93f144..0bc20ff 100644 --- a/configure.ac +++ b/configure.ac @@ -47,10 +47,9 @@ AC_SUBST(PANGO_LIBS) AC_MSG_CHECKING([whether to build with debugging on]) AC_ARG_ENABLE([debug], - [AS_HELP_STRING([--enable-debug], - [whether to build with debugging on)])], - [debug="$enableval"; AC_DEFINE([DEBUG], [0], [Debug])], - [debug=no]) + [AS_HELP_STRING([--enable-debug], [whether to build with debugging on)])], + [debug="$enableval"], + [debug=no; AC_DEFINE([NDEBUG], [1], [No Debug])]) AM_CONDITIONAL([DEBUG], [test x$debug = xyes]) AC_MSG_RESULT([$debug]) diff --git a/src/log.h b/src/log.h index 4ea1471..b098fc7 100644 --- a/src/log.h +++ b/src/log.h @@ -38,6 +38,8 @@ #include #include +#include "config.h" + /* LOG_EMERG and LOG_ALERT do not make sense for this application */ #define LOG_CRIT "<2>" /* error that cannot be handled correctly */ #define LOG_ERR "<3>" /* error detected */