Skip to content

Commit 004b831

Browse files
author
wonder
committed
Check whether lex/flex and yacc/bison really exist. Fix for ticket #395.
git-svn-id: http://svn.osgeo.org/qgis/trunk@6105 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 0d1c15a commit 004b831

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

configure.in

+10
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,16 @@ dnl ---------------------------------------------------------------------------
296296
AC_PROG_YACC
297297
AM_PROG_LEX
298298

299+
# test whether they have been really found
300+
# (by default if not found autoconf will use a stub)
301+
302+
if test x"$LEX" != "xflex" -a x"$LEX" != "xlex" ; then
303+
AC_MSG_ERROR("Lex/Flex is not available!")
304+
fi
305+
306+
if test x"$YACC" != "xbison" -a x"$YACC" != "xyacc" -a x"$YACC" != "xbison -y" ; then
307+
AC_MSG_ERROR("Yacc/Bison is not available!")
308+
fi
299309

300310
dnl ---------------------------------------------------------------------------
301311
dnl SPIT plugin

0 commit comments

Comments
 (0)