Hello Peter,
* Peter Volkov wrote on Wed, Sep 30, 2009 at 07:07:03PM CEST:
> Does autoconf --trace MACROS works for AC_* marcoses only?
No, but autoconf needs to know what a macro is; IOW, it needs to see a
macro definition somewhere.
> I've tried to
> use it to find AM_GNU_GETTEXT_VERSION macro
>
> > "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes:
>
> Lars> Actually, I was informed by John W. Eaton through private email
> Lars> that the 'in "$@"' part is the default and can therefore be
> Lars> dropped. My opinion on this (which is influenced by my personal
> Lars> sh-script
> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes:
Lars> You can 'shift' out the dummy at once, though, and leave out the
Lars> case for it (I assume you'll have a switch/case inside the for
Lars> loop), but then you must use the ${1+"$@"} approach.
That's what I meant, dummy could be anythi
On Wed, Mar 08, 2000 at 11:31:27AM +0100, Akim Demaille wrote:
: Lars> I think the dummy-approach is safest. I didn't look into which
: Lars> context this was to be used in, but I'd probably name it
: Lars> _ac_dummy or something like that...
:
: `dummy' is just a string here, there is no proble
> "Lars" == Lars J Aas <[EMAIL PROTECTED]> writes:
Lars> Actually, I was informed by John W. Eaton through private email
Lars> that the 'in "$@"' part is the default and can therefore be
Lars> dropped. My opinion on this (which is influenced by my personal
Lars> sh-scripting conventions) is
On Mar 8, 2000, "Lars J. Aas" <[EMAIL PROTECTED]> wrote:
> On Wed, Mar 08, 2000 at 11:09:07AM +0100, Akim Demaille wrote:
> : | eval set $list
> : | for elt in "$@"; do
> : | echo $elt
> : | done
> : |
> : | So there. Now you won't get any more suggestions from me :)
> :
> : I agree, this i
On Wed, Mar 08, 2000 at 11:09:07AM +0100, Akim Demaille wrote:
: | eval set $list
: | for elt in "$@"; do
: | echo $elt
: | done
: |
: | So there. Now you won't get any more suggestions from me :)
:
: I agree, this is perfect.
Actually, I was informed by John W. Eaton through private email t
On Mar 8, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
> Now the question is, do we want to pollute
> autoconf.sh, a maintainer tool, with portability issues?
Yes, at least in this case.
> If yes, we need to
> eval set dummy $list
> shift
So be it. It's simple enough.
--
Alexandre Oliva
| On Tue, Mar 07, 2000 at 11:50:46AM +0100, Akim Demaille wrote:
| : | eval set $list
| : | while test $# -gt 0; do
| : | echo $1
| : | shift
| : | done
| :
| : Excellent, thanks! I think this is the best means to handle the list
| : here.
|
| The most elegant solution I found (can't give
On Tue, Mar 07, 2000 at 11:50:46AM +0100, Akim Demaille wrote:
: | eval set $list
: | while test $# -gt 0; do
: | echo $1
: | shift
: | done
:
: Excellent, thanks! I think this is the best means to handle the list
: here.
The most elegant solution I found (can't give it a rest already! ;) i
| On Tue, Mar 07, 2000 at 10:37:29AM +0100, Akim Demaille wrote:
| : In fact, can someone teach me (point me to a good example) how to
| : split strings such as
| :
| : list="'first element' 'second' 'third one'"
| : for elt in $list
|
| I managed to make this work:
|
| eval set $list
| while
On Tue, Mar 07, 2000 at 10:37:29AM +0100, Akim Demaille wrote:
: In fact, can someone teach me (point me to a good example) how to
: split strings such as
:
: list="'first element' 'second' 'third one'"
: for elt in $list
This too:
eval "for elt in $list; do echo \"\$elt\"; done"
Lars J
Akim Demaille <[EMAIL PROTECTED]> writes:
> I was also thinking of something like ${}@ and the like, this would
> allow to use something way simpler than balanced [ ] to parse these
> guys. I guess one can split() in Perl with a separator such as `:'?
Yup.
--
Russ Allbery ([EMAIL PROT
On Tue, Mar 07, 2000 at 10:37:29AM +0100, Akim Demaille wrote:
: In fact, can someone teach me (point me to a good example) how to
: split strings such as
:
: list="'first element' 'second' 'third one'"
: for elt in $list
I managed to make this work:
eval set $list
while test $# -gt 0; do
ech
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:
>> I have implemented support for $.@, which is [$1].[$2]. etc. (`.'
>> is the separator, defaults to comma), and for $.*, which is
>> smash($1).smash($2). etc., where `.' defaults to `:', and `smash'
>> singles out all the white sp
On Feb 29, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
> Gosh, it feels good when m4 finally agrees to do what you wanted to
> :-)
:-)
> I have implemented support for $.@, which is [$1].[$2]. etc. (`.' is
> the separator, defaults to comma), and for $.*, which is
> smash($1).smash($2). etc.
Yeehaa, Yahoo, Yipee and the like!
Well, there are some significant steps forward since yesterday :)
Gosh, it feels good when m4 finally agrees to do what you wanted to
:-)
I have implemented support for $.@, which is [$1].[$2]. etc. (`.' is
the separator, defaults to comma), and for $.*, whic
| On Feb 15, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
| > $ autoconf --trace AC_SUBST:$f:$l:$0:$1
|
| > => configure.in:42:AC_SUBST:prefix
| Sounds good to me. But are the `:' separators mandatory, or can we
| just choose any expansion to a given macro? For example, we could
| m
On Feb 15, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
> $ autoconf --trace AC_SUBST:$f:$l:$0:$1
> => configure.in:42:AC_SUBST:prefix
Sounds good to me. But are the `:' separators mandatory, or can we
just choose any expansion to a given macro? For example, we could
make it like th
|From: Akim Demaille <[EMAIL PROTECTED]>
|Date: 14 Feb 2000 10:43:04 +0100
|
| s/^m4trace:\([^:]*\):\([^:]*\): -[0-9]*- \([^(]*(\)\(.*\)$/\3[\1], [\2], \4/
|
| This looks like a good idea to me. I would improve it slightly by
| making it more specific, e.g.
|
| s/^m4trace:\([^:][^
> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:
Alexandre> On Feb 14, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
>> - every macro becomes extremely picky on the quotes, since there is
>> embedded code which really depends upon [ and ].
Alexandre> Can't this be done in a way
> "Olly" == Olly Betts <[EMAIL PROTECTED]> writes:
Olly> One thought: If this tracing is for use when automake is being
Olly> used, you can rely on perl being available.
As reported by Alexandre, some simple output is sometimes needed by
shell scripts. And in most cases we just don't need t
On Feb 14, 2000, Akim Demaille <[EMAIL PROTECTED]> wrote:
> - every macro becomes extremely picky on the quotes, since there is
> embedded code which really depends upon [ and ].
Can't this be done in a way that only traced macros become that picky?
This would allow for at least a soft transit
On Feb 14, 2000, [EMAIL PROTECTED] (Olly Betts) wrote:
> One thought: If this tracing is for use when automake is being used,
> you can rely on perl being available.
It's not only for automake, but it is sensible to require perl to
properly match brackets. This can't be done with regular expres
In article <[EMAIL PROTECTED]>, Akim Demaille wrote:
>So we *have* to deal with m4's --trace output. Part of the problem is
>that we have to parse balanced [ and ], ( and ) etc. and I must say I
>don't know how to do that in sh and Co (I'd be happy that someone
>teach me) (well, I don't mean coun
From: Akim Demaille <[EMAIL PROTECTED]>
Date: 14 Feb 2000 10:43:04 +0100
s/^m4trace:\([^:]*\):\([^:]*\): -[0-9]*- \([^(]*(\)\(.*\)$/\3[\1], [\2], \4/
This looks like a good idea to me. I would improve it slightly by
making it more specific, e.g.
s/^m4trace:\([^:][^:]*\):\([0-9][0-9]*
26 matches
Mail list logo