configure.ac: properly check for bison

The AC_PROG_YACC already does the checking for us, so we don't need to
use AC_CHECK_PROGS (which wasn't working anyway because autoconf didn't
run the check thinking it was cached already from the earlier
AC_PROC_YACC, so we didn't get the default ":" value)

Closes: #325
Approved by: cgwalters
This commit is contained in:
Jonathan Lebon 2016-06-07 15:08:16 -04:00 committed by Atomic Bot
parent 2240d1108e
commit b4c49f5acf
1 changed files with 1 additions and 2 deletions

View File

@ -38,8 +38,7 @@ GLIB_TESTS
AC_CHECK_HEADER([sys/xattr.h],,[AC_MSG_ERROR([You must have sys/xattr.h from glibc])]) AC_CHECK_HEADER([sys/xattr.h],,[AC_MSG_ERROR([You must have sys/xattr.h from glibc])])
AC_CHECK_PROGS(YACC, 'bison -y', :) AS_IF([test "$YACC" != "bison -y"], [AC_MSG_ERROR([bison not found but required])])
AS_IF([test "$YACC" = :], [AC_MSG_ERROR([bison not found but required])])
PKG_PROG_PKG_CONFIG PKG_PROG_PKG_CONFIG