bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] check if yacc is provided by bison


From: Yves-Gael Cheny ( irc hurdman_begin )
Subject: [PATCH] check if yacc is provided by bison
Date: Thu, 5 Feb 2015 20:02:04 +0100

From: "Yves-Gael Cheny ( irc hurdman_begin )" <hurd@r0b0t.fr>

A new proposition of patch to check if yacc is provided by bison

---
 configure.ac |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/configure.ac b/configure.ac
index efd542a..37bf432 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,6 +25,12 @@ dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_CPP
 AC_PROG_YACC
+
+yacc_is_bison=`yacc --version | head -n 1 | cut '-d ' -f1`
+[if [ x"$yacc_is_bison" != x"bison" ]; then ]
+       AC_MSG_ERROR([yacc is not provided by bison, check your alternative 
conf or your packages])
+[fi]
+
 AM_PROG_LEX
 AC_PROG_AWK
 AC_PROG_INSTALL
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]