[gnome-games] build: Fix --with-card-theme-formats=default
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] build: Fix --with-card-theme-formats=default
- Date: Tue, 14 Sep 2010 10:26:22 +0000 (UTC)
commit 073a292d331a2c7c1785d68588f29f5335e79479
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 09da829..80748ab 100644
--- a/configure.in
+++ b/configure.in
@@ -422,11 +422,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
@@ -435,21 +441,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]