]> xenbits.xensource.com Git - xen.git/commitdiff
tools/configure: add bison as mandatory
authorRoger Pau Monne <roger.pau@citrix.com>
Fri, 5 Feb 2021 11:53:27 +0000 (12:53 +0100)
committerIan Jackson <iwj@xenproject.org>
Wed, 10 Feb 2021 11:11:55 +0000 (11:11 +0000)
Bison is now mandatory when the pvshim build is enabled in order to
generate the Kconfig.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
tools/configure.ac

index 3a3e7b4b2baa29e2af7db4cc2e46c474e0c6bb2a..6b611deb13bb0b9e06cce377af27e88317c1e8a8 100644 (file)
@@ -309,7 +309,6 @@ AC_ARG_VAR([AWK], [Path to awk tool])
 AC_PROG_CC
 AC_PROG_MAKE_SET
 AC_PROG_INSTALL
-AC_PATH_PROG([BISON], [bison])
 AC_PATH_PROG([FLEX], [flex])
 AX_PATH_PROG_OR_FAIL([PERL], [perl])
 AX_PATH_PROG_OR_FAIL([AWK], [awk])
@@ -517,6 +516,11 @@ AC_ARG_ENABLE([pvshim],
     esac
 ])
 AC_SUBST(pvshim)
+AS_IF([test "x$pvshim" = "xy"], [
+    AX_PATH_PROG_OR_FAIL([BISON], [bison])
+], [
+    AC_PATH_PROG([BISON], [bison])
+])
 
 AX_FIND_HEADER([INCLUDE_ENDIAN_H], [endian.h sys/endian.h])