configure.in: Do not assume that gas's version number is the last thing on the first...
authorZack Weinberg <zack@codesourcery.com>
Tue, 30 Oct 2001 04:57:42 +0000 (04:57 +0000)
committerZack Weinberg <zack@gcc.gnu.org>
Tue, 30 Oct 2001 04:57:42 +0000 (04:57 +0000)
* configure.in: Do not assume that gas's version number is the
last thing on the first line of as --version output.
* configure: Regenerate.

From-SVN: r46629

gcc/ChangeLog
gcc/configure
gcc/configure.in

index 54698ba7d91978c09305dd4afd3b1c0f824b91ce..c9cd68e5a86e949d71515cef07de99857c4e1008 100644 (file)
@@ -1,5 +1,9 @@
 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
 
+       * configure.in: Do not assume that gas's version number is the
+       last thing on the first line of as --version output.
+       * configure: Regenerate.
+       
        * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
        MT_WARNING, MT_ERROR, MT_FATAL.
        (main): Call gcc_init_libintl.
index 094f2d0f3e6770c10909f5622988fd901cc60171..9ddc44ff67f18b4c34167186b56036f5fe467392 100755 (executable)
@@ -7207,7 +7207,7 @@ 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_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/'`
                        if test $as_major -eq 2 -a $as_minor -lt 11; then
index 89cc802e53f3a7e03d09bfa75c5bb7371156659f..2e32cf1ed9ecc7a46280d94f4844be2e19ffbaa6 100644 (file)
@@ -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