Ralf Wildenhues wrote:
> > But this way, autoheader didn't recognise the AC_DEFINE_UNQUOTED
> > invocations, i.e. in the end, HAVE_INT8_T etc. were not present in
> > config.h.in.
> 
> Yes, but that's basically the only part that breaks this way.  And only
> one part of the AC_DEFINE_UNQUOTED, namely the part that needs to be
> traceable for autoheader: the AH_TEMPLATE call.  So you can split the
> macro in the same way that AC_CHECK_HEADERS uses.

Nice trick! To do most of the work in a "for ... in" loop, and only the
AH_TEMPLATE and AC_SUBST calls in an AC_FOREACH . With this trick, the
stdint.m4 expansion goes down to a reasonable size. Thanks!!

> Sure this is the plan; but you have to be able to rewrite the built-in
> macro into a shell function in the first place; this won't work for
> AH_TEMPLATE, only for the rest.

I see. Thanks for explaining.

Bruno


Reply via email to