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: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: Joe Buck <jbuck at synopsys dot com>,gcc at gcc dot gnu dot org
- Date: Sun, 1 Jun 2003 21:12:45 +0200
- Subject: Re: non-portable construct in gcc configure script
- References: <20030515180723.A1418@synopsys.com> <200305242220.12082.ebotcazou@libertysurf.fr> <87of1hhene.fsf@egil.codesourcery.com>
> 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).
I've already posted a patch, not yet reviewed:
http://gcc.gnu.org/ml/gcc-patches/2003-05/msg02277.html
--
Eric Botcazou