[gnome-games] Add --enable-aisleriot-clutter configure option



commit 2d85098b0d9c66cfd820e588e863f7651b500028
Author: Christian Persch <chpe gnome org>
Date:   Fri May 1 14:02:44 2009 +0200

    Add --enable-aisleriot-clutter configure option
---
 aisleriot/Makefile.am |    3 +++
 configure.in          |   19 ++++++++++++++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)

diff --git a/aisleriot/Makefile.am b/aisleriot/Makefile.am
index f779d6c..4e08919 100644
--- a/aisleriot/Makefile.am
+++ b/aisleriot/Makefile.am
@@ -73,6 +73,8 @@ sol_LDADD += $(GTHREAD_LIBS)
 endif
 
 if HAVE_CLUTTER
+if ENABLE_AISLERIOT_CLUTTER
+
 noinst_PROGRAMS = sol-clutter
 
 sol_clutter_SOURCES = \
@@ -106,6 +108,7 @@ sol_clutter_CFLAGS = $(sol_CFLAGS) $(CLUTTER_CFLAGS) $(CLUTTER_GTK_CFLAGS)
 sol_clutter_LDADD = $(sol_LDADD) $(CLUTTER_LIBS) $(CLUTTER_GTK_LIBS)
 
 
+endif # ENABLE_AISLERIOT_CLUTTER
 endif # HAVE_CLUTTER
 
 desktop_in_files = \
diff --git a/configure.in b/configure.in
index 80d6cf4..7f4a019 100644
--- a/configure.in
+++ b/configure.in
@@ -318,10 +318,27 @@ AC_MSG_RESULT([$with_sound])
 
 # Clutter
 
+# We're using need_guile as a quick way to check whether building aisleriot
+if test "$need_guile" = "yes"; then
+  AC_MSG_CHECKING([whether to enable aisleriot/clutter])
+  AC_ARG_ENABLE([aisleriot-clutter],
+    [AS_HELP_STRING([--enable-aisleriot-clutter],[Whether to enable the clutter version of aisleriot (default: disabled)])],
+    [],[enable_aisleriot_clutter=no])
+  AC_MSG_RESULT([$enable_aisleriot_clutter])
+
+  if test "$enable_aisleriot_clutter" = "yes"; then
+    # Distro packagers: DO NOT ENABLE AISLERIOT/CLUTTER IN YOUR DISTRO PACKAGES, OR ELSE!
+    AC_MSG_NOTICE([Aisleriot/Clutter is experimental; do not enable this for distribution packages!])
+    need_clutter=yes
+  fi
+fi
+
+AM_CONDITIONAL([ENABLE_AISLERIOT_CLUTTER],[test "$enable_aisleriot_clutter" = "yes"])
+
 case "$with_platform" in
   gnome|gtk-only) ;;
   hildon) if test "$need_clutter" = "yes"; then
-            AC_MSG_ERROR([Clutter is not supported on hildon; disable Gnometris and Lights Off])
+            AC_MSG_ERROR([Clutter is not supported on hildon; disable Gnometris, Lights Off and Aisleriot/Clutter])
           fi
           ;;
 esac



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