From 38b515a28d586d24e9c8d8809f1a54613e5722cd Mon Sep 17 00:00:00 2001 From: "Toby D. Young" Date: Thu, 2 Dec 2010 11:10:12 +0000 Subject: [PATCH] Fix get compiler bug in mpi consistency for PETSc 2.3.x git-svn-id: https://svn.dealii.org/trunk@22901 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 4b8b973f45..18e9c047fa 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -5773,18 +5773,16 @@ AC_DEFUN(DEAL_II_CHECK_PETSC_MPI_CONSISTENCY, dnl ;; esac - DEAL_II_PETSC_PCC+=" " dnl Add a trailing whitespace - case "$DEAL_II_PETSC_LANGUAGE" in CONLY) dnl PETSC language is C, check $CC - if test "$DEAL_II_PETSC_PCC" = "$CC" ; then + if test `which $DEAL_II_PETSC_PCC` = `which $CC` ; then AC_MSG_RESULT(yes) else AC_MSG_ERROR([PETSc has not been compiled with the same compiler]) fi ;; CXXONLY) dnl PETSC language is C++, check $CXX - if test "$DEAL_II_PETSC_PCC" = "$CXX" ; then + if test `which $DEAL_II_PETSC_PCC` = `which $CXX` ; then AC_MSG_RESULT(yes) else AC_MSG_ERROR([PETSc has not been compiled with the same compiler]) -- 2.39.5