From: Akim Demaille Date: Wed, 7 Jun 2000 13:25:54 +0000 (+0000) Subject: * aclang.m4 (AC_PROG_F77): Check for f95 and fc too. X-Git-Tag: autoconf-2.50~824 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2a4ccaeb3fd34e2ca48cfe7cf56ef9f2239b9f82;p=thirdparty%2Fautoconf.git * aclang.m4 (AC_PROG_F77): Check for f95 and fc too. --- diff --git a/ChangeLog b/ChangeLog index 8fd82eb82..c4037d03e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2000-06-07 Dave Love + + * aclang.m4 (AC_PROG_F77): Check for f95 and fc too. + 2000-06-07 Philippe De Muyter `foo=1 foo=2 cmd' has an undefined behavior. diff --git a/aclang.m4 b/aclang.m4 index 8f3ae6fdc..f25511dfd 100644 --- a/aclang.m4 +++ b/aclang.m4 @@ -815,11 +815,22 @@ rm -f conftest* # --------------------------- # COMPILERS is a space separated list of Fortran 77 compilers to search # for. +# +# Compilers are ordered by +# 1. F77, F90, F95 +# 2. Good native compilers, bad native compilers, wrappers around f2c. +# +# `fort77' and `fc' are wrappers around `f2c', `fort77' being better. +# It is believed that under HP-UX `fort77' is the name of the native +# compiler. NAG f95 is preferred over `fc', so put `fc' last. 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. AC_LANG_PUSH(Fortran 77) AC_CHECK_TOOLS(F77, - m4_default([$1], [g77 f77 xlf cf77 fl32 fort77 f90 xlf90])) + m4_default([$1], + [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc])) _AC_LANG_COMPILER_WORKS _AC_PROG_F77_GNU diff --git a/lib/autoconf/c.m4 b/lib/autoconf/c.m4 index 8f3ae6fdc..f25511dfd 100644 --- a/lib/autoconf/c.m4 +++ b/lib/autoconf/c.m4 @@ -815,11 +815,22 @@ rm -f conftest* # --------------------------- # COMPILERS is a space separated list of Fortran 77 compilers to search # for. +# +# Compilers are ordered by +# 1. F77, F90, F95 +# 2. Good native compilers, bad native compilers, wrappers around f2c. +# +# `fort77' and `fc' are wrappers around `f2c', `fort77' being better. +# It is believed that under HP-UX `fort77' is the name of the native +# compiler. NAG f95 is preferred over `fc', so put `fc' last. 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. AC_LANG_PUSH(Fortran 77) AC_CHECK_TOOLS(F77, - m4_default([$1], [g77 f77 xlf cf77 fl32 fort77 f90 xlf90])) + m4_default([$1], + [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc])) _AC_LANG_COMPILER_WORKS _AC_PROG_F77_GNU diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 8f3ae6fdc..f25511dfd 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -815,11 +815,22 @@ rm -f conftest* # --------------------------- # COMPILERS is a space separated list of Fortran 77 compilers to search # for. +# +# Compilers are ordered by +# 1. F77, F90, F95 +# 2. Good native compilers, bad native compilers, wrappers around f2c. +# +# `fort77' and `fc' are wrappers around `f2c', `fort77' being better. +# It is believed that under HP-UX `fort77' is the name of the native +# compiler. NAG f95 is preferred over `fc', so put `fc' last. 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. AC_LANG_PUSH(Fortran 77) AC_CHECK_TOOLS(F77, - m4_default([$1], [g77 f77 xlf cf77 fl32 fort77 f90 xlf90])) + m4_default([$1], + [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc])) _AC_LANG_COMPILER_WORKS _AC_PROG_F77_GNU diff --git a/lib/autoconf/lang.m4 b/lib/autoconf/lang.m4 index 8f3ae6fdc..f25511dfd 100644 --- a/lib/autoconf/lang.m4 +++ b/lib/autoconf/lang.m4 @@ -815,11 +815,22 @@ rm -f conftest* # --------------------------- # COMPILERS is a space separated list of Fortran 77 compilers to search # for. +# +# Compilers are ordered by +# 1. F77, F90, F95 +# 2. Good native compilers, bad native compilers, wrappers around f2c. +# +# `fort77' and `fc' are wrappers around `f2c', `fort77' being better. +# It is believed that under HP-UX `fort77' is the name of the native +# compiler. NAG f95 is preferred over `fc', so put `fc' last. 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. AC_LANG_PUSH(Fortran 77) AC_CHECK_TOOLS(F77, - m4_default([$1], [g77 f77 xlf cf77 fl32 fort77 f90 xlf90])) + m4_default([$1], + [g77 f77 xlf cf77 fl32 fort77 f90 xlf90 f95 fc])) _AC_LANG_COMPILER_WORKS _AC_PROG_F77_GNU