Re: AC_PROG_LEX doesn't notice when lex isn't installed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, Feb 23, 2005 at 03:51:06PM -0800, Paul Eggert wrote:
> No, because people typically ship lex's output as part of the source code.

I agree with Paul.  Let me explain that this means that lex is not called
unless you modify the lex source.

> AC_PROG_LEX
> case $LEX in
> :) AC_MSG_ERROR([No lex program found]);;
> esac

You also mentioned AC_PROG_YACC; the situation is a bit different there.
I suggest that you replace the call with:

AC_CHECK_PROGS(YACC, 'bison -y' byacc yacc, :)

and then you can again test for : to see whether yacc was found.

HTH,
	Stepan Kasal


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux