The one place for your designs
To upload designs, you'll need to enable LFS. More information
I propose to change
if test "x$LEX" == "x"; then
if test "x$LEX" != "xflex"; then
in the unlikely but possible case where lex but but not flex is available as recommended in AC_PROG_LEX documentation.