From b4c49f5acf030552bcde564eb53d04ea521c7641 Mon Sep 17 00:00:00 2001 From: Jonathan Lebon Date: Tue, 7 Jun 2016 15:08:16 -0400 Subject: [PATCH] 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 --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e5bd8c7e..d1b732f7 100644 --- a/configure.ac +++ b/configure.ac @@ -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_PROGS(YACC, 'bison -y', :) -AS_IF([test "$YACC" = :], [AC_MSG_ERROR([bison not found but required])]) +AS_IF([test "$YACC" != "bison -y"], [AC_MSG_ERROR([bison not found but required])]) PKG_PROG_PKG_CONFIG