aboutsummaryrefslogtreecommitdiff
path: root/libgomp/configure
diff options
context:
space:
mode:
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>2009-09-30 00:43:28 +0000
committerRalf Wildenhues <rwild@gcc.gnu.org>2009-09-30 00:43:28 +0000
commitc82852f70695b75a246088321e8fea319d1fc069 (patch)
tree12dea2c8068e54333cb1a2b8698238283ca1fa79 /libgomp/configure
parentd3666db42fe882dade6d21b31e29839940b80e74 (diff)
downloadgcc-c82852f70695b75a246088321e8fea319d1fc069.zip
gcc-c82852f70695b75a246088321e8fea319d1fc069.tar.gz
gcc-c82852f70695b75a246088321e8fea319d1fc069.tar.bz2
sed and head portability fixes in ld version check.
libstdc++-v3/: PR libstdc++/38923 * acinclude.m4 (GLIBCXX_CHECK_LINKER_FEATURES): Avoid 'head', use sed script portable to Solaris /bin/sed for extracting ld version. * configure: Regenerate. libgomp/: * acinclude.m4 (LIBGOMP_CHECK_LINKER_FEATURES): Avoid 'head', use sed script portable to Solaris /bin/sed for extracting ld version. * configure: Regenerate. From-SVN: r152315
Diffstat (limited to 'libgomp/configure')
-rwxr-xr-xlibgomp/configure4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgomp/configure b/libgomp/configure
index 6e92fe9..d138f68 100755
--- a/libgomp/configure
+++ b/libgomp/configure
@@ -15692,8 +15692,8 @@ with_gnu_ld=$lt_cv_prog_gnu_ld
libgomp_ld_is_gold=yes
fi
- ldver=`$LD --version 2>/dev/null | head -1 | \
- sed -e 's/GNU \(go\)\{0,1\}ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\4/'`
+ ldver=`$LD --version 2>/dev/null |
+ sed -e 's/GNU g*o*ld v*e*r*s*i*o*n* *\(([^)]*)* *\) \([0-9.][0-9.]*\).*/\2/; q'`
libgomp_gnu_ld_version=`echo $ldver | \
$AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`