[gnome-shell] [configure] Check that mutter was compiled with GTK+-3.0



commit d9eb4702b22e55a8bcccfcede7a371da7131c7ad
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Jul 9 05:47:27 2010 +0200

    [configure] Check that mutter was compiled with GTK+-3.0
    
    If mutter was compiled with GTK+-2.0, the build will fail with a
    rather cryptic message - better fail early during configure with
    a proper error message.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=623889

 configure.ac |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index fe5f09a..2718d8e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -154,6 +154,14 @@ changequote([,])dnl
 AC_PATH_PROG(mutter, [mutter])
 AC_SUBST(mutter)
 
+AC_MSG_CHECKING([if mutter was compiled with GTK+-3.0])
+if $PKG_CONFIG --print-requires libmutter-private | grep -q gtk+-3; then
+  AC_MSG_RESULT(yes)
+else
+  AC_MSG_RESULT(no)
+  AC_MSG_ERROR([GNOME Shell requires Mutter to be compiled against GTK+-3.0])
+fi
+
 AC_CONFIG_FILES([
   Makefile
   data/Makefile



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]