commit 5486bae1db46341680ed9278379c2707794e033a from: Thomas Adam via: Thomas Adam date: Wed Mar 15 22:00:29 2023 UTC portable: template: allow for YACC As with the main got project, allow for template to use the YACC environment variable -- either directly, or indirectly if set via ./configure in the main got project. commit - 62f363ce7bf30bd7855ef9d7a54628f64322926e commit + 5486bae1db46341680ed9278379c2707794e033a blob - 2970357a4c1e353d359696deeb168b0f20d39dad blob + b6a78ab567e1b010a38fbb130b5682c837986041 --- template/configure.ac +++ template/configure.ac @@ -20,8 +20,14 @@ SAVED_CFLAGS="$CFLAGS" test -n "$HOSTCC" && export CC="$HOSTCC" test -n "$HOSTCFLAGS" && export CFLAGS="$SAVED_CFLAGS $HOSTCFLAGS" +YACC_OVERRIDE=yes + AC_PROG_CC -AC_PROG_YACC + +if test -z "$YACC"; then + YACC_OVERRIDE="no" + AC_PROG_YACC +fi PKG_PROG_PKG_CONFIG PKG_CHECK_MODULES(LIBBSD, libbsd-overlay, [