Alexander Mai wrote:
> On Wed, Aug 29, 2001 at 12:02:13PM +0200, Danny Backx wrote:
>
>>>dell: {262} ./CVSMake
>>>./CVSMake running in /home/danny/Hungry/LessTif/sourceforge.net/lesstif
>>>configure.in:361: warning: AC_PROG_LEX invoked multiple times
>>>
>>Do we need to leave the explicit call to AC_PROG_LEX for older
>>versions of the auto-tools, or can it be removed ?
>>
>
> We seem to call AM_PROG_LEX currently.
> The automake 1.5 docs mention AC_PROG_LEX only, but when trying to
> use it I get:
>
> ./CVSMake running in /home/mai/compile/lesstif/lesstif
> configure.in: 435: automake requires `AM_PROG_LEX', not `AC_PROG_LEX'
>
> Seems the docs are again incomplete or wrong ...
>
> So we better keeps things as they are for a while ...
It comes because AM_PROG_LEX calls AC_DECL_YYTEXT, and in the new
version of autoconf these macros is the same. It does the right thing,
the resulting configure script is correct. I have sent an error-report
to the automake developers, but i don't think they will do any thing
about it. The call to AC_DECL_YYTEXT is needed for older versions of
autoconf, so they can't just leave it out. But i think it should be
possible to decide if AC_DECL_YYTEXT needed to be called based on the
version of autoconf. I think it is very annoying to get a warning even
if the configure.in is correct - not to mention the time wasted on
investigate the warning.
Karsten Jensen