]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/compile.at (GNU Fortran 77): Don't AS_EXIT when using
authorAkim Demaille <akim@epita.fr>
Sat, 19 May 2001 15:15:54 +0000 (15:15 +0000)
committerAkim Demaille <akim@epita.fr>
Sat, 19 May 2001 15:15:54 +0000 (15:15 +0000)
AT_CHECK_MACRO since it skips tests embedded in configure.ac.
Remove files which might have been created when invoking the
compiler.
Reported by Nicolas Joly.

ChangeLog
tests/compile.at

index 43add3a49088bd39b4bdfcb4185bdf773c3636b3..3dfbeb517be365856327091c42b5a18be981e2d4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-05-19  Akim Demaille  <akim@epita.fr>
+
+       * tests/compile.at (GNU Fortran 77): Don't AS_EXIT when using
+       AT_CHECK_MACRO since it skips tests embedded in configure.ac.
+       Remove files which might have been created when invoking the
+       compiler.
+       Reported by Nicolas Joly.
+
 2001-05-14  Pavel Roskin  <proski@gnu.org>
 
        * doc/autoconf.texi (Shellology): Document a quirk in
index 64b4b8f10b255777c70db44a303033a6f7b6da66..7b7dd4dee65f5bc893aa1d05104872bd61e567e2 100644 (file)
@@ -266,12 +266,17 @@ AT_CHECK_MACRO([GNU Fortran 77],
 AC_LANG_COMPILER
 
 if AC_TRY_COMMAND([$F77 --version | grep GNU >&2]); then
+  # Be sure to remove files which might be created by compilers that
+  # don't support --version.
+  rm -f a.exe a.out
   # Has GNU in --version.
   test "$G77" != yes &&
     AC_MSG_ERROR([failed to recognize GNU Fortran 77 compiler])
 else
+  # Be sure to remove files which might be created by compilers that
+  # don't support --version.
+  rm -f a.exe a.out
   # Has not.
   test "$G77" = yes &&
     AC_MSG_ERROR([incorrectly recognized a GNU Fortran 77 compiler])
-fi
-AS_EXIT(0)]])
+fi]])