From: Steven G. Johnson Date: Thu, 9 Oct 2003 05:32:25 +0000 (+0000) Subject: bug-fix for AC_{FC,F77}_LIBRARY_LDFLAGS with Intel ifc X-Git-Tag: AUTOCONF-2.57g~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87f8817fdce9044610bd1262f66eeb82a01e450b;p=thirdparty%2Fautoconf.git bug-fix for AC_{FC,F77}_LIBRARY_LDFLAGS with Intel ifc --- diff --git a/ChangeLog b/ChangeLog index 02cccc18..048bdd9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2003-10-08 Steven G. Johnson + + * 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 * doc/autoconf.texi: Document new FC Fortran macros. diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 02131d0d..897519d8 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -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