From: bangerth Date: Thu, 25 Feb 2010 15:47:56 +0000 (+0000) Subject: Also commit configure.in. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cecebd219e936fa041c2bf4eb1cf18e8f13d5bc;p=dealii-svn.git Also commit configure.in. git-svn-id: https://svn.dealii.org/trunk@20695 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/configure.in b/deal.II/configure.in index 1f1dece019..a752aa6b7e 100644 --- a/deal.II/configure.in +++ b/deal.II/configure.in @@ -686,6 +686,26 @@ AH_BOTTOM( # define DEAL_VOLATILE #endif + +/** + * Have macros that should make testing for PETSc versions + * much simpler. + */ +#define DEAL_II_PETSC_VERSION_LT(major,minor,subminor) \ + ((PETSC_VERSION_MAJOR * 10000 + \ + PETSC_VERSION_MINOR * 100) + \ + PETSC_VERSION_SUBMINOR \ + < \ + major*10000 + minor*100 + subminor) + +#define DEAL_II_PETSC_VERSION_GE(major,minor,subminor) \ + ((PETSC_VERSION_MAJOR * 10000 + \ + PETSC_VERSION_MINOR * 100) + \ + PETSC_VERSION_SUBMINOR \ + >= \ + (major)*10000 + (minor)*100 + (subminor)) + + #include /**