[ofa-general] [PATCH] opensm/configure.in: make lex/yacc presence mandatory

Yevgeny Kliteynik kliteyn at dev.mellanox.co.il
Mon Mar 10 08:01:16 PDT 2008


Hi Sasha,

When configure checks for Lex & Yacc, it uses AC_PROG_YACC & AC_PROG_LEX
macros, which only issue a warning message if a program wasn't found.
Make lex/yacc presence mandatory for configure completion.

Please apply to ofed_1_3 and master.

Signed-off-by:  Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
---
 opensm/configure.in |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/opensm/configure.in b/opensm/configure.in
index 84c1092..9a2ad1b 100644
--- a/opensm/configure.in
+++ b/opensm/configure.in
@@ -28,6 +28,18 @@ AC_PROG_MAKE_SET
 AC_PROG_YACC
 AC_PROG_LEX

+AC_CHECK_PROGS(_YACC_,$YACC,none)
+if test "$_YACC_" = "none"
+then
+  AC_MSG_ERROR([No bison/byacc/yacc found.])
+fi
+
+AC_CHECK_PROGS(_LEX_,$LEX,none)
+if test "$_LEX_" = "none"
+then
+  AC_MSG_ERROR([No flex/lex found.])
+fi
+
 dnl Checks for libraries
 AC_CHECK_LIB(pthread, pthread_mutex_init, [],
 	AC_MSG_ERROR([pthread_mutex_init() not found.  libosmcomp requires libpthread.]))
-- 
1.5.1.4




More information about the general mailing list