diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2011-01-14 18:07:14 +0000 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2011-01-14 21:13:33 +0100 |
commit | 96f8ca3b4216e83165828eebc9d0252f032786f8 (patch) | |
tree | f2055cd86b6f49862eedd1dbe013e4566d895a8c | |
parent | ac49aa20abc3a935b92be35105e06eb7625528f9 (diff) |
Disallow python module and X11 rendering with GTK3
In GTK3 the python binding is provided via introspection.
The X11 rendering code is not compatible with GTK3 since
all GTK3 drawing is cairo based and there is no expose_event
any more
-rw-r--r-- | configure.ac | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 2c7b81b..7eccf30 100644 --- a/configure.ac +++ b/configure.ac @@ -219,6 +219,18 @@ AC_SUBST(GST_LIBS) AC_ARG_WITH([x11], AS_HELP_STRING([--with-x11], [Use x11/shm display backend instead of cairo.])) +AC_MSG_CHECKING([What rendering backend to use..]) +if [test "x$with_x11" = "xyes" ] +then + if [test "$GTK_API_VERSION" = "3.0" ] + then + AC_MSG_ERROR([X11 SHM backend is not compatible with GTK3]) + fi + AC_MSG_RESULT([x11]) +else + AC_MSG_RESULT([cairo]) +fi + AS_IF([test "x$with_x11" = "xyes"], [AC_DEFINE([WITH_X11], 1, [Use X11 backend?])]) AM_CONDITIONAL([WITH_X11], [test "x$with_x11" = "xyes"]) @@ -301,7 +313,13 @@ AC_ARG_WITH(python, *) AC_MSG_ERROR([bad value ${withval} for python option]) ;; esac],[withval=yes]) -WITH_PYTHON=$withval +if test "$with_gtk" = "3.0" +then + WITH_PYTHON=no +else + WITH_PYTHON=$withval +fi + if test "$WITH_PYTHON" = "yes"; then PKG_CHECK_MODULES(PYGTK, pygtk-2.0 >= 2.0.0) AC_SUBST(PYGTK_CFLAGS) |