summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.in.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/configure.in.in b/configure.in.in
index 9be21cb..b27783e 100644
--- a/configure.in.in
+++ b/configure.in.in
@@ -39,6 +39,21 @@ CXXFLAGS="$CXXFLAGS -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST"
AC_SUBST(DBUS_INCS)
AC_SUBST(DBUS_LIBS)
+
+########### Check the D-BUS version
+
+ AC_MSG_CHECKING([dbus version])
+ DBUS_VERSION=`$PKG_CONFIG --modversion dbus-1`
+ DBUS_MAJOR_VER=`echo $DBUS_VERSION | cut -d. -f 1`
+ DBUS_MINOR_VER=`echo $DBUS_VERSION | cut -d. -f 2`
+ DBUS_MICRO_VER=`echo $DBUS_VERSION | cut -d. -f 3`
+
+ AC_MSG_RESULT($DBUS_VERSION)
+ AC_DEFINE_UNQUOTED(DBUS_MAJOR_VER, $DBUS_MAJOR_VER, [D-BUS major version.])
+ AC_DEFINE_UNQUOTED(DBUS_MINOR_VER, $DBUS_MINOR_VER, [D-BUS minor version.])
+ AC_DEFINE_UNQUOTED(DBUS_MICRO_VER, $DBUS_MICRO_VER, [D-BUS micro version.])
+
+
########### Check for GTK stuff
AC_GLIB_2
AC_GTK_2