public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* non-portable construct in gcc configure script
@ 2003-05-16  1:07 Joe Buck
  2003-05-16  9:41 ` Eric Botcazou
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Joe Buck @ 2003-05-16  1:07 UTC (permalink / raw)
  To: gcc

In the test labeled

AC_MSG_CHECKING(linker read-only and read-write section mixing)

gcc/configure.in in 3.3 uses "grep -A1".  This feature is not in Solaris's
grep.  It's not in the HP-UX grep either.

The result is that the configure output looks like


checking linker read-only and read-write section mixing... grep: illegal option -- A
grep: illegal option -- 1
Usage: grep -hblcnsviw pattern file . . .

on Solaris 2.8.  The failure appears harmless, but I'm not sure.


^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: non-portable construct in gcc configure script
@ 2003-06-04  8:51 Bonzini
  2003-06-04 10:01 ` Eric Botcazou
  0 siblings, 1 reply; 19+ messages in thread
From: Bonzini @ 2003-06-04  8:51 UTC (permalink / raw)
  To: gcc, ebotcazou, zack, jbuck

> > Odd, ; as separator works fine for me with /usr/bin/sed on Solaris 8.
> > However, this is tangential.
> 
> Hum, you're right, your construct works on Solaris 2.5.1, 2.6 and 9 too.
> I probably messed up the expression within the curly brackets.

A very crippled sed is HP/UX's; semicolons inside -e might not work
there.  It is portable and simple to rewrite the command as

    sed -e '/myfoosect/!d' -e N

|_  _  _ __
|_)(_)| ),'
------- '---

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2003-06-07  7:34 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-05-16  1:07 non-portable construct in gcc configure script Joe Buck
2003-05-16  9:41 ` Eric Botcazou
2003-05-16 20:35 ` target/10663 (was Re: non-portable construct in gcc configure script) Kelley Cook
2003-05-24 21:37 ` non-portable construct in gcc configure script Eric Botcazou
2003-06-01 17:49   ` Zack Weinberg
2003-06-01 19:13     ` Eric Botcazou
2003-06-01 19:51       ` Zack Weinberg
2003-06-02 10:23         ` Eric Botcazou
2003-06-02 16:19           ` Zack Weinberg
2003-06-04  8:51 Bonzini
2003-06-04 10:01 ` Eric Botcazou
2003-06-04 16:05   ` Zack Weinberg
2003-06-05  8:55     ` Eric Botcazou
2003-06-05 16:49       ` Zack Weinberg
2003-06-05 20:48         ` Eric Botcazou
2003-06-05 20:49           ` Zack Weinberg
2003-06-05 21:02             ` Eric Botcazou
2003-06-05 21:49               ` Zack Weinberg
2003-06-07  7:46                 ` Eric Botcazou

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).