Patchwork Small configure.ac PATCH for aix configury

login
register
mail settings
Submitter Jason Merrill
Date Oct. 11, 2012, 3:19 p.m.
Message ID <5076E378.5040002@redhat.com>
Download mbox | patch
Permalink /patch/190923/
State New
Headers show

Comments

Jason Merrill - Oct. 11, 2012, 3:19 p.m.
The check for .ref support on AIX used the wrong syntax, leading to 
broken output from autoconf.

Tested by configuring a cross-compiler, applying to trunk as obvious.

Patch

commit 885339b51d3221bcceabeaf9b2e5f39664ad947d
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Oct 11 09:01:49 2012 -0400

            * configure.ac (gcc_cv_as_aix_ref): Fix typo.
            * configure: Regenerate.

diff --git a/gcc/configure b/gcc/configure
index a7cc645..387de5b 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -25363,8 +25363,8 @@  if test "${gcc_cv_as_aix_ref+set}" = set; then :
 else
   gcc_cv_as_aix_ref=no
     if test $in_tree_gas = yes; then
-    if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
-  then :
+    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
+  then gcc_cv_as_aix_ref=yes
 fi
   elif test x$gcc_cv_as != x; then
     $as_echo '	.csect stuff[rw]
diff --git a/gcc/configure.ac b/gcc/configure.ac
index f57f3cd..b6c049b 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3893,7 +3893,7 @@  LCF0:
     case $target in
       *-*-aix*)
 	gcc_GAS_CHECK_FEATURE([.ref support],
-	  gcc_cv_as_aix_ref, [2.21.0],,
+	  gcc_cv_as_aix_ref, [2,21,0],,
 	  [	.csect stuff[[rw]]
 	     stuff:
 		.long 1