321 |
|
|
322 |
#================================================================ |
#================================================================ |
323 |
# look for possible FORTRAN compilers |
# look for possible FORTRAN compilers |
324 |
tmp="$MITGCM_FC $FC efc g77 f77 pgf77 pgf95 ifc f90 f95 mpif77 mpf77 mpxlf95" |
tmp="$MITGCM_FC $FC efc g77 f77 pgf77 pgf95 ifc f90 f95 mpif77 mpf77 mpxlf95 gfortran" |
325 |
p_FC= |
p_FC= |
326 |
for c in $tmp ; do |
for c in $tmp ; do |
327 |
rm -f ./hello.f ./hello |
rm -f ./hello.f ./hello |
835 |
MPI= |
MPI= |
836 |
MPIPATH= |
MPIPATH= |
837 |
|
|
838 |
# DEFINES checked by test compilation |
# DEFINES checked by test compilation or command-line |
839 |
HAVE_SYSTEM= |
HAVE_SYSTEM= |
840 |
HAVE_FDATE= |
HAVE_FDATE= |
841 |
FC_NAMEMANGLE= |
FC_NAMEMANGLE= |
843 |
HAVE_STAT= |
HAVE_STAT= |
844 |
HAVE_NETCDF= |
HAVE_NETCDF= |
845 |
HAVE_ETIME= |
HAVE_ETIME= |
846 |
|
IGNORE_TIME= |
847 |
|
|
848 |
MODS= |
MODS= |
849 |
TOOLSDIR= |
TOOLSDIR= |
1092 |
ac_prev=TAMC_EXTRA ;; |
ac_prev=TAMC_EXTRA ;; |
1093 |
-tamc_extra=* | --tamc_extra=*) |
-tamc_extra=* | --tamc_extra=*) |
1094 |
TAMC_EXTRA=$ac_optarg ;; |
TAMC_EXTRA=$ac_optarg ;; |
1095 |
|
|
1096 |
|
-ignoretime | -ignore_time | --ignoretime | --ignore_time) |
1097 |
|
IGNORE_TIME="-DIGNORE_TIME" ;; |
1098 |
|
|
1099 |
-*) |
-*) |
1100 |
echo "Error: unrecognized option: "$ac_option |
echo "Error: unrecognized option: "$ac_option |
1391 |
else |
else |
1392 |
echo "no" |
echo "no" |
1393 |
fi |
fi |
1394 |
|
DEFINES="$DEFINES $IGNORE_TIME" |
1395 |
|
|
1396 |
printf "\n=== Setting defaults ===\n" |
printf "\n=== Setting defaults ===\n" |
1397 |
printf " Adding MODS directories: " |
printf " Adding MODS directories: " |
1831 |
done |
done |
1832 |
done |
done |
1833 |
if test ! "x"$FS = "x.f" ; then |
if test ! "x"$FS = "x.f" ; then |
1834 |
cat ad_files | sed -e "s/\.f/$FS/g" > ad_files_f |
cat ad_files | sed -e "s/\.f/.$FS/g" > ad_files_f |
1835 |
mv -f ad_files_f ad_files |
mv -f ad_files_f ad_files |
1836 |
fi |
fi |
1837 |
|
|