AM_CONDITIONAL(HAVE_UTEST, test "x$unittests" = "xyes")
+AC_ARG_WITH(default-dlog, AS_HELP_STRING([--with-default-dlog=yes/no], [whether use dlog as a default log or not]),
+ [ use_dlog="$withval" ],
+ [ use_dlog="yes" ])
+
+AM_CONDITIONAL(ENABLE_DLOG, test "x$use_dlog" = "xyes")
+
+if test "x$use_dlog" = "xyes"; then
+ AC_DEFINE([ENABLE_DLOG], 1, "Use dlog as a default log")
+fi
+
AC_PATH_PROG([wayland_scanner], [wayland-scanner])
if test x$wayland_scanner = x; then
AC_MSG_ERROR([wayland-scanner is needed to compile wayland-tbm])
%endif
%reconfigure --with-unittests=${UTEST} \
+ --with-default-dlog=yes \
CFLAGS="${CFLAGS} -Wall -Werror" \
CXXFLAGS="${CXXFLAGS} -Wall -Werror" \
LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"