summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in10
1 files changed, 6 insertions, 4 deletions
diff --git a/configure.in b/configure.in
index decdeb2..3f31a2e 100644
--- a/configure.in
+++ b/configure.in
@@ -2160,10 +2160,11 @@ case "X-$enable_parallel" in
AC_LANG_PUSH(Fortran)
dnl Try link a simple MPI program. If fail, try again with -lmpi.
- AC_TRY_FLINK(mpif.h, [
+ AC_TRY_LINK(, [
+ include 'mpif.h'
integer:: ierr
call mpi_file_open( ierr )],,
- AC_CHECK_FLIB(mpi, [
+ AC_CHECK_LIB(mpi, [
include 'mpif.h'
integer:: ierr
call mpi_file_open( ierr )],, PARALLEL=no))
@@ -2171,10 +2172,11 @@ case "X-$enable_parallel" in
dnl Then try link a simple MPI-IO program. If fail, try again with
dnl -lmpio.
if test "X$PARALLEL" = "Xyes"; then
- AC_TRY_FLINK(mpif.h, [
+ AC_TRY_LINK(, [
+ include 'mpif.h'
integer:: ierr
call mpi_file_open( ierr )],,
- AC_CHECK_FLIB(mpio, [
+ AC_CHECK_LIB(mpio, [
include 'mpif.h'
integer:: ierr
call mpi_file_open( ierr )],, PARALLEL=no))