Honor BISON passed into configure

Desktop / LibreOffice - Stephan Bergmann [redhat.com] - 6 December 2019 18:20 EST

...and require new-enough Bison for --enable-compiler-plugins to not generate bogus loplugin:external warnings in Bison boilerplate code. (As happend for me on macOS where /usr/bin/bison is version 2.3. Not sure which versions exactly are too old, but at least 3.4.1 is known good. If other versions newer than 2.3 turn out to be problematic too, the configure.ac check will need to be adapted.)

No idea why there need to be three places across solenv/gbuild/ that set gb_YACC (to the same bison in each case), but leave that to be cleaned up later.

Change-Id: I01d8219726f8df7895631b817866207327367759 Reviewed-on: https://gerrit.libreoffice.org/84650

0a803c0a41f4 Honor BISON passed into configure
config_host.mk.in | 1 +
configure.ac | 20 +++++++++++++++++---
solenv/gbuild/LinkTarget.mk | 2 +-
solenv/gbuild/platform/com_GCC_defs.mk | 2 +-
solenv/gbuild/platform/com_MSC_defs.mk | 2 +-
5 files changed, 21 insertions(+), 6 deletions(-)

Upstream: cgit.freedesktop.org


  • Share