]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
autoconf: remove " -link" and ")" from xlf output
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Jan 2012 19:22:25 +0000 (11:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Jan 2012 19:22:46 +0000 (11:22 -0800)
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
Also remove " -link" and trailing ")" from xlf output.
Problem and fix reported by Thomas Jahns in
<http://lists.gnu.org/archive/html/bug-autoconf/2012-01/msg00000.html>.

ChangeLog
lib/autoconf/fortran.m4

index 0826f00dd661dcd912a430c2b499913d4353b935..9ab80680fbb85ff55423cb9554a5eef131825980 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-01-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       autoconf: remove " -link" and ")" from xlf output
+       * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT):
+       Also remove " -link" and trailing ")" from xlf output.
+       Problem and fix reported by Thomas Jahns in
+       <http://lists.gnu.org/archive/html/bug-autoconf/2012-01/msg00000.html>.
+
 2011-12-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        configure: will re-execute with $CONFIG_SHELL, if it's set
index e630f27658472c4d281fc79e0edd328454d708cf..94eeef67a8286a9f35f89129b8a4f73c6665f94e 100644 (file)
@@ -528,9 +528,16 @@ ac_[]_AC_LANG_ABBREV[]_v_output="`echo $ac_[]_AC_LANG_ABBREV[]_v_output |
 #        that detects unbalanced quotes in FLIBS should be implemented
 #        and (ugh) tested at some point.
 case $ac_[]_AC_LANG_ABBREV[]_v_output in
-  # If we are using xlf then replace all the commas with spaces.
+  # With xlf replace commas with spaces,
+  # and remove "-link" and closing parenthesis.
   *xlfentry*)
-    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/,/ /g'` ;;
+    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output |
+      sed '
+        s/,/ /g
+        s/ -link / /g
+        s/) *$//
+      '
+    ` ;;
 
   # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
   # $LIBS confuse us, and the libraries appear later in the output anyway).