Ensure that .ONESHELL works with .SHELLFLAGS options containing whitespace.
[make.git] / config.h.W32.template
blob2c5c02d2592fd57a45a70b3719ec289ab7cd05a3
1 /* config.h.W32 -- hand-massaged config.h file for Windows builds       -*-C-*-
3 Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
4 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
5 This file is part of GNU Make.
7 GNU Make is free software; you can redistribute it and/or modify it under the
8 terms of the GNU General Public License as published by the Free Software
9 Foundation; either version 3 of the License, or (at your option) any later
10 version.
12 GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
14 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License along with
17 this program.  If not, see <http://www.gnu.org/licenses/>.  */
19 /* Suppress some Visual C++ warnings.
20    Maybe after the code cleanup for ISO C we can remove some/all of these.  */
21 #if _MSC_VER > 1000
22 # pragma warning(disable:4100) /* unreferenced formal parameter */
23 # pragma warning(disable:4102) /* unreferenced label */
24 # pragma warning(disable:4127) /* conditional expression is constant */
25 # pragma warning(disable:4131) /* uses old-style declarator */
26 # pragma warning(disable:4702) /* unreachable code */
27 # define _CRT_SECURE_NO_WARNINGS  /* function or variable may be unsafe */
28 # define _CRT_NONSTDC_NO_WARNINGS /* functions w/o a leading underscore */
29 #endif
31 /* Define to 1 if the `closedir' function returns void instead of `int'. */
32 /* #undef CLOSEDIR_VOID */
34 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
35    systems. This function is required for `alloca.c' support on those systems.
36    */
37 /* #undef CRAY_STACKSEG_END */
39 /* Define to 1 if using `alloca.c'. */
40 /* #undef C_ALLOCA */
42 /* Define to 1 if using `getloadavg.c'. */
43 #define C_GETLOADAVG 1
45 /* Define to 1 for DGUX with <sys/dg_sys_info.h>. */
46 /* #undef DGUX */
48 /* Define to 1 if translation of program messages to the user's native
49    language is requested. */
50 /* #undef ENABLE_NLS */
52 /* Use high resolution file timestamps if nonzero. */
53 #define FILE_TIMESTAMP_HI_RES 0
55 /* Define to 1 if the `getloadavg' function needs to be run setuid or setgid.
56    */
57 /* #undef GETLOADAVG_PRIVILEGED */
59 /* Define to 1 if you have `alloca', as a function or macro. */
60 #define HAVE_ALLOCA 1
62 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
63    */
64 /* #undef HAVE_ALLOCA_H */
66 /* Define to 1 if your compiler conforms to the ANSI C standard. */
67 #define HAVE_ANSI_COMPILER 1
69 /* Define to 1 if you have the `atexit' function. */
70 #define HAVE_ATEXIT 1
72 /* Use case insensitive file names */
73 /* #undef HAVE_CASE_INSENSITIVE_FS */
75 /* Define to 1 if you have the clock_gettime function. */
76 /* #undef HAVE_CLOCK_GETTIME */
78 /* Embed GNU Guile support.  Windows build sets this on the
79    compilation command line.  */
80 /* #undef HAVE_GUILE */
82 /* Define if the GNU dcgettext() function is already present or preinstalled.
83    */
84 /* #undef HAVE_DCGETTEXT */
86 /* Define to 1 if you have the declaration of `bsd_signal', and to 0 if you
87    don't. */
88 #define HAVE_DECL_BSD_SIGNAL 0
90 /* Define to 1 if you have the declaration of `sys_siglist', and to 0 if you
91    don't. */
92 #define HAVE_DECL_SYS_SIGLIST 0
94 /* Define to 1 if you have the declaration of `_sys_siglist', and to 0 if you
95    don't. */
96 #define HAVE_DECL__SYS_SIGLIST 0
98 /* Define to 1 if you have the declaration of `__sys_siglist', and to 0 if you
99    don't. */
100 #define HAVE_DECL___SYS_SIGLIST 0
102 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
103    */
104 #define HAVE_DIRENT_H 1
106 /* Define to 1 if you have the <direct.h> header file, and it defines getcwd()
107    and chdir().
108    */
109 #if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(__INTERIX)
110 # define HAVE_DIRECT_H 1
111 #endif
113 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
114 /* #undef HAVE_DOPRNT */
116 /* Use platform specific coding */
117 #define HAVE_DOS_PATHS 1
119 /* Define to 1 if you have the `dup2' function. */
120 #define HAVE_DUP2 1
122 /* Define to 1 if you have the <fcntl.h> header file. */
123 #define HAVE_FCNTL_H 1
125 /* Define to 1 if you have the `fdopen' function. */
126 #ifdef __MINGW32__
127 #define HAVE_FDOPEN 1
128 #endif
130 /* Define to 1 if you have the `fileno' function. */
131 #define HAVE_FILENO 1
133 /* Define to 1 if you have the `fork' function. */
134 /* #undef HAVE_FORK */
136 /* Define to 1 if you have the `getcwd' function.  */
137 #define HAVE_GETCWD 1
139 /* Define to 1 if you have the `getgroups' function. */
140 /* #undef HAVE_GETGROUPS */
142 /* Define to 1 if you have the `gethostbyname' function. */
143 /* #undef HAVE_GETHOSTBYNAME */
145 /* Define to 1 if you have the `gethostname' function. */
146 /* #undef HAVE_GETHOSTNAME */
148 /* Define to 1 if you have the `getloadavg' function. */
149 /* #undef HAVE_GETLOADAVG */
151 /* Define to 1 if you have the `getrlimit' function. */
152 /* #undef HAVE_GETRLIMIT */
154 /* Define if the GNU gettext() function is already present or preinstalled. */
155 /* #undef HAVE_GETTEXT */
157 /* Define to 1 if you have a standard gettimeofday function */
158 #ifdef __MINGW32__
159 #define HAVE_GETTIMEOFDAY 1
160 #endif
162 /* Define if you have the iconv() function. */
163 /* #undef HAVE_ICONV */
165 /* Define to 1 if you have the <inttypes.h> header file. */
166 #ifdef __MINGW32__
167 #define HAVE_INTTYPES_H 1
168 #endif
170 /* Define to 1 if you have the `dgc' library (-ldgc). */
171 /* #undef HAVE_LIBDGC */
173 /* Define to 1 if you have the `kstat' library (-lkstat). */
174 /* #undef HAVE_LIBKSTAT */
176 /* Define to 1 if you have the <limits.h> header file. */
177 #define HAVE_LIMITS_H 1
179 /* Define to 1 if you have the <locale.h> header file. */
180 /*#define HAVE_LOCALE_H 1*/
182 /* Define to 1 if you have the `lstat' function. */
183 /* #undef HAVE_LSTAT */
185 /* Define to 1 if you have the <mach/mach.h> header file. */
186 /* #undef HAVE_MACH_MACH_H */
188 /* Define to 1 if you have the <memory.h> header file. */
189 #define HAVE_MEMORY_H 1
191 /* Define to 1 if you have the `mkstemp' function. */
192 /* #undef HAVE_MKSTEMP */
194 /* Define to 1 if you have the `mktemp' function. */
195 #define HAVE_MKTEMP 1
197 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
198 /* #undef HAVE_NDIR_H */
200 /* Define to 1 if you have the <nlist.h> header file. */
201 /* #undef HAVE_NLIST_H */
203 /* Define to 1 if you have the `pipe' function. */
204 /* #undef HAVE_PIPE */
206 /* Define to 1 if you have the `pstat_getdynamic' function. */
207 /* #undef HAVE_PSTAT_GETDYNAMIC */
209 /* Define to 1 if you have the `readlink' function. */
210 /* #undef HAVE_READLINK */
212 /* Define to 1 if you have the `realpath' function. */
213 /* #undef HAVE_REALPATH */
215 /* Define to 1 if <signal.h> defines the SA_RESTART constant. */
216 /* #undef HAVE_SA_RESTART */
218 /* Define to 1 if you have the `setegid' function. */
219 /* #undef HAVE_SETEGID */
221 /* Define to 1 if you have the `seteuid' function. */
222 /* #undef HAVE_SETEUID */
224 /* Define to 1 if you have the `setlinebuf' function. */
225 /* #undef HAVE_SETLINEBUF */
227 /* Define to 1 if you have the `setlocale' function. */
228 /*#define HAVE_SETLOCALE 1*/
230 /* Define to 1 if you have the `setregid' function. */
231 /* #undef HAVE_SETREGID */
233 /* Define to 1 if you have the `setreuid' function. */
234 /* #undef HAVE_SETREUID */
236 /* Define to 1 if you have the `setrlimit' function. */
237 /* #undef HAVE_SETRLIMIT */
239 /* Define to 1 if you have the `setvbuf' function. */
240 #define HAVE_SETVBUF 1
242 /* Define to 1 if you have the `sigaction' function. */
243 /* #undef HAVE_SIGACTION */
245 /* Define to 1 if you have the `sigsetmask' function. */
246 /* #undef HAVE_SIGSETMASK */
248 /* Define to 1 if you have the `socket' function. */
249 /* #undef HAVE_SOCKET */
251 /* Define to 1 if you have the <stdarg.h> header file. */
252 #define HAVE_STDARG_H 1
254 /* Define to 1 if you have the <stdint.h> header file. */
255 #ifdef __MINGW32__
256 #define HAVE_STDINT_H 1
257 #endif
259 /* Define to 1 if you have the <stdlib.h> header file. */
260 #define HAVE_STDLIB_H 1
262 /* Define to 1 if you have the `strcasecmp' function. */
263 #ifdef __MINGW32__
264 #define HAVE_STRCASECMP 1
265 #endif
267 /* Define to 1 if you have the `strcmpi' function. */
268 #define HAVE_STRCMPI 1
270 /* Define to 1 if you have the `strcoll' function and it is properly defined.
271    */
272 #define HAVE_STRCOLL 1
274 /* Define to 1 if you have the `strdup' function. */
275 #define HAVE_STRDUP 1
277 /* Define to 1 if you have the `strerror' function. */
278 #define HAVE_STRERROR 1
280 /* Define to 1 if you have the `stricmp' function. */
281 #define HAVE_STRICMP 1
283 /* Define to 1 if you have the <strings.h> header file. */
284 /* #define HAVE_STRINGS_H 1 */
286 /* Define to 1 if you have the <string.h> header file. */
287 #define HAVE_STRING_H 1
289 /* Define to 1 if you have the `strncasecmp' function. */
290 #ifdef __MINGW32__
291 #define HAVE_STRNCASECMP 1
292 #endif
294 /* Define to 1 if you have the `strncmpi' function. */
295 /* #undef HAVE_STRNCMPI */
297 /* Define to 1 if you have the `strndup' function. */
298 /* #undef HAVE_STRNDUP */
300 /* Define to 1 if you have the `strnicmp' function. */
301 #ifdef __MINGW32__
302 #define HAVE_STRNICMP 1
303 #endif
305 /* Define to 1 if you have the `strsignal' function. */
306 /* #undef HAVE_STRSIGNAL */
308 /* Define to 1 if `n_un.n_name' is a member of `struct nlist'. */
309 /* #undef HAVE_STRUCT_NLIST_N_UN_N_NAME */
311 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
312    */
313 /* #undef HAVE_SYS_DIR_H */
315 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
316    */
317 /* #undef HAVE_SYS_NDIR_H */
319 /* Define to 1 if you have the <sys/param.h> header file. */
320 #ifdef __MINGW32__
321 #define HAVE_SYS_PARAM_H 1
322 #endif
324 /* Define to 1 if you have the <sys/resource.h> header file. */
325 /* #undef HAVE_SYS_RESOURCE_H */
327 /* Define to 1 if you have the <sys/stat.h> header file. */
328 #define HAVE_SYS_STAT_H 1
330 /* Define to 1 if you have the <sys/timeb.h> header file. */
331 #define HAVE_SYS_TIMEB_H 1
333 /* Define to 1 if you have the <sys/time.h> header file. */
334 #ifdef __MINGW32__
335 #define HAVE_SYS_TIME_H 1
336 #endif
338 /* Define to 1 if you have the <sys/types.h> header file. */
339 #define HAVE_SYS_TYPES_H 1
341 /* Define to 1 if you have the <sys/wait.h> header file. */
342 /* #undef HAVE_SYS_WAIT_H */
344 /* Define to 1 if you have the \`union wait' type in <sys/wait.h>. */
345 /* #undef HAVE_UNION_WAIT */
347 /* Define to 1 if you have the <unistd.h> header file. */
348 #ifdef __MINGW32__
349 #define HAVE_UNISTD_H 1
350 #endif
352 /* Define to 1 if you have the <varargs.h> header file. */
353 /* #undef HAVE_VARARGS_H */
355 /* Define to 1 if you have the `vfork' function. */
356 /* #undef HAVE_VFORK */
358 /* Define to 1 if you have the <vfork.h> header file. */
359 /* #undef HAVE_VFORK_H */
361 /* Define to 1 if you have the `vprintf' function. */
362 #define HAVE_VPRINTF 1
365 /* Define to 1 if you have the `wait3' function. */
366 /* #undef HAVE_WAIT3 */
368 /* Define to 1 if you have the `waitpid' function. */
369 /* #undef HAVE_WAITPID */
371 /* Define to 1 if `fork' works. */
372 /* #undef HAVE_WORKING_FORK */
374 /* Define to 1 if `vfork' works. */
375 /* #undef HAVE_WORKING_VFORK */
377 /* Build host information. */
378 #define MAKE_HOST "Windows32"
380 /* Define to 1 to enable job server support in GNU make. */
381 #define MAKE_JOBSERVER 1
383 /* Define to 1 to enable symbolic link timestamp checking. */
384 /* #undef MAKE_SYMLINKS */
386 /* Define to 1 if your `struct nlist' has an `n_un' member. Obsolete, depend
387    on `HAVE_STRUCT_NLIST_N_UN_N_NAME */
388 /* #undef NLIST_NAME_UNION */
390 /* Define to 1 if struct nlist.n_name is a pointer rather than an array. */
391 /* #undef NLIST_STRUCT */
393 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
394 /* #undef NO_MINUS_C_MINUS_O */
396 /* Name of this package (needed by automake) */
397 #define PACKAGE "%PACKAGE%"
399 /* Define to the address where bug reports for this package should be sent. */
400 #define PACKAGE_BUGREPORT "bug-make@gnu.org"
402 /* Define to the full name of this package. */
403 #define PACKAGE_NAME "GNU make"
405 /* Define to the home page for this package. */
406 #define PACKAGE_URL "http://www.gnu.org/software/make/"
408 /* Define to the version of this package. */
409 #define PACKAGE_VERSION "%VERSION%"
411 /* Define to the character that separates directories in PATH. */
412 #define PATH_SEPARATOR_CHAR ';'
414 /* Define as the return type of signal handlers (`int' or `void'). */
415 #define RETSIGTYPE void
417 /* Define to the name of the SCCS 'get' command. */
418 #define SCCS_GET "echo no sccs get"
420 /* Define this if the SCCS 'get' command understands the '-G<file>' option. */
421 /* #undef SCCS_GET_MINUS_G */
423 /* Define to 1 if the `setvbuf' function takes the buffering type as its
424    second argument and the buffer pointer as the third, as on System V before
425    release 3. */
426 /* #undef SETVBUF_REVERSED */
428 /* If using the C implementation of alloca, define if you know the
429    direction of stack growth for your system; otherwise it will be
430    automatically deduced at run time.
431         STACK_DIRECTION > 0 => grows toward higher addresses
432         STACK_DIRECTION < 0 => grows toward lower addresses
433         STACK_DIRECTION = 0 => direction of growth unknown */
434 /* #undef STACK_DIRECTION */
436 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
437 /* #undef STAT_MACROS_BROKEN */
439 /* Define to 1 if you have the ANSI C header files. */
440 #define STDC_HEADERS 1
442 /* Define if struct stat contains a nanoseconds field */
443 /* #undef ST_MTIM_NSEC */
445 /* Define to 1 on System V Release 4. */
446 /* #undef SVR4 */
448 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
449 #ifdef __MINGW32__
450 #define TIME_WITH_SYS_TIME 1
451 #endif
453 /* Define to 1 for Encore UMAX. */
454 /* #undef UMAX */
456 /* Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h> instead of
457    <sys/cpustats.h>. */
458 /* #undef UMAX4_3 */
460 /* Version number of package */
461 #define VERSION "%VERSION%"
463 /* Define if using the dmalloc debugging malloc package */
464 /* #undef WITH_DMALLOC */
466 /* Define to 1 if on AIX 3.
467    System headers sometimes define this.
468    We just want to avoid a redefinition error message.  */
469 #ifndef _ALL_SOURCE
470 /* # undef _ALL_SOURCE */
471 #endif
473 /* Number of bits in a file offset, on hosts where this is settable. */
474 /* #undef _FILE_OFFSET_BITS */
476 /* Define for large files, on AIX-style hosts. */
477 /* #undef _LARGE_FILES */
479 /* Define to 1 if on MINIX. */
480 /* #undef _MINIX */
482 /* Define to 2 if the system does not provide POSIX.1 features except with
483    this defined. */
484 /* #undef _POSIX_1_SOURCE */
486 /* Define to 1 if you need to in order for `stat' and other things to work. */
487 /* #undef _POSIX_SOURCE */
489 /* Define to empty if `const' does not conform to ANSI C. */
490 /* #undef const */
492 #include <sys/types.h>
494 /* Define to `int' if <sys/types.h> doesn't define. */
495 #define gid_t int
497 /* Define to `int' if <sys/types.h> does not define. */
498 /* GCC 4.x reportedly defines pid_t.  */
499 #ifndef _PID_T_
500 #ifdef _WIN64
501 #define pid_t __int64
502 #else
503 #define pid_t int
504 #endif
505 #endif
507 /* Define to `int' if <sys/types.h> doesn't define. */
508 #define uid_t int
510 /* Define uintmax_t if not defined in <stdint.h> or <inttypes.h>. */
511 #if !HAVE_STDINT_H && !HAVE_INTTYPES_H
512 #define uintmax_t unsigned long
513 #endif
515 /* Define as `fork' if `vfork' does not work. */
516 /*#define vfork fork*/
518 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
519 /* #undef HAVE_SYS_WAIT_H */
521 /* Define to the installation directory for locales.  */
522 #define LOCALEDIR ""
525  * Refer to README.W32 for info on the following settings
526  */
530  * If you have a shell that does not grok 'sh -c quoted-command-line'
531  * correctly, you need this setting. Please see below for specific
532  * shell support.
533  */
534 /*#define BATCH_MODE_ONLY_SHELL 1 */
537  * Define if you have the Cygnus "Cygwin" GNU Windows32 tool set.
538  * Do NOT define BATCH_MODE_ONLY_SHELL if you define HAVE_CYGWIN_SHELL
539  */
540 /*#define HAVE_CYGWIN_SHELL 1 */
543  * Define if you have the MKS tool set or shell. Do NOT define
544  * BATCH_MODE_ONLY_SHELL if you define HAVE_MKS_SHELL
545  */
546 /*#define HAVE_MKS_SHELL 1 */
549  * Enforce the mutual exclusivity restriction.
550  */
551 #ifdef HAVE_MKS_SHELL
552 #undef BATCH_MODE_ONLY_SHELL
553 #endif
555 #ifdef HAVE_CYGWIN_SHELL
556 #undef BATCH_MODE_ONLY_SHELL
557 #endif