[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generating file lists
From: |
NightStrike |
Subject: |
Re: Generating file lists |
Date: |
Fri, 16 Oct 2009 13:24:36 -0400 |
On Fri, Oct 16, 2009 at 1:22 PM, Ralf Wildenhues <address@hidden> wrote:
> Hello,
>
> * NightStrike wrote on Fri, Oct 16, 2009 at 07:17:49PM CEST:
>> I want to store a list of files determined at configure time into
>> shell variable, which then gets substituted into a Makefile.in. So, I
>> did this:
>>
>> SYSHEAD_LIST=$srcdir/include/sys/*.h
>> AC_SUBST([SYSHEAD_LIST])
>>
>> That didn't work as expected, though. It just substituted the string
>> literal.
>>
>> How do I get the desired effect?
>
> Either
> SYSHEAD_LIST=`echo $srcdir/include/sys/*.h`
>
> or
> set x $srcdir/include/sys/*.h
> shift
> SYSHEAD_LIST="$*"
Which is more autoconfy-correct?
> This is purely a shell question.
Well, doing it my way worked fine on the command line, both in bash
and sh, so I was confused.