OSDN Git Service

* configure.in: Do not assume that gas's version number is the
[pf3gnuchains/gcc-fork.git] / gcc / configure
index 094f2d0..9ddc44f 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