]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Define PETSC_SKIP_UNDERSCORE_CHKERR when using PETSc.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 Feb 2006 15:34:56 +0000 (15:34 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 6 Feb 2006 15:34:56 +0000 (15:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@12234 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/aclocal.m4

index 8f866d6ff3136e772d362fdbc812aa7126b1a13c..1abb91dbd842f5b0ede1bc7d28dd05d649013bf8 100644 (file)
@@ -4704,12 +4704,23 @@ AC_DEFUN(DEAL_II_CONFIGURE_PETSC, dnl
     AC_DEFINE(DEAL_II_USE_PETSC, 1,
               [Defined if a PETSc installation was found and is going
                to be used])
+
     dnl Set an additional variable (not via AC_DEFINE, since we don't want
     dnl to have it in config.h) which we can use in doc/doxygen/options.dox.in.
     dnl If we have PETSc, then the value of this variable expands to
     dnl defining the string "DEAL_II_USE_PETSC" for the preprocessor. If
     dnl we don't have no PETSc, then it does not define this string.
     DEAL_II_DEFINE_DEAL_II_USE_PETSC=DEAL_II_USE_PETSC
+
+    dnl Also work around a stupidity in PETSc that makes sure it interferes in
+    dnl a completely obnoxious way with boost.
+    AC_DEFINE(PETSC_SKIP_UNDERSCORE_CHKERR, 1,
+              [Make sure PETSc doesn't re-define the underscore through the
+              preprocessor, since this interferes with boost. PETSc redefines
+               the underscore to be "__gterr =", but then forgets to undef this
+               thing. Boost simply wants to concatenate the underscore with another
+               string to form a class name, which then of course isn't valid
+               any more. See mails in early Feb 2006.])
   fi
 
 

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.