RBGen  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
RBGen_ConfigDefs.h
1 //@HEADER
2 /*
3 ************************************************************************
4 
5  RBGen Package
6  Copyright (2004) Sandia Corporation
7 
8 Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
9 license for use of this work by or on behalf of the U.S. Government.
10 
11 This library is free software; you can redistribute it and/or modify
12 it under the terms of the GNU Lesser General Public License as
13 published by the Free Software Foundation; either version 2.1 of the
14 License, or (at your option) any later version.
15 
16 This library is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 Lesser General Public License for more details.
20 
21 You should have received a copy of the GNU Lesser General Public
22 License along with this library; if not, write to the Free Software
23 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
24 USA
25 Questions? Contact Michael A. Heroux (maherou@sandia.gov)
26 
27 ************************************************************************
28 */
29 //@HEADER
30 
31 #ifndef RBGEN_CONFIGDEFS_H
32 #define RBGEN_CONFIGDEFS_H
33 
34 #ifndef __cplusplus
35 #define __cplusplus
36 #endif
37 
38 /*
39  * The macros PACKAGE, PACKAGE_NAME, etc, get defined for each package and need to
40  * be undef'd here to avoid warnings when this file is included from another package.
41  * KL 11/25/02
42  */
43 #ifdef PACKAGE
44 #undef PACKAGE
45 #endif
46 
47 #ifdef PACKAGE_NAME
48 #undef PACKAGE_NAME
49 #endif
50 
51 #ifdef PACKAGE_BUGREPORT
52 #undef PACKAGE_BUGREPORT
53 #endif
54 
55 #ifdef PACKAGE_STRING
56 #undef PACKAGE_STRING
57 #endif
58 
59 #ifdef PACKAGE_TARNAME
60 #undef PACKAGE_TARNAME
61 #endif
62 
63 #ifdef PACKAGE_VERSION
64 #undef PACKAGE_VERSION
65 #endif
66 
67 #ifdef VERSION
68 #undef VERSION
69 #endif
70 
71 #include <RBGen_config.h>
72 
73 #ifdef HAVE_MPI
74 #ifndef EPETRA_MPI
75 #define EPETRA_MPI
76 #endif
77 #endif
78 
79 #ifdef HAVE_CSTDLIB
80 #include <cstdlib>
81 #else
82 #include <stdlib.h>
83 #endif
84 
85 #ifdef HAVE_CSTDIO
86 #include <cstdio>
87 #else
88 #include <stdio.h>
89 #endif
90 
91 #ifdef HAVE_STRING
92 #include <string>
93 #else
94 #include <string.h>
95 #endif
96 
97 #ifdef HAVE_IOSTREAM
98 #include <iostream>
99 #else
100 #include <iostream.h>
101 #endif
102 
103 #ifdef HAVE_VECTOR
104 #include <vector>
105 #else
106 #include <vector.h>
107 #endif
108 
109 #ifdef HAVE_STDEXCEPT
110 #include <stdexcept>
111 #else
112 #include <stdexcept.h>
113 #endif
114 
115 /* Every line that begins with 'using' should eventually be dependent
116  on some check within the configure script */
117 
118 
119 #ifndef TFLOP
120 #ifdef HAVE_CMATH
121 #include <cmath>
122 #else
123 #include <math.h>
124 #endif
125 #else /* TFLOP defined */
126 #ifdef HAVE_IOMANIP
127 #include <iomanip>
128 #else
129 #include <iomanip.h>
130 #endif
131 #endif
132 
133 // Define DefultTracebackMode (HAVE_WARNING_MESSAGES and HAVE_FATAL_MESSAGES can be defined
134 // via the configure script command line)
135 
136 #endif /* RBGEN_CONFIGDEFS_H */