diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | configure.in | 9 |
2 files changed, 13 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2005-03-11 David Malcolm <dmalcolm@redhat.com> + + * configure.in: set up DBUS_VERSION for use in the new-mail-notify + plugin + 2005-03-31 Steve Murphy <murf@e-tools.com> * configure.in: Added "rw" to ALL_LINGUAS. 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 " |