[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Arrays in configure.ac
From: |
Sam Silla |
Subject: |
Re: Arrays in configure.ac |
Date: |
Tue, 3 Aug 2010 14:45:10 -0700 |
On Sun, Aug 1, 2010 at 9:38 AM, Matěj Týč <address@hidden> wrote:
> On Thu, 2010-07-08 at 21:48 -0700, Sam Silla wrote:
> > Hello,
> >
> > I would like to create an array of values to use in configure.ac and am
> > unsure what the best way to accomplish this is. I was wondering if
> Autoconf
> > comes with native support for constructing and iterating through arrays.
> >
> > Thanks,
> >
> > Sammy
>
> There is actually quite nice array-like support in m4, just take a look
> here:
>
> http://www.gnu.org/software/hello/manual/autoconf/Looping-constructs.html#Looping-constructs
> m4 macros are expanded at autoreconf time, shell arrays are used at
> configure time, so make sure whether you can use those handy m4 macros.
>
> Matej
>
>
Thanks. I wish I knew about this earlier. I ended up using a range of
variables as a makeshift array. But in the future I will go back and revise
it according to these macros.
Regards,
Sam