configure: accept building without themes

If --with-theme=no is specified disallow any check for valid themes
which would otherwise give an error.

Change-Id: I45d2872145f3bd15e17beac4f69f8b4b1855d9a3
Reviewed-on: https://gerrit.libreoffice.org/1879
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Michael Stahl <mstahl@redhat.com>
This commit is contained in:
Riccardo Magliocchetti
2013-01-26 16:59:36 +01:00
committed by Michael Stahl
parent 69bb1336bf
commit 9cacd76701

View File

@@ -10824,14 +10824,16 @@ if test "x$with_theme" = "x" -o "x$with_theme" = "xyes"; then
fi
WITH_THEMES=""
for theme in $with_theme; do
case $theme in
crystal|default|galaxy|hicontrast|human|industrial|oxygen|tango|tango_testing) : ;;
*) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;;
esac
WITH_THEMES="$WITH_THEMES $theme"
SCPDEFS="$SCPDEFS -DTHEME_`echo $theme|tr '[[:lower:]]' '[[:upper:]]'`"
done
if test "x$with_theme" != "xno"; then
for theme in $with_theme; do
case $theme in
crystal|default|galaxy|hicontrast|human|industrial|oxygen|tango|tango_testing) : ;;
*) AC_MSG_ERROR([Unknown value for --with-theme: $theme]) ;;
esac
WITH_THEMES="$WITH_THEMES $theme"
SCPDEFS="$SCPDEFS -DTHEME_`echo $theme|tr '[[:lower:]]' '[[:upper:]]'`"
done
fi
AC_MSG_RESULT([$WITH_THEMES])
AC_SUBST([WITH_THEMES])