From dbde542bef27e9ff567461ede92f86a80de021e7 Mon Sep 17 00:00:00 2001 From: heister Date: Thu, 2 Dec 2010 11:37:40 +0000 Subject: [PATCH] improve PETSc compiler mismatch error messages. git-svn-id: https://svn.dealii.org/trunk@22902 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/aclocal.m4 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/deal.II/aclocal.m4 b/deal.II/aclocal.m4 index 18e9c047fa..d004639549 100644 --- a/deal.II/aclocal.m4 +++ b/deal.II/aclocal.m4 @@ -5778,14 +5778,19 @@ AC_DEFUN(DEAL_II_CHECK_PETSC_MPI_CONSISTENCY, dnl 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]) + DEAL_CC=`which $CC` + PETSC_CC=`which $DEAL_II_PETSC_PCC` + AC_MSG_ERROR([PETSc has not been compiled with the same compiler. PETS\ +c: '$PETSC_CC', deal: '$DEAL_CC']) fi ;; CXXONLY) dnl PETSC language is C++, check $CXX 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]) + DEAL_CC=`which $CXX` + PETSC_CC=`which $DEAL_II_PETSC_PCC` + AC_MSG_ERROR([PETSc has not been compiled with the same compiler. PETSc: '$PETSC_CC', deal: '$DEAL_CC']) fi ;; esac -- 2.39.5