From b68b85224d38fe9c1f6e10af338e1ff2519e689b Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 1 Oct 2012 13:11:30 -0700 Subject: build: Use AX_PROG_BISON No one tests yacc/byacc. Let's just request bison specifically. Tested-by: Andreas Boll Reviewed-by: Eric Anholt Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=46815 --- configure.ac | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f338e20c7e5..70599e1d33e 100644 --- a/configure.ac +++ b/configure.ac @@ -56,13 +56,9 @@ AC_PROG_MKDIR_P LT_PREREQ([2.2]) LT_INIT([disable-static]) -AC_PROG_YACC -AC_PATH_PROG([YACC_INST], $YACC) -if test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.c"; then - if test -z "$YACC_INST"; then - AC_MSG_ERROR([yacc not found - unable to compile glcpp-parse.y]) - fi -fi +AX_PROG_BISON([], + AS_IF([test ! -f "$srcdir/src/glsl/glcpp/glcpp-parse.c"] + [AC_MSG_ERROR([bison not found - unable to compile glcpp-parse.y])])) AC_PROG_LEX AC_PATH_PROG([PERL], [perl]) -- cgit v1.2.3