This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/configure problem
On Mon, Jan 12, 2004 at 04:12:36PM -0500, Phil Edwards wrote:
> On Mon, Jan 12, 2004 at 01:07:06PM -0800, Jim Wilson wrote:
> > On Sat, 2004-01-10 at 15:12, Richard Zidlicky wrote:
> > > +++ libstdc++-v3/configure 2004-01-10 23:57:12.000000000 +0100
> > > + ldver=`$LD --version 2>/dev/null | \
> > > + sed -n -e '1 s/GNU ld version \([0-9.][0-9.]*\).*/\1/p'`
> >
> > configure is a generated file. The file that needs fixed is aclocal.m4.
>
> acinclude.m4 actually, see
> http://gcc.gnu.org/onlinedocs/libstdc++/17_intro/configury.html#deps
rediffed, not yet tested again
--- libstdc++-v3/acinclude.m4.rz 2004-01-13 00:58:24.000000000 +0100
+++ libstdc++-v3/acinclude.m4 2004-01-13 00:59:55.000000000 +0100
@@ -273,8 +273,8 @@
# Start by getting the version number. I think the libtool test already
# does some of this, but throws away the result.
changequote(,)
- ldver=`$LD --version 2>/dev/null | head -1 | \
- sed -e 's/GNU ld version \([0-9.][0-9.]*\).*/\1/'`
+ ldver=`$LD --version 2>/dev/null | \
+ sed -n -e '1 s/GNU ld version \([0-9.][0-9.]*\).*/\1/p'`
changequote([,])
glibcxx_gnu_ld_version=`echo $ldver | \
$AWK -F. '{ if (NF<3) [$]3=0; print ([$]1*100+[$]2)*100+[$]3 }'`