1 /*
2  *  This file was originally generated by configure, but has been edited
3  *  to provide the correct defines for the Native Win32 build under
4  *  Visual Studio.
5  *
6  *  Note!!! We normally build the Windows versions with this header
7  *    file.  We use the Mingw environment.
8  */
9 /* ------------------------------------------------------------------------- */
10 /* --                     CONFIGURE SPECIFIED FEATURES                    -- */
11 /* ------------------------------------------------------------------------- */
12 
13 #ifndef __MINGWCONFIG_H
14 #define __MINGWCONFIG_H
15 
16 #undef  _WIN32_WINNT
17 #define _WIN32_WINNT 0x0602
18 #undef  _WIN32_IE
19 #define _WIN32_IE 0x7000
20 
21 /* To compile with the new mingw-w64*/
22 #ifdef HAVE_MINGW_W64
23 # define HAVE_FSEEKO 1
24 # define MINGW64
25 # define HAVE_OPENSSLv1
26 # define __MIDL_user_allocate_free_DEFINED__
27 #endif
28 
29 #ifndef NAME_MAX
30 #define NAME_MAX MAX_PATH
31 #endif
32 
33 #define HAVE_TLS_PSK
34 
35 #define HAVE_SHA2
36 
37 #define USE_LOCKMGR
38 
39 /* Define if you want SmartAlloc debug code enabled */
40 #define SMARTALLOC 1
41 
42 /* Use EmptyWorkSet as malloc_trim emulation */
43 #define HAVE_MALLOC_TRIM 1
44 
45 /* Define if you want to use Batch Mode */
46 /* #define HAVE_BATCH_FILE_INSERT 1 */
47 
48 /* Define if you need function prototypes */
49 #define PROTOTYPES 1
50 
51 /* Define if you have GCC */
52 #define HAVE_GCC 1
53 
54 /* Define to 1 if utime.h exists and declares struct utimbuf.  */
55 #define HAVE_UTIME_H 1
56 
57 /* Data types */
58 #define HAVE_U_INT 1
59 #define HAVE_INTXX_T 1
60 #define HAVE_U_INTXX_T 1
61 /* #undef HAVE_UINTXX_T */
62 #define HAVE_INT64_T 1
63 #define HAVE_U_INT64_T 1
64 #define HAVE_UINT64_T 1
65 #define HAVE_INTMAX_T 1
66 /* #undef HAVE_U_INTMAX_T */
67 #define HAVE_UINTPTR_T 1
68 #define HAVE_INTPTR_T 1
69 
70 /* Define if you want TCP Wrappers support */
71 /* #undef HAVE_LIBWRAP */
72 
73 /* Define if you have sys/bitypes.h */
74 /* #undef HAVE_SYS_BITYPES_H */
75 
76 /* Define if you have zlib */
77 #define HAVE_LIBZ 1
78 
79 /* Define if you have lzo lib */
80 #define HAVE_LZO 1
81 
82 /* Define to 1 if you have the <lzo/lzoconf.h> header file. */
83 #define HAVE_LZO_LZOCONF_H 1
84 
85 
86 /* File daemon specif libraries */
87 #define FDLIBS 1
88 
89 
90 /* What kind of signals we have */
91 /*#define HAVE_POSIX_SIGNALS 1 */
92 /* #undef HAVE_BSD_SIGNALS */
93 /* #undef HAVE_USG_SIGHOLD */
94 
95 
96 /* Set to correct scanf value for long long int */
97 #define lld "lld"
98 #define llu "llu"
99 /* #define USE_BSNPRINTF */
100 
101 #define HAVE_STRTOLL 1
102 
103 /* Define to 1 if you have `alloca', as a function or macro. */
104 #define HAVE_ALLOCA 1
105 #ifndef HAVE_MINGW
106 #define alloca _alloca
107 #endif
108 
109 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
110    */
111 #define HAVE_DIRENT_H 1
112 
113 /* Define to 1 if you have the <fcntl.h> header file. */
114 #define HAVE_FCNTL_H 1
115 
116 /* Define to 1 if you have the `getcwd' function. */
117 #define HAVE_GETCWD 1
118 
119 /* Define to 1 if you have the `gethostid' function. */
120 #define HAVE_GETHOSTID 1
121 
122 /* Define to 1 if you have the `gethostname' function. */
123 #define HAVE_GETHOSTNAME 1
124 
125 /* Define to 1 if you have the `getmntent' function. */
126 /*#define HAVE_GETMNTENT 1 */
127 
128 /* Define to 1 if you have the `getpid' function. */
129 #define HAVE_GETPID 1
130 #define getpid _getpid
131 
132 /* Define to 1 if you have the `gettimeofday' function. */
133 #define HAVE_GETTIMEOFDAY 1
134 
135 /* Define to 1 if you have the <grp.h> header file. */
136 /*#define HAVE_GRP_H 1*/
137 
138 /* Define to 1 if you have the `inet_pton' function. */
139 /* #undef HAVE_INET_PTON */
140 
141 /* Define to 1 if you have the `inet_pton' function. */
142 /* #undef HAVE_INET_NTOP */
143 
144 /* Define to 1 if you have the `getaddrinfo' function. */
145 #define HAVE_GETADDRINFO 1
146 
147 /* Define to 1 if you have the `getnameinfo' function. */
148 #define HAVE_GETNAMEINFO 1
149 
150 /* Define to 1 if you have the <inttypes.h> header file. */
151 #define HAVE_INTTYPES_H 1
152 
153 /* Define to 1 if you have the `lchown' function. */
154 #define HAVE_LCHOWN 1
155 
156 /* Define to 1 if you have the <limits.h> header file. */
157 #define HAVE_LIMITS_H 1
158 
159 /* Define to 1 if you have the `localtime_r' function. */
160 #define HAVE_LOCALTIME_R 1
161 
162 /* Define to 1 if you have the `lstat' function. */
163 #define HAVE_LSTAT 1
164 
165 /* Define to 1 if you have the <memory.h> header file. */
166 #define HAVE_MEMORY_H 1
167 
168 /* Define to 1 if you have the <mtio.h> header file. */
169 /* #undef HAVE_MTIO_H */
170 
171 /* Define to 1 if you have the `nanosleep' function. */
172 #define HAVE_NANOSLEEP 1
173 
174 /* Define to 1 if you have the <pwd.h> header file. */
175 /*#define HAVE_PWD_H 1*/
176 
177 /* Define to 1 if you have the `readdir_r' function. */
178 /* #undef HAVE_READDIR_R */
179 
180 /* Define to 1 if you have the <resolv.h> header file. */
181 /*#define HAVE_RESOLV_H 1*/
182 
183 /* Define to 1 if you have the `select' function. */
184 #define HAVE_SELECT 1
185 
186 /* Define to 1 if you have the `setenv' function. */
187 /* #undef HAVE_SETENV */
188 
189 #define HAVE_PUTENV 1
190 
191 /* Define to 1 if you have the `setlocale' function. */
192 #undef HAVE_SETLOCALE
193 
194 /* Define to 1 if translation of program messages to the user's native
195    language is requested. */
196 #if (defined _MSC_VER) && (_MSC_VER >= 1400) // VC8+
197 /* Enable NLS only if we are using the new VC++.
198  * NLS should also work with VC++ 7.1, but the Makefiles are
199  * not adapted to support it (include, lib...). */
200 #define ENABLE_NLS 1
201 #endif
202 
203 #undef  LOCALEDIR
204 #define LOCALEDIR "."
205 
206 #undef HAVE_NL_LANGINFO
207 
208 /* Define to 1 if you have the `setpgid' function. */
209 #define HAVE_SETPGID 1
210 
211 /* Define to 1 if you have the `setpgrp' function. */
212 #define HAVE_SETPGRP 1
213 
214 /* Define to 1 if you have the `setsid' function. */
215 #define HAVE_SETSID 1
216 
217 /* Define to 1 if you have the `signal' function. */
218 /*#define HAVE_SIGNAL 1 */
219 
220 /* Define to 1 if you have the `snprintf' function. */
221 #define HAVE_SNPRINTF 1
222 
223 /* Define to 1 if you have the <stdarg.h> header file. */
224 #define HAVE_STDARG_H 1
225 
226 /* Define to 1 if you have the <stdint.h> header file. */
227 #define HAVE_STDINT_H 1
228 
229 /* Define to 1 if you have the <stdlib.h> header file. */
230 #define HAVE_STDLIB_H 1
231 
232 /* Define to 1 if you have the `strcasecmp' function. */
233 #define HAVE_STRCASECMP 1
234 
235 /* Define to 1 if you have the `strerror' function. */
236 #define HAVE_STRERROR 1
237 
238 /* Define to 1 if you have the `strerror_r' function. */
239 #define HAVE_STRERROR_R 1
240 
241 /* Define to 1 if you have the `strftime' function. */
242 #define HAVE_STRFTIME 1
243 
244 /* Define to 1 if you have the <strings.h> header file. */
245 #define HAVE_STRINGS_H 1
246 
247 /* Define to 1 if you have the <string.h> header file. */
248 #define HAVE_STRING_H 1
249 
250 /* Define to 1 if you have the `strncmp' function. */
251 #define HAVE_STRNCMP 1
252 
253 /* Define to 1 if you have the `strncpy' function. */
254 #define HAVE_STRNCPY 1
255 
256 /* Define to 1 if you have the `strtoll' function. */
257 #define HAVE_STRTOLL 1
258 
259 /* Define to 1 if `st_blksize' is member of `struct stat'. */
260 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
261 
262 /* Define to 1 if `st_blocks' is member of `struct stat'. */
263 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
264 
265 /* Define to 1 if `st_rdev' is member of `struct stat'. */
266 #define HAVE_STRUCT_STAT_ST_RDEV 1
267 
268 /* Define to 1 if `tm_zone' is member of `struct tm'. */
269 /* #undef HAVE_STRUCT_TM_TM_ZONE */
270 
271 /* Define to 1 if your `struct stat' has `st_blksize'. Deprecated, use
272    `HAVE_STRUCT_STAT_ST_BLKSIZE' instead. */
273 #define HAVE_ST_BLKSIZE 1
274 
275 /* Define to 1 if your `struct stat' has `st_blocks'. Deprecated, use
276    `HAVE_STRUCT_STAT_ST_BLOCKS' instead. */
277 #define HAVE_ST_BLOCKS 1
278 
279 /* Define to 1 if your `struct stat' has `st_rdev'. Deprecated, use
280    `HAVE_STRUCT_STAT_ST_RDEV' instead. */
281 #define HAVE_ST_RDEV 1
282 
283 /* Define to 1 if you have the <sys/byteorder.h> header file. */
284 /* #undef HAVE_SYS_BYTEORDER_H */
285 
286 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
287    */
288 /* #undef HAVE_SYS_DIR_H */
289 
290 /* Define to 1 if you have the <sys/ioctl.h> header file. */
291 #define HAVE_SYS_IOCTL_H 1
292 
293 /* Define to 1 if you have the <sys/mtio.h> header file. */
294 #define HAVE_SYS_MTIO_H 1
295 
296 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
297    */
298 /* #undef HAVE_SYS_NDIR_H */
299 
300 /* Define to 1 if you have the <sys/select.h> header file. */
301 #define HAVE_SYS_SELECT_H 1
302 
303 /* Define to 1 if you have the <sys/socket.h> header file. */
304 #define HAVE_SYS_SOCKET_H 1
305 
306 /* Define to 1 if you have the <sys/sockio.h> header file. */
307 /* #undef HAVE_SYS_SOCKIO_H */
308 
309 /* Define to 1 if you have the <sys/stat.h> header file. */
310 #define HAVE_SYS_STAT_H 1
311 
312 /* Define to 1 if you have the <sys/time.h> header file. */
313 #define HAVE_SYS_TIME_H 1
314 
315 /* Define to 1 if you have the <sys/types.h> header file. */
316 #define HAVE_SYS_TYPES_H 1
317 
318 /* Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible. */
319 #define HAVE_SYS_WAIT_H 1
320 
321 /* Define to 1 if you have the `tcgetattr' function. */
322 #define HAVE_TCGETATTR 1
323 
324 /* Define to 1 if you have the <termios.h> header file. */
325 #define HAVE_TERMIOS_H 1
326 
327 /* Define to 1 if your `struct tm' has `tm_zone'. Deprecated, use
328    `HAVE_STRUCT_TM_TM_ZONE' instead. */
329 /* #undef HAVE_TM_ZONE */
330 
331 /* Define to 1 if you don't have `tm_zone' but do have the external array
332    `tzname'. */
333 #define HAVE_TZNAME 1
334 
335 /* Define to 1 if you have the <unistd.h> header file. */
336 #define HAVE_UNISTD_H 1
337 
338 /* Define to 1 if you have the <varargs.h> header file. */
339 /* #undef HAVE_VARARGS_H */
340 
341 /* Define to 1 if you have the `vfprintf' function. */
342 #define HAVE_VFPRINTF 1
343 
344 /* Define to 1 if you have the `vprintf' function. */
345 #define HAVE_VPRINTF 1
346 
347 /* Define to 1 if you have the `vsnprintf' function. */
348 #define HAVE_VSNPRINTF 1
349 
350 /* Define to 1 if you have the <zlib.h> header file. */
351 #define HAVE_ZLIB_H 1
352 
353 /* Define to 1 if `major', `minor', and `makedev' are declared in <mkdev.h>.
354    */
355 /* #undef MAJOR_IN_MKDEV */
356 
357 /* Define to 1 if `major', `minor', and `makedev' are declared in
358    <sysmacros.h>. */
359 /* #undef MAJOR_IN_SYSMACROS */
360 
361 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
362 /* #undef NO_MINUS_C_MINUS_O */
363 
364 /* Define to the address where bug reports for this package should be sent. */
365 #define PACKAGE_BUGREPORT ""
366 
367 /* Define to the full name of this package. */
368 #define PACKAGE_NAME ""
369 
370 /* Define to the full name and version of this package. */
371 #define PACKAGE_STRING ""
372 
373 /* Define to the one symbol short name of this package. */
374 #define PACKAGE_TARNAME ""
375 
376 /* Define to the version of this package. */
377 #define PACKAGE_VERSION ""
378 
379 /* Define as the return type of signal handlers (`int' or `void'). */
380 #define RETSIGTYPE void
381 
382 /* Define to 1 if the `setpgrp' function takes no argument. */
383 #define SETPGRP_VOID 1
384 
385 /* The size of a `char', as computed by sizeof. */
386 #define SIZEOF_CHAR 1
387 
388 /* The size of a `int', as computed by sizeof. */
389 #define SIZEOF_INT 4
390 
391 /* The size of a `int *', as computed by sizeof. */
392 #define SIZEOF_INT_P 4
393 
394 /* The size of a `long int', as computed by sizeof. */
395 #define SIZEOF_LONG_INT 4
396 
397 /* The size of a `long long int', as computed by sizeof. */
398 #define SIZEOF_LONG_LONG_INT 8
399 
400 /* The size of a `short int', as computed by sizeof. */
401 #define SIZEOF_SHORT_INT 2
402 
403 /* If using the C implementation of alloca, define if you know the
404    direction of stack growth for your system; otherwise it will be
405    automatically deduced at run-time.
406         STACK_DIRECTION > 0 => grows toward higher addresses
407         STACK_DIRECTION < 0 => grows toward lower addresses
408         STACK_DIRECTION = 0 => direction of growth unknown */
409 /* #undef STACK_DIRECTION */
410 
411 
412 /* Define to 1 if you have the ANSI C header files. */
413 #define STDC_HEADERS 1
414 
415 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
416 #define TIME_WITH_SYS_TIME 1
417 
418 /* Define to 1 if your <sys/time.h> declares `struct tm'. */
419 /* #undef TM_IN_SYS_TIME */
420 
421 /* Use long unsigned int for ioctl request */
422 #define HAVE_IOCTL_ULINT_REQUEST
423 
424 /* For now, we only support Little endian on Win32 */
425 #define HAVE_LITTLE_ENDIAN 1
426 
427 /* Number of bits in a file offset, on hosts where this is settable. */
428 #define _FILE_OFFSET_BITS 64
429 
430 /* Define to make fseeko etc. visible, on some hosts. */
431 #define _LARGEFILE_SOURCE 1
432 
433 /* Define for large files, on AIX-style hosts. */
434 #define _LARGE_FILES 1
435 
436 /* Whether to enable IPv6 support */
437 #define HAVE_IPV6 1
438 
439 /* Set the default configuration file */
440 #undef  SYSCONFDIR
441 #define SYSCONFDIR "C:/Program Files/Bacula"
442 
443 #define O_CLOEXEC 0
444 
445 #endif /* __MINGWNCONFIG_H */
446