From: Akim Demaille Date: Wed, 10 May 2000 17:11:21 +0000 (+0000) Subject: * aclang.m4 (AC_F77_NAME_MANGLING): Use AC_COMPILE_IFELSE. X-Git-Tag: autoconf-2.50~934 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ee6f9f8cafe2bf5e31e2ec938c92b11545e7565;p=thirdparty%2Fautoconf.git * aclang.m4 (AC_F77_NAME_MANGLING): Use AC_COMPILE_IFELSE. Move the requirements at the top of the macro. --- diff --git a/ChangeLog b/ChangeLog index c1492ec44..d1be6c948 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-05-10 Akim Demaille + + * aclang.m4 (AC_F77_NAME_MANGLING): Use AC_COMPILE_IFELSE. + Move the requirements at the top of the macro. + 2000-05-10 Akim Demaille Update and polish the documentation. diff --git a/aclang.m4 b/aclang.m4 index 5be23cb9d..92e74c5a9 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -1364,28 +1364,22 @@ AC_SUBST(FLIBS) # underscores are appended to identifiers which # already contain an underscore somewhere in their # name, then the value is "double". -# -AC_DEFUN(AC_F77_NAME_MANGLING, -[ AC_CACHE_CHECK([for Fortran 77 name-mangling scheme], - ac_cv_f77_mangling, +AC_DEFUN([AC_F77_NAME_MANGLING], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_F77])dnl AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl - -AC_LANG_SAVE()dnl +AC_CACHE_CHECK([for Fortran 77 name-mangling scheme], + ac_cv_f77_mangling, +[AC_LANG_SAVE()dnl AC_LANG(Fortran 77) - -cat >conftest.$ac_ext <&AC_FD_LOG - cat conftest.$ac_ext >&AC_FD_LOG -fi + rm -f cf77_test*]) AC_LANG_RESTORE()dnl ]) dnl Get case/underscore from cache variable, in case above tests were skipped: diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 5be23cb9d..92e74c5a9 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -1364,28 +1364,22 @@ AC_SUBST(FLIBS) # underscores are appended to identifiers which # already contain an underscore somewhere in their # name, then the value is "double". -# -AC_DEFUN(AC_F77_NAME_MANGLING, -[ AC_CACHE_CHECK([for Fortran 77 name-mangling scheme], - ac_cv_f77_mangling, +AC_DEFUN([AC_F77_NAME_MANGLING], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_F77])dnl AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl - -AC_LANG_SAVE()dnl +AC_CACHE_CHECK([for Fortran 77 name-mangling scheme], + ac_cv_f77_mangling, +[AC_LANG_SAVE()dnl AC_LANG(Fortran 77) - -cat >conftest.$ac_ext <&AC_FD_LOG - cat conftest.$ac_ext >&AC_FD_LOG -fi + rm -f cf77_test*]) AC_LANG_RESTORE()dnl ]) dnl Get case/underscore from cache variable, in case above tests were skipped: diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 5be23cb9d..92e74c5a9 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -1364,28 +1364,22 @@ AC_SUBST(FLIBS) # underscores are appended to identifiers which # already contain an underscore somewhere in their # name, then the value is "double". -# -AC_DEFUN(AC_F77_NAME_MANGLING, -[ AC_CACHE_CHECK([for Fortran 77 name-mangling scheme], - ac_cv_f77_mangling, +AC_DEFUN([AC_F77_NAME_MANGLING], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_F77])dnl AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl - -AC_LANG_SAVE()dnl +AC_CACHE_CHECK([for Fortran 77 name-mangling scheme], + ac_cv_f77_mangling, +[AC_LANG_SAVE()dnl AC_LANG(Fortran 77) - -cat >conftest.$ac_ext <&AC_FD_LOG - cat conftest.$ac_ext >&AC_FD_LOG -fi + rm -f cf77_test*]) AC_LANG_RESTORE()dnl ]) dnl Get case/underscore from cache variable, in case above tests were skipped: diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 5be23cb9d..92e74c5a9 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -1364,28 +1364,22 @@ AC_SUBST(FLIBS) # underscores are appended to identifiers which # already contain an underscore somewhere in their # name, then the value is "double". -# -AC_DEFUN(AC_F77_NAME_MANGLING, -[ AC_CACHE_CHECK([for Fortran 77 name-mangling scheme], - ac_cv_f77_mangling, +AC_DEFUN([AC_F77_NAME_MANGLING], [AC_REQUIRE([AC_PROG_CC])dnl AC_REQUIRE([AC_PROG_F77])dnl AC_REQUIRE([AC_F77_LIBRARY_LDFLAGS])dnl - -AC_LANG_SAVE()dnl +AC_CACHE_CHECK([for Fortran 77 name-mangling scheme], + ac_cv_f77_mangling, +[AC_LANG_SAVE()dnl AC_LANG(Fortran 77) - -cat >conftest.$ac_ext <&AC_FD_LOG - cat conftest.$ac_ext >&AC_FD_LOG -fi + rm -f cf77_test*]) AC_LANG_RESTORE()dnl ]) dnl Get case/underscore from cache variable, in case above tests were skipped: