From: young Date: Thu, 2 Dec 2010 11:10:12 +0000 (+0000) Subject: Fix get compiler bug in mpi consistency for PETSc 2.3.x X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=beaaa9f9f89c9e9472458ec9fa3b969123a1e539;p=dealii-svn.git 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 --- 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])