]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* configure.ac: Allow disabling themes.
authorVladimir Serbinenko <phcoder@gmail.com>
Tue, 12 Nov 2013 21:44:01 +0000 (22:44 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Tue, 12 Nov 2013 21:44:01 +0000 (22:44 +0100)
ChangeLog
configure.ac

index d276716ad09ef6b3a7bd8c0942bf391f1151de8d..4ec7ad612097145d3dca1f2bbfa89c1197159783 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-11-12  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * configure.ac: Allow disabling themes.
+
 2013-11-12  Lukas Schwaighofer <lukas@schwaighofer.name>
 
        * util/grub.d/20_linux_xen.in: Don't decompress initrd.
index 343d5f401585c2052e06284d98cbdb666eed80fc..a0f17a2dba158216a0f1601d355f157b8a6a1c75 100644 (file)
@@ -1143,7 +1143,14 @@ DJVU_FONT_SOURCE=
 
 starfield_excuse=
 
-if test x"$enable_build_grub_mkfont" = xno ; then
+AC_ARG_ENABLE([grub-themes],
+             [AS_HELP_STRING([--enable-grub-themes],
+                             [build and install GRUB themes (default=guessed)])])
+if test x"$enable_grub_themes" = xno ; then
+  starfield_excuse="explicitly disabled"
+fi
+
+if test x"$starfield_excuse" = x && test x"$enable_build_grub_mkfont" = xno ; then
   starfield_excuse="No build-time grub-mkfont"
 fi
 
@@ -1162,6 +1169,10 @@ if test x"$starfield_excuse" = x; then
    fi
 fi
 
+if test x"$enable_grub_themes" = xyes &&  test x"$starfield_excuse" != x; then
+   AC_MSG_ERROR([themes were explicitly requested but requirements are not satisfied])
+fi
+
 AC_SUBST([DJVU_FONT_SOURCE])
 
 FONT_SOURCE=