277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
1 |
# -config.sed----------------------------------------------------------- |
2 |
# Configuration script for pc/config.h |
|
3 |
# ---------------------------------------------------------------------- |
|
4 |
||
1343
by Eli Zaretskii
Update copyright years in pc/ files. |
5 |
# Copyright (C) 2011, 2016-2019 the Free Software Foundation, Inc. |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
6 |
|
7 |
# This file is part of GAWK, the GNU implementation of the |
|
8 |
# AWK Programming Language. |
|
9 |
||
10 |
# GAWK is free software; you can redistribute it and/or modify |
|
11 |
# it under the terms of the GNU General Public License as published by |
|
12 |
# the Free Software Foundation; either version 3 of the License, or |
|
13 |
# (at your option) any later version. |
|
14 |
||
15 |
# GAWK is distributed in the hope that it will be useful, |
|
16 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
17 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
18 |
# GNU General Public License for more details. |
|
19 |
||
20 |
# You should have received a copy of the GNU General Public License |
|
21 |
# along with this program; if not, write to the Free Software |
|
22 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA |
|
23 |
||
24 |
# ---------------------------------------------------------------------- |
|
25 |
||
26 |
/configh\.in/a\ |
|
27 |
/* pc/config.h. Generated automatically by pc/config.sed. */
|
|
28 |
||
408.1.14
by Arnold D. Robbins
Make buildable on DJGPP. |
29 |
/^#undef DYNAMIC$/c\ |
408.1.4
by Arnold D. Robbins
Enable dynamic extensions for MinGW. |
30 |
#ifdef _WIN32\ |
31 |
#define DYNAMIC 1\ |
|
32 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
33 |
s/^#undef GETPGRP_VOID *$/#define GETPGRP_VOID 1/ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
34 |
s/^#undef GETGROUPS_T *$/#define GETGROUPS_T gid_t/ |
277.1.63
by Arnold D. Robbins
Improve config.sed. |
35 |
/^#undef GETPGRP_VOID$/c\ |
277.1.141
by Arnold D. Robbins
Finish move to __DJGPP__ from DJGPP. |
36 |
#ifdef __DJGPP__\ |
277.1.63
by Arnold D. Robbins
Improve config.sed. |
37 |
#define GETPGRP_VOID 1\ |
38 |
#endif |
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
39 |
s/^#undef HAVE_ALARM *$/#define HAVE_ALARM 1/ |
40 |
s/^#undef HAVE_ATEXIT *$/#define HAVE_ATEXIT 1/ |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
41 |
/^#undef HAVE_BTOWC *$/c\ |
408.19.153
by Eli Zaretskii
Fix the DJGPP build. |
42 |
#define HAVE_BTOWC 1 |
277.1.63
by Arnold D. Robbins
Improve config.sed. |
43 |
/^#undef HAVE_DECL_TZNAME *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
44 |
#ifdef __MINGW32__\ |
45 |
#define HAVE_DECL_TZNAME 1\ |
|
46 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
47 |
s/^#undef HAVE_FCNTL_H *$/#define HAVE_FCNTL_H 1/ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
48 |
s/^#undef HAVE_FMOD *$/#define HAVE_FMOD 1/ |
731.11.155
by Eli Zaretskii
Update the MinGW build to recent changes. |
49 |
/^#undef HAVE_GAI_STRERROR *$/c\ |
50 |
#ifdef __MINGW32__\ |
|
51 |
#define HAVE_GAI_STRERROR 1\ |
|
52 |
#endif |
|
408.2.120
by Eli Zaretskii
Support |& on MS-Windows, both for sockets and for pipes. |
53 |
/^#undef HAVE_GETADDRINFO *$/c\ |
54 |
#ifdef __MINGW32__\ |
|
55 |
#define HAVE_GETADDRINFO 1\ |
|
56 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
57 |
/^#undef HAVE_INTMAX_T *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
58 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
59 |
#define HAVE_INTMAX_T 1\ |
60 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
61 |
/^#undef HAVE_INTTYPES_H *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
62 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
63 |
#define HAVE_INTTYPES_H 1\ |
64 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
65 |
/^#undef HAVE_INTTYPES_H_WITH_UINTMAX *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
66 |
#ifdef __MINGW32__\ |
67 |
#define HAVE_INTTYPES_H_WITH_UINTMAX 1\ |
|
68 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
69 |
/^#undef HAVE_ISASCII *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
70 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
71 |
#define HAVE_ISASCII 1\ |
72 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
73 |
/^#undef HAVE_ISWCTYPE *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
74 |
#ifdef __MINGW32__\ |
75 |
#define HAVE_ISWCTYPE 1\ |
|
76 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
77 |
/^#undef HAVE_ISWLOWER *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
78 |
#ifdef __MINGW32__\ |
79 |
#define HAVE_ISWLOWER 1\ |
|
80 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
81 |
/^#undef HAVE_ISWUPPER *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
82 |
#ifdef __MINGW32__\ |
83 |
#define HAVE_ISWUPPER 1\ |
|
84 |
#endif |
|
731.17.4
by Eli Zaretskii
Emulate nl_langinfo(CODESET) for MinGW. |
85 |
/^#undef HAVE_LANGINFO_CODESET *$/c\ |
1086
by Arnold D. Robbins
Updates for DJGPP. |
86 |
#if defined(__DJGPP__) || defined(__MINGW32__)\ |
731.17.4
by Eli Zaretskii
Emulate nl_langinfo(CODESET) for MinGW. |
87 |
#define HAVE_LANGINFO_CODESET 1\ |
88 |
#endif |
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
89 |
s/^#undef HAVE_LIBM *$/#define HAVE_LIBM 1/ |
277.1.102
by Arnold D. Robbins
Update MinGW execvp, additions to Makefile and config. |
90 |
/^#undef HAVE_LIBREADLINE *$/c\ |
91 |
/* #undef HAVE_LIBREADLINE */
|
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
92 |
s/^#undef HAVE_LIMITS_H *$/#define HAVE_LIMITS_H 1/ |
93 |
/^#undef HAVE_LOCALE_H *$/c\ |
|
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
94 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
95 |
#define HAVE_LOCALE_H 1\ |
96 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
97 |
/^#undef HAVE_LONG_LONG *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
98 |
#ifdef __MINGW32__\ |
99 |
#define HAVE_LONG_LONG 1\ |
|
100 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
101 |
/^#undef HAVE_MBRLEN *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
102 |
#ifdef __MINGW32__\ |
103 |
#define HAVE_MBRLEN 1\ |
|
104 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
105 |
/^#undef HAVE_MBRTOWC *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
106 |
#ifdef __MINGW32__\ |
107 |
#define HAVE_MBRTOWC 1\ |
|
108 |
#endif |
|
109 |
s/^#undef HAVE_MEMCMP *$/#define HAVE_MEMCMP 1/ |
|
110 |
s/^#undef HAVE_MEMCPY *$/#define HAVE_MEMCPY 1/ |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
111 |
/^#undef HAVE_MEMMOVE *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
112 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
113 |
#define HAVE_MEMMOVE 1\ |
114 |
#endif |
|
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
115 |
/^#undef HAVE_MEMORY_H *$/c\ |
116 |
#ifdef __DJGPP__\ |
|
117 |
#define HAVE_MEMORY_H 1\ |
|
118 |
#endif |
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
119 |
s/^#undef HAVE_MEMSET *$/#define HAVE_MEMSET 1/ |
277.1.63
by Arnold D. Robbins
Improve config.sed. |
120 |
/^#undef HAVE_MKSTEMP *$/c\ |
277.1.141
by Arnold D. Robbins
Finish move to __DJGPP__ from DJGPP. |
121 |
#ifdef __DJGPP__\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
122 |
#define HAVE_MKSTEMP 1\ |
123 |
#endif |
|
124 |
s/^#undef HAVE_MKTIME *$/#define HAVE_MKTIME 1/ |
|
408.2.89
by Eli Zaretskii
Fix the problem with MPFR build on Windows. |
125 |
/^#undef HAVE_MPFR *$/c\ |
126 |
/* #undef HAVE_MPFR */
|
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
127 |
/^#undef HAVE_SETENV *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
128 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
129 |
#define HAVE_SETENV 1\ |
|
130 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
131 |
/^#undef HAVE_SETLOCALE *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
132 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
133 |
#define HAVE_SETLOCALE 1\ |
134 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
135 |
/^#undef HAVE_SNPRINTF *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
136 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
137 |
#define HAVE_SNPRINTF 1\ |
138 |
#endif |
|
408.2.120
by Eli Zaretskii
Support |& on MS-Windows, both for sockets and for pipes. |
139 |
/^#undef HAVE_SOCKADDR_STORAGE *$/c\ |
140 |
#ifdef __MINGW32__\ |
|
141 |
#define HAVE_SOCKADDR_STORAGE 1\ |
|
142 |
#endif |
|
143 |
/^#undef HAVE_SOCKETS *$/c\ |
|
144 |
#ifdef __MINGW32__\ |
|
145 |
#define HAVE_SOCKETS 1\ |
|
146 |
#endif |
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
147 |
s/^#undef HAVE_STDARG_H *$/#define HAVE_STDARG_H 1/ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
148 |
/^#undef HAVE_STDBOOL_H *$/c\ |
731.11.345
by Arnold D. Robbins
Define HAVE_STDBOOL_H for MinGW. |
149 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
150 |
#define HAVE_STDBOOL_H 1\ |
151 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
152 |
/^#undef HAVE_STDDEF_H *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
153 |
#ifdef __GNUC__\ |
154 |
#define HAVE_STDDEF_H 1\ |
|
155 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
156 |
/^#undef HAVE_STDINT_H *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
157 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
158 |
#define HAVE_STDINT_H 1\ |
159 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
160 |
/^#undef HAVE_STDLIB_H *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
161 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
162 |
#define HAVE_STDLIB_H 1\ |
163 |
#endif |
|
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
164 |
/^#undef HAVE_STRCASECMP *$/c\ |
165 |
#ifdef __DJGPP__\ |
|
166 |
#define HAVE_STRCASECMP 1\ |
|
167 |
#endif |
|
168 |
/^#undef HAVE_STRCOLL *$/c\ |
|
169 |
#ifdef __DJGPP__\ |
|
170 |
#define HAVE_STRCOLL 1\ |
|
171 |
#endif |
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
172 |
s/^#undef HAVE_STRCHR *$/#define HAVE_STRCHR 1/ |
173 |
s/^#undef HAVE_STRERROR *$/#define HAVE_STRERROR 1/ |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
174 |
/^#undef HAVE_STRFTIME *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
175 |
#ifdef __MINGW32__\ |
176 |
/* MinGW uses the replacement from missing_d, to support the %e specifier. */\ |
|
177 |
#define strftime rpl_strftime\ |
|
178 |
#else\ |
|
179 |
#define HAVE_STRFTIME 1\ |
|
180 |
#endif |
|
181 |
s/^#undef HAVE_STRINGIZE *$/#define HAVE_STRINGIZE 1/ |
|
408.19.263
by Eli Zaretskii
Fix compilation warnings on MinGW with the latest runtime |
182 |
s/^#undef HAVE_STRINGS_H *$/#define HAVE_STRINGS_H 1/ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
183 |
s/^#undef HAVE_STRING_H *$/#define HAVE_STRING_H 1/ |
277.1.63
by Arnold D. Robbins
Improve config.sed. |
184 |
/^#undef HAVE_STRNCASECMP *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
185 |
#define HAVE_STRNCASECMP 1\ |
186 |
#ifdef __EMX__\ |
|
187 |
#define strncasecmp strnicmp\ |
|
188 |
#endif |
|
189 |
s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/ |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
190 |
/^#undef HAVE_STRTOUL *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
191 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
192 |
#define HAVE_STRTOUL 1\ |
193 |
#endif |
|
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
194 |
/^#undef HAVE_STRUCT_STAT_ST_BLKSIZE *$/c\ |
195 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
|
196 |
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1\ |
|
197 |
#endif |
|
198 |
/^#undef HAVE_SYS_IOCTL_H *$/c\ |
|
731.11.117
by Eli Zaretskii
Fix the MinGW build. |
199 |
#ifdef __DJGPP__\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
200 |
#define HAVE_SYS_IOCTL_H 1\ |
201 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
202 |
s/^#undef HAVE_SYSTEM *$/#define HAVE_SYSTEM 1/ |
203 |
/^#undef HAVE_SYS_PARAM_H *$/c\ |
|
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
204 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
205 |
#define HAVE_SYS_PARAM_H 1\ |
206 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
207 |
/^#undef HAVE_SYS_STAT_H *$/c\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
208 |
#if defined(__MINGW32__) || defined(__DJGPP__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
209 |
#define HAVE_SYS_STAT_H 1\ |
210 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
211 |
/^#undef HAVE_SYS_TIME_H *$/c\ |
277.1.141
by Arnold D. Robbins
Finish move to __DJGPP__ from DJGPP. |
212 |
#if defined(__DJGPP__) || defined(__MINGW32__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
213 |
#define HAVE_SYS_TIME_H 1\ |
214 |
#endif |
|
215 |
s/^#undef HAVE_SYS_TYPES_H *$/#define HAVE_SYS_TYPES_H 1/ |
|
408.19.153
by Eli Zaretskii
Fix the DJGPP build. |
216 |
/^#undef HAVE_SYS_WAIT_H *$/c\ |
217 |
#ifdef __DJGPP__\ |
|
218 |
#define HAVE_SYS_WAIT_H 1\ |
|
219 |
#endif |
|
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
220 |
/^#undef HAVE_TMPFILE *$/c\ |
221 |
#ifdef __DJGPP__\ |
|
222 |
#define HAVE_TMPFILE 1\ |
|
223 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
224 |
/^#undef HAVE_TOWLOWER *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
225 |
#ifdef __MINGW32__\ |
226 |
#define HAVE_TOWLOWER 1\ |
|
227 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
228 |
/^#undef HAVE_TOWUPPER *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
229 |
#ifdef __MINGW32__\ |
230 |
#define HAVE_TOWUPPER 1\ |
|
231 |
#endif |
|
232 |
s/^#undef HAVE_TZNAME *$/#define HAVE_TZNAME 1/ |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
233 |
s/^#undef HAVE_TZSET *$/#define HAVE_TZSET 1/ |
234 |
/^#undef HAVE_UINTMAX_T *$/c\ |
|
277.1.141
by Arnold D. Robbins
Finish move to __DJGPP__ from DJGPP. |
235 |
#if defined(__DJGPP__) || defined(__MINGW32__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
236 |
#define HAVE_UINTMAX_T 1\ |
237 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
238 |
/^#undef HAVE_UNISTD_H *$/c\ |
277.1.141
by Arnold D. Robbins
Finish move to __DJGPP__ from DJGPP. |
239 |
#if defined(__DJGPP__) || defined(__MINGW32__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
240 |
#define HAVE_UNISTD_H 1\ |
241 |
#endif |
|
242 |
s/^#undef HAVE_UNSIGNED_LONG_LONG *$/#define HAVE_UNSIGNED_LONG_LONG 1/ |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
243 |
/^#undef HAVE_USLEEP *$/c\ |
277.1.141
by Arnold D. Robbins
Finish move to __DJGPP__ from DJGPP. |
244 |
#if defined(__DJGPP__) || defined(__MINGW32__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
245 |
#define HAVE_USLEEP 1\ |
246 |
#endif |
|
247 |
s/^#undef HAVE_VPRINTF *$/#define HAVE_VPRINTF 1/ |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
248 |
/^#undef HAVE_WCHAR_H *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
249 |
#ifdef __MINGW32__\ |
250 |
#define HAVE_WCHAR_H 1\ |
|
251 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
252 |
/^#undef HAVE_WCRTOMB *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
253 |
#ifdef __MINGW32__\ |
254 |
#define HAVE_WCRTOMB 1\ |
|
255 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
256 |
/^#undef HAVE_WCSCOLL *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
257 |
#ifdef __MINGW32__\ |
258 |
#define HAVE_WCSCOLL 1\ |
|
259 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
260 |
/^#undef HAVE_WCTYPE *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
261 |
#ifdef __MINGW32__\ |
262 |
#define HAVE_WCTYPE 1\ |
|
263 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
264 |
/^#undef HAVE_WCTYPE_H *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
265 |
#ifdef __MINGW32__\ |
266 |
#define HAVE_WCTYPE_H 1\ |
|
267 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
268 |
/^#undef HAVE_WCTYPE_T *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
269 |
#ifdef __MINGW32__\ |
270 |
#define HAVE_WCTYPE_T 1\ |
|
271 |
#endif |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
272 |
/^#undef HAVE_WINT_T *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
273 |
#ifdef __MINGW32__\ |
274 |
#define HAVE_WINT_T 1\ |
|
275 |
#endif |
|
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
276 |
/^#undef HAVE__BOOL *$/c\ |
277 |
#ifdef __DJGPP__\ |
|
278 |
#define HAVE__BOOL 1\ |
|
279 |
#endif |
|
731.11.333
by Arnold D. Robbins
Add support for %a and %A in printf. |
280 |
/^#undef PRINTF_HAS_A_FORMAT *$/c\ |
281 |
#define PRINTF_HAS_A_FORMAT 1 |
|
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
282 |
/^#undef PRINTF_HAS_F_FORMAT *$/c\ |
283 |
#ifdef __DJGPP__\ |
|
284 |
#define PRINTF_HAS_F_FORMAT 1\ |
|
285 |
#endif |
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
286 |
s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/ |
287 |
s/^#undef RETSIGTYPE *$/#define RETSIGTYPE void/ |
|
288 |
/^#.*RETSIGTYPE /a\ |
|
289 |
\
|
|
277.1.141
by Arnold D. Robbins
Finish move to __DJGPP__ from DJGPP. |
290 |
#if defined(__DJGPP__) || defined(__MINGW32__)\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
291 |
#include <limits.h>\ |
292 |
#endif |
|
731.3.31
by Eli Zaretskii
Fix the MinGW build and sync its tests with mainline, |
293 |
s/^#undef SIZEOF_UNSIGNED_INT *$/#define SIZEOF_UNSIGNED_INT 4/ |
294 |
s/^#undef SIZEOF_UNSIGNED_LONG *$/#define SIZEOF_UNSIGNED_LONG 4/ |
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
295 |
s/^#undef STDC_HEADERS *$/#define STDC_HEADERS 1/ |
296 |
s/^#undef TIME_WITH_SYS_TIME *$/#define TIME_WITH_SYS_TIME 1/ |
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
297 |
/^#undef inline *$/c\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
298 |
#ifdef __GNUC__\ |
299 |
#define inline __inline__\ |
|
300 |
#endif |
|
301 |
||
731.17.24
by Eli Zaretskii
Fix the MinGW build. |
302 |
/^\/\* Enable extensions on AIX 3, Interix. \*\//i\ |
303 |
/* This is required to compile Gnulib regex code. */\ |
|
1086
by Arnold D. Robbins
Updates for DJGPP. |
304 |
#if defined(__DJGPP__) || defined(__MINGW32__)\ |
731.17.24
by Eli Zaretskii
Fix the MinGW build. |
305 |
#define _GNU_SOURCE 1\ |
306 |
#endif |
|
307 |
||
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
308 |
s|^#undef PACKAGE_URL *$|#define PACKAGE_URL "http://www.gnu.org/software/gawk/"| |
309 |
||
310 |
$a\ |
|
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
311 |
#ifdef __DJGPP__\ |
312 |
/* gcc no longer includes this by default */\ |
|
313 |
# include <sys/version.h>\ |
|
314 |
\
|
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
315 |
/* Library search path */\ |
731.9.50
by Arnold D. Robbins
Initial additions to update DJGPP port. |
316 |
# if (__DJGPP__ > 2 || __DJGPP_MINOR__ >= 3)\ |
317 |
# define DEFPATH ".;/dev/env/DJDIR/share/awk"\ |
|
318 |
# else\ |
|
319 |
# define DEFPATH ".;c:/lib/awk;c:/gnu/lib/awk"\ |
|
320 |
# endif\ |
|
1086
by Arnold D. Robbins
Updates for DJGPP. |
321 |
\
|
322 |
/* Function prototype. */\ |
|
323 |
#include <stdbool.h>\ |
|
324 |
extern bool is_valid_identifier(const char *name);\ |
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
325 |
#endif\ |
326 |
\
|
|
277.1.141
by Arnold D. Robbins
Finish move to __DJGPP__ from DJGPP. |
327 |
#ifndef __DJGPP__\ |
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
328 |
#define HAVE_POPEN_H 1\ |
329 |
#endif\ |
|
330 |
\
|
|
277.1.63
by Arnold D. Robbins
Improve config.sed. |
331 |
#if defined(__EMX__)\ |
332 |
#define strcasecmp stricmp\ |
|
333 |
#define strncasecmp strnicmp\ |
|
277.1.55
by Arnold D. Robbins
Generate pc/config.h at make dist time. |
334 |
#endif |