From 15617314f2e257bdfbb3fd7969e5067cc34dfc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 11 May 2010 10:01:52 +0200 Subject: [PATCH] configure: Check for GTK+ 3.0 and if it's not available for GTK+ 2.0 --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 48859f7659..b3dbb95748 100644 --- a/configure.ac +++ b/configure.ac @@ -242,7 +242,8 @@ AC_SUBST(GSTPB_PREFIX) dnl GTK is optional and used in examples if test "x$BUILD_EXAMPLES" = "xyes"; then - PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8.0, HAVE_GTK=yes, HAVE_GTK=no) + PKG_CHECK_MODULES(GTK, gtk+-3.0, HAVE_GTK=yes, + [PKG_CHECK_MODULES(GTK, gtk+-2.0 >= 2.8.0, HAVE_GTK=yes, HAVE_GTK=no)]) AC_SUBST(GTK_LIBS) AC_SUBST(GTK_CFLAGS) fi