]> git.meshlink.io Git - catta/blobdiff - configure.ac
* detect other running mDNS stacks
[catta] / configure.ac
index c9e2de567f5670c811218e3b7c897cac626aeab6..e0f35cfdd6ed1f2f0c6b7e1f0aa006549fa9987e 100644 (file)
@@ -104,10 +104,16 @@ AC_ARG_ENABLE(dbus,
         esac],
        [ENABLE_DBUS=yes]) dnl Default value
 
+AC_DEFINE(ENABLE_DBUS, 1, [Whether to use DBUS or not])
+
 if test "x$ENABLE_DBUS" = "xyes"; then
         PKG_CHECK_MODULES(DBUS, [ dbus-glib-1 >= 0.23])
         AC_SUBST(DBUS_CFLAGS)
        AC_SUBST(DBUS_LIBS)
+
+       if pkg-config dbus-1 --atleast-version=0.30 ; then
+               AC_DEFINE(DBUS_USE_NEW_API, 1, [Whether to use the new API for DBUS 0.30])
+       fi
 fi
 
 AM_CONDITIONAL(ENABLE_DBUS, test "x$ENABLE_DBUS" = "xyes")