0472b8412d7dd4db6456d8fbbed85508e5d45c31
[alexxy/gromacs.git] / src / config.h.cmakein
1 /* Manually created from config.h.in to work with cmake */
2
3 /* Disable warnings about double-to-float conversion accuracy loss on MSVC */
4 #ifdef _MSC_VER
5 #pragma warning (disable : 4305)
6 #pragma warning (disable : 4244)
7 #pragma warning (disable : 4101)
8 #pragma warning (disable : 4996)
9 #pragma warning (disable : 4267)
10 #pragma warning (disable : 4090)
11 #endif
12
13 /* Name of package (translate from cmake to autoconf macro name) */
14 #define PACKAGE  "@PROJECT_NAME@"
15
16 /* Version number of package (translate from cmake to autoconf macro name) */
17 #define VERSION  "@PROJECT_VERSION@"
18
19 /* Use the version string from generated version.h */
20 #cmakedefine USE_VERSION_H
21
22 /* Default location of data files */
23 #define GMXLIBDIR "@GMXLIBDIR@"
24
25 /* Hardware and OS version for build host */
26 #define BUILD_HOST "@BUILD_HOST@"
27
28 /* CPU information for build host */
29 #define BUILD_CPU_VENDOR "@BUILD_CPU_VENDOR@"
30
31 #define BUILD_CPU_BRAND "@BUILD_CPU_BRAND@"
32
33 #define BUILD_CPU_FAMILY @BUILD_CPU_FAMILY@
34
35 #define BUILD_CPU_MODEL @BUILD_CPU_MODEL@
36
37 #define BUILD_CPU_STEPPING @BUILD_CPU_STEPPING@
38
39 #define BUILD_CPU_FEATURES "@BUILD_CPU_FEATURES@"
40
41 /* Compiler and CFLAGS from build */
42 #define BUILD_COMPILER "@BUILD_COMPILER@"
43
44 #define BUILD_CFLAGS   "@BUILD_CFLAGS@"
45
46 /* Date and time for build */
47 #define BUILD_TIME "@BUILD_TIME@"
48
49 /* User doing build */
50 #define BUILD_USER "@BUILD_USER@"
51
52 /* Turn off water-water neighborlist optimization only - not used right now */
53 #cmakedefine DISABLE_WATERWATER_NLIST
54
55 /* Turn off all water neighborlist optimization - not used right now */
56 #cmakedefine DISABLE_WATER_NLIST
57
58 /* Fortran support */
59 #cmakedefine GMX_FORTRAN
60
61 /* Define to a macro mangling the given C identifier (in lower and upper
62    case), which must not contain underscores, for linking with Fortran. */
63 #define F77_FUNC(name,NAME)     @F77_FUNCDEF@
64
65 /* As F77_FUNC, but for C identifiers containing underscores. */
66 #define F77_FUNC_(name,NAME)    @F77_FUNCDEF_@
67
68 /* IEEE754 floating-point format. Memory layout is defined by macros
69  * GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER and GMX_IEEE754_BIG_ENDIAN_WORD_ORDER. 
70  */
71 #cmakedefine GMX_FLOAT_FORMAT_IEEE754
72
73 /* Use assembly intrinsics kernels for BlueGene */
74 #cmakedefine GMX_BLUEGENE
75
76 /* Power6 acceleration */
77 #cmakedefine GMX_POWER6
78
79 /* Work around broken calloc() */
80 #cmakedefine GMX_BROKEN_CALLOC
81
82 /* Enable special hacks for Cray XT3 */
83 #cmakedefine GMX_CRAY_XT3
84
85 /* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
86 #cmakedefine GMX_DISABLE_FFTW_MEASURE
87
88 /* Compile in double precision */
89 #cmakedefine GMX_DOUBLE
90
91 /* Use Built-in FFTPACK FFT library */
92 #cmakedefine GMX_FFT_FFTPACK
93
94 /* Use FFTW3 FFT library */
95 #cmakedefine GMX_FFT_FFTW3
96
97 /* Use Intel MKL FFT library */
98 #cmakedefine GMX_FFT_MKL
99
100 /* Use AMD core math library */
101 #cmakedefine GMX_FFT_ACML
102
103 /* What type of acceleration is used? (string, for dumping to files) */
104 #define GMX_ACCELERATION "@GMX_ACCELERATION@"
105
106 /* SSE2 acceleration */
107 #cmakedefine GMX_X86_SSE2
108
109 /* SSE4.1 acceleration */
110 #cmakedefine GMX_X86_SSE4_1
111
112 /* AVX 128-bit acceleration with FMA, useful on modern AMD hardware */
113 #cmakedefine GMX_X86_AVX_128_FMA
114
115 /* AVX 256-bit acceleration, usually for intel hardware */
116 #cmakedefine GMX_X86_AVX_256
117
118 /* Integer byte order is big endian. */
119 #cmakedefine GMX_INTEGER_BIG_ENDIAN 
120
121 /* Use our own instead of system XDR libraries */
122 #cmakedefine GMX_INTERNAL_XDR
123
124 /* Use MPI (with mpicc) for parallelization */
125 #cmakedefine GMX_LIB_MPI
126
127 /* MPI_IN_PLACE exists for collective operations */
128 #cmakedefine MPI_IN_PLACE_EXISTS
129
130 /* Make a parallel version of GROMACS using message passing 
131    (MPI or thread_mpi) */
132 #cmakedefine GMX_MPI
133
134 /* Use threads for parallelization */
135 #cmakedefine GMX_THREAD_MPI
136
137 /* Use old threading (domain decomp force calc) code */
138 #cmakedefine GMX_THREAD_SHM_FDECOMP 
139
140 /* Ignore calls to nice(3) */
141 #cmakedefine GMX_NO_NICE
142
143 /* Ignore calls to system(3) */
144 #cmakedefine GMX_NO_SYSTEM
145
146 /* Use (modified) Gamess-UK for QM-MM calculations */
147 #cmakedefine GMX_QMMM_GAMESS
148
149 /* Use (modified) Gaussian0x for QM-MM calculations */
150 #cmakedefine GMX_QMMM_GAUSSIAN
151
152 /* Use (modified) Mopac 7 for QM-MM calculations */
153 #cmakedefine GMX_QMMM_MOPAC
154
155 /* Use the GROMACS software 1/sqrt(x) */
156 #cmakedefine GMX_SOFTWARE_INVSQRT
157
158 /* Use the PowerPC hardware 1/sqrt(x) */
159 #cmakedefine GMX_POWERPC_INVSQRT
160
161 /* Compile with plugin support */
162 #cmakedefine GMX_USE_PLUGINS
163
164 /* Fallback path for VMD plug-ins */
165 #define GMX_VMD_PLUGIN_PATH "@GMX_VMD_PLUGIN_PATH@"
166
167 /* Define when pthreads are used */
168 #cmakedefine THREAD_PTHREADS
169
170 /* Define when Windows threads are used */
171 #cmakedefine THREAD_WINDOWS
172
173 /* Define for busy wait option  */
174 #cmakedefine TMPI_WAIT_FOR_NO_ONE
175
176 /* Define for copy buffer option */
177 #cmakedefine TMPI_COPY_BUFFER
178
179 /* Define for profiling option */
180 #cmakedefine TMPI_PROFILE
181
182 /* Define for Linux pthread_setaffinity */
183 #cmakedefine HAVE_PTHREAD_SETAFFINITY
184
185 /* Define for Windows NUMA-aware allocator functions*/
186 #cmakedefine TMPI_WINDOWS_NUMA_API
187
188 /* Define for sysconf() */
189 #cmakedefine HAVE_SYSCONF
190
191 /* Define for GetSystemInfo() */
192 #cmakedefine HAVE_SYSTEM_INFO
193
194 /* Enable x86 gcc inline assembly */
195 #cmakedefine GMX_X86_GCC_INLINE_ASM
196
197 /* Define to 1 if the system has the type gmx_bool. */
198 #cmakedefine HAVE_BOOL
199
200 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
201 #cmakedefine HAVE_FSEEKO
202
203 /* Define to 1 if _fseeki64 (and presumably _fseeki64) exists and is declared. */
204 #cmakedefine HAVE__FSEEKI64
205
206 /* Define to 1 if you have the m library (-lm). */
207 #cmakedefine HAVE_LIBM
208
209 /* Define to 1 if you have the mkl library (-lmkl). */
210 #cmakedefine HAVE_LIBMKL
211
212 /* Define to 1 if you have the gsl library (-lgsl). */
213 #cmakedefine HAVE_LIBGSL
214
215 /* Define to 1 if you have the xml2 library (-lxml2). */
216 #cmakedefine HAVE_LIBXML2
217
218 /* Define to 1 if you have the dl library (-ldl). */
219 #cmakedefine HAVE_LIBDL
220
221 /* Have io.h (windows)*/
222 #cmakedefine HAVE_IO_H
223
224 /* Define to 1 if you have the strcasecmp() function. */
225 #cmakedefine HAVE_STRCASECMP
226
227 /* Define to 1 if you have the strdup() function. */
228 #cmakedefine HAVE_STRDUP
229
230 /* Define to 1 if you have the vfprintf() function. */
231 #cmakedefine HAVE_VFPRINTF
232
233 /* Define to 1 if you have the memcmp() function. */
234 #cmakedefine HAVE_MEMCMP
235
236 /* Define to 1 if you have the posix_memalign() function. */
237 #cmakedefine HAVE_POSIX_MEMALIGN
238
239 /* Define to 1 if you have the memalign() function. */
240 #cmakedefine HAVE_MEMALIGN
241
242 /* Define to 1 if you have the MSVC _aligned_malloc() function. */
243 #cmakedefine HAVE__ALIGNED_MALLOC
244
245 /* Define to 1 if you have the gettimeofday() function. */
246 #cmakedefine HAVE_GETTIMEOFDAY
247
248 /* Define to 1 if you have the cbrt() function. */
249 #cmakedefine HAVE_CBRT
250
251 /* Define to 1 if you have the isnan() function. */
252 #cmakedefine HAVE_ISNAN
253
254 /* Define to 1 if you have the _isnan() function. */
255 #cmakedefine HAVE__ISNAN
256
257 /* Define to 1 if you have the isfinite() function. */
258 #cmakedefine HAVE_ISFINITE
259
260 /* Define to 1 if you have the _isfinite() function. */
261 #cmakedefine HAVE__ISFINITE
262
263 /* Define to 1 if you have the _finite() function. */
264 #cmakedefine HAVE__FINITE
265
266 /* Define to 1 if you have the fsync() function. */
267 #cmakedefine HAVE_FSYNC
268
269 /* Define to 1 if you have the Windows _commit() function. */
270 #cmakedefine HAVE__COMMIT
271
272 /* Define to 1 if you have the fileno() function. */
273 #cmakedefine HAVE_FILENO
274
275 /* Define to 1 if you have the _fileno() function. */
276 #cmakedefine HAVE__FILENO
277
278 /* Define to 1 if you have the lstat() function. */
279 #cmakedefine HAVE_LSTAT
280
281 /* Define to 1 if you have the sigaction() function. */
282 #cmakedefine HAVE_SIGACTION
283
284 /* Define to 1 if you have the <string.h> header file. */
285 #cmakedefine HAVE_STRING_H
286
287 /* Define to 1 if yo have the <math.h> header file. */
288 #cmakedefine HAVE_MATH_H
289
290 /* Define to 1 if yo have the <limits.h> header file. */
291 #cmakedefine HAVE_LIMITS_H
292
293 /* Define to 1 if yo have the <memory.h> header file. */
294 #cmakedefine HAVE_MEMORY_H
295
296 /* Define to 1 if yo have the <unistd.h> header file. */
297 #cmakedefine HAVE_UNISTD_H
298
299 /* Define to 1 if yo have the <direct.h> header file. */
300 #cmakedefine HAVE_DIRECT_H
301
302 /* Define to 1 if yo have the <pwd.h> header file. */
303 #cmakedefine HAVE_PWD_H
304
305 /* Define to 1 if yo have the <stdint.h> header file. */
306 #cmakedefine HAVE_STDINT_H
307
308 /* Define to 1 if yo have the <stdlib.h> header file. */
309 #cmakedefine HAVE_STDLIB_H
310
311 /* Define to 1 if yo have the <pthread.h> header file. */
312 #cmakedefine HAVE_PTHREAD_H
313
314 /* Define to 1 if yo have the <dirent.h> header file. */
315 #cmakedefine HAVE_DIRENT_H
316
317 /* Define to 1 if yo have the <inttypes.h> header file. */
318 #cmakedefine HAVE_INTTYPES_H
319
320 /* Define to 1 if yo have the <regex.h> header file. */
321 #cmakedefine HAVE_REGEX_H
322
323 /* Define to 1 if you have the <sys/types.h> header file. */
324 #cmakedefine HAVE_SYS_TYPES_H
325
326 /* Define to 1 if you have the <sys/stat.h> header file. */
327 #cmakedefine HAVE_SYS_STAT_H
328
329 /* Define to 1 if you have the <sys/time.h> header file. */
330 #cmakedefine HAVE_SYS_TIME_H
331
332 /* Define to 1 if you have the <rpc/rpc.h> header file. */
333 #cmakedefine HAVE_RPC_RPC_H
334
335 /* Define to 1 if you have the <rpc/xdr.h> header file. */
336 #cmakedefine HAVE_RPC_XDR_H
337
338 /* Define to 1 if you have the <x86intrin.h> header file */
339 #cmakedefine HAVE_X86INTRIN_H
340
341 /* Define for sched.h (this is for thread_mpi)*/
342 #define HAVE_SCHED_H
343
344 /* Define to 1 if you have the vprintf() function. */
345 #cmakedefine HAVE_VPRINTF
346
347 /* Bytes in IEEE fp word are in big-endian order if set, little-endian if not.
348    Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
349 #cmakedefine GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER
350
351 /* The two words in a double precision variable are in b ig-endian order if
352    set, little-endian if not. Do NOT assume this is the same as the byte
353    order! Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
354 #cmakedefine GMX_IEEE754_BIG_ENDIAN_WORD_ORDER
355
356 /* Define if SIGUSR1 is present */
357 #cmakedefine HAVE_SIGUSR1
358
359 /* The size of int, as computed by sizeof. */
360 #cmakedefine SIZEOF_INT @SIZEOF_INT@
361
362 /* The size of long int, as computed by sizeof. */
363 #cmakedefine SIZEOF_LONG_INT @SIZEOF_LONG_INT@
364
365 /* The size of long long int, as computed by sizeof. */
366 #cmakedefine SIZEOF_LONG_LONG_INT @SIZEOF_LONG_LONG_INT@
367
368 /* The size of off_t, as computed by sizeof. */
369 #cmakedefine SIZEOF_OFF_T @SIZEOF_OFF_T@
370
371 /* The size of void*, as computed by sizeof. */
372 #cmakedefine SIZEOF_VOIDP @SIZEOF_VOIDP@
373
374 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
375 #cmakedefine _LARGEFILE_SOURCE
376
377 /* Define for large files, on AIX-style hosts. */
378 #cmakedefine _LARGE_FILES
379
380 /* Some systems requires this to be set to 64 for large file support */
381 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
382
383 /* Gromacs shortcut define for fseeko & ftello being present with 64-bit support */
384 #cmakedefine GMX_LARGEFILES
385
386 /* Define to int if <sys/types.h> does not define. */
387 #cmakedefine gid_t int
388
389 /* Define to __inline__ or __inline if that is what the C compiler
390    calls it, or to nothing if inline is not supported under any name.  */
391 #ifndef __cplusplus
392 #define inline ${INLINE_KEYWORD}
393 #endif
394
395 /* Define to __restrict__ or __restrict if that is what the C compiler
396    calls it, or to nothing if restrict is not supported under any name.  */
397 #define restrict ${RESTRICT_KEYWORD}
398
399 #ifndef CPLUSPLUS
400 #ifdef __cplusplus
401 #define CPLUSPLUS
402 #endif
403 #endif  
404
405 /* Define to long int if <sys/types.h> does not define. */                    
406 #cmakedefine off_t int
407
408 /* Define to unsigned int if <sys/types.h> does not define. */
409 #cmakedefine size_t int
410
411 /* Define to int if <sys/types.h> does not define. */
412 #cmakedefine uid_t int
413
414 /* Build special-purpose mdrun library */
415 #cmakedefine GMX_FAHCORE   
416
417 #ifdef GMX_FAHCORE
418 #define FULLINDIRECT 1
419 #define USE_FAH_XDR  1
420 #include "swindirect.h"
421 #endif
422
423 /* Define if we have pipes */
424 #cmakedefine HAVE_PIPES
425
426
427 /* Catch stupid CMake problems on OS X */
428 #ifdef __APPLE__
429 #  if ((defined(__LP64__) && __LP64__ && defined(SIZEOF_VOIDP) && SIZEOF_VOIDP<8) || ( (!defined(__LP64__) || __LP64__==0) && (defined(SIZEOF_VOIDP) && SIZEOF_VOIDP>4)))
430 #    error "Inconsistency between current OS X architecture and the one used to generate original" 
431 #    error "CMake configuration. This is probably caused by starting CMake with the default value"
432 #    error "for CMAKE_OSX_ARCHITECTURES (blank), and then changing it. In this case all the tests"
433 #    error "will have been performed with the original (now incorrect) architecture."
434 #    error "To fix this, set CMAKE_OSX_ARCHITECTURES on the _command_line_ before starting CMake,"
435 #    error "or create a new such entry with your choice in the GUI _before_ hitting 'configure'."
436 #  endif
437 #endif