#!/bin/sh
# this script expects the Sun Pro f90 command (or a wrapper to f90, e.g. mpif90)
# and returns the system libraries
$1 -dryrun $ESMF_DIR/scripts/hello.f90 2>&1 | grep "\-l" | nawk 'BEGIN { RS=" "}; /^-l/ ' | grep -v mpi_f90 | sort -u | xargs
rm -f a.out