dnl Make sure that what was specified is actually correct
if test ! -d $DEAL_II_PETSC_DIR/lib/libg_c++/$DEAL_II_PETSC_ARCH \
; then
- AC_MSG_ERROR([PETSc has not been compiled for the architecture
- specified with --with-petsc-arch])
+ dnl Check whether PETSc is installed but someone has simply
+ dnl forgotten to also compile for C++
+ if test -d $DEAL_II_PETSC_DIR/lib/libg/$DEAL_II_PETSC_ARCH \
+ ; then
+ AC_MSG_ERROR([PETSc has not been compiled for C++, but
+ deal.II needs this])
+ else
+ AC_MSG_ERROR([PETSc has not been compiled for the architecture
+ specified with --with-petsc-arch])
+ fi
fi
],
[
dnl Make sure that what this is actually correct
if test ! -d $DEAL_II_PETSC_DIR/lib/libg_c++/$DEAL_II_PETSC_ARCH \
; then
- AC_MSG_ERROR([PETSc has not been compiled for the architecture
- specified in the PETSC_ARCH environment variable])
+ dnl Check whether PETSc is installed but someone has simply
+ dnl forgotten to also compile for C++
+ if test -d $DEAL_II_PETSC_DIR/lib/libg/$DEAL_II_PETSC_ARCH \
+ ; then
+ AC_MSG_ERROR([PETSc has not been compiled for C++, but
+ deal.II needs this])
+ else
+ AC_MSG_ERROR([PETSc has not been compiled for the architecture
+ specified with --with-petsc-arch])
+ fi
fi
else
AC_MSG_ERROR([If PETSc is used, you must specify the architecture