From 0b419a4d47e7e67837eba4c6b9d52ef664938f9d Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 3 Aug 2013 10:37:06 +0100 Subject: Demand actual bison and flex, rather than yacc and lex We use bison/flex extensions, so we need those actual tools. --- tikzit/configure.ac | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'tikzit/configure.ac') diff --git a/tikzit/configure.ac b/tikzit/configure.ac index 8f791b6..99697c5 100644 --- a/tikzit/configure.ac +++ b/tikzit/configure.ac @@ -21,8 +21,19 @@ AC_PROG_OBJC([gcc clang objc objcc]) AC_LANG([Objective C]) AC_PROG_LEX -AM_PROG_LEX +AS_IF([$LEX --version 2>/dev/null | grep "^flex" >/dev/null 2>/dev/null],[], + [ + AC_MSG_WARN([flex not found; this may cause problems for developers]) + LEX="\${SHELL} \$(top_srcdir)/missing flex" + AC_SUBST([LEX_OUTPUT_ROOT], [lex.yy]) + AC_SUBST([LEXLIB], ['']) + ]) AC_PROG_YACC +AS_IF([$YACC --version 2>/dev/null | grep "^bison" >/dev/null 2>/dev/null],[], + [ + AC_MSG_WARN([bison not found; this may cause problems for developers]) + YACC="\${SHELL} \$(top_srcdir)/missing bison" + ]) # Checks for libraries. FOUNDATION_OBJCFLAGS=`eval "gnustep-config --objc-flags"` -- cgit v1.2.3