if test "x$use_p4est" != "xno" ; then
AC_MSG_RESULT(yes)
+ dnl Verify that the p4est files are actually there
if test ! -d "${use_p4est}/DEBUG" -o ! -d "${use_p4est}/FAST" ; then
- echo "${use_p4est}/DEBUG"
AC_MSG_ERROR([p4est directories $use_p4est/DEBUG or $use_p4est/FAST not found])
fi
+ dnl Make sure that we have also enabled MPI
+ if test "x${DEAL_II_COMPILER_SUPPORTS_MPI}" != "x1" ; then
+ AC_MSG_ERROR([When using p4est you also need to enable MPI.])
+ fi
+
dnl Right now, we always build p4est as shared lib, so make sure we
dnl have built deal.II as a shared lib as well
if test "x$enableshared" != "xyes" ; then
#! /bin/sh
-# From configure.in Revision: 24287 .
+# From configure.in Revision: 24565 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.68 for deal.II 7.2.pre.
#
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
- if test ! -d "${use_p4est}/DEBUG" -o ! -d "${use_p4est}/FAST" ; then
- echo "${use_p4est}/DEBUG"
+ if test ! -d "${use_p4est}/DEBUG" -o ! -d "${use_p4est}/FAST" ; then
as_fn_error $? "p4est directories $use_p4est/DEBUG or $use_p4est/FAST not found" "$LINENO" 5
fi
+ if test "x${DEAL_II_COMPILER_SUPPORTS_MPI}" != "x1" ; then
+ as_fn_error $? "When using p4est you also need to enable MPI." "$LINENO" 5
+ fi
+
if test "x$enableshared" != "xyes" ; then
as_fn_error $? "When using p4est with shared libraries, you need to build
deal.II with shared libraries as well." "$LINENO" 5