From: Steven G. Johnson Date: Fri, 3 Oct 2003 23:37:56 +0000 (+0000) Subject: AC_FC_FREEFORM: support -f free flag for Absoft, reorder flags X-Git-Tag: AUTOCONF-2.57g~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e11232b4eb9d0599af914204c396a9f15328612d;p=thirdparty%2Fautoconf.git AC_FC_FREEFORM: support -f free flag for Absoft, reorder flags --- diff --git a/ChangeLog b/ChangeLog index 6f1eaa39..7eeabd74 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-10-03 Steven G. Johnson + + * 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 * lib/autoconf/fortran.m4 (AC_PROG_FC): Reverse the order of the diff --git a/lib/autoconf/fortran.m4 b/lib/autoconf/fortran.m4 index 8e36e127..af5743fa 100644 --- a/lib/autoconf/fortran.m4 +++ b/lib/autoconf/fortran.m4 @@ -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