Skip to content

Commit

Permalink
revert part of Taylor patch to acx_mpi.m4: do not link -lmpi if mpicc…
Browse files Browse the repository at this point in the history
… works without libraries, as -lmpi may be some completely different MPI implementation
  • Loading branch information
stevengj committed Nov 20, 2012
1 parent 6104602 commit 466f579
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions m4/acx_mpi.m4
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ AC_LANG_CASE([C], [
])
if test x = x"$MPILIBS"; then
AC_LANG_CASE([C], [AC_CHECK_FUNC(MPI_Init, [MPILIBS=""])],
[C++], [AC_CHECK_FUNC(MPI_Init, [MPILIBS=""])],
AC_LANG_CASE([C], [AC_CHECK_FUNC(MPI_Init, [MPILIBS=" "])],
[C++], [AC_CHECK_FUNC(MPI_Init, [MPILIBS=" "])],
[Fortran 77], [AC_MSG_CHECKING([for MPI_Init])
AC_TRY_LINK([],[ call MPI_Init], [MPILIBS=""
AC_TRY_LINK([],[ call MPI_Init], [MPILIBS=" "
AC_MSG_RESULT(yes)], [AC_MSG_RESULT(no)])])
fi
if test x = x"$MPILIBS"; then
Expand Down

0 comments on commit 466f579

Please sign in to comment.