Add support for Fortran 77.

This commit is contained in:
Matthew D. Langston 1999-04-19 17:58:21 +00:00
parent cfff564377
commit 19934c8916
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
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-*.

View File

@ -1514,6 +1514,7 @@ dnl ACTION-IF-NOT-FOUND.
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
@ -1523,7 +1524,7 @@ extern "C"
[/* 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]))

View File

@ -1514,6 +1514,7 @@ dnl ACTION-IF-NOT-FOUND.
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
@ -1523,7 +1524,7 @@ extern "C"
[/* 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]))