Re: Issue with AM_PROG_LEX

"Zack Weinberg" <[email protected]>
Newsgroups gmane.comp.sysutils.automake.general
Message-ID <[email protected]>
On Mon, Jul 31, 2023, at 7:37 AM, FX Coudert wrote:
> Hello,
>
> I have a configure.ac file that calls AM_PROG_LEX. This now generates warnings:
...
> I am not sure I can actually fix those: AM_PROG_LEX does not seem to 
> accept an argument. Probably it should, and pass it down to AC_PROG_LEX 
> if provided?

Yes, this does ultimately need to be fixed in automake, but in the meantime you *may* be able to work around it by writing

AC_PROG_LEX([noyywrap])
AM_PROG_LEX

(Change "noyywrap" to "yywrap" if you actually need yywrap from libl.a.)

This will work iff AM_PROG_LEX uses AC_REQUIRE to invoke AC_PROG_LEX. I'm writing this on my phone so I can't easily check.

zw
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.