mirror of
git://git.sv.gnu.org/autoconf
synced 2024-12-03 02:00:36 +08:00
fixed broken AC_F77_DUMMY_MAIN
This commit is contained in:
parent
1abe1e9420
commit
4ad0ed7fc9
@ -1,3 +1,9 @@
|
||||
2001-07-05 Steven G. Johnson <stevenj@alum.mit.edu>
|
||||
|
||||
* aclang.m4 (AC_F77_DUMMY_MAIN): Use AC_TRY_LINK, not
|
||||
AC_TRY_LINK_FUNC, to check whether defining a dummy
|
||||
main-like routine is needed for linking with F77 libs.
|
||||
|
||||
2001-07-05 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* aclocal.m4 (_AC_PROG_CXX_EXIT_DECLARATION): Remove conftest*
|
||||
|
@ -1967,7 +1967,8 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
|
||||
|
||||
if test $ac_cv_f77_dummy_main = unknown; then
|
||||
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
|
||||
AC_TRY_LINK_FUNC($ac_func, [ac_cv_f77_dummy_main=$ac_func; break])
|
||||
AC_TRY_LINK([#define F77_DUMMY_MAIN $ac_func],
|
||||
[], [ac_cv_f77_dummy_main=$ac_func; break])
|
||||
done
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
@ -1967,7 +1967,8 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
|
||||
|
||||
if test $ac_cv_f77_dummy_main = unknown; then
|
||||
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
|
||||
AC_TRY_LINK_FUNC($ac_func, [ac_cv_f77_dummy_main=$ac_func; break])
|
||||
AC_TRY_LINK([#define F77_DUMMY_MAIN $ac_func],
|
||||
[], [ac_cv_f77_dummy_main=$ac_func; break])
|
||||
done
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
@ -1967,7 +1967,8 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
|
||||
|
||||
if test $ac_cv_f77_dummy_main = unknown; then
|
||||
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
|
||||
AC_TRY_LINK_FUNC($ac_func, [ac_cv_f77_dummy_main=$ac_func; break])
|
||||
AC_TRY_LINK([#define F77_DUMMY_MAIN $ac_func],
|
||||
[], [ac_cv_f77_dummy_main=$ac_func; break])
|
||||
done
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
@ -1967,7 +1967,8 @@ AC_CACHE_CHECK([for dummy main to link with Fortran 77 libraries],
|
||||
|
||||
if test $ac_cv_f77_dummy_main = unknown; then
|
||||
for ac_func in MAIN__ MAIN_ __main MAIN _MAIN __MAIN main_ main__ _main; do
|
||||
AC_TRY_LINK_FUNC($ac_func, [ac_cv_f77_dummy_main=$ac_func; break])
|
||||
AC_TRY_LINK([#define F77_DUMMY_MAIN $ac_func],
|
||||
[], [ac_cv_f77_dummy_main=$ac_func; break])
|
||||
done
|
||||
fi
|
||||
rm -f conftest*
|
||||
|
Loading…
Reference in New Issue
Block a user