aboutsummaryrefslogtreecommitdiff
path: root/gcc/configure.ac
diff options
context:
space:
mode:
authorBrian Sidebotham <brian.sidebotham@gmail.com>2007-08-23 17:42:08 +0000
committerDaniel Jacobowitz <drow@gcc.gnu.org>2007-08-23 17:42:08 +0000
commitddcd0f6f728225c8adddd71b2b9f4e2293e06bec (patch)
treefa8cf18a8165c60429742925fc1d314a1344142b /gcc/configure.ac
parent0646d8a3789b8fdc74c0172cf0738393d96c2b45 (diff)
downloadgcc-ddcd0f6f728225c8adddd71b2b9f4e2293e06bec.zip
gcc-ddcd0f6f728225c8adddd71b2b9f4e2293e06bec.tar.gz
gcc-ddcd0f6f728225c8adddd71b2b9f4e2293e06bec.tar.bz2
configure.ac (leb128): Modify sed statement to work with any binutils version string.
* configure.ac (leb128): Modify sed statement to work with any binutils version string. * configure: Regenerate From-SVN: r127745
Diffstat (limited to 'gcc/configure.ac')
-rw-r--r--gcc/configure.ac13
1 files changed, 10 insertions, 3 deletions
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 23683d1..b01f5c0 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -2133,9 +2133,16 @@ L2:],
as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
if echo "$as_ver" | grep GNU > /dev/null; then
changequote(,)dnl
- as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
- as_major=`echo $as_ver | sed 's/\..*//'`
- as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
+ as_vers=`echo $as_ver | sed -n \
+ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
+ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
+ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)$,\1,p' \
+ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
+ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
+ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ ].*$,\1,p' \
+ -e 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*\)[ -].*$,\1,p'`
+ as_major=`expr "$as_vers" : '\([0-9]*\)'`
+ as_minor=`expr "$as_vers" : '[0-9]*\.\([0-9]*\)'`
changequote([,])dnl
if test $as_major -eq 2 && test $as_minor -lt 11
then :