+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.
[[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]])