| 7235 |  | fi | 
| 7236 |  |  | 
| 7237 |  | fi | 
| 7238 | + | $as_unset ac_cv_lib_mpich_MPI_Init | 
| 7239 | + | if test x = x"$MPI_LIB"; then | 
| 7240 | + | echo "$as_me:$LINENO: checking for MPI_Init in -lmpich" >&5 | 
| 7241 | + | echo $ECHO_N "checking for MPI_Init in -lmpich... $ECHO_C" >&6 | 
| 7242 | + | if test "${ac_cv_lib_mpich_MPI_Init+set}" = set; then | 
| 7243 | + | echo $ECHO_N "(cached) $ECHO_C" >&6 | 
| 7244 | + | else | 
| 7245 | + | ac_check_lib_save_LIBS=$LIBS | 
| 7246 | + | LIBS="-lmpich "-lpmpich" $LIBS" | 
| 7247 | + | cat >conftest.$ac_ext <<_ACEOF | 
| 7248 | + | /* confdefs.h.  */ | 
| 7249 | + | _ACEOF | 
| 7250 | + | cat confdefs.h >>conftest.$ac_ext | 
| 7251 | + | cat >>conftest.$ac_ext <<_ACEOF | 
| 7252 | + | /* end confdefs.h.  */ | 
| 7253 |  |  | 
| 7254 | + | /* Override any gcc2 internal prototype to avoid an error.  */ | 
| 7255 | + | #ifdef __cplusplus | 
| 7256 | + | extern "C" | 
| 7257 | + | #endif | 
| 7258 | + | /* We use char because int might match the return type of a gcc2 | 
| 7259 | + | builtin and then its argument prototype would still apply.  */ | 
| 7260 | + | char MPI_Init (); | 
| 7261 | + | int | 
| 7262 | + | main () | 
| 7263 | + | { | 
| 7264 | + | MPI_Init (); | 
| 7265 | + | ; | 
| 7266 | + | return 0; | 
| 7267 | + | } | 
| 7268 | + | _ACEOF | 
| 7269 | + | rm -f conftest.$ac_objext conftest$ac_exeext | 
| 7270 | + | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | 
| 7271 | + | (eval $ac_link) 2>conftest.er1 | 
| 7272 | + | ac_status=$? | 
| 7273 | + | grep -v '^ *+' conftest.er1 >conftest.err | 
| 7274 | + | rm -f conftest.er1 | 
| 7275 | + | cat conftest.err >&5 | 
| 7276 | + | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 7277 | + | (exit $ac_status); } && | 
| 7278 | + | { ac_try='test -z "$ac_c_werror_flag" | 
| 7279 | + | || test ! -s conftest.err' | 
| 7280 | + | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 7281 | + | (eval $ac_try) 2>&5 | 
| 7282 | + | ac_status=$? | 
| 7283 | + | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 7284 | + | (exit $ac_status); }; } && | 
| 7285 | + | { ac_try='test -s conftest$ac_exeext' | 
| 7286 | + | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | 
| 7287 | + | (eval $ac_try) 2>&5 | 
| 7288 | + | ac_status=$? | 
| 7289 | + | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | 
| 7290 | + | (exit $ac_status); }; }; then | 
| 7291 | + | ac_cv_lib_mpich_MPI_Init=yes | 
| 7292 | + | else | 
| 7293 | + | echo "$as_me: failed program was:" >&5 | 
| 7294 | + | sed 's/^/| /' conftest.$ac_ext >&5 | 
| 7295 | + |  | 
| 7296 | + | ac_cv_lib_mpich_MPI_Init=no | 
| 7297 | + | fi | 
| 7298 | + | rm -f conftest.err conftest.$ac_objext \ | 
| 7299 | + | conftest$ac_exeext conftest.$ac_ext | 
| 7300 | + | LIBS=$ac_check_lib_save_LIBS | 
| 7301 | + | fi | 
| 7302 | + | echo "$as_me:$LINENO: result: $ac_cv_lib_mpich_MPI_Init" >&5 | 
| 7303 | + | echo "${ECHO_T}$ac_cv_lib_mpich_MPI_Init" >&6 | 
| 7304 | + | if test $ac_cv_lib_mpich_MPI_Init = yes; then | 
| 7305 | + | MPI_LIB="-lmpich -lpmpich" | 
| 7306 | + | fi | 
| 7307 | + |  | 
| 7308 | + | fi | 
| 7309 | + |  | 
| 7310 |  | $as_unset ac_cv_lib_mpi_MPI_Init | 
| 7311 |  | if test x = x"$MPI_LIB"; then | 
| 7312 |  | echo "$as_me:$LINENO: checking for MPI_Init in -lmpi" >&5 |