[Libreoffice-commits] .: configure.ac

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Jan 28 04:42:45 PST 2013


 configure.ac |   18 ++++++++++--------
 1 file changed, 10 insertions(+), 8 deletions(-)

New commits:
commit 9cacd76701360e30cbee2ccee61a3722b19b4531
Author: Riccardo Magliocchetti <riccardo.magliocchetti at gmail.com>
Date:   Sat Jan 26 16:59:36 2013 +0100

    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 at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/configure.ac b/configure.ac
index dc13c15..7a29b48 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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])
 


More information about the Libreoffice-commits mailing list