diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-30 04:57:42 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-30 04:57:42 +0000 |
commit | 98e1bdf42c46e0c54e7a414d55c5d391e0b4e1bc (patch) | |
tree | 65c07bf938b22eae1e165ccf62e2e9d38d8672b7 /gcc/configure.in | |
parent | 7c5ab81c6bfa87fe32f5f61fc1931ba1f113299b (diff) | |
download | gcc-98e1bdf42c46e0c54e7a414d55c5d391e0b4e1bc.tar.gz |
* configure.in: Do not assume that gas's version number is the
last thing on the first line of as --version output.
* configure: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46629 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure.in')
-rw-r--r-- | gcc/configure.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/configure.in b/gcc/configure.in index 89cc802e53f..2e32cf1ed9e 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -1382,9 +1382,9 @@ EOF # arbitrary sections are supported and try the test. as_ver=`$gcc_cv_as --version 2>/dev/null | head -1` if echo "$as_ver" | grep GNU > /dev/null; then - as_ver=`echo $as_ver | sed -e 's/.* //'` - as_major=`echo $as_ver | sed 's/\..*//'` changequote(,)dnl + as_ver=`echo $as_ver | sed -e 's/.* \([0-9.][0-9.]*\) .*/\1/'` + as_major=`echo $as_ver | sed 's/\..*//'` as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'` changequote([,])dnl if test $as_major -eq 2 -a $as_minor -lt 11; then |