[gnome-games/gnome-2-32] build: Fix --with-card-theme-formats=default



commit a0d9ac3b2d10a58d18170a5c835535d3ce64960b
Author: Christian Persch <chpe gnome org>
Date:   Tue Sep 14 11:57:12 2010 +0200

    build: Fix --with-card-theme-formats=default
    
    Bug #629623.

 configure.in |   27 +++++++++++++--------------
 1 files changed, 13 insertions(+), 14 deletions(-)
---
diff --git a/configure.in b/configure.in
index c546515..293a38f 100644
--- a/configure.in
+++ b/configure.in
@@ -405,11 +405,17 @@ esac
 
 AC_MSG_CHECKING([for requested card theme formats])
 AC_ARG_WITH([card-theme-formats],
-  [AS_HELP_STRING([--with-card-theme-formats],[which card theme formats to support (svg, fixed, kde, pysol, defaults, all)])],
-  [],[case "$with_platform" in
-        gnome|gtk-only) with_card_theme_formats="svg" ;;
-        hildon) with_card_theme_formats="fixed" ;;
-      esac])
+  [AS_HELP_STRING([--with-card-theme-formats],[which card theme formats to support (svg,fixed,kde,pysol|default|all)])],
+  [],[with_card_theme_formats=default])
+
+case "$with_card_theme_formats" in
+  default) case "$with_platform" in
+             gnome|gtk-only) with_card_theme_formats="svg" ;;
+             hildon) with_card_theme_formats="fixed" ;;
+           esac
+           ;;
+  all) with_card_theme_formats="svg,kde,fixed,sliced,pysol" ;;
+esac
 
 enable_card_theme_format_svg=no
 enable_card_theme_format_kde=no
@@ -418,21 +424,14 @@ enable_card_theme_format_sliced=no
 enable_card_theme_format_pysol=no
 
 IFS="${IFS=	}"; gg_saved_ifs="$IFS"; IFS=","
-for format in "$with_card_theme_formats"; do
+for format in $with_card_theme_formats; do
   case "$format" in
-    all) enable_card_theme_format_svg=yes
-         enable_card_theme_format_kde=yes
-         enable_card_theme_format_fixed=yes
-         enable_card_theme_format_sliced=yes
-         enable_card_theme_format_pysol=yes
-         with_card_theme_formats="svg,kde,fixed,sliced,pysol"
-         ;;
     svg) enable_card_theme_format_svg=yes ;;
     kde) enable_card_theme_format_kde=yes ;;
     fixed) enable_card_theme_format_fixed=yes ;;
     sliced) enable_card_theme_format_svg=yes ;;
     pysol) enable_card_theme_format_pysol=yes ;;
-    *) AC_MSG_ERROR([unknown card theme format $format]) ;;
+    *) IFS="$gg_saved_ifs" AC_MSG_ERROR([unknown card theme format $format requested]) ;;
   esac
 done
 IFS="$gg_saved_ifs"



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