summaryrefslogtreecommitdiff
path: root/lib/make/cctk_Config.h.in
blob: 0a8e5dba1e757ed60c509a2874fece6d899db5d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
#ifndef _CCTK_CONFIG_H_
#define _CCTK_CONFIG_H_

/* These are definitely there in C++ */
#ifndef __cplusplus

/* Define as __inline if that's what the C compiler calls it.  */
#undef inline

/* Define to empty if the keyword does not work.  */
#undef const

#endif /* ! defined __cplusplus */

/* Define if your processor stores words with the most significant
   byte first (like Motorola and SPARC, unlike Intel and VAX).  */
#undef WORDS_BIGENDIAN

/* Define if standard C headers are available. */
#undef STDC_HEADERS

/* Size info for various types */

/* The number of bytes in a long int.  */
#undef SIZEOF_LONG_INT

/* The number of bytes in a int.  */
#undef SIZEOF_INT

/* The number of bytes in a short int.  */
#undef SIZEOF_SHORT_INT


/* The number of bytes in a long double.  */
#undef SIZEOF_LONG_DOUBLE

/* The number of bytes in a double.  */
#undef SIZEOF_DOUBLE

/* The number of bytes in a float.  */
#undef SIZEOF_FLOAT

/* The number of bytes in a char *.  */
#undef SIZEOF_CHAR_P

/* The chosen CCTK precision */

/* Floating point precision */
#undef CCTK_REAL_PRECISION_16
#undef CCTK_REAL_PRECISION_8
#undef CCTK_REAL_PRECISION_4

/* Integer precision */
#undef CCTK_INTEGER_PRECISION_8
#undef CCTK_INTEGER_PRECISION_4
#undef CCTK_INTEGER_PRECISION_2

/* Modifier for Fortran function definitions. */

#undef CCTK_FCALL

/* DEPRECATED IN BETA 9 */
#define FMODIFIER CCTK_FCALL
/* END DEPRECATED IN BETA 9 */

/* What debugging options to use */
#undef CCTK_DEBUG
#undef CCTK_TRACEMEMORY

/* How to create a directory */

#undef MKDIR
#undef MKDIRFLAGS

/* Various library functions */

#undef HAVE_SCANDIR
#undef HAVE_GETHOSTBYNAME
#undef HAVE_GETOPT_LONG_ONLY
#undef HAVE_CRYPT
#undef HAVE_FINITE

/* Do we have mode_t ? */

#undef HAVE_MODE_T

/* Do we have socklen_t ? */

#undef HAVE_SOCKLEN_T

/* Do we have SOCKET ? */

#undef HAVE_SOCKET_TYPE

/* Some include things */
#undef HAVE_TIME_H
#undef HAVE_SYS_TIME_H
#undef HAVE_SYS_TYPES_H
#undef HAVE_UNISTD_H
#undef HAVE_STRING_H
#undef HAVE_ASSERT_H
#undef HAVE_SYS_STAT_H
#undef HAVE_GETOPT_H
#undef HAVE_REGEX_H
#undef HAVE_SYS_SOCKET_H
#undef HAVE_NETINET_IN_H
#undef HAVE_NETDB_H
#undef HAVE_ARPA_INET_H
#undef HAVE_WINSOCK2_H
#undef HAVE_CRYPT_H

#undef TIME_WITH_SYS_TIME

/* Which format does the C++ STL on this machine provide. */

#undef HAVE_VECTOR
#undef HAVE_VECTOR_H

/* Timing stuff */

#undef HAVE_TIME_GETTIMEOFDAY
#undef GETTIMEOFDAY_NEEDS_TIMEZONE
#undef HAVE_TIME_GETRUSAGE
#undef HAVE_TIME__FTIME

/* Cache stuff */

#undef CCTK_L2_CACHELINE_BYTES
#undef CCTK_L2_CACHE_SIZE

/* The name of the NULL device for redirecting things to */

#undef NULL_DEVICE

/* The TYPE of socklen_t if it does not exist */ 

#ifdef HAVE_SOCKLEN_T
#define CCTK_SOCKLEN_T socklen_t
#else
#define CCTK_SOCKLEN_T int
#endif

/******************************************************************************/

#ifdef CCODE

/* Integer sizes */

/* Define the type of an 8 byte integer */
#undef CCTK_INT8

/* Define the type of a 4 byte integer */
#undef CCTK_INT4

/* Define the type of a 2 byte integer */
#undef CCTK_INT2

/* Float sizes */

/* Define the type of a 16 byte float */
#undef CCTK_REAL16

/* Define the type of an 8 byte float */
#undef CCTK_REAL8

/* Define the type of a 4 byte float */
#undef CCTK_REAL4

#ifdef __cplusplus

/* Some C++ compilers don't have bool ! */
#undef HAVE_BOOL

#ifndef HAVE_BOOL
typedef enum {false, true} bool;
#endif /* HAVE_BOOL */

#endif /* __cplusplus */


#endif /*CCODE */

#ifdef FCODE

#endif /*FCODE */

/* Now include the code to pick an appropriate precison for reals and ints */
#include "cctk_Types.h"

/* Include any other stuff which is specific to this architecture */
#include "cctk_Archdefs.h"

/* Include any extra stuff from optional extra packages. */
#include "cctk_Extradefs.h"

#endif /* _CCTK_CONFIG_H_ */