From bc564a69c26419a125eb1880069d9276a47f7d1b Mon Sep 17 00:00:00 2001 From: "John (J5) Palmieri" Date: Tue, 6 Sep 2005 22:38:54 +0000 Subject: * Released 0.50 * Patch from Steve Grubb: - bus/activation.c (bus_activation_service_reload_test): clean up some indentation - dbus/dbus-keyring.c (_dbus_keyring_reload): fix conditional - dbus/dbus-message-factory.c (generate_special): fix a couple of buffer overflows in the test suite. This is non critical because it can not be exploited and this code is only run when doing a make check. * Patch from Yaakov Selkowitz: Build fixes for Cygwin - configure.in: Don't check and link against kdecore, only qt headers - dbus/Makefile.am: Add -no-undefined to libdbus_1_la_LDFLAGS - gcj/org/freedesktop/dbus/Makefile.am: add libdbus_gcj_1_la_LDFLAGS = -no-undefined - glib/Makefile.am: Add -no-undefined to libdbus_glib_1_la_LDFLAGS and $(DBUS_GLIB_LIBS) to dbus_binding_tool_LDADD - qt/Makefile.am: Add -no-undefined to libdbus_qt_1_la_LDFLAGS - tools/Makefile.am: Add platform extentions to binaries (i.e. .exe on windows) * configure.in: - Make it so if no suitable version of python is found we only disable building python instead of exiting the configure script - Require version 2.4 of glib for glib bindings - Up version to 0.50 * python/__init__.py: Sync version with libdbus to (0,50,0) --- configure.in | 35 ++++++++++++++++------------------- 1 file changed, 16 insertions(+), 19 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index d338f686..7215b6b1 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,7 @@ AC_PREREQ(2.52) AC_INIT(dbus/dbus.h) -AM_INIT_AUTOMAKE(dbus, 0.37) +AM_INIT_AUTOMAKE(dbus, 0.50) AM_CONFIG_HEADER(config.h) @@ -859,8 +859,8 @@ AC_SUBST(DBUS_TEST_CFLAGS) AC_SUBST(DBUS_TEST_LIBS) # Glib detection -PKG_CHECK_MODULES(DBUS_GLIB, gobject-2.0, have_glib=yes, have_glib=no) -PKG_CHECK_MODULES(DBUS_GLIB_THREADS, glib-2.0 gthread-2.0, have_glib_threads=yes, have_glib_threads=no) +PKG_CHECK_MODULES(DBUS_GLIB, gobject-2.0 >= 2.4, have_glib=yes, have_glib=no) +PKG_CHECK_MODULES(DBUS_GLIB_THREADS, gthread-2.0 >= 2.4, have_glib_threads=yes, have_glib_threads=no) if test x$have_glib = xno ; then AC_MSG_WARN([GLib development libraries not found]) @@ -940,6 +940,7 @@ else if test -f "$dir/qglobal.h"; then have_qt=yes DBUS_QT_CXXFLAGS="-I$dir" + DBUS_QT_LIBS="-L$QTDIR/lib -lqt-mt" fi done fi @@ -949,18 +950,6 @@ else AC_MSG_RESULT([not found]) fi -dnl linking to kdecore will give us a bit of help from libtool -if (! kde-config >& /dev/null); then - have_qt=no -else - kdelibs=`kde-config --install lib --expandvars 2>/dev/null` - if test -z $kdelibs -o ! -f $kdelibs/libkdecore.la; then - have_qt=no - else - DBUS_QT_LIBS="$kdelibs/libkdecore.la" - fi -fi - if test x$have_qt = xno ; then AC_MSG_WARN([Qt development libraries not found]) fi @@ -1239,13 +1228,21 @@ AC_SUBST(DBUS_SESSION_SOCKET_DIR) if test x$enable_python = xno; then have_python=no else + have_python_version=2.4 AC_MSG_NOTICE([Checking to see if we can build Python bindings]) have_python=no - AM_PATH_PYTHON(2.4) + AM_PATH_PYTHON() if test -z "$PYTHON" ; then AC_MSG_WARN([Python not found]) else + AC_MSG_CHECKING([whether $PYTHON version >= $have_python_version]) + AM_PYTHON_CHECK_VERSION([$PYTHON], [$have_python_version], + [have_python_version="yes"], + [have_python_version="too old"]) + + AC_MSG_RESULT($have_python_version) + AC_CHECK_PROGS(PYREX, pyrexc) if test -z "$PYREX" ; then @@ -1256,16 +1253,16 @@ else AM_CHECK_PYTHON_HEADERS(have_python_headers=yes,have_python_headers=no) - if test x$have_pyrex = xyes -a x$have_python_headers = xyes ; then + if test x$have_pyrex = xyes -a x$have_python_headers = xyes -a "x$have_python_version" = xyes ; then have_python=yes fi fi if test x$have_python = xno ; then if test x$enable_python = xyes ; then - AC_MSG_ERROR([Building python explicitly requested, but can't build python bindings]) + AC_MSG_ERROR([Building python explicitly requested, but can't build python bindings because either Pyrex, Python headers or a suitable Python version was not found]) else - AC_MSG_WARN([Couldn't find either Pyrex or the Python headers, not building Python bindings]) + AC_MSG_WARN([Couldn't find either Pyrex, the Python headers or a suitable version of Python, not building Python bindings]) fi fi fi -- cgit