[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: flex and bison in autoconf
From: |
Andrejs Cainikovs |
Subject: |
Re: flex and bison in autoconf |
Date: |
Fri, 29 Nov 2013 14:37:51 +0100 |
Hi,
> AC_PROG_YACC
> #if test x"$YACC" != x"yes"; then
> # AC_MSG_ERROR([Please install bison before installing.])
> #fi
> AC_PROG_LEX
> if test "x$LEX" != xflex; then
> AC_MSG_ERROR([Please install flex before installing.])
> fi
...
>
> The problem is, while running ./configure built from this file, do check
> existence of YACC (as bison, when the 3 line following AC_PROG_YACC, it
> is showing unary error), but is not exiting once error is detected. As,
> the run, it shows:
> checking for bison... no
> checking for byacc... no
Obviously, your check is wrong, YACC is never set to 'yes'. Have a
peek into autoconf manual to figure out by yourself:
http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Particular-Programs.html#Particular-Programs
Regards,
Andrejs Cainikovs.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: flex and bison in autoconf,
Andrejs Cainikovs <=