--- trunk/OOPSE/ac-tools/aclocal.m4 2003/09/24 19:34:39 784 +++ trunk/OOPSE/ac-tools/aclocal.m4 2003/09/25 16:42:34 785 @@ -28,6 +28,16 @@ call MPI_Init(ierr) AC_DEFINE(MPI_MOD, 1, [have mpi module]) MPI_F90_MODS="-I${mpi_f90_mods}" AC_SUBST(MPI_F90_MODS) + # The library name: + if test -z "$MPI_LIB" ; then + MPI_LIBNAME=-lmpich + else + MPI_LIBNAME="$MPI_LIB" + fi + if test -z "$MPIMODLIBNAME" ; then + MPIMODLIBNAME="${MPI_LIBNAME}f90" + fi + AC_SUBST(MPIMODLIBNAME) else AC_MSG_RESULT(no) AC_MSG_ERROR([Couldn't locate MPI F90 Modules]) @@ -528,6 +538,7 @@ if test "$ac_test_F90FLAGS" != "set"; then # Try to determine "good" native compiler flags if none specified on command # line + if test "$ac_test_F90FLAGS" != "set"; then F90FLAGS="" case "${host_cpu}-${host_os}" in