non-portable construct in gcc configure script

Eric Botcazou ebotcazou@libertysurf.fr
Sat May 24 21:37:00 GMT 2003


> 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.

Does the attached patch cure it? The construct works on the 5 Solaris 
versions I have access to, but I can't directly test the configure check 
because it dies earlier with the native Sun tools.

-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr10663-1.diff
Type: text/x-diff
Size: 732 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20030524/8766bde5/attachment.bin>


More information about the Gcc mailing list