353 |
else |
else |
354 |
echo " The possible FORTRAN compilers found in your path are:" |
echo " The possible FORTRAN compilers found in your path are:" |
355 |
echo " "$p_FC |
echo " "$p_FC |
356 |
if test "x$FC" = x ; then |
fi |
357 |
FC=`echo $p_FC | $AWK '{print $1}'` |
|
358 |
echo " Setting FORTRAN compiler to: "$FC |
# Use the first of the compilers found in the current PATH |
359 |
fi |
# that has a correctly-named optfile |
360 |
|
if test "x$OPTFILE" = x -a "x$FC" = x ; then |
361 |
|
for i in $p_FC ; do |
362 |
|
OPTFILE=$ROOTDIR"/tools/build_options/"$PLATFORM"_"$i |
363 |
|
if test -r $OPTFILE ; then |
364 |
|
echo " Setting OPTFILE to: "$OPTFILE |
365 |
|
break |
366 |
|
fi |
367 |
|
done |
368 |
fi |
fi |
369 |
|
|
370 |
if test "x$OPTFILE" = x ; then |
if test "x$OPTFILE" = x ; then |