~vcs-imports/gawk/master

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\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
30
#define DYNAMIC 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
31
s/^#undef GETPGRP_VOID *$/#define GETPGRP_VOID 1/
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
32
s/^#undef GETGROUPS_T *$/#define GETGROUPS_T gid_t/
33
s/^#undef HAVE_ALARM *$/#define HAVE_ALARM 1/
34
s/^#undef HAVE_ATEXIT *$/#define HAVE_ATEXIT 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
35
/^#undef HAVE_BTOWC *$/c\
408.19.153 by Eli Zaretskii
Fix the DJGPP build.
36
#define HAVE_BTOWC 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
37
/^#undef HAVE_DECL_TZNAME *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
38
#define HAVE_DECL_TZNAME 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
39
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.
40
s/^#undef HAVE_FMOD *$/#define HAVE_FMOD 1/
731.11.155 by Eli Zaretskii
Update the MinGW build to recent changes.
41
/^#undef HAVE_GAI_STRERROR *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
42
#define HAVE_GAI_STRERROR 1
408.2.120 by Eli Zaretskii
Support |& on MS-Windows, both for sockets and for pipes.
43
/^#undef HAVE_GETADDRINFO *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
44
#define HAVE_GETADDRINFO 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
45
/^#undef HAVE_INTMAX_T *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
46
#define HAVE_INTMAX_T 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
47
/^#undef HAVE_INTTYPES_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
48
#define HAVE_INTTYPES_H 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
49
/^#undef HAVE_INTTYPES_H_WITH_UINTMAX *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
50
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
51
/^#undef HAVE_ISASCII *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
52
#define HAVE_ISASCII 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
53
/^#undef HAVE_ISWCTYPE *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
54
#define HAVE_ISWCTYPE 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
55
/^#undef HAVE_ISWLOWER *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
56
#define HAVE_ISWLOWER 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
57
/^#undef HAVE_ISWUPPER *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
58
#define HAVE_ISWUPPER 1
731.17.4 by Eli Zaretskii
Emulate nl_langinfo(CODESET) for MinGW.
59
/^#undef HAVE_LANGINFO_CODESET *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
60
#define HAVE_LANGINFO_CODESET 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
61
s/^#undef HAVE_LIBM *$/#define HAVE_LIBM 1/
277.1.102 by Arnold D. Robbins
Update MinGW execvp, additions to Makefile and config.
62
/^#undef HAVE_LIBREADLINE *$/c\
63
/* #undef HAVE_LIBREADLINE */
277.1.63 by Arnold D. Robbins
Improve config.sed.
64
s/^#undef HAVE_LIMITS_H *$/#define HAVE_LIMITS_H 1/
65
/^#undef HAVE_LOCALE_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
66
#define HAVE_LOCALE_H 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
67
/^#undef HAVE_LONG_LONG *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
68
#define HAVE_LONG_LONG 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
69
/^#undef HAVE_MBRLEN *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
70
#define HAVE_MBRLEN 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
71
/^#undef HAVE_MBRTOWC *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
72
#define HAVE_MBRTOWC 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
73
s/^#undef HAVE_MEMCMP *$/#define HAVE_MEMCMP 1/
74
s/^#undef HAVE_MEMCPY *$/#define HAVE_MEMCPY 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
75
/^#undef HAVE_MEMMOVE *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
76
#define HAVE_MEMMOVE 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
77
s/^#undef HAVE_MEMSET *$/#define HAVE_MEMSET 1/
78
s/^#undef HAVE_MKTIME *$/#define HAVE_MKTIME 1/
408.2.89 by Eli Zaretskii
Fix the problem with MPFR build on Windows.
79
/^#undef HAVE_MPFR *$/c\
80
/* #undef HAVE_MPFR */
277.1.63 by Arnold D. Robbins
Improve config.sed.
81
/^#undef HAVE_SETENV *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
82
#define HAVE_SETENV 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
83
/^#undef HAVE_SETLOCALE *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
84
#define HAVE_SETLOCALE 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
85
/^#undef HAVE_SNPRINTF *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
86
#define HAVE_SNPRINTF 1
408.2.120 by Eli Zaretskii
Support |& on MS-Windows, both for sockets and for pipes.
87
/^#undef HAVE_SOCKADDR_STORAGE *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
88
#define HAVE_SOCKADDR_STORAGE 1
408.2.120 by Eli Zaretskii
Support |& on MS-Windows, both for sockets and for pipes.
89
/^#undef HAVE_SOCKETS *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
90
#define HAVE_SOCKETS 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
91
s/^#undef HAVE_STDARG_H *$/#define HAVE_STDARG_H 1/
731.9.50 by Arnold D. Robbins
Initial additions to update DJGPP port.
92
/^#undef HAVE_STDBOOL_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
93
#define HAVE_STDBOOL_H 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
94
/^#undef HAVE_STDDEF_H *$/c\
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
95
#ifdef __GNUC__\
96
#define HAVE_STDDEF_H 1\
97
#endif
277.1.63 by Arnold D. Robbins
Improve config.sed.
98
/^#undef HAVE_STDINT_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
99
#define HAVE_STDINT_H 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
100
/^#undef HAVE_STDLIB_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
101
#define HAVE_STDLIB_H 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
102
s/^#undef HAVE_STRCHR *$/#define HAVE_STRCHR 1/
103
s/^#undef HAVE_STRERROR *$/#define HAVE_STRERROR 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
104
/^#undef HAVE_STRFTIME *$/c\
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
105
/* MinGW uses the replacement from missing_d, to support the %e specifier.  */\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
106
#define strftime rpl_strftime
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
107
s/^#undef HAVE_STRINGIZE *$/#define HAVE_STRINGIZE 1/
408.19.263 by Eli Zaretskii
Fix compilation warnings on MinGW with the latest runtime
108
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.
109
s/^#undef HAVE_STRING_H *$/#define HAVE_STRING_H 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
110
/^#undef HAVE_STRNCASECMP *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
111
#define HAVE_STRNCASECMP 1
1774 by Eli Zaretskii
Fix the MinGW build.
112
s/^#undef HAVE_STRSIGNAL *$/#define HAVE_STRSIGNAL 1/
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
113
s/^#undef HAVE_STRTOD *$/#define HAVE_STRTOD 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
114
/^#undef HAVE_STRTOUL *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
115
#define HAVE_STRTOUL 1
731.9.50 by Arnold D. Robbins
Initial additions to update DJGPP port.
116
/^#undef HAVE_STRUCT_STAT_ST_BLKSIZE *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
117
#define HAVE_STRUCT_STAT_ST_BLKSIZE 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
118
s/^#undef HAVE_SYSTEM *$/#define HAVE_SYSTEM 1/
119
/^#undef HAVE_SYS_PARAM_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
120
#define HAVE_SYS_PARAM_H 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
121
/^#undef HAVE_SYS_STAT_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
122
#define HAVE_SYS_STAT_H 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
123
/^#undef HAVE_SYS_TIME_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
124
#define HAVE_SYS_TIME_H 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
125
s/^#undef HAVE_SYS_TYPES_H *$/#define HAVE_SYS_TYPES_H 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
126
/^#undef HAVE_TOWLOWER *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
127
#define HAVE_TOWLOWER 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
128
/^#undef HAVE_TOWUPPER *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
129
#define HAVE_TOWUPPER 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
130
s/^#undef HAVE_TZNAME *$/#define HAVE_TZNAME 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
131
s/^#undef HAVE_TZSET *$/#define HAVE_TZSET 1/
132
/^#undef HAVE_UINTMAX_T *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
133
#define HAVE_UINTMAX_T 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
134
/^#undef HAVE_UNISTD_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
135
#define HAVE_UNISTD_H 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
136
s/^#undef HAVE_UNSIGNED_LONG_LONG *$/#define HAVE_UNSIGNED_LONG_LONG 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
137
/^#undef HAVE_USLEEP *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
138
#define HAVE_USLEEP 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
139
s/^#undef HAVE_VPRINTF *$/#define HAVE_VPRINTF 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
140
/^#undef HAVE_WCHAR_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
141
#define HAVE_WCHAR_H 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
142
/^#undef HAVE_WCRTOMB *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
143
#define HAVE_WCRTOMB 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
144
/^#undef HAVE_WCSCOLL *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
145
#define HAVE_WCSCOLL 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
146
/^#undef HAVE_WCTYPE *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
147
#define HAVE_WCTYPE 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
148
/^#undef HAVE_WCTYPE_H *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
149
#define HAVE_WCTYPE_H 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
150
/^#undef HAVE_WCTYPE_T *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
151
#define HAVE_WCTYPE_T 1
277.1.63 by Arnold D. Robbins
Improve config.sed.
152
/^#undef HAVE_WINT_T *$/c\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
153
#define HAVE_WINT_T 1
731.11.333 by Arnold D. Robbins
Add support for %a and %A in printf.
154
/^#undef PRINTF_HAS_A_FORMAT *$/c\
155
#define PRINTF_HAS_A_FORMAT 1
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
156
s/^#undef PROTOTYPES *$/#define PROTOTYPES 1/
157
s/^#undef RETSIGTYPE *$/#define RETSIGTYPE void/
158
/^#.*RETSIGTYPE /a\
159
\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
160
#include <limits.h>
731.3.31 by Eli Zaretskii
Fix the MinGW build and sync its tests with mainline,
161
s/^#undef SIZEOF_UNSIGNED_INT *$/#define SIZEOF_UNSIGNED_INT 4/
162
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.
163
s/^#undef STDC_HEADERS *$/#define STDC_HEADERS 1/
164
s/^#undef TIME_WITH_SYS_TIME *$/#define TIME_WITH_SYS_TIME 1/
277.1.63 by Arnold D. Robbins
Improve config.sed.
165
/^#undef inline *$/c\
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
166
#ifdef __GNUC__\
167
#define inline __inline__\
168
#endif
169
731.17.24 by Eli Zaretskii
Fix the MinGW build.
170
/^\/\* Enable extensions on AIX 3, Interix.  \*\//i\
171
/* This is required to compile Gnulib regex code.  */\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
172
#define _GNU_SOURCE 1
731.17.24 by Eli Zaretskii
Fix the MinGW build.
173
277.1.55 by Arnold D. Robbins
Generate pc/config.h at make dist time.
174
s|^#undef PACKAGE_URL *$|#define PACKAGE_URL "http://www.gnu.org/software/gawk/"|
175
176
$a\
1751.1.6 by Arnold D. Robbins
Update pc/config.sed.
177
\
178
#define HAVE_POPEN_H 1