Create a new internal interface for defining new make functions.
[make.git] / config.h.W32.template
blob8f408651e5150bc4579ecc0e00d53b17d7e2dd0f
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 if your compiler conforms to the ANSI C standard. */
67 #define HAVE_ANSI_COMPILER 1
69 /* Define to 1 if you have the `bsd_signal' function. */
70 /* #undef HAVE_BSD_SIGNAL */
72 /* Use case insensitive file names */
73 /* #undef HAVE_CASE_INSENSITIVE_FS */
75 /* Define if you have the clock_gettime function. */
76 /* #undef HAVE_CLOCK_GETTIME */
78 /* Embed GNU Guile support */
79 /* #undef HAVE_GUILE */
81 /* Define if the GNU dcgettext() function is already present or preinstalled.
82    */
83 /* #undef HAVE_DCGETTEXT */
85 /* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
86    */
87 #define HAVE_DIRENT_H 1
89 /* Define to 1 if you have the <direct.h> header file, and it defines getcwd()
90    and chdir().
91    */
92 #if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(__INTERIX)
93 # define HAVE_DIRECT_H 1
94 #endif
96 /* Define to 1 if you don't have `vprintf' but do have `_doprnt.' */
97 /* #undef HAVE_DOPRNT */
99 /* Use platform specific coding */
100 #define HAVE_DOS_PATHS 1
102 /* Define to 1 if you have the `dup2' function. */
103 #define HAVE_DUP2 1
105 /* Define to 1 if you have the <fcntl.h> header file. */
106 #define HAVE_FCNTL_H 1
108 /* Define to 1 if you have the `fdopen' function. */
109 /*#define HAVE_FDOPEN 1*/
111 /* Define to 1 if you have the `fork' function. */
112 /* #undef HAVE_FORK */
114 /* Define to 1 if you have the `getcwd' function.  */
115 #define HAVE_GETCWD 1
117 /* Define to 1 if you have the `getgroups' function. */
118 /* #undef HAVE_GETGROUPS */
120 /* Define to 1 if you have the `gethostbyname' function. */
121 /* #undef HAVE_GETHOSTBYNAME */
123 /* Define to 1 if you have the `gethostname' function. */
124 /* #undef HAVE_GETHOSTNAME */
126 /* Define to 1 if you have the `getloadavg' function. */
127 /* #undef HAVE_GETLOADAVG */
129 /* Define to 1 if you have the `getrlimit' function. */
130 /* #undef HAVE_GETRLIMIT */
132 /* Define if the GNU gettext() function is already present or preinstalled. */
133 /* #undef HAVE_GETTEXT */
135 /* Define if you have a standard gettimeofday function */
136 /* #undef HAVE_GETTIMEOFDAY */
138 /* Define if you have the iconv() function. */
139 /* #undef HAVE_ICONV */
141 /* Define to 1 if you have the <inttypes.h> header file. */
142 /*#define HAVE_INTTYPES_H 1*/
144 /* Define to 1 if you have the `dgc' library (-ldgc). */
145 /* #undef HAVE_LIBDGC */
147 /* Define to 1 if you have the `kstat' library (-lkstat). */
148 /* #undef HAVE_LIBKSTAT */
150 /* Define to 1 if you have the <limits.h> header file. */
151 #define HAVE_LIMITS_H 1
153 /* Define to 1 if you have the <locale.h> header file. */
154 /*#define HAVE_LOCALE_H 1*/
156 /* Define to 1 if you have the <mach/mach.h> header file. */
157 /* #undef HAVE_MACH_MACH_H */
159 /* Define to 1 if you have the `memmove' function. */
160 #define HAVE_MEMMOVE 1
162 /* Define to 1 if you have the <memory.h> header file. */
163 #define HAVE_MEMORY_H 1
165 /* Define to 1 if you have the `mkstemp' function. */
166 /* #undef HAVE_MKSTEMP */
168 /* Define to 1 if you have the `mktemp' function. */
169 #define HAVE_MKTEMP 1
171 /* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
172 /* #undef HAVE_NDIR_H */
174 /* Define to 1 if you have the <nlist.h> header file. */
175 /* #undef HAVE_NLIST_H */
177 /* Define to 1 if you have the `pipe' function. */
178 /* #undef HAVE_PIPE */
180 /* Define to 1 if you have the `pstat_getdynamic' function. */
181 /* #undef HAVE_PSTAT_GETDYNAMIC */
183 /* Define to 1 if you have the `realpath' function. */
184 /* #undef HAVE_REALPATH */
186 /* Define if <signal.h> defines the SA_RESTART constant. */
187 /* #undef HAVE_SA_RESTART */
189 /* Define to 1 if you have the `setegid' function. */
190 /* #undef HAVE_SETEGID */
192 /* Define to 1 if you have the `seteuid' function. */
193 /* #undef HAVE_SETEUID */
195 /* Define to 1 if you have the `setlinebuf' function. */
196 /* #undef HAVE_SETLINEBUF */
198 /* Define to 1 if you have the `setlocale' function. */
199 /*#define HAVE_SETLOCALE 1*/
201 /* Define to 1 if you have the `setregid' function. */
202 /* #undef HAVE_SETREGID */
204 /* Define to 1 if you have the `setreuid' function. */
205 /* #undef HAVE_SETREUID */
207 /* Define to 1 if you have the `setrlimit' function. */
208 /* #undef HAVE_SETRLIMIT */
210 /* Define to 1 if you have the `setvbuf' function. */
211 /*#define HAVE_SETVBUF 1 */
213 /* Define to 1 if you have the `sigaction' function. */
214 /* #undef HAVE_SIGACTION */
216 /* Define to 1 if you have the `sigsetmask' function. */
217 /* #undef HAVE_SIGSETMASK */
219 /* Define to 1 if you have the `socket' function. */
220 /* #undef HAVE_SOCKET */
222 /* Define to 1 if you have the <stdarg.h> header file. */
223 #define HAVE_STDARG_H 1
225 /* Define to 1 if you have the <stdint.h> header file. */
226 /*#define HAVE_STDINT_H 1*/
228 /* Define to 1 if you have the <stdlib.h> header file. */
229 #define HAVE_STDLIB_H 1
231 /* Define to 1 if you have the `strcasecmp' function. */
232 /* #undef HAVE_STRCASECMP */
234 /* Define to 1 if you have the `strcmpi' function. */
235 /* #undef HAVE_STRCMPI */
237 /* Define to 1 if you have the `stricmp' function. */
238 #define HAVE_STRICMP 1
240 /* Define to 1 if you have the `strncasecmp' function. */
241 /* #undef HAVE_STRNCASECMP */
243 /* Define to 1 if you have the `strncmpi' function. */
244 /* #undef HAVE_STRNCMPI */
246 /* Define to 1 if you have the `strnicmp' function. */
247 #define HAVE_STRNICMP 1
249 /* Define to 1 if you have the `strchr' function. */
250 #define HAVE_STRCHR 1
252 /* Define to 1 if you have the `strcoll' function and it is properly defined.
253    */
254 #define HAVE_STRCOLL 1
256 /* Define to 1 if you have the `strdup' function. */
257 /* #define HAVE_STRDUP 1*/
259 /* Define to 1 if you have the `strerror' function. */
260 #define HAVE_STRERROR 1
262 /* Define to 1 if you have the <strings.h> header file. */
263 /* #define HAVE_STRINGS_H 1 */
265 /* Define to 1 if you have the <string.h> header file. */
266 #define HAVE_STRING_H 1
268 /* Define to 1 if you have the `strsignal' function. */
269 /* #undef HAVE_STRSIGNAL */
271 /* Define to 1 if `n_un.n_name' is member of `struct nlist'. */
272 /* #undef HAVE_STRUCT_NLIST_N_UN_N_NAME */
274 /* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
275    */
276 /* #undef HAVE_SYS_DIR_H */
278 /* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
279    */
280 /* #undef HAVE_SYS_NDIR_H */
282 /* Define to 1 if you have the <sys/param.h> header file. */
283 /* #define HAVE_SYS_PARAM_H 1 */
285 /* Define to 1 if you have the <sys/resource.h> header file. */
286 /* #undef HAVE_SYS_RESOURCE_H */
288 /* Define to 1 if you have the <sys/stat.h> header file. */
289 /* #define HAVE_SYS_STAT_H 1 */
291 /* Define to 1 if you have the <sys/timeb.h> header file. */
292 /*#define HAVE_SYS_TIMEB_H 1*/
294 /* Define to 1 if you have the <sys/time.h> header file. */
295 /*#define HAVE_SYS_TIME_H 1*/
297 /* Define to 1 if you have the <sys/types.h> header file. */
298 /*#define HAVE_SYS_TYPES_H 1*/
300 /* Define to 1 if you have the <sys/wait.h> header file. */
301 /* #undef HAVE_SYS_WAIT_H */
303 /* Define this if you have the \`union wait' type in <sys/wait.h>. */
304 /* #undef HAVE_UNION_WAIT */
306 /* Define to 1 if you have the <unistd.h> header file. */
307 /* #define HAVE_UNISTD_H 1*/
309 /* Define to 1 if you have the <varargs.h> header file. */
310 /* #undef HAVE_VARARGS_H */
312 /* Define to 1 if you have the `vfork' function. */
313 /* #undef HAVE_VFORK */
315 /* Define to 1 if you have the <vfork.h> header file. */
316 /* #undef HAVE_VFORK_H */
318 /* Define to 1 if you have the `vprintf' function. */
319 #define HAVE_VPRINTF 1
322 /* Define to 1 if you have the `wait3' function. */
323 /* #undef HAVE_WAIT3 */
325 /* Define to 1 if you have the `waitpid' function. */
326 /* #undef HAVE_WAITPID */
328 /* Define to 1 if `fork' works. */
329 /* #undef HAVE_WORKING_FORK */
331 /* Define to 1 if `vfork' works. */
332 /* #undef HAVE_WORKING_VFORK */
334 /* Build host information. */
335 #define MAKE_HOST "Windows32"
337 /* Define this to enable job server support in GNU make. */
338 #define MAKE_JOBSERVER 1
340 /* Define to 1 if your `struct nlist' has an `n_un' member. Obsolete, depend
341    on `HAVE_STRUCT_NLIST_N_UN_N_NAME */
342 /* #undef NLIST_NAME_UNION */
344 /* Define if struct nlist.n_name is a pointer rather than an array. */
345 /* #undef NLIST_STRUCT */
347 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
348 /* #undef NO_MINUS_C_MINUS_O */
350 /* Name of this package (needed by automake) */
351 #define PACKAGE "%PACKAGE%"
353 /* Define to 1 if the C compiler supports function prototypes. */
354 #define PROTOTYPES 1
356 /* Define as the return type of signal handlers (`int' or `void'). */
357 #define RETSIGTYPE void
359 /* Define to the name of the SCCS 'get' command. */
360 #define SCCS_GET "echo no sccs get"
362 /* Define this if the SCCS 'get' command understands the '-G<file>' option. */
363 /* #undef SCCS_GET_MINUS_G */
365 /* Define to 1 if the `setvbuf' function takes the buffering type as its
366    second argument and the buffer pointer as the third, as on System V before
367    release 3. */
368 /* #undef SETVBUF_REVERSED */
370 /* If using the C implementation of alloca, define if you know the
371    direction of stack growth for your system; otherwise it will be
372    automatically deduced at run-time.
373         STACK_DIRECTION > 0 => grows toward higher addresses
374         STACK_DIRECTION < 0 => grows toward lower addresses
375         STACK_DIRECTION = 0 => direction of growth unknown */
376 /* #undef STACK_DIRECTION */
378 /* Define to 1 if the `S_IS*' macros in <sys/stat.h> do not work properly. */
379 /* #undef STAT_MACROS_BROKEN */
381 /* Define to 1 if you have the ANSI C header files. */
382 #define STDC_HEADERS 1
384 /* Define if struct stat contains a nanoseconds field */
385 /* #undef ST_MTIM_NSEC */
387 /* Define to 1 on System V Release 4. */
388 /* #undef SVR4 */
390 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
391 /* #define TIME_WITH_SYS_TIME 1 */
393 /* Define to 1 for Encore UMAX. */
394 /* #undef UMAX */
396 /* Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h> instead of
397    <sys/cpustats.h>. */
398 /* #undef UMAX4_3 */
400 /* Version number of package */
401 #define VERSION "%VERSION%"
403 /* Define if using the dmalloc debugging malloc package */
404 /* #undef WITH_DMALLOC */
406 /* Define to 1 if on AIX 3.
407    System headers sometimes define this.
408    We just want to avoid a redefinition error message.  */
409 #ifndef _ALL_SOURCE
410 /* # undef _ALL_SOURCE */
411 #endif
413 /* Number of bits in a file offset, on hosts where this is settable. */
414 /* #undef _FILE_OFFSET_BITS */
416 /* Define for large files, on AIX-style hosts. */
417 /* #undef _LARGE_FILES */
419 /* Define to 1 if on MINIX. */
420 /* #undef _MINIX */
422 /* Define to 2 if the system does not provide POSIX.1 features except with
423    this defined. */
424 /* #undef _POSIX_1_SOURCE */
426 /* Define to 1 if you need to in order for `stat' and other things to work. */
427 #define _POSIX_SOURCE 1
429 /* Define like PROTOTYPES; this can be used by system headers. */
430 /*#define __PROTOTYPES 1*/
432 /* Define to empty if `const' does not conform to ANSI C. */
433 /* #undef const */
435 #include <sys/types.h>
437 /* Define to `int' if <sys/types.h> doesn't define. */
438 #define gid_t int
440 /* Define to `int' if <sys/types.h> does not define. */
441 /* GCC 4.x reportedly defines pid_t.  */
442 #ifndef _PID_T_
443 #ifdef _WIN64
444 #define pid_t __int64
445 #else
446 #define pid_t int
447 #endif
448 #endif
450 /* Define to `int' if <sys/types.h> doesn't define. */
451 #define uid_t int
453 /* Define uintmax_t if not defined in <stdint.h> or <inttypes.h>. */
454 #define uintmax_t unsigned long
456 /* Define as `fork' if `vfork' does not work. */
457 /*#define vfork fork*/
459 /* Define to `unsigned long' or `unsigned long long'
460    if <inttypes.h> doesn't define.  */
461 #define uintmax_t unsigned long
463 /* Define if you support file names longer than 14 characters.  */
464 #define HAVE_LONG_FILE_NAMES 1
466 /* Define if your struct stat has st_rdev.  */
467 #undef HAVE_ST_RDEV
468 #define HAVE_ST_RDEV 1
470 /* Define if you have the strftime function.  */
471 #undef HAVE_STRFTIME
472 #define HAVE_STRFTIME 1
474 /* Define if you have <sys/wait.h> that is POSIX.1 compatible.  */
475 /* #undef HAVE_SYS_WAIT_H */
477 /* Define if your struct tm has tm_zone.  */
478 /* #undef HAVE_TM_ZONE */
480 /* Define if you don't have tm_zone but do have the external array
481    tzname.  */
482 #undef HAVE_TZNAME
483 #define HAVE_TZNAME 1
485 /* Define if utime(file, NULL) sets file's timestamp to the present.  */
486 #undef HAVE_UTIME_NULL
487 #define HAVE_UTIME_NULL 1
489 /* Define to the installation directory for locales.  */
490 #define LOCALEDIR ""
493  * Refer to README.W32 for info on the following settings
494  */
498  * If you have a shell that does not grok 'sh -c quoted-command-line'
499  * correctly, you need this setting. Please see below for specific
500  * shell support.
501  */
502 /*#define BATCH_MODE_ONLY_SHELL 1 */
505  * Define if you have the Cygnus "Cygwin" GNU Windows32 tool set.
506  * Do NOT define BATCH_MODE_ONLY_SHELL if you define HAVE_CYGWIN_SHELL
507  */
508 /*#define HAVE_CYGWIN_SHELL 1 */
511  * Define if you have the MKS tool set or shell. Do NOT define
512  * BATCH_MODE_ONLY_SHELL if you define HAVE_MKS_SHELL
513  */
514 /*#define HAVE_MKS_SHELL 1 */
517  * Enforce the mutual exclusivity restriction.
518  */
519 #ifdef HAVE_MKS_SHELL
520 #undef BATCH_MODE_ONLY_SHELL
521 #endif
523 #ifdef HAVE_CYGWIN_SHELL
524 #undef BATCH_MODE_ONLY_SHELL
525 #endif