mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-03 02:00:36 +08:00
* tests/compile.at (GNU Fortran 77): Be robust to compilers that
choke on `--version'.
This commit is contained in:
parent
2079a725e1
commit
81ed11fb67
@ -1,3 +1,8 @@
|
||||
2000-12-12 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* tests/compile.at (GNU Fortran 77): Be robust to compilers that
|
||||
choke on `--version'.
|
||||
|
||||
2000-12-12 Akim Demaille <akim@epita.fr>
|
||||
|
||||
* tests/suite.at: Run `tools.at' first.
|
||||
|
@ -111,9 +111,13 @@ AT_CHECK_MACRO([GNU Fortran 77],
|
||||
[[AC_LANG(Fortran 77)
|
||||
AC_LANG_COMPILER
|
||||
|
||||
case `$F77 --version`,$G77 in
|
||||
*GNU*,yes) ;;
|
||||
*GNU*,no ) AC_MSG_ERROR([failed to recognize GNU Fortran 77 compiler]);;
|
||||
*,yes ) AC_MSG_ERROR([incorrectly recognized a GNU Fortran 77 compiler]);;
|
||||
if $F77 --version 2> /dev/null | grep GNU >/dev/null; then
|
||||
# Has GNU in --version.
|
||||
test $G77 = no &&
|
||||
AC_MSG_ERROR([failed to recognize GNU Fortran 77 compiler]);;
|
||||
else
|
||||
# Has not.
|
||||
test $g77 = yes &&
|
||||
AC_MSG_ERROR([incorrectly recognized a GNU Fortran 77 compiler]);;
|
||||
esac
|
||||
exit 0]])
|
||||
|
Loading…
Reference in New Issue
Block a user