Code

Test for Dbus and enable if found
authorglimmer07 <glimmer07@users.sourceforge.net>
Sun, 12 Jul 2009 15:39:30 +0000 (15:39 +0000)
committerglimmer07 <glimmer07@users.sourceforge.net>
Sun, 12 Jul 2009 15:39:30 +0000 (15:39 +0000)
configure.ac

index b804d0debdf762147ddc2890f8c957d842f153b2..418990602e8e1d040406147b69f73554114bcd0b 100644 (file)
@@ -616,6 +616,19 @@ AM_CONDITIONAL(WITH_LIBWPG, test "x$with_libwpg" = "xyes")
 AC_SUBST(LIBWPG_LIBS)
 AC_SUBST(LIBWPG_CFLAGS)
 
+dnl ******************************
+dnl Check for dbus functionality
+dnl ******************************
+
+PKG_CHECK_MODULES(DBUS, dbus-glib-1, with_dbus=yes, with_dbus=no)
+if test "x$with_dbus" = "xyes"; then
+       AC_DEFINE(WITH_DBUS,1,[Build in dbus])
+fi
+AM_CONDITIONAL(WITH_DBUS, test "x$with_dbus" = "xyes")
+
+AC_SUBST(DBUS_LIBS)
+AC_SUBST(DBUS_CFLAGS)
+
 dnl ******************************
 dnl Check for ImageMagick Magick++ 
 dnl ******************************
@@ -1008,6 +1021,7 @@ Configuration:
         Internal Python:          ${with_python}
         Internal Perl:            ${with_perl}
         Enable LittleCms:         ${enable_lcms}
+        Enable DBUS               ${with_dbus} 
         Enable Inkboard:          ${with_inkboard}
         Enable SSL in Inkboard:   ${with_inkboard_ssl}
         Enable Poppler-Cairo:     ${enable_poppler_cairo}