On Fri, Mar 18, 2005 at 09:03:52AM +0100, Ralf Wildenhues wrote:
> for flag in -foo -bar
> do
>   AT_SETUP(test with flag $flag.)
> 
>   AT_DATA(file.cc, ...)
>   AT_CHECK($compile $flag ..)
>   AT_CLEANUP
> done
> 
> except that AT_SETUP does not to work inside a shell compound command.
> 
> Alternatively, I would be happy as well with any other means which
> achieves almost the same effect.  Like:

I suggest using an m4sugar looping construct or writing a macro to abstract the
common bits.  AT_CHECK_AT_TITLE_CHAR and its underlying stack in autotest.at
demonstrate the latter approach.  Does one of those techniques meet your needs?


_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf

Reply via email to