summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-04-06 11:33:18 +0200
committerMarcel Holtmann <marcel@holtmann.org>2009-04-06 11:33:18 +0200
commit26e12e21762c8400f6d27410ec3bacfa70d1ef6b (patch)
tree0237407fd0fb4052e3be34c2338908a446dd1374 /configure.ac
parent836075a8d9279ffadccfb1f5c3c0cf56f51d1a95 (diff)
downloadconnman-26e12e21762c8400f6d27410ec3bacfa70d1ef6b.tar.gz
connman-26e12e21762c8400f6d27410ec3bacfa70d1ef6b.tar.bz2
connman-26e12e21762c8400f6d27410ec3bacfa70d1ef6b.zip
Fix compilation with old D-Bus 1.0.x installations
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 16025ac6..80c4611f 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`"