[Libreoffice-commits] .: configure.in
Tomáš Chvátal
tchvatal at kemper.freedesktop.org
Sat Sep 17 03:56:31 PDT 2011
configure.in | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit d0c339682a9c1e3df5d80e899ff2248bfe594b52
Author: Tomas Chvatal <tchvatal at suse.cz>
Date: Sat Sep 17 12:56:18 2011 +0200
Fix whitespace in last commit, add safeguards for the with-theme values.
diff --git a/configure.in b/configure.in
index a99ddb0..c3cff3e 100755
--- a/configure.in
+++ b/configure.in
@@ -7748,16 +7748,20 @@ dnl ===================================================================
AC_MSG_CHECKING([which themes to include])
# if none given, use all available themes
AS_IF([test "x$with_theme" = "x" -o "x$with_theme" = "xyes"], [
- with_theme="default crystal hicontrast oxygen tango"
+ with_theme="default crystal hicontrast oxygen tango"
])
WITH_THEMES=""
for theme in $with_theme; do
+ AS_CASE([$theme],
+ [default|crystal|hicontrast|oxygen|tango], [],
+ [AC_MSG_ERROR([Unknown value for --with-themes: $theme])]
+ )
WITH_THEMES="$WITH_THEMES $theme"
SCPDEFS="$SCPDEFS -DTHEME_`echo $theme|tr '[:lower:]' '[:upper:]'`"
done
AC_MSG_RESULT([$WITH_THEMES])
-AC_SUBST(WITH_THEMES)
+AC_SUBST([WITH_THEMES])
dnl ===================================================================
dnl Test whether to integrate helppacks into the product's installer
More information about the Libreoffice-commits
mailing list