This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: gnu ld version check in libstdc++-v3/acinclude.m4
On Tue, 20 Feb 2007, Joseph S. Myers wrote:
> On Tue, 20 Feb 2007, Richard Guenther wrote:
>
> > ! sed -e 's/GNU ld version \(([^(]*)\)\? \?\([0-9.][0-9.]*\).*/\2/'`
>
> It might be a good idea to remove the check for the word "version" here -
> "version" is not part of the GNU Coding Standards --version output so
> might go away. Standard would be more like
>
> GNU ld (GNU Binutils 2.17.50 20070220) 2.17.50
>
> where the text after the last space is the real version number, and
> --with-pkgversion replaces the "GNU Binutils 2.17.50 20070220" with your
> name and version number for your binutils package. I simply didn't fix
> all pre-existing problems with --version output when adding
> --with-pkgversion support.
That would make the regexp look like
sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'
Richard.
--
Richard Guenther <rguenther@suse.de>
Novell / SUSE Labs
SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746 - GF: Markus Rex