source: trunk/src/kmk/config.h.W32.template

Last change on this file was 3140, checked in by bird, 7 years ago

kmk: Merged in changes from GNU make 4.2.1 (2e55f5e4abdc0e38c1d64be703b446695e70b3b6 / https://git.savannah.gnu.org/git/make.git).

File size: 15.0 KB
RevLine 
[900]1/* config.h.W32 -- hand-massaged config.h file for Windows builds -*-C-*-
2
[3140]3Copyright (C) 1996-2016 Free Software Foundation, Inc.
[900]4This file is part of GNU Make.
5
6GNU Make is free software; you can redistribute it and/or modify it under the
7terms of the GNU General Public License as published by the Free Software
[1993]8Foundation; either version 3 of the License, or (at your option) any later
9version.
[900]10
11GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
12WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
13A PARTICULAR PURPOSE. See the GNU General Public License for more details.
14
15You should have received a copy of the GNU General Public License along with
[1993]16this program. If not, see <http://www.gnu.org/licenses/>. */
[900]17
18/* Suppress some Visual C++ warnings.
19 Maybe after the code cleanup for ISO C we can remove some/all of these. */
20#if _MSC_VER > 1000
21# pragma warning(disable:4100) /* unreferenced formal parameter */
22# pragma warning(disable:4102) /* unreferenced label */
23# pragma warning(disable:4127) /* conditional expression is constant */
24# pragma warning(disable:4131) /* uses old-style declarator */
25# pragma warning(disable:4702) /* unreachable code */
[2591]26# define _CRT_SECURE_NO_WARNINGS /* function or variable may be unsafe */
27# define _CRT_NONSTDC_NO_WARNINGS /* functions w/o a leading underscore */
[900]28#endif
29
[3140]30/* Define to 1 if the 'closedir' function returns void instead of 'int'. */
[900]31/* #undef CLOSEDIR_VOID */
32
[3140]33/* Define to one of '_getb67', 'GETB67', 'getb67' for Cray-2 and Cray-YMP
34 systems. This function is required for 'alloca.c' support on those systems.
[900]35 */
36/* #undef CRAY_STACKSEG_END */
37
[3140]38/* Define to 1 if using 'alloca.c'. */
[900]39/* #undef C_ALLOCA */
40
[3140]41/* Define to 1 if using 'getloadavg.c'. */
42#define C_GETLOADAVG 1
[900]43
44/* Define to 1 for DGUX with <sys/dg_sys_info.h>. */
45/* #undef DGUX */
46
47/* Define to 1 if translation of program messages to the user's native
48 language is requested. */
49/* #undef ENABLE_NLS */
50
51/* Use high resolution file timestamps if nonzero. */
52#define FILE_TIMESTAMP_HI_RES 0
53
[3140]54/* Define to 1 if the 'getloadavg' function needs to be run setuid or setgid.
[900]55 */
56/* #undef GETLOADAVG_PRIVILEGED */
57
[3140]58/* Define to 1 if you have 'alloca', as a function or macro. */
[900]59#define HAVE_ALLOCA 1
60
61/* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
62 */
63/* #undef HAVE_ALLOCA_H */
64
[3140]65/* Define to 1 if you have the 'atexit' function. */
66#define HAVE_ATEXIT 1
[900]67
68/* Use case insensitive file names */
69/* #undef HAVE_CASE_INSENSITIVE_FS */
70
[3140]71/* Define to 1 if you have the clock_gettime function. */
[900]72/* #undef HAVE_CLOCK_GETTIME */
73
[3140]74/* Embed GNU Guile support. Windows build sets this on the
75 compilation command line. */
76/* #undef HAVE_GUILE */
77
[900]78/* Define if the GNU dcgettext() function is already present or preinstalled.
79 */
80/* #undef HAVE_DCGETTEXT */
81
[3140]82/* Define to 1 if you have the declaration of 'bsd_signal', and to 0 if you
83 don't. */
84#define HAVE_DECL_BSD_SIGNAL 0
85
86/* Define to 1 if you have the declaration of 'sys_siglist', and to 0 if you
87 don't. */
88#define HAVE_DECL_SYS_SIGLIST 0
89
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
93
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
97
98/* Define to 1 if you have the <dirent.h> header file, and it defines 'DIR'.
[900]99 */
100#define HAVE_DIRENT_H 1
101
102/* Define to 1 if you have the <direct.h> header file, and it defines getcwd()
103 and chdir().
104 */
105#if (defined(_MSC_VER) || defined(__BORLANDC__)) && !defined(__INTERIX)
106# define HAVE_DIRECT_H 1
107#endif
108
109/* Use platform specific coding */
110#define HAVE_DOS_PATHS 1
111
[3140]112/* Define to 1 if you have the 'dup2' function. */
[900]113#define HAVE_DUP2 1
114
115/* Define to 1 if you have the <fcntl.h> header file. */
116#define HAVE_FCNTL_H 1
117
[3140]118/* Define to 1 if you have the 'fdopen' function. */
119#ifdef __MINGW32__
120#define HAVE_FDOPEN 1
121#endif
[900]122
[3140]123/* Define to 1 if you have the 'fileno' function. */
124#define HAVE_FILENO 1
[900]125
[3140]126/* Define to 1 if you have the 'getcwd' function. */
[900]127#define HAVE_GETCWD 1
128
[3140]129/* Define to 1 if you have the 'getgroups' function. */
[900]130/* #undef HAVE_GETGROUPS */
131
[3140]132/* Define to 1 if you have the 'gethostbyname' function. */
[900]133/* #undef HAVE_GETHOSTBYNAME */
134
[3140]135/* Define to 1 if you have the 'gethostname' function. */
[900]136/* #undef HAVE_GETHOSTNAME */
137
[3140]138/* Define to 1 if you have the 'getloadavg' function. */
[900]139/* #undef HAVE_GETLOADAVG */
140
[3140]141/* Define to 1 if you have the 'getrlimit' function. */
[900]142/* #undef HAVE_GETRLIMIT */
143
144/* Define if the GNU gettext() function is already present or preinstalled. */
145/* #undef HAVE_GETTEXT */
146
[3140]147/* Define to 1 if you have a standard gettimeofday function */
148#ifdef __MINGW32__
149#define HAVE_GETTIMEOFDAY 1
150#endif
[900]151
152/* Define if you have the iconv() function. */
153/* #undef HAVE_ICONV */
154
155/* Define to 1 if you have the <inttypes.h> header file. */
[3140]156#ifdef __MINGW32__
157#define HAVE_INTTYPES_H 1
158#endif
[900]159
[3140]160/* Define to 1 if you have the 'dgc' library (-ldgc). */
[900]161/* #undef HAVE_LIBDGC */
162
[3140]163/* Define to 1 if you have the 'kstat' library (-lkstat). */
[900]164/* #undef HAVE_LIBKSTAT */
165
166/* Define to 1 if you have the <limits.h> header file. */
167#define HAVE_LIMITS_H 1
168
169/* Define to 1 if you have the <locale.h> header file. */
170/*#define HAVE_LOCALE_H 1*/
171
[3140]172/* Define to 1 if you have the 'lstat' function. */
173/* #undef HAVE_LSTAT */
174
[900]175/* Define to 1 if you have the <mach/mach.h> header file. */
176/* #undef HAVE_MACH_MACH_H */
177
178/* Define to 1 if you have the <memory.h> header file. */
179#define HAVE_MEMORY_H 1
180
[3140]181/* Define to 1 if you have the 'mkstemp' function. */
[900]182/* #undef HAVE_MKSTEMP */
183
[3140]184/* Define to 1 if you have the 'mktemp' function. */
[900]185#define HAVE_MKTEMP 1
186
[3140]187/* Define to 1 if you have the <ndir.h> header file, and it defines 'DIR'. */
[900]188/* #undef HAVE_NDIR_H */
189
190/* Define to 1 if you have the <nlist.h> header file. */
191/* #undef HAVE_NLIST_H */
192
[3140]193/* Define to 1 if you have the 'pipe' function. */
[900]194/* #undef HAVE_PIPE */
195
[3140]196/* Define to 1 if you have the 'pstat_getdynamic' function. */
[900]197/* #undef HAVE_PSTAT_GETDYNAMIC */
198
[3140]199/* Define to 1 if you have the 'readlink' function. */
200/* #undef HAVE_READLINK */
201
202/* Define to 1 if you have the 'realpath' function. */
[900]203/* #undef HAVE_REALPATH */
204
[3140]205/* Define to 1 if <signal.h> defines the SA_RESTART constant. */
[900]206/* #undef HAVE_SA_RESTART */
207
[3140]208/* Define to 1 if you have the 'setegid' function. */
[900]209/* #undef HAVE_SETEGID */
210
[3140]211/* Define to 1 if you have the 'seteuid' function. */
[900]212/* #undef HAVE_SETEUID */
213
[3140]214/* Define to 1 if you have the 'setlinebuf' function. */
[900]215/* #undef HAVE_SETLINEBUF */
216
[3140]217/* Define to 1 if you have the 'setlocale' function. */
[900]218/*#define HAVE_SETLOCALE 1*/
219
[3140]220/* Define to 1 if you have the 'setregid' function. */
[900]221/* #undef HAVE_SETREGID */
222
[3140]223/* Define to 1 if you have the 'setreuid' function. */
[900]224/* #undef HAVE_SETREUID */
225
[3140]226/* Define to 1 if you have the 'setrlimit' function. */
[900]227/* #undef HAVE_SETRLIMIT */
228
[3140]229/* Define to 1 if you have the 'setvbuf' function. */
230#define HAVE_SETVBUF 1
[900]231
[3140]232/* Define to 1 if you have the 'sigaction' function. */
[900]233/* #undef HAVE_SIGACTION */
234
[3140]235/* Define to 1 if you have the 'sigsetmask' function. */
[900]236/* #undef HAVE_SIGSETMASK */
237
[3140]238/* Define to 1 if you have the 'socket' function. */
[900]239/* #undef HAVE_SOCKET */
240
241/* Define to 1 if you have the <stdint.h> header file. */
[3140]242#ifdef __MINGW32__
243#define HAVE_STDINT_H 1
244#endif
[900]245
246/* Define to 1 if you have the <stdlib.h> header file. */
247#define HAVE_STDLIB_H 1
248
[3140]249/* Define to 1 if you have the 'strcasecmp' function. */
250#ifdef __MINGW32__
251#define HAVE_STRCASECMP 1
252#endif
[900]253
[3140]254/* Define to 1 if you have the 'strcmpi' function. */
255#define HAVE_STRCMPI 1
[900]256
[3140]257/* Define to 1 if you have the 'strcoll' function and it is properly defined.
[900]258 */
259#define HAVE_STRCOLL 1
260
[3140]261/* Define to 1 if you have the 'strdup' function. */
262#define HAVE_STRDUP 1
[900]263
[3140]264/* Define to 1 if you have the 'strerror' function. */
[900]265#define HAVE_STRERROR 1
266
[3140]267/* Define to 1 if you have the 'stricmp' function. */
268#define HAVE_STRICMP 1
269
[900]270/* Define to 1 if you have the <strings.h> header file. */
271/* #define HAVE_STRINGS_H 1 */
272
273/* Define to 1 if you have the <string.h> header file. */
274#define HAVE_STRING_H 1
275
[3140]276/* Define to 1 if you have the 'strncasecmp' function. */
277#ifdef __MINGW32__
278#define HAVE_STRNCASECMP 1
279#endif
280
281/* Define to 1 if you have the 'strncmpi' function. */
282/* #undef HAVE_STRNCMPI */
283
284/* Define to 1 if you have the 'strndup' function. */
285/* #undef HAVE_STRNDUP */
286
287/* Define to 1 if you have the 'strnicmp' function. */
288#ifdef __MINGW32__
289#define HAVE_STRNICMP 1
290#endif
291
292/* Define to 1 if you have the 'strsignal' function. */
[900]293/* #undef HAVE_STRSIGNAL */
294
[3140]295/* Define to 1 if you have the `isatty' function. */
296#define HAVE_ISATTY 1
297
298/* Define to 1 if you have the `ttyname' function. */
299#define HAVE_TTYNAME 1
300char *ttyname (int);
301
302/* Define to 1 if 'n_un.n_name' is a member of 'struct nlist'. */
[900]303/* #undef HAVE_STRUCT_NLIST_N_UN_N_NAME */
304
[3140]305/* Define to 1 if you have the <sys/dir.h> header file, and it defines 'DIR'.
[900]306 */
307/* #undef HAVE_SYS_DIR_H */
308
[3140]309/* Define to 1 if you have the <sys/ndir.h> header file, and it defines 'DIR'.
[900]310 */
311/* #undef HAVE_SYS_NDIR_H */
312
313/* Define to 1 if you have the <sys/param.h> header file. */
[3140]314#ifdef __MINGW32__
315#define HAVE_SYS_PARAM_H 1
316#endif
[900]317
318/* Define to 1 if you have the <sys/resource.h> header file. */
319/* #undef HAVE_SYS_RESOURCE_H */
320
321/* Define to 1 if you have the <sys/stat.h> header file. */
[3140]322#define HAVE_SYS_STAT_H 1
[900]323
324/* Define to 1 if you have the <sys/timeb.h> header file. */
[3140]325#define HAVE_SYS_TIMEB_H 1
[900]326
327/* Define to 1 if you have the <sys/time.h> header file. */
[3140]328#ifdef __MINGW32__
329#define HAVE_SYS_TIME_H 1
330#endif
[900]331
332/* Define to 1 if you have the <sys/types.h> header file. */
[3140]333#define HAVE_SYS_TYPES_H 1
[900]334
335/* Define to 1 if you have the <sys/wait.h> header file. */
336/* #undef HAVE_SYS_WAIT_H */
337
[3140]338/* Define to 1 if you have the \'union wait' type in <sys/wait.h>. */
[900]339/* #undef HAVE_UNION_WAIT */
340
341/* Define to 1 if you have the <unistd.h> header file. */
[3140]342#ifdef __MINGW32__
343#define HAVE_UNISTD_H 1
344#endif
[900]345
[3140]346/* Define to 1 if you have the 'wait3' function. */
[900]347/* #undef HAVE_WAIT3 */
348
[3140]349/* Define to 1 if you have the 'waitpid' function. */
[900]350/* #undef HAVE_WAITPID */
351
[2134]352/* Build host information. (not used by kmk) */
[900]353#define MAKE_HOST "Windows32"
354
[3140]355/* Define to 1 to enable job server support in GNU make. */
356#define MAKE_JOBSERVER 1
[900]357
[3140]358/* Define to 1 to enable 'load' support in GNU make. */
359#define MAKE_LOAD 1
360
361/* Define to 1 to enable symbolic link timestamp checking. */
362/* #undef MAKE_SYMLINKS */
363
364/* Define to 1 if your 'struct nlist' has an 'n_un' member. Obsolete, depend
365 on 'HAVE_STRUCT_NLIST_N_UN_N_NAME */
[900]366/* #undef NLIST_NAME_UNION */
367
[3140]368/* Define to 1 if struct nlist.n_name is a pointer rather than an array. */
[900]369/* #undef NLIST_STRUCT */
370
371/* Define to 1 if your C compiler doesn't accept -c and -o together. */
372/* #undef NO_MINUS_C_MINUS_O */
373
374/* Name of this package (needed by automake) */
375#define PACKAGE "%PACKAGE%"
376
[3140]377/* Define to the address where bug reports for this package should be sent. */
378#define PACKAGE_BUGREPORT "bug-make@gnu.org"
[900]379
[3140]380/* Define to the full name of this package. */
381#define PACKAGE_NAME "GNU make"
382
383/* Define to the home page for this package. */
384#define PACKAGE_URL "http://www.gnu.org/software/make/"
385
386/* Define to the version of this package. */
387#define PACKAGE_VERSION "%VERSION%"
388
389/* Define to the character that separates directories in PATH. */
390#define PATH_SEPARATOR_CHAR ';'
391
392/* Define as the return type of signal handlers ('int' or 'void'). */
[900]393#define RETSIGTYPE void
394
395/* Define to the name of the SCCS 'get' command. */
396#define SCCS_GET "echo no sccs get"
397
398/* Define this if the SCCS 'get' command understands the '-G<file>' option. */
399/* #undef SCCS_GET_MINUS_G */
400
[3140]401/* Define to 1 if the 'setvbuf' function takes the buffering type as its
[900]402 second argument and the buffer pointer as the third, as on System V before
403 release 3. */
404/* #undef SETVBUF_REVERSED */
405
406/* If using the C implementation of alloca, define if you know the
407 direction of stack growth for your system; otherwise it will be
[3140]408 automatically deduced at run time.
409 STACK_DIRECTION > 0 => grows toward higher addresses
410 STACK_DIRECTION < 0 => grows toward lower addresses
411 STACK_DIRECTION = 0 => direction of growth unknown */
[900]412/* #undef STACK_DIRECTION */
413
[3140]414/* Define to 1 if the 'S_IS*' macros in <sys/stat.h> do not work properly. */
[900]415/* #undef STAT_MACROS_BROKEN */
416
417/* Define to 1 if you have the ANSI C header files. */
418#define STDC_HEADERS 1
419
420/* Define if struct stat contains a nanoseconds field */
421/* #undef ST_MTIM_NSEC */
422
423/* Define to 1 on System V Release 4. */
424/* #undef SVR4 */
425
426/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
[3140]427#ifdef __MINGW32__
428#define TIME_WITH_SYS_TIME 1
429#endif
[900]430
431/* Define to 1 for Encore UMAX. */
432/* #undef UMAX */
433
434/* Define to 1 for Encore UMAX 4.3 that has <inq_status/cpustats.h> instead of
435 <sys/cpustats.h>. */
436/* #undef UMAX4_3 */
437
438/* Version number of package */
439#define VERSION "%VERSION%"
440
441/* Define if using the dmalloc debugging malloc package */
442/* #undef WITH_DMALLOC */
443
444/* Define to 1 if on AIX 3.
445 System headers sometimes define this.
446 We just want to avoid a redefinition error message. */
447#ifndef _ALL_SOURCE
448/* # undef _ALL_SOURCE */
449#endif
450
451/* Number of bits in a file offset, on hosts where this is settable. */
452/* #undef _FILE_OFFSET_BITS */
453
454/* Define for large files, on AIX-style hosts. */
455/* #undef _LARGE_FILES */
456
457/* Define to 1 if on MINIX. */
458/* #undef _MINIX */
459
460/* Define to 2 if the system does not provide POSIX.1 features except with
461 this defined. */
462/* #undef _POSIX_1_SOURCE */
463
[3140]464/* Define to 1 if you need to in order for 'stat' and other things to work. */
465/* #undef _POSIX_SOURCE */
[900]466
[3140]467/* Define to empty if 'const' does not conform to ANSI C. */
[900]468/* #undef const */
469
[1993]470#include <sys/types.h>
471
[3140]472/* Define to 'int' if <sys/types.h> doesn't define. */
[900]473#define gid_t int
474
[3140]475/* Define to 'int' if <sys/types.h> does not define. */
[1993]476/* GCC 4.x reportedly defines pid_t. */
477#ifndef _PID_T_
[2591]478#ifdef _WIN64
479#define pid_t __int64
480#else
[900]481#define pid_t int
[1993]482#endif
[2591]483#endif
[900]484
[3140]485/* Define to 'int' if <sys/types.h> doesn't define. */
[900]486#define uid_t int
487
488/* Define uintmax_t if not defined in <stdint.h> or <inttypes.h>. */
[3140]489#if !HAVE_STDINT_H && !HAVE_INTTYPES_H
[900]490#define uintmax_t unsigned long
[3140]491#endif
[900]492
493/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
494/* #undef HAVE_SYS_WAIT_H */
495
496/* Define to the installation directory for locales. */
497#define LOCALEDIR ""
498
499/*
500 * Refer to README.W32 for info on the following settings
501 */
502
503
504/*
505 * If you have a shell that does not grok 'sh -c quoted-command-line'
506 * correctly, you need this setting. Please see below for specific
507 * shell support.
508 */
509/*#define BATCH_MODE_ONLY_SHELL 1 */
510
511/*
512 * Define if you have the Cygnus "Cygwin" GNU Windows32 tool set.
513 * Do NOT define BATCH_MODE_ONLY_SHELL if you define HAVE_CYGWIN_SHELL
514 */
515/*#define HAVE_CYGWIN_SHELL 1 */
516
517/*
518 * Define if you have the MKS tool set or shell. Do NOT define
519 * BATCH_MODE_ONLY_SHELL if you define HAVE_MKS_SHELL
520 */
521/*#define HAVE_MKS_SHELL 1 */
522
523/*
524 * Enforce the mutual exclusivity restriction.
525 */
526#ifdef HAVE_MKS_SHELL
527#undef BATCH_MODE_ONLY_SHELL
528#endif
529
530#ifdef HAVE_CYGWIN_SHELL
531#undef BATCH_MODE_ONLY_SHELL
532#endif
Note: See TracBrowser for help on using the repository browser.