diff -up mpich/configure.ac.atlas mpich/configure.ac --- mpich/configure.ac.atlas 2015-03-19 12:45:07.946282074 +0100 +++ mpich/configure.ac 2015-03-19 12:45:07.955282120 +0100 @@ -335,7 +335,7 @@ if test x"${have_mkl}" = x"yes" ; then else dnl first check blas - AC_SEARCH_LIBS([dgemm],[blas],[have_blas=yes],[have_blas=no]) + AC_SEARCH_LIBS([dgemm],[[f77blas atlas] blas],[have_blas=yes],[have_blas=no]) AC_MSG_CHECKING([whether we can link a program with a blas lib]) AC_MSG_RESULT([${have_blas}]) diff -up mpich/configure.atlas mpich/configure --- mpich/configure.atlas 2015-03-18 10:49:42.000000000 +0100 +++ mpich/configure 2015-05-04 12:03:18.861651356 +0200 @@ -6507,7 +6401,7 @@ call dgemm end _ACEOF -for ac_lib in '' blas; do +for ac_lib in '' 'f77blas -latlas' blas; do if test -z "$ac_lib"; then ac_res="none required" else