]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
bug-fix for AC_{FC,F77}_LIBRARY_LDFLAGS with Intel ifc
authorSteven G. Johnson <stevenj@alum.mit.edu>
Thu, 9 Oct 2003 05:32:25 +0000 (05:32 +0000)
committerSteven G. Johnson <stevenj@alum.mit.edu>
Thu, 9 Oct 2003 05:32:25 +0000 (05:32 +0000)
ChangeLog
lib/autoconf/fortran.m4

index 02cccc18190124682046199b0f64c709c5dd5941..048bdd9e5a50590e8d5f7f2035e93d9ab45a1c2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
+
+       * lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
+       -mGLOB_options_string stuff for Intel ifc, which can cause
+       _AC_FC_LIBRARY_LDFLAGS to fail.  Use (faster) case for
+       pattern-matching instead of grep.
+
 2003-10-08  Steven G. Johnson  <stevenj@alum.mit.edu>
 
        * doc/autoconf.texi: Document new FC Fortran macros.
index 02131d0deb086cb1071f260b8618886a6a2264a0..897519d8b9785a8b072783c4dd30b187a465a7bb 100644 (file)
@@ -523,11 +523,6 @@ _AC_LANG_PREFIX[]FLAGS=$ac_save_FFLAGS
 
 rm -f conftest*
 
-# If we are using xlf then replace all the commas with spaces.
-if echo $ac_[]_AC_LANG_ABBREV[]_v_output | grep xlfentry >/dev/null 2>&1; then
-  ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/,/ /g'`
-fi
-
 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
 # /foo, /bar, and /baz are search directories for the Fortran linker.
 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
@@ -535,12 +530,23 @@ ac_[]_AC_LANG_ABBREV[]_v_output="`echo $ac_[]_AC_LANG_ABBREV[]_v_output |
        grep 'LPATH is:' |
        sed 's,.*LPATH is\(: *[[^ ]]*\).*,\1,;s,: */, -L/,g'` $ac_[]_AC_LANG_ABBREV[]_v_output"
 
-# If we are using Cray Fortran then delete quotes.
-# Use "\"" instead of '"' for font-lock-mode.
-# FIXME: a more general fix for quoted arguments with spaces?
-if echo $ac_[]_AC_LANG_ABBREV[]_v_output | grep cft90 >/dev/null 2>&1; then
-  ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed "s/\"//g"`
-fi[]dnl
+case $ac_[]_AC_LANG_ABBREV[]_v_output in
+  # If we are using xlf then replace all the commas with spaces.
+  *xlfentry*)
+    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/,/ /g'` ;;
+
+  # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
+  # $LIBS confuse us, and the libraries appear later in the output anyway).
+  *mGLOB_options_string*)
+    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed 's/\"-mGLOB[[^\"]]*\"/ /g'` ;;
+
+  # If we are using Cray Fortran then delete quotes.
+  # Use "\"" instead of '"' for font-lock-mode.
+  # FIXME: a more general fix for quoted arguments with spaces?
+  *cft90*)
+    ac_[]_AC_LANG_ABBREV[]_v_output=`echo $ac_[]_AC_LANG_ABBREV[]_v_output | sed "s/\"//g"` ;;
+esac
+
 ])# _AC_PROG_FC_V_OUTPUT