]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
AC_FC_FREEFORM: support -f free flag for Absoft, reorder flags
authorSteven G. Johnson <stevenj@alum.mit.edu>
Fri, 3 Oct 2003 23:37:56 +0000 (23:37 +0000)
committerSteven G. Johnson <stevenj@alum.mit.edu>
Fri, 3 Oct 2003 23:37:56 +0000 (23:37 +0000)
ChangeLog
lib/autoconf/fortran.m4

index 6f1eaa398dff61ef2843d235c0f7221260aae69c..7eeabd74a1436a5950671d9ef6b0413ee74f6f0b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
+
+       * lib/autoconf/fortran.m4 (AC_FC_FREEFORM): Support Absoft "-f
+       free" flag.  Re-order flags tested into rough order of popularity.
+
 2003-10-03  Steven G. Johnson  <stevenj@alum.mit.edu>
 
        * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the
index 8e36e127f2c2d528c56a31d649b488757d211aa6..af5743fa42b8c7456130d79da94560082e0a4caa 100644 (file)
@@ -1146,19 +1146,22 @@ fi
 # prevent flag from being added to FCFLAGS multiple times.)
 #
 # The known flags are:
-#              -free: Compaq compiler (fort)
-#          -freeform: SGI compiler
 #        -ffree-form: GNU g77
+#                -FR: Intel compiler (icc, ecc)
+#              -free: Compaq compiler (fort)
 #             -qfree: IBM compiler (xlf)
 # -Mfree, -Mfreeform: Portland Group compiler
-#                -FR: Intel compiler (icc, ecc)
+#          -freeform: SGI compiler
+#            -f free: Absoft Fortran
+# We try to test the "more popular" flags first, by some prejudiced
+# notion of popularity.
 AC_DEFUN_ONCE([AC_FC_FREEFORM],
 [AC_CACHE_CHECK([for Fortran flag needed to allow free-form source],
                 ac_cv_fc_freeform,
 [AC_LANG_PUSH(Fortran)dnl
 ac_cv_fc_freeform=unknown
 ac_fc_freeform_FCFLAGS_save=$FCFLAGS
-for ac_flag in none -free -freeform -ffree-form -qfree -Mfree -Mfreeform -FR; do
+for ac_flag in none -ffree-form -FR -free -qfree -Mfree -Mfreeform -freeform "-f free"; do
   test "x$ac_flag" != xnone && FCFLAGS="$ac_fc_freeform_FCFLAGS_save $ac_flag"
   AC_COMPILE_IFELSE([
   program freeform