AC_SUBST(GIOUNIX_CFLAGS)
AC_SUBST(GIOUINX_LIBS)
-#PKG_CHECK_MODULES([AUL], [aul])
+PKG_CHECK_MODULES([AUL], [aul])
AC_SUBST(AUL_CFLAGS)
AC_SUBST(AUL_LIBS)
-#PKG_CHECK_MODULES([PKGMGRINFO], [pkgmgr-info])
+PKG_CHECK_MODULES([PKGMGRINFO], [pkgmgr-info])
AC_SUBST(PKGMGRINFO_CFLAGS)
AC_SUBST(PKGMGRINFO_LIBS)
AC_SUBST(BUNDLE_CFLAGS)
AC_SUBST(BUNDLE_LIBS)
+PKG_CHECK_MODULES([DLOG], [dlog], [AC_DEFINE([HAVE_DLOG], [1], [Use DLOG])])
+AC_SUBST(DLOG_CFLAGS)
+AC_SUBST(DLOG_LIBS)
+
AC_DEFINE(MESSAGEPORT_BUS_ADDRESS,
["unix:path=%s/.message-port", g_get_user_runtime_dir()],
[messageport daemon server socket address])
AC_DEFINE(ENABLE_DEBUG, [1], [Enable debug features])
fi
+# build example
+AC_ARG_ENABLE(examples,
+ [--enable-examples example applications],
+ [enable_examples=$enable_examples], [enable_examples=no])
+AM_CONDITIONAL(BUILD_EXAMPLES, [test "x$enable_examples" = "xyes"])
+if test "x$enable_examples" = "xyes"; then
+ AC_PROG_CXX
+fi
# Checks for header files.
AC_CHECK_HEADERS([string.h])
daemon/Makefile
lib/Makefile
lib/message-port.pc
-examples/Makefile
])
+
+if test "x$enable_examples" = "xyes"; then
+ AC_OUTPUT([
+ examples/Makefile
+ ])
+fi