On Sun, Oct 31, 2010 at 11:54:04AM +0100, Jan Engelhardt wrote:
> Hi,
> 
> 
> While trying to utilize Autotools in a preexisting project that 
> previously just relied on Makefiles, I came across ylwrap failing for 
> some absurd, unknown reason. I couldn't help but run sh -x and debug it 
> piecewise.
> 
> So what's ultimately done is running flex inside a temp directory,
> 
>       flex /home/jengelh/code/iproute2/tc/emp_ematch_lex.l
> 
> It turns out flex produces a file called lex.ematch_.c, which is 
> something ylwrap so does not expect at all - it only checks for 
> what's in pairlist="yy.lex.c emp_ematch_lex.c".
> 
> I can use AM_LFLAGS = -o yy.lex.c to work around it, but that feels like 
> an ugly hack. What's up with flex here?

You added a prefix "ematch_" in your flex source file. ylwrap doesn't
like that. In fact, ylwrap doesn't like multiple parsers in one project,
at all... and it doesn't bother renaming flex-generated header files,
either.

-- 
Pippijn van Steenhoven

Attachment: signature.asc
Description: Digital signature

Reply via email to