autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multiline output variables.


From: Stepan Kasal
Subject: Re: multiline output variables.
Date: Tue, 8 Feb 2005 08:35:20 +0100
User-agent: Mutt/1.4.1i

Hi,

> >     I instead just ask `test ${#ac_delim} -gt 1000', which gives six
> > iterations with the current set up.
> 
> ${#<var>} isn't portable. I think this is:
>   _len=`expr "${ac_delim}" : ".*"`

but this is ugly.  Something like:

for f in 0 1 2 3 4 5 6; do
  test $f = 6 && AC_MSG_ERROR(...)
  ...
done

shoule be the easiest solution.  (I don't understand why my original
proposal was so complicated; sorry for that.)

Stepan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]