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])
#include <stdarg.h>
#include <stdlib.h>
+#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 */