From 193c46de9d0a53a5d07ea7ff07aa9162afa0508c Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Thu, 22 Oct 2015 16:11:18 -0400 Subject: [PATCH] Only compare "bison -y" to the basename of YACC variable MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In the event that the YACC variable is set to a full path this test fail even if it should not. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index df5f54a5e..10a534c36 100644 --- a/configure.ac +++ b/configure.ac @@ -704,7 +704,7 @@ AM_CONDITIONAL([BUILD_LIB_TESTPOINT], [test x$build_lib_testpoint = xyes]) AM_CONDITIONAL([BUILD_LIB_UST_CONSUMER], [test x$build_lib_ust_consumer = xyes]) if test ! -f "$srcdir/src/lib/lttng-ctl/filter/filter-parser.h"; then - if test x"$YACC" != "xbison -y"; then + if test x"$(basename "$YACC")" != "xbison -y"; then AC_MSG_ERROR([[bison not found and is required when building from git. Please install bison]]) fi -- 2.34.1