From dc7d32329552312ce897c31c03eb203b74817504 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 5 Oct 2010 09:54:34 -0400 Subject: [PATCH] configure: Check for new enough libcanberra The GNOME Shell jhbuild doesn't include libcanberra atm, so if we find an old one (as is in F14) it will fail with a newer GTK3. --- configure.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.in b/configure.in index 9f3406e60..560bda3cb 100644 --- a/configure.in +++ b/configure.in @@ -142,10 +142,12 @@ case "$with_gtk" in 2.0) GTK_API_VERSION=2.0 GTK_MIN_VERSION=2.18 CANBERRA_GTK=libcanberra-gtk + CANBERRA_GTK_VERSION=0.24 ;; 3.0) GTK_API_VERSION=3.0 - GTK_MIN_VERSION=2.90 + GTK_MIN_VERSION=2.90.7 CANBERRA_GTK=libcanberra-gtk3 + CANBERRA_GTK_VERSION=0.26 AC_DEFINE(USE_CAIRO_REGION, 1, [Use cairo_region_t instead of GdkRegion]) ;; esac @@ -251,7 +253,7 @@ AC_MSG_CHECKING([libcanberra-gtk]) if test x$with_libcanberra = xno ; then AC_MSG_RESULT([disabled]) else - if $PKG_CONFIG --exists $CANBERRA_GTK; then + if $PKG_CONFIG --exists $CANBERRA_GTK '>=' $CANBERRA_GTK_VERSION; then have_libcanberra=yes AC_MSG_RESULT(yes) MUTTER_PC_MODULES="$MUTTER_PC_MODULES $CANBERRA_GTK"