[gnome-games] build: Error out when building games with gtk2 that don't support gtk2
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] build: Error out when building games with gtk2 that don't support gtk2
- Date: Tue, 19 Oct 2010 20:06:25 +0000 (UTC)
commit 3ff575bdb9b28202d2a8ef6468d093102480ac01
Author: Christian Persch <chpe gnome org>
Date: Tue Oct 19 22:03:49 2010 +0200
build: Error out when building games with gtk2 that don't support gtk2
Once all games (except aisleriot) only support gtk3, flip the default by
setting allow_gtk2=no.
configure.in | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 5f10d3c..17c85cc 100644
--- a/configure.in
+++ b/configure.in
@@ -115,6 +115,7 @@ need_python=no
need_clutter=no
need_gio_2_26=no
want_sound=no
+allow_gtk2=yes
allow_gnuchess=no
allow_smclient=no
disallow_hildon=no
@@ -124,6 +125,10 @@ libgames_support_full=no
for game in $gamelist; do
case $game in
+ aisleriot) allow_gtk2=yes ;;
+ *) ;;
+ esac
+ case $game in
quadrapassel) need_cxx=yes ;;
*) ;;
esac
@@ -326,6 +331,10 @@ AC_ARG_WITH([gtk],
[with_gtk=2.0])
AC_MSG_RESULT([$with_gtk])
+if test "$with_gtk" = "2.0" -a "$allow_gtk2" = "no"; then
+ AC_MSG_ERROR([gtk+-2.0 build requested but not all selected games still support this])
+fi
+
case "$with_gtk" in
2.0) GTK_API_VERSION=2.0
GTK_API_MAJOR_VERSION=2
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]