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