+1999-04-19 Matthew D. Langston <langston@SLAC.Stanford.EDU>
+
+ * acgeneral.m4 (AC_TRY_LINK_FUNC): Add support for Fortran 77.
+
1999-04-11 Philipp Thomas <kthomas@gwdg.de>
* config.sub: Set basic_machine to i586 when target_alias = k6-*.
AC_DEFUN(AC_TRY_LINK_FUNC,
AC_TRY_LINK(dnl
+ifelse(AC_LANG, [FORTRAN77], ,
ifelse([$1], [main], , dnl Avoid conflicting decl of main.
[/* Override any gcc2 internal prototype to avoid an error. */
]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
[/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $1();
-]),
+])),
[$1()],
[$2],
[$3]))
AC_DEFUN(AC_TRY_LINK_FUNC,
AC_TRY_LINK(dnl
+ifelse(AC_LANG, [FORTRAN77], ,
ifelse([$1], [main], , dnl Avoid conflicting decl of main.
[/* Override any gcc2 internal prototype to avoid an error. */
]ifelse(AC_LANG, CPLUSPLUS, [#ifdef __cplusplus
[/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char $1();
-]),
+])),
[$1()],
[$2],
[$3]))