This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: non-portable construct in gcc configure script
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: Joe Buck <jbuck at synopsys dot com>, gcc at gcc dot gnu dot org
- Date: Sun, 01 Jun 2003 12:51:10 -0700
- Subject: Re: non-portable construct in gcc configure script
- References: <20030515180723.A1418@synopsys.com><200305242220.12082.ebotcazou@libertysurf.fr><87of1hhene.fsf@egil.codesourcery.com><200306012111.19930.ebotcazou@libertysurf.fr>
Eric Botcazou <ebotcazou@libertysurf.fr> writes:
>> That looks like a sensible way to do it.
>
> Thanks for your answer!
>
>> > - | grep -A1 myfoosect`
>> > + | sed -n '/.*myfoosect.*/{
>> > + N
>> > + p
>> > + }'`
>>
>> Suggest '/myfoosect/{; N; p; }'
>
> Yes, the '.*' are clearly superfluous. But the ';' as separator doesn't work
> with Solaris sed so I resorted to what the Solaris manual says (and which
> works with GNU sed too).
Odd, ; as separator works fine for me with /usr/bin/sed on Solaris 8.
However, this is tangential.
> I've already posted a patch, not yet reviewed:
> http://gcc.gnu.org/ml/gcc-patches/2003-05/msg02277.html
I'll approve that patch.
zw