diff options
| author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-11-05 17:17:56 +0000 |
|---|---|---|
| committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-11-05 17:18:36 +0000 |
| commit | 3eb02097f90027f3c1d117628e2f7871af6a140c (patch) | |
| tree | fb6d2be884ad205c00415599d23d7e488e7eccda | |
| parent | 562ff37d800c961664a7152d7fd723bd60e302f3 (diff) | |
configure: we still require Gtk+ >= 2.14.0 when compiling against 2.0
The check for the minor version was dropped in the previous commit.
| -rw-r--r-- | configure.ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 6956cf085..224dc18e6 100644 --- a/configure.ac +++ b/configure.ac @@ -240,18 +240,22 @@ AC_SUBST(GSTPB_PREFIX) dnl GTK is optional and used in examples HAVE_GTK=no +GTK2_REQ=2.14.0 +GTK3_REQ=2.91.3 if test "x$BUILD_EXAMPLES" = "xyes"; then AC_MSG_CHECKING([which gtk+ version to compile examples against (optional)]) AC_ARG_WITH([gtk], AC_HELP_STRING([--with-gtk=3.0|2.0], [which gtk+ version to compile against (default: 2.0)]), [case "$with_gtk" in - 2.0|3.0) ;; + 2.0) GTK_REQ=$GTK2_REQ ;; + 3.0) GTK_REQ=$GTK3_REQ ;; *) AC_MSG_ERROR([invalid gtk+ version specified]);; esac], - [with_gtk=2.0]) - AC_MSG_RESULT([$with_gtk]) - PKG_CHECK_MODULES(GTK, gtk+-$with_gtk, HAVE_GTK=yes, HAVE_GTK=no) + [with_gtk=2.0 + GTK_REQ=$GTK2_REQ]) + AC_MSG_RESULT([$with_gtk (>= $GTK_REQ)]) + PKG_CHECK_MODULES(GTK, gtk+-$with_gtk >= $GTK_REQ, HAVE_GTK=yes, HAVE_GTK=no) AC_SUBST(GTK_LIBS) AC_SUBST(GTK_CFLAGS) fi |
