From: Akim Demaille Date: Wed, 7 Jun 2000 07:16:15 +0000 (+0000) Subject: * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fix problem on Cray due to X-Git-Tag: autoconf-2.50~827 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3454da33b53087fd9abfa8f39f31448aab3cd49f;p=thirdparty%2Fautoconf.git * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fix problem on Cray due to confusion from the link command getting echoed in quotes. In the future, a more general fix for quoted arguments with spaces might be better. --- diff --git a/ChangeLog b/ChangeLog index 0776dd34b..e2d2e9456 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-06-07 Steven G. Johnson + + * aclang.m4 (AC_F77_LIBRARY_LDFLAGS): Fix problem on Cray due to + confusion from the link command getting echoed in quotes. In the + future, a more general fix for quoted arguments with spaces might + be better. + 2000-06-07 Akim Demaille * doc/autoconf.texi (Limitations of Builtins): More on `test' and diff --git a/aclang.m4 b/aclang.m4 index 737b346c6..8f3ae6fdc 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -1351,6 +1351,13 @@ if echo $ac_link_output | grep xlfentry >/dev/null 2>&1; then ac_link_output=`echo $ac_link_output | sed 's/,/ /g'` fi +# 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_link_output | grep cft90 >/dev/null 2>&1; then + ac_link_output=`echo $ac_link_output | sed "s/\"//g"` +fi + # AC_SAVE_ARG will be set to the current option (i.e. something # beginning with a "-") when we come across an option that we think # will take an argument (e.g. -L /usr/local/lib/foo). When diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 737b346c6..8f3ae6fdc 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -1351,6 +1351,13 @@ if echo $ac_link_output | grep xlfentry >/dev/null 2>&1; then ac_link_output=`echo $ac_link_output | sed 's/,/ /g'` fi +# 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_link_output | grep cft90 >/dev/null 2>&1; then + ac_link_output=`echo $ac_link_output | sed "s/\"//g"` +fi + # AC_SAVE_ARG will be set to the current option (i.e. something # beginning with a "-") when we come across an option that we think # will take an argument (e.g. -L /usr/local/lib/foo). When diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 737b346c6..8f3ae6fdc 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -1351,6 +1351,13 @@ if echo $ac_link_output | grep xlfentry >/dev/null 2>&1; then ac_link_output=`echo $ac_link_output | sed 's/,/ /g'` fi +# 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_link_output | grep cft90 >/dev/null 2>&1; then + ac_link_output=`echo $ac_link_output | sed "s/\"//g"` +fi + # AC_SAVE_ARG will be set to the current option (i.e. something # beginning with a "-") when we come across an option that we think # will take an argument (e.g. -L /usr/local/lib/foo). When diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 737b346c6..8f3ae6fdc 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -1351,6 +1351,13 @@ if echo $ac_link_output | grep xlfentry >/dev/null 2>&1; then ac_link_output=`echo $ac_link_output | sed 's/,/ /g'` fi +# 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_link_output | grep cft90 >/dev/null 2>&1; then + ac_link_output=`echo $ac_link_output | sed "s/\"//g"` +fi + # AC_SAVE_ARG will be set to the current option (i.e. something # beginning with a "-") when we come across an option that we think # will take an argument (e.g. -L /usr/local/lib/foo). When