From: Timo Heister Date: Thu, 2 Dec 2010 11:37:40 +0000 (+0000) Subject: improve PETSc compiler mismatch error messages. X-Git-Tag: v8.0.0~4757 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93d9ac2597b9497b599973bda3495689ec23d377;p=dealii.git improve PETSc compiler mismatch error messages. git-svn-id: https://svn.dealii.org/trunk@22902 0785d39b-7218-0410-832d-ea1e28bc413d --- 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