shithub: choc

Download patch

ref: 4f62dc3216e925731d378f2e7a5253259a34c4a1
parent: 6ba89d0c05e4b93bdb64460b64a9ba3bdcc4bf6e
author: William Breathitt Gray <vilhelm.gray@gmail.com>
date: Mon Aug 24 21:20:28 EDT 2020

Fix Python check for doc, bash-completion, fonts, and icons options (#1308)

Fixes: cfc56fa6 ("Introduce configure options for bash-completion, doc, fonts, and icons")

--- a/configure.ac
+++ b/configure.ac
@@ -40,7 +40,7 @@
 AS_HELP_STRING([--disable-bash-completion], [Disable bash-completion])
 )
 AS_IF([test "x$enable_bash_completion" != xno], [
-    AS_IF([test HAVE_PYTHON = false], [
+    AS_IF([test "x$HAVE_PYTHON" = xfalse], [
         AC_MSG_WARN([Building bash-completion requires Python, but Python not found])
         enable_bash_completion=no
     ])
@@ -51,7 +51,7 @@
 AS_HELP_STRING([--disable-doc], [Disable documentation])
 )
 AS_IF([test "x$enable_doc" != xno], [
-    AS_IF([test HAVE_PYTHON = false], [
+    AS_IF([test "x$HAVE_PYTHON" = xfalse], [
         AC_MSG_WARN([Building documentation requires Python, but Python not found])
         enable_doc=no
     ])
@@ -62,7 +62,7 @@
 AS_HELP_STRING([--disable-fonts], [Disable fonts])
 )
 AS_IF([test "x$enable_fonts" != xno], [
-    AS_IF([test HAVE_PYTHON = false], [
+    AS_IF([test "x$HAVE_PYTHON" = xfalse], [
         AC_MSG_WARN([Building fonts require Python, but Python not found])
         enable_fonts=no
     ])
@@ -73,7 +73,7 @@
 AS_HELP_STRING([--disable-icons], [Disable icons])
 )
 AS_IF([test "x$enable_icons" != xno], [
-    AS_IF([test HAVE_PYTHON = false], [
+    AS_IF([test "x$HAVE_PYTHON" = xfalse], [
         AC_MSG_WARN([Building icons require Python, but Python not found])
         enable_icons=no
     ])