The mpicc being tested needs to be able to link stuff, not merely compile it.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5731 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/configure.in b/configure.in
index 12b37ea..318f9e4 100644
--- a/configure.in
+++ b/configure.in
@@ -608,7 +608,7 @@
 saved_CFLAGS=$CFLAGS
 CC=$MPI_CC
 CFLAGS=
-AC_TRY_COMPILE([
+AC_TRY_LINK([
 #include <mpi.h>
 #include <stdio.h>
 ],[