daemon: few fixes to dbus-server code
[profile/ivi/message-port.git] / configure.ac
index 5714dd1..dc5f263 100644 (file)
@@ -27,11 +27,11 @@ PKG_CHECK_MODULES([GIOUNIX],[gio-unix-2.0])
 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)
 
@@ -39,6 +39,10 @@ PKG_CHECK_MODULES([BUNDLE], [bundle])
 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])
@@ -51,6 +55,14 @@ if test "x$enable_debug" = "xyes" ; then
     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])
@@ -65,5 +77,10 @@ common/Makefile
 daemon/Makefile
 lib/Makefile
 lib/message-port.pc
-examples/Makefile
 ])
+
+if test "x$enable_examples" = "xyes"; then
+    AC_OUTPUT([
+    examples/Makefile
+    ])
+fi