]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* aclang.m4 (AC_PROG_F77): Add two compilers,
authorAkim Demaille <akim@epita.fr>
Thu, 6 Jul 2000 08:03:55 +0000 (08:03 +0000)
committerAkim Demaille <akim@epita.fr>
Thu, 6 Jul 2000 08:03:55 +0000 (08:03 +0000)
lf95 (Lahey/Fujitsu Fortran) and pgf77 (Portland Group Fortran)
(_AC_PROG_F77_G): Some Fortran compilers produce stdout/stderr
output even if no errors occur - check exit status rather than
output.

ChangeLog
aclang.m4
lib/autoconf/c.m4
lib/autoconf/fortran.m4
lib/autoconf/lang.m4

index dc6e5268ae88af67b4623399a6d0486bdaba30aa..be50082e03a7f168723a772a80b10e2e7927b720 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2000-07-04 Martin Wilck <martin@tropos.de>
+
+       * aclang.m4 (AC_PROG_F77): Add two compilers,
+       lf95 (Lahey/Fujitsu Fortran) and pgf77 (Portland Group Fortran)
+       (_AC_PROG_F77_G): Some Fortran compilers produce stdout/stderr
+       output even if no errors occur - check exit status rather than
+       output.
+
 2000-07-05  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_SHELL_TMPDIR): When using `mktemp -d', be sure
index 0ba41fbe2200c5a619f0d68b1ad4a17c4af9813f..c5402b21d4505311e2aea4da7811e8c6a3b7ba7e 100644 (file)
--- a/aclang.m4
+++ b/aclang.m4
@@ -418,7 +418,7 @@ define([AC_LANG_INT_SAVE(C++)], defn([AC_LANG_INT_SAVE_TRY(C)]))
 
 
 # ------------------------ #
-# 1d. Fortran 77 sources.  #
+# 2d. Fortran 77 sources.  #
 # ------------------------ #
 
 # AC_LANG_SOURCE(Fortran 77)(BODY)
@@ -833,10 +833,12 @@ AC_DEFUN([AC_PROG_F77],
 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
 dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
 dnl `f95' is worth trying.
+dnl pgf77 is the Portland Group f77 compiler
+dnl lf95 is the Lahey-Fujitsu compiler 
 AC_LANG_PUSH(Fortran 77)
 AC_CHECK_TOOLS(F77,
                m4_default([$1],
-                          [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
+                          [g77 f77 xlf cf77 pgf77 fl32 fort77 f90 xlf90 f95 lf95 fc]))
 
 _AC_LANG_COMPILER_WORKS
 _AC_PROG_F77_GNU
@@ -900,16 +902,10 @@ fi[]dnl
 # enable debugging.
 define([_AC_PROG_F77_G],
 [AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g,
-[cat >conftest.f <<EOF
-       program conftest
-       end
-EOF
-if test -z "`$F77 -g -c conftest.f 2>&1`"; then
-  ac_cv_prog_f77_g=yes
-else
-  ac_cv_prog_f77_g=no
-fi
-rm -f conftest*
+[FFLAGS=-g
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+[ac_cv_prog_f77_g=yes],
+[ac_cv_prog_f77_g=no])
 ])])# _AC_PROG_F77_G
 
 
index 0ba41fbe2200c5a619f0d68b1ad4a17c4af9813f..c5402b21d4505311e2aea4da7811e8c6a3b7ba7e 100644 (file)
@@ -418,7 +418,7 @@ define([AC_LANG_INT_SAVE(C++)], defn([AC_LANG_INT_SAVE_TRY(C)]))
 
 
 # ------------------------ #
-# 1d. Fortran 77 sources.  #
+# 2d. Fortran 77 sources.  #
 # ------------------------ #
 
 # AC_LANG_SOURCE(Fortran 77)(BODY)
@@ -833,10 +833,12 @@ AC_DEFUN([AC_PROG_F77],
 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
 dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
 dnl `f95' is worth trying.
+dnl pgf77 is the Portland Group f77 compiler
+dnl lf95 is the Lahey-Fujitsu compiler 
 AC_LANG_PUSH(Fortran 77)
 AC_CHECK_TOOLS(F77,
                m4_default([$1],
-                          [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
+                          [g77 f77 xlf cf77 pgf77 fl32 fort77 f90 xlf90 f95 lf95 fc]))
 
 _AC_LANG_COMPILER_WORKS
 _AC_PROG_F77_GNU
@@ -900,16 +902,10 @@ fi[]dnl
 # enable debugging.
 define([_AC_PROG_F77_G],
 [AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g,
-[cat >conftest.f <<EOF
-       program conftest
-       end
-EOF
-if test -z "`$F77 -g -c conftest.f 2>&1`"; then
-  ac_cv_prog_f77_g=yes
-else
-  ac_cv_prog_f77_g=no
-fi
-rm -f conftest*
+[FFLAGS=-g
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+[ac_cv_prog_f77_g=yes],
+[ac_cv_prog_f77_g=no])
 ])])# _AC_PROG_F77_G
 
 
index 0ba41fbe2200c5a619f0d68b1ad4a17c4af9813f..c5402b21d4505311e2aea4da7811e8c6a3b7ba7e 100644 (file)
@@ -418,7 +418,7 @@ define([AC_LANG_INT_SAVE(C++)], defn([AC_LANG_INT_SAVE_TRY(C)]))
 
 
 # ------------------------ #
-# 1d. Fortran 77 sources.  #
+# 2d. Fortran 77 sources.  #
 # ------------------------ #
 
 # AC_LANG_SOURCE(Fortran 77)(BODY)
@@ -833,10 +833,12 @@ AC_DEFUN([AC_PROG_F77],
 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
 dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
 dnl `f95' is worth trying.
+dnl pgf77 is the Portland Group f77 compiler
+dnl lf95 is the Lahey-Fujitsu compiler 
 AC_LANG_PUSH(Fortran 77)
 AC_CHECK_TOOLS(F77,
                m4_default([$1],
-                          [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
+                          [g77 f77 xlf cf77 pgf77 fl32 fort77 f90 xlf90 f95 lf95 fc]))
 
 _AC_LANG_COMPILER_WORKS
 _AC_PROG_F77_GNU
@@ -900,16 +902,10 @@ fi[]dnl
 # enable debugging.
 define([_AC_PROG_F77_G],
 [AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g,
-[cat >conftest.f <<EOF
-       program conftest
-       end
-EOF
-if test -z "`$F77 -g -c conftest.f 2>&1`"; then
-  ac_cv_prog_f77_g=yes
-else
-  ac_cv_prog_f77_g=no
-fi
-rm -f conftest*
+[FFLAGS=-g
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+[ac_cv_prog_f77_g=yes],
+[ac_cv_prog_f77_g=no])
 ])])# _AC_PROG_F77_G
 
 
index 0ba41fbe2200c5a619f0d68b1ad4a17c4af9813f..c5402b21d4505311e2aea4da7811e8c6a3b7ba7e 100644 (file)
@@ -418,7 +418,7 @@ define([AC_LANG_INT_SAVE(C++)], defn([AC_LANG_INT_SAVE_TRY(C)]))
 
 
 # ------------------------ #
-# 1d. Fortran 77 sources.  #
+# 2d. Fortran 77 sources.  #
 # ------------------------ #
 
 # AC_LANG_SOURCE(Fortran 77)(BODY)
@@ -833,10 +833,12 @@ AC_DEFUN([AC_PROG_F77],
 [AC_BEFORE([$0], [AC_PROG_CPP])dnl
 dnl Fortran 95 isn't strictly backwards-compatiable with Fortran 77, but
 dnl `f95' is worth trying.
+dnl pgf77 is the Portland Group f77 compiler
+dnl lf95 is the Lahey-Fujitsu compiler 
 AC_LANG_PUSH(Fortran 77)
 AC_CHECK_TOOLS(F77,
                m4_default([$1],
-                          [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc]))
+                          [g77 f77 xlf cf77 pgf77 fl32 fort77 f90 xlf90 f95 lf95 fc]))
 
 _AC_LANG_COMPILER_WORKS
 _AC_PROG_F77_GNU
@@ -900,16 +902,10 @@ fi[]dnl
 # enable debugging.
 define([_AC_PROG_F77_G],
 [AC_CACHE_CHECK(whether $F77 accepts -g, ac_cv_prog_f77_g,
-[cat >conftest.f <<EOF
-       program conftest
-       end
-EOF
-if test -z "`$F77 -g -c conftest.f 2>&1`"; then
-  ac_cv_prog_f77_g=yes
-else
-  ac_cv_prog_f77_g=no
-fi
-rm -f conftest*
+[FFLAGS=-g
+AC_COMPILE_IFELSE([AC_LANG_PROGRAM()],
+[ac_cv_prog_f77_g=yes],
+[ac_cv_prog_f77_g=no])
 ])])# _AC_PROG_F77_G