From 729d738dda748f7aa559109146ae3d81d4fb4ec5 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Tue, 5 Apr 2005 07:28:30 +0000 Subject: set up DBUS_VERSION for use in the new-mail-notify plugin 2005-03-11 David Malcolm * configure.in: set up DBUS_VERSION for use in the new-mail-notify plugin svn path=/trunk/; revision=29155 --- configure.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 76320bc632..bffc85cb1b 100644 --- a/configure.in +++ b/configure.in @@ -1393,6 +1393,12 @@ if echo ${plugins_enabled} | grep -q "new-mail-notify" ; then PKG_CHECK_MODULES(NMN, dbus-glib-1) AC_SUBST(NMN_CFLAGS) AC_SUBST(NMN_LIBS) + + # Get the version of the DBus API, so we can hack around API changes until the API stabilises: + # multiply by 1000 to convert decimal to integer; so e.g. 0.31 become 310 + # since preprocessor values must be integral + DBUS_VERSION="`$PKG_CONFIG --modversion dbus-1 | awk '{print 1000 * $1}'`" + AC_SUBST(DBUS_VERSION) else plugins_enabled=`echo $plugins_enabled | sed -e "s/new-mail-notify//g"` echo "warning: dbus-glib-1 was not found, new-mail-notify plugin will not be built." @@ -1622,7 +1628,8 @@ echo "\ Dot Locking: $msg_dot File Locking: $msg_file Plugins: $msg_plugins - Gtk-doc: $enable_gtk_doc" + Gtk-doc: $enable_gtk_doc + DBus API version $DBUS_VERSION" if test x$enable_gtk_doc = xyes; then echo " -- cgit