* tests/compile.at (GNU Fortran 77): Be robust to compilers that

choke on `--version'.
This commit is contained in:
Akim Demaille 2000-12-12 11:40:21 +00:00
parent 2079a725e1
commit 81ed11fb67
2 changed files with 13 additions and 4 deletions

View File

@ -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.

View File

@ -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]])