--- trunk/OOPSE-3.0/ac-tools/OOPSE.m4 2006/05/25 14:54:41 2769 +++ trunk/OOPSE-3.0/ac-tools/OOPSE.m4 2006/05/25 15:19:34 2770 @@ -857,8 +857,9 @@ if test x = x"$MPI_LIB"; then fi $as_unset ac_cv_lib_mpich_MPI_Init if test x = x"$MPI_LIB"; then - AC_CHECK_LIB(mpich, MPI_Init, [MPI_LIB="-lpmpich -lmpich"], [], - "-lpmpich") + # absolute insanity if profiling libraries are required to get mpich to work + AC_CHECK_LIB(pmpich, MPI_Init, [MPI_LIB="-lpmpich -lmpich -lpmpich -lmpich"], [], + "-lmpich -lpmpich -lmpich") fi if test x = x"$MPI_LIB"; then AC_CHECK_LIB(mpi, MPI_Init, [MPI_LIB="-lmpi"])