Remove unnecessary "move" on shared pointer
[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 /* Binary suffix for the created binaries */
35 #define GMX_BINARY_SUFFIX "@GMX_BINARY_SUFFIX@"
36
37 /* Source directory for the build */
38 #cmakedefine CMAKE_SOURCE_DIR "@CMAKE_SOURCE_DIR@"
39
40 /* Binary directory for the build */
41 #cmakedefine CMAKE_BINARY_DIR "@CMAKE_BINARY_DIR@"
42
43 /* Turn off water-water neighborlist optimization only */
44 #cmakedefine DISABLE_WATERWATER_NLIST
45
46 /* Turn off all water neighborlist optimization */
47 #cmakedefine DISABLE_WATER_NLIST
48
49 /* Fortran support */
50 #cmakedefine GMX_FORTRAN
51
52 /* Define to a macro mangling the given C identifier (in lower and upper
53    case), which must not contain underscores, for linking with Fortran. */
54 #define F77_FUNC(name,NAME)     @F77_FUNCDEF@
55
56 /* IEEE754 floating-point format. Memory layout is defined by macros
57  * GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER and GMX_IEEE754_BIG_ENDIAN_WORD_ORDER. 
58  */
59 #cmakedefine GMX_FLOAT_FORMAT_IEEE754
60
61 /* Use assembly intrinsics kernels for BlueGene */
62 #cmakedefine GMX_BLUEGENE
63
64 /* Power6 acceleration */
65 #cmakedefine GMX_POWER6
66
67 /* Work around broken calloc() */
68 #cmakedefine GMX_BROKEN_CALLOC
69
70 /* Enable special hacks for Cray XT3 */
71 #cmakedefine GMX_CRAY_XT3
72
73 /* Do not optimize FFTW setups (not needed with SSE FFT kernels) */
74 #cmakedefine GMX_DISABLE_FFTW_MEASURE
75
76 /* Compile in double precision */
77 #cmakedefine GMX_DOUBLE
78
79 /* Use Built-in FFTPACK FFT library */
80 #cmakedefine GMX_FFT_FFTPACK
81
82 /* Use FFTW3 FFT library */
83 #cmakedefine GMX_FFT_FFTW3
84
85 /* Use Intel MKL FFT library */
86 #cmakedefine GMX_FFT_MKL
87
88 /* Use AMD core math library */
89 #cmakedefine GMX_FFT_ACML
90
91 /* Single-precision SSE instructions on ia32 */
92 #cmakedefine GMX_IA32_SSE
93
94 /* Double-precision SSE2 instructions on ia32 */
95 #cmakedefine GMX_IA32_SSE2
96
97 /* Use ia64 assembly tuned for Itanium2 */
98 #cmakedefine GMX_IA64_ASM
99
100 /* Integer byte order is big endian. */
101 #cmakedefine GMX_INTEGER_BIG_ENDIAN 
102
103 /* Use our own instead of system XDR libraries */
104 #cmakedefine GMX_INTERNAL_XDR
105
106 /* Use MPI (with mpicc) for parallelization */
107 #cmakedefine GMX_LIB_MPI
108
109 /* MPI_IN_PLACE exists for collective operations */
110 #cmakedefine MPI_IN_PLACE_EXISTS
111
112 /* Make a parallel version of GROMACS using message passing 
113    (MPI or thread_mpi) */
114 #cmakedefine GMX_MPI
115
116 /* Use threads for parallelization */
117 #cmakedefine GMX_THREAD_MPI
118
119 /* Use old threading (domain decomp force calc) code */
120 #cmakedefine GMX_THREAD_SHM_FDECOMP 
121
122 /* Ignore calls to nice(3) */
123 #cmakedefine GMX_NO_NICE
124
125 /* Ignore calls to system(3) */
126 #cmakedefine GMX_NO_SYSTEM
127
128 /* Use PowerPC Altivec inner loops */
129 #cmakedefine GMX_PPC_ALTIVEC
130
131 /* Use (modified) Gamess-UK for QM-MM calculations */
132 #cmakedefine GMX_QMMM_GAMESS
133
134 /* Use (modified) Gaussian0x for QM-MM calculations */
135 #cmakedefine GMX_QMMM_GAUSSIAN
136
137 /* Use (modified) Mopac 7 for QM-MM calculations */
138 #cmakedefine GMX_QMMM_MOPAC
139
140 /* Use the GROMACS software 1/sqrt(x) */
141 #cmakedefine GMX_SOFTWARE_INVSQRT
142
143 /* Use the PowerPC hardware 1/sqrt(x) */
144 #cmakedefine GMX_POWERPC_INVSQRT
145
146 /* Compile with plugin support */
147 #cmakedefine GMX_USE_PLUGINS
148
149 /* Fallback path for VMD plug-ins */
150 #define GMX_VMD_PLUGIN_PATH "@GMX_VMD_PLUGIN_PATH@"
151
152 /* Define when pthreads are used */
153 #cmakedefine THREAD_PTHREADS
154
155 /* Define when Windows threads are used */
156 #cmakedefine THREAD_WINDOWS
157
158 /* Define for busy wait option  */
159 #cmakedefine TMPI_WAIT_FOR_NO_ONE
160
161 /* Define for copy buffer option */
162 #cmakedefine TMPI_COPY_BUFFER
163
164 /* Define for profiling option */
165 #cmakedefine TMPI_PROFILE
166
167 /* Define for Linux pthread_setaffinity */
168 #cmakedefine HAVE_PTHREAD_SETAFFINITY
169
170 /* Define for sysconf() */
171 #cmakedefine HAVE_SYSCONF
172
173 /* Single-precision SSE instructions on X86_64 */
174 #cmakedefine GMX_X86_64_SSE
175
176 /* Double-precision SSE2 instructions on X86_64 */
177 #cmakedefine GMX_X86_64_SSE2
178
179 /* Support for SSE intrinsics */
180 #cmakedefine GMX_SSE
181
182 /* Support for SSE2 intrinsics */
183 #cmakedefine GMX_SSE2
184
185 /* Support for SSE3 intrinsics */
186 #cmakedefine GMX_SSE3
187
188 /* Support for SSE4.1 intrinsics */
189 #cmakedefine GMX_SSE4_1
190
191 /* Define to 1 if you have the <altivec.h> header file. */
192 #cmakedefine HAVE_ALTIVEC_H
193
194 /* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
195 #cmakedefine HAVE_FSEEKO
196
197 /* Define to 1 if _fseeki64 (and presumably _fseeki64) exists and is declared. */
198 #cmakedefine HAVE__FSEEKI64
199
200 /* Define to 1 if you have the gsl library (-lgsl). */
201 #cmakedefine HAVE_LIBGSL
202
203 /* Have io.h (windows)*/
204 #cmakedefine HAVE_IO_H
205
206 /* Define to 1 if you have the strdup() function. */
207 #cmakedefine HAVE_STRDUP
208
209 /* Define to 1 if you have the posix_memalign() function. */
210 #cmakedefine HAVE_POSIX_MEMALIGN
211
212 /* Define to 1 if you have the memalign() function. */
213 #cmakedefine HAVE_MEMALIGN
214
215 /* Define to 1 if you have the MSVC _aligned_malloc() function. */
216 #cmakedefine HAVE__ALIGNED_MALLOC
217
218 /* Define to 1 if you have the gettimeofday() function. */
219 #cmakedefine HAVE_GETTIMEOFDAY
220
221 /* Define to 1 if you have the cbrt() function. */
222 #cmakedefine HAVE_CBRT
223
224 /* Define to 1 if you have the isfinite() function. */
225 #cmakedefine HAVE_ISFINITE
226
227 /* Define to 1 if you have the _isfinite() function. */
228 #cmakedefine HAVE__ISFINITE
229
230 /* Define to 1 if you have the _finite() function. */
231 #cmakedefine HAVE__FINITE
232
233 /* Define to 1 if you have the fsync() function. */
234 #cmakedefine HAVE_FSYNC
235
236 /* Define to 1 if you have the Windows _commit() function. */
237 #cmakedefine HAVE__COMMIT
238
239 /* Define to 1 if you have the fileno() function. */
240 #cmakedefine HAVE_FILENO
241
242 /* Define to 1 if you have the _fileno() function. */
243 #cmakedefine HAVE__FILENO
244
245 /* Define to 1 if you have the lstat() function. */
246 #cmakedefine HAVE_LSTAT
247
248 /* Define to 1 if you have the sigaction() function. */
249 #cmakedefine HAVE_SIGACTION
250
251 /* Define to 1 if yo have the <unistd.h> header file. */
252 #cmakedefine HAVE_UNISTD_H
253
254 /* Define to 1 if yo have the <pwd.h> header file. */
255 #cmakedefine HAVE_PWD_H
256
257 /* Define to 1 if yo have the <pthread.h> header file. */
258 #cmakedefine HAVE_PTHREAD_H
259
260 /* Define to 1 if yo have the <dirent.h> header file. */
261 #cmakedefine HAVE_DIRENT_H
262
263 /* Define to 1 if yo have the <regex.h> header file. */
264 #cmakedefine HAVE_REGEX_H
265
266 /* Define to 1 if you have the <sys/types.h> header file. */
267 #cmakedefine HAVE_SYS_TYPES_H
268
269 /* Define to 1 if you have the <sys/time.h> header file. */
270 #cmakedefine HAVE_SYS_TIME_H
271
272 /* Define for sched.h (this is for thread_mpi)*/
273 #define HAVE_SCHED_H
274
275 /* Bytes in IEEE fp word are in big-endian order if set, little-endian if not.
276    Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
277 #cmakedefine GMX_IEEE754_BIG_ENDIAN_BYTE_ORDER
278
279 /* The two words in a double precision variable are in b ig-endian order if
280    set, little-endian if not. Do NOT assume this is the same as the byte
281    order! Only relevant when FLOAT_FORMAT_IEEE754 is defined. */
282 #cmakedefine GMX_IEEE754_BIG_ENDIAN_WORD_ORDER
283
284 /* Define if SIGUSR1 is present */
285 #cmakedefine HAVE_SIGUSR1
286
287 /* The size of int, as computed by sizeof. */
288 #cmakedefine SIZEOF_INT @SIZEOF_INT@
289
290 /* The size of long int, as computed by sizeof. */
291 #cmakedefine SIZEOF_LONG_INT @SIZEOF_LONG_INT@
292
293 /* The size of long long int, as computed by sizeof. */
294 #cmakedefine SIZEOF_LONG_LONG_INT @SIZEOF_LONG_LONG_INT@
295
296 /* The size of off_t, as computed by sizeof. */
297 #cmakedefine SIZEOF_OFF_T @SIZEOF_OFF_T@
298
299 /* The size of void*, as computed by sizeof. */
300 #cmakedefine SIZEOF_VOIDP @SIZEOF_VOIDP@
301
302 /* Define to 1 to make fseeko visible on some hosts (e.g. glibc 2.2). */
303 #cmakedefine _LARGEFILE_SOURCE
304
305 /* Define for large files, on AIX-style hosts. */
306 #cmakedefine _LARGE_FILES
307
308 /* Some systems requires this to be set to 64 for large file support */
309 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
310
311 /* Define to __inline__ or __inline if that is what the C compiler
312    calls it, or to nothing if inline is not supported under any name.  */
313 #ifndef __cplusplus
314 #define inline ${INLINE_KEYWORD}
315 #endif
316
317 /* Build special-purpose mdrun library */
318 #cmakedefine GMX_FAHCORE   
319
320 #ifdef GMX_FAHCORE
321 #define FULLINDIRECT 1
322 #define USE_FAH_XDR  1
323 #include "swindirect.h"
324 #endif
325
326 /* Define if we have pipes */
327 #cmakedefine HAVE_PIPES
328
329 /* Catch stupid CMake problems on OS X */
330 #ifdef __APPLE__
331 #  if ((defined(__LP64__) && __LP64__ && defined(SIZEOF_VOIDP) && SIZEOF_VOIDP<8) || ( (!defined(__LP64__) || __LP64__==0) && (defined(SIZEOF_VOIDP) && SIZEOF_VOIDP>4)))
332 #    error "Inconsistency between current OS X architecture and the one used to generate original" 
333 #    error "CMake configuration. This is probably caused by starting CMake with the default value"
334 #    error "for CMAKE_OSX_ARCHITECTURES (blank), and then changing it. In this case all the tests"
335 #    error "will have been performed with the original (now incorrect) architecture."
336 #    error "To fix this, set CMAKE_OSX_ARCHITECTURES on the _command_line_ before starting CMake,"
337 #    error "or create a new such entry with your choice in the GUI _before_ hitting 'configure'."
338 #  endif
339 #endif