| perl -pi -e 's/.*RELEASE\s+//g;'`
if test "$PETSC_RELEASE" = "0" ; then
PETSC_VERSION+="-dev"
- else
- PETSC_VERSION+=""
+ AC_DEFINE([DEAL_II_USE_PETSC_VERSION_DEV], [1],
+ [Defined if a PETSc installation was found and is not a release])
fi
AC_MSG_RESULT($PETSC_VERSION)
DEAL_II_PETSC_VERSION_MAJOR = @DEAL_II_PETSC_VERSION_MAJOR@
DEAL_II_PETSC_VERSION_MINOR = @DEAL_II_PETSC_VERSION_MINOR@
DEAL_II_PETSC_VERSION_SUBMINOR = @DEAL_II_PETSC_VERSION_SUBMINOR@
-DEAL_II_PETSC_MPIUNI_LIB = @DEAL_II_PETSC_MPIUNI_LIB@
+DEAL_II_PETSC_VERSION_DEV = @DEAL_II_PETSC_VERSION_DEV@
+DEAL_II_PETSC_MPIUNI_LIB = @DEAL_II_PETSC_MPIUNI_LIB@
USE_CONTRIB_SLEPC = @USE_CONTRIB_SLEPC@
DEAL_II_SLEPC_DIR = @DEAL_II_SLEPC_DIR@
AC_SUBST(DEAL_II_PETSC_VERSION_MAJOR)
AC_SUBST(DEAL_II_PETSC_VERSION_MINOR)
AC_SUBST(DEAL_II_PETSC_VERSION_SUBMINOR)
-AC_SUBST(USE_PETSC_DEV)
+AC_SUBST(DEAL_II_USE_PETSC_VERSION_DEV)
AC_SUBST(DEAL_II_PETSC_MPIUNI_LIB)
AC_SUBST(DEAL_II_DEFINE_DEAL_II_USE_PETSC)
(major)*10000 + (minor)*100 + (subminor))
#define DEAL_II_PETSC_VERSION_DEV() \
- (DEAL_II_USE_PETSC_DEV)
+ (DEAL_II_USE_PETSC_VERSION_DEV)
#include <deal.II/base/numbers.h>
#include <deal.II/base/types.h>
#undef DEAL_II_USE_PETSC_COMPLEX
/* Defined if a PETSc installation was found and is not a release */
-#undef DEAL_II_USE_PETSC_DEV
+#undef DEAL_II_USE_PETSC_VERSION_DEV
/* Defined if a SLEPc installation was found and is going to be used */
#undef DEAL_II_USE_SLEPC
(major)*10000 + (minor)*100 + (subminor))
#define DEAL_II_PETSC_VERSION_DEV() \
- (DEAL_II_USE_PETSC_DEV)
+ (DEAL_II_USE_PETSC_VERSION_DEV)
#include <deal.II/base/numbers.h>
#include <deal.II/base/types.h>