]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(_AC_PROG_FC): Try cf77 before fort77
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Feb 2005 23:46:31 +0000 (23:46 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Feb 2005 23:46:31 +0000 (23:46 +0000)
to get the option-enhanced interface on older Crays.  Try ftn for
Fortran 95 (newer Crays).

lib/autoconf/fortran.m4

index 3e0125803278678960feacfce5c3039fcf0fdf4f..0e900b9ff73a722169b7342ff5e2f802c473a415 100644 (file)
@@ -1,6 +1,6 @@
 # This file is part of Autoconf.                       -*- Autoconf -*-
 # Fortran languages support.
-# Copyright (C) 2001, 2003, 2004
+# Copyright (C) 2001, 2003, 2004, 2005
 # Free Software Foundation, Inc.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -334,6 +334,8 @@ AC_DEFUN([_AC_FC_DIALECT_YEAR],
 #  f77/f90/f95: generic compiler names
 #  g77: GNU Fortran 77 compiler
 #  gfortran: putative GNU Fortran 95+ compiler (in progress)
+#  ftn: native Fortran 95 compiler on Cray X1
+#  cf77: native F77 compiler under older Crays (prefer over fort77)
 #  fort77: native F77 compiler under HP-UX (and some older Crays)
 #  frt: Fujitsu F77 compiler
 #  pgf77/pgf90/pghpf/pgf95: Portland Group F77/F90/F95 compilers
@@ -345,9 +347,9 @@ AC_DEFUN([_AC_FC_DIALECT_YEAR],
 #  fort: Compaq (now HP) Fortran 90/95 compiler for Tru64 and Linux/Alpha
 #  ifort, previously ifc: Intel Fortran 95 compiler for Linux/x86
 #  efc: Intel Fortran 95 compiler for IA64
-m4_define([_AC_F95_FC], [f95 fort xlf95 ifort ifc efc pgf95 lf95 gfortran])
+m4_define([_AC_F95_FC], [f95 fort xlf95 ifort ifc efc pgf95 lf95 gfortran ftn])
 m4_define([_AC_F90_FC], [f90 xlf90 pgf90 pghpf epcf90])
-m4_define([_AC_F77_FC], [g77 f77 xlf frt pgf77 fort77 fl32 af77])
+m4_define([_AC_F77_FC], [g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77])
 AC_DEFUN([_AC_PROG_FC],
 [_AC_FORTRAN_ASSERT()dnl
 AC_CHECK_TOOLS([]_AC_FC[],