From patchwork Thu Oct 4 15:40:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: PATCH to acinclude.m4 to fix gas version detection Date: Thu, 04 Oct 2012 05:40:38 -0000 From: Jason Merrill X-Patchwork-Id: 189199 Message-Id: <506DADF6.7070905@redhat.com> To: Jakub Jelinek Cc: gcc-patches List Recent versions of binutils seem to have started putting ' around the version number in bfd/configure.in, which was confusing gcc configure. This patch allows us to detect the version number again. OK for trunk? commit f9ce75775fe4392ee92893c46e89e17dc31bb816 Author: Jason Merrill Date: Thu Oct 4 00:55:33 2012 -0400 * acinclude.m4 (_gcc_COMPUTE_GAS_VERSION): Handle ' around version number. * configure: Regenerate. diff --git a/gcc/acinclude.m4 b/gcc/acinclude.m4 index c24464b..d5eb4da 100644 --- a/gcc/acinclude.m4 +++ b/gcc/acinclude.m4 @@ -393,7 +393,7 @@ for f in $gcc_cv_as_bfd_srcdir/configure \ $gcc_cv_as_gas_srcdir/configure \ $gcc_cv_as_gas_srcdir/configure.in \ $gcc_cv_as_gas_srcdir/Makefile.in ; do - gcc_cv_gas_version=`sed -n -e 's/^[[ ]]*\(VERSION=[[0-9]]*\.[[0-9]]*.*\)/\1/p' < $f` + gcc_cv_gas_version=`sed -n -e "s/^[[ ]]*VERSION='*\([[0-9]]*\.[[0-9]]*[^']*\)'*/VERSION=\1/p" < $f` if test x$gcc_cv_gas_version != x; then break fi diff --git a/gcc/configure b/gcc/configure index 45bba8e..2d71f7d 100755 --- a/gcc/configure +++ b/gcc/configure @@ -21237,7 +21237,7 @@ for f in $gcc_cv_as_bfd_srcdir/configure \ $gcc_cv_as_gas_srcdir/configure \ $gcc_cv_as_gas_srcdir/configure.in \ $gcc_cv_as_gas_srcdir/Makefile.in ; do - gcc_cv_gas_version=`sed -n -e 's/^[ ]*\(VERSION=[0-9]*\.[0-9]*.*\)/\1/p' < $f` + gcc_cv_gas_version=`sed -n -e "s/^[[ ]]*VERSION='*\([[0-9]]*\.[[0-9]]*[^']*\)'*/VERSION=\1/p" < $f` if test x$gcc_cv_gas_version != x; then break fi