From: Marcel Holtmann Date: Mon, 6 Apr 2009 09:33:18 +0000 (+0200) Subject: Fix compilation with old D-Bus 1.0.x installations X-Git-Tag: 2.0_alpha~3897 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26e12e21762c8400f6d27410ec3bacfa70d1ef6b;p=framework%2Fconnectivity%2Fconnman.git Fix compilation with old D-Bus 1.0.x installations --- diff --git a/configure.ac b/configure.ac index 16025ac..80c4611 100644 --- a/configure.ac +++ b/configure.ac @@ -203,6 +203,9 @@ fi PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.0, dummy=yes, AC_MSG_ERROR(D-Bus >= 1.0 is required)) +AC_CHECK_LIB(dbus-1, dbus_watch_get_unix_fd, dummy=yes, + AC_DEFINE(NEED_DBUS_WATCH_GET_UNIX_FD, 1, + [Define to 1 if you need the dbus_watch_get_unix_fd() function.])) AC_SUBST(DBUS_CFLAGS) AC_SUBST(DBUS_LIBS) DBUS_DATADIR="`$PKG_CONFIG --variable=sysconfdir dbus-1`"