]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
improve PETSc compiler mismatch error messages.
authorheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Dec 2010 11:37:40 +0000 (11:37 +0000)
committerheister <heister@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 2 Dec 2010 11:37:40 +0000 (11:37 +0000)
git-svn-id: https://svn.dealii.org/trunk@22902 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 18e9c047fac372853f334399a72877d44ba3c57e..d004639549c061500e1de4295661d2f179ab1324 100644 (file)
@@ -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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.