Build:m4: Add AC_PROG_[FLEX/BISON] from the MESA source code.

This commit is contained in:
2025-01-06 20:59:45 -04:00
parent 597155a871
commit ec323da614
2 changed files with 36 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# This script was snagged from the MESA project, which uses an MIT license.
#
# Check for Bison.
#
# This macro verifies that Bison is installed. If successful, then
# 1) YACC is set to bison -y (to emulate YACC calls)
# 2) BISON is set to bison
#
AC_DEFUN([AC_PROG_BISON],
[AC_PROG_YACC()
if test "$YACC" != "bison -y"; then
AC_SUBST(BISON,[])
AC_MSG_WARN([bison not found])
else
AC_SUBST(BISON,[bison])
fi
])