1 # -sedlibmk.inp-----------------------------------------------------------
2 # Configuration script for lib/Makefile under DJGPP v2.x
3 # ----------------------------------------------------------------------
5 # Copyright (C) 2011 Free Software Foundation, Inc.
7 # This file is part of GNU Emacs.
9 # This file is free software; as a special exception, the author gives
10 # unlimited permission to copy and/or distribute it, with or without
11 # modifications, as long as this notice is preserved.
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 # ----------------------------------------------------------------------
19 # Checklist to add a new gnulib module:
21 # . If the module includes source files that need to be compiled, add
22 # the corresponding .o file names to the list that gets assigned to
23 # the gl_LIBOBJS variable.
25 # . If the module defines functions that need to replace DJGPP
26 # functions, edit the appropriate REPLACE_foo variables to 1;
27 # otherwise edit them to zero:
29 # /^REPLACE_CALLOC *=/s/@REPLACE_CALLOC@/0/
31 # . If the module is a header or adds headers, edit the corresponding
32 # variable to either an empty value or to the name of the header.
35 # /^STDINT_H *=/s/@[^@\n]*@/stdint.h/ -- stdint.h is needed
36 # /^STDDEF_H *=/s/@[^@\n]*@// -- stddef.h is not needed
38 # . Some of the headers are generated conditionally, and the
39 # corresponding recipes are guarded by @GL_GENERATE_xxxx_H_TRUE@
40 # and @GL_GENERATE_xxxx_H_FALSE@. Depending on whether DJGPP uses
41 # the corresponding header, these should be edited either to
42 # nothing (thus exposing the recipe) or to #, which comments the
43 # recipe away. Example:
45 # s/^@GL_GENERATE_STDBOOL_H_TRUE@/\#/
46 # s/^@GL_GENERATE_STDBOOL_H_FALSE@//
48 # . Also edit the NEXT_foo and NEXT_AS_FIRST_DIRECTIVE_foo_H variable
49 # as appropriately: to an empty value if the gnulib header is not
50 # used, and to the corresponding DJGPP header name otherwise.
53 # /^NEXT_STDDEF_H *=/s/@[^@\n]*@//
54 # /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
55 # /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
56 # /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@//
58 # . Note that some gnulib headers cannot be left unused: those for
59 # which there's no corresponding foo_H variable in
60 # autogen/Makefile.in (example: stdio.h). For these the "not
61 # needed" path is not applicable.
63 # . If the header is needed, edit all the variables it uses as
64 # appropriate. In general, if DJGPP has the corresponding feature,
65 # the value of the corresponding HAVE_foo should be set to what
66 # DJGPP has, and the corresponding GNULIB_foo variable should be
67 # edited to zero. If the feature is not available, the HAVE_foo
68 # variable should be edited to zero and the corresponding
69 # GNULIB_foo variable should be edited to 1 if the gnulib
70 # replacement can work for DJGPP (a rare phenomenon), zero
73 # . Some gnulib header files have more complex recipes in
74 # autogen/Makefile.in than others. The tell-tale sign of such a
75 # recipe is that the input redirection from the .in.h file is not
76 # present at the end of the command, like this:
78 # -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
84 # -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
85 # < $(srcdir)/sys_stat.in.h; \
89 # For those recipes that do _not_ have redirection at the end of
90 # the command, add a block of Sed commands like this:
92 # /^stdio\.h:/,/^ [ ]*mv /{
93 # s/'\; \\ *$/' >> $@-t/
96 # The following Awk script is useful for editing portions of
97 # autogen/Makefile.in into Sed commands that define the corresponding
98 # variables to zero (which is what is required in the absolute
101 # { printf "/^%s *=/s/%s/0/\n",$1,$3}
103 # ----------------------------------------------------------------------
104 # Replace @..@ constants.
105 /^\# @configure_input@/s!@configure_input@!lib/Makefile. Generated from Makefile.in by config.bat!
106 /^@SET_MAKE@$/s/@SET_MAKE@//
107 /^VPATH *=/s/@[^@\n]*@/./
111 /^ALLOCA *=/s/@[^@\n]*@//
112 /^ALSA_CFLAGS *=/s/@[^@\n]*@//
113 /^ALSA_LIBS *=/s/@[^@\n]*@//
114 /^AWK *=/s/@[^@\n]*@/gawk/
115 /^CANNOT_DUMP *=/s/@[^@\n]*@/no/
116 /^CC *=/s/@[^@\n]*@/gcc/
117 /^CPP *=/s/@[^@\n]*@/gcc -e/
118 /^CPPFLAGS *=/s/@[^@\n]*@//
119 /^CCDEPMODE *=/s/@[^@\n]*@/depmode=gcc3/
120 /^CFLAGS *=/s/@[^@\n]*@/-g -O2/
121 /^CYGPATH_W *=/s/@[^@\n]*@//
122 /^CYGWIN_OBJ *=/s/@[^@\n]*@//
123 /^C_SWITCH_MACHINE *=/s/@C_SWITCH_MACHINE@//
124 /^C_SWITCH_SYSTEM *=/s/@C_SWITCH_SYSTEM@//
125 /^C_SWITCH_X_SYSTEM *=/s/@C_SWITCH_X_SYSTEM@//
126 /^C_SWITCH_X_SITE *=/s/@C_SWITCH_X_SITE@//
127 /^C_WARNINGS_SWITCH *=/s/@C_WARNINGS_SWITCH@//
128 /^DEFS *=/s/@[^@\n]*@/-DHAVE_CONFIG_H/
129 /^DEPDIR *=/s/@[^@\n]*@/deps/
130 /^DEPFLAGS *=/s/@[^@\n]*@/-MMD -MF ${DEPDIR}\/$*.d/
131 /^ECHO_N *=/s/@[^@\n]*@/-n/
132 /^EXEEXT *=/s/@[^@\n]*@/.exe/
133 /^GETOPT_H *=/s/@[^@\n]*@/getopt.h/
136 /^BITSIZEOF_PTRDIFF_T *=/s/@BITSIZEOF_PTRDIFF_T@/32/
137 /^BITSIZEOF_SIG_ATOMIC_T *=/s/@BITSIZEOF_SIG_ATOMIC_T@/32/
138 /^BITSIZEOF_SIZE_T *=/s/@BITSIZEOF_SIZE_T@/32/
139 /^BITSIZEOF_WCHAR_T *=/s/@BITSIZEOF_WCHAR_T@/16/
140 /^BITSIZEOF_WINT_T *=/s/@BITSIZEOF_WINT_T@/32/
141 /^APPLE_UNIVERSAL_BUILD *=/s/@APPLE_UNIVERSAL_BUILD@/0/
143 # Some GNULIB_* are replaced with zero even though DJGPP does not have
144 # these features. That's because the gnulib replacements cannot
145 # possibly work for DJGPP, so we prefer to fail the link than have a
146 # subtly botched executable.
147 /^GNULIB_ATOLL *=/s/@GNULIB_ATOLL@/1/
148 /^GNULIB_CALLOC_POSIX *=/s/@GNULIB_CALLOC_POSIX@/0/
149 /^GNULIB_CANONICALIZE_FILE_NAME *=/s/@GNULIB_CANONICALIZE_FILE_NAME@/0/
150 /^GNULIB_CHOWN *=/s/@GNULIB_CHOWN@/0/
151 /^GNULIB_CLOSE *=/s/@GNULIB_CLOSE@/0/
152 /^GNULIB_DPRINTF *=/s/@GNULIB_DPRINTF@/0/
153 /^GNULIB_DUP2 *=/s/@GNULIB_DUP2@/0/
154 /^GNULIB_DUP3 *=/s/@GNULIB_DUP3@/1/
155 /^GNULIB_ENVIRON *=/s/@GNULIB_ENVIRON@/0/
156 /^GNULIB_EUIDACCESS *=/s/@GNULIB_EUIDACCESS@/0/
157 /^GNULIB_FACCESSAT *=/s/@GNULIB_FACCESSAT@/0/
158 /^GNULIB_FCHDIR *=/s/@GNULIB_FCHDIR@/0/
159 /^GNULIB_FCHOWNAT *=/s/@GNULIB_FCHOWNAT@/0/
160 /^GNULIB_FCHMODAT *=/s/@GNULIB_FCHMODAT@/0/
161 /^GNULIB_FCLOSE *=/s/@GNULIB_FCLOSE@/0/
162 /^GNULIB_FFLUSH *=/s/@GNULIB_FFLUSH@/0/
163 /^GNULIB_FGETC *=/s/@GNULIB_FGETC@/0/
164 /^GNULIB_FGETS *=/s/@GNULIB_FGETS@/0/
165 /^GNULIB_FOPEN *=/s/@GNULIB_FOPEN@/0/
166 /^GNULIB_FPRINTF *=/s/@GNULIB_FPRINTF@/0/
167 /^GNULIB_FPRINTF_POSIX *=/s/@GNULIB_FPRINTF_POSIX@/0/
168 /^GNULIB_FPURGE *=/s/@GNULIB_FPURGE@/0/
169 /^GNULIB_FPUTC *=/s/@GNULIB_FPUTC@/0/
170 /^GNULIB_FPUTS *=/s/@GNULIB_FPUTS@/0/
171 /^GNULIB_FREAD *=/s/@GNULIB_FREAD@/0/
172 /^GNULIB_FREOPEN *=/s/@GNULIB_FREOPEN@/0/
173 /^GNULIB_FSCANF *=/s/@GNULIB_FSCANF@/0/
174 /^GNULIB_FSEEK *=/s/@GNULIB_FSEEK@/0/
175 /^GNULIB_FSEEKO *=/s/@GNULIB_FSEEKO@/0/
176 /^GNULIB_FSTATAT *=/s/@GNULIB_FSTATAT@/0/
177 /^GNULIB_FSYNC *=/s/@GNULIB_FSYNC@/0/
178 /^GNULIB_FTELL *=/s/@GNULIB_FTELL@/0/
179 /^GNULIB_FTELLO *=/s/@GNULIB_FTELLO@/0/
180 /^GNULIB_FTRUNCATE *=/s/@GNULIB_FTRUNCATE@/0/
181 /^GNULIB_FUTIMENS *=/s/@GNULIB_FUTIMENS@/0/
182 /^GNULIB_FWRITE *=/s/@GNULIB_FWRITE@/0/
183 /^GNULIB_GETC *=/s/@GNULIB_GETC@/0/
184 /^GNULIB_GETCHAR *=/s/@GNULIB_GETCHAR@/0/
185 /^GNULIB_GETCWD *=/s/@GNULIB_GETCWD@/0/
186 /^GNULIB_GETDELIM *=/s/@GNULIB_GETDELIM@/0/
187 /^GNULIB_GETDOMAINNAME *=/s/@GNULIB_GETDOMAINNAME@/0/
188 /^GNULIB_GETDTABLESIZE *=/s/@GNULIB_GETDTABLESIZE@/0/
189 /^GNULIB_GETGROUPS *=/s/@GNULIB_GETGROUPS@/0/
190 /^GNULIB_GETHOSTNAME *=/s/@GNULIB_GETHOSTNAME@/0/
191 /^GNULIB_GETLINE *=/s/@GNULIB_GETLINE@/0/
192 /^GNULIB_GETLOADAVG *=/s/@GNULIB_GETLOADAVG@/1/
193 /^GNULIB_GETLOGIN *=/s/@GNULIB_GETLOGIN@/0/
194 /^GNULIB_GETLOGIN_R *=/s/@GNULIB_GETLOGIN_R@/0/
195 /^GNULIB_GETPAGESIZE *=/s/@GNULIB_GETPAGESIZE@/0/
196 /^GNULIB_GETS *=/s/@GNULIB_GETS@/0/
197 /^GNULIB_GETSUBOPT *=/s/@GNULIB_GETSUBOPT@/0/
198 /^GNULIB_GETUSERSHELL *=/s/@GNULIB_GETUSERSHELL@/0/
199 /^GNULIB_GRANTPT *=/s/@GNULIB_GRANTPT@/0/
200 /^GNULIB_GROUP_MEMBER *=/s/@GNULIB_GROUP_MEMBER@/0/
201 /^GNULIB_LCHMOD *=/s/@GNULIB_LCHMOD@/0/
202 /^GNULIB_LCHOWN *=/s/@GNULIB_LCHOWN@/0/
203 /^GNULIB_LINK *=/s/@GNULIB_LINK@/0/
204 /^GNULIB_LINKAT *=/s/@GNULIB_LINKAT@/0/
205 /^GNULIB_LSEEK *=/s/@GNULIB_LSEEK@/0/
206 /^GNULIB_LSTAT *=/s/@GNULIB_LSTAT@/0/
207 /^GNULIB_MALLOC_POSIX *=/s/@GNULIB_MALLOC_POSIX@/0/
208 /^GNULIB_MBTOWC *=/s/@GNULIB_MBTOWC@/0/
209 /^GNULIB_MKDIRAT *=/s/@GNULIB_MKDIRAT@/0/
210 /^GNULIB_MKDTEMP *=/s/@GNULIB_MKDTEMP@/0/
211 /^GNULIB_MKFIFO *=/s/@GNULIB_MKFIFO@/0/
212 /^GNULIB_MKFIFOAT *=/s/@GNULIB_MKFIFOAT@/0/
213 /^GNULIB_MKNOD *=/s/@GNULIB_MKNOD@/0/
214 /^GNULIB_MKNODAT *=/s/@GNULIB_MKNODAT@/0/
215 /^GNULIB_MKOSTEMP *=/s/@GNULIB_MKOSTEMP@/0/
216 /^GNULIB_MKOSTEMPS *=/s/@GNULIB_MKOSTEMPS@/0/
217 /^GNULIB_MKSTEMP *=/s/@GNULIB_MKSTEMP@/0/
218 /^GNULIB_MKSTEMPS *=/s/@GNULIB_MKSTEMPS@/0/
219 /^GNULIB_MKTIME *=/s/@GNULIB_MKTIME@/0/
220 /^GNULIB_NANOSLEEP *=/s/@GNULIB_NANOSLEEP@/0/
221 /^GNULIB_OBSTACK_PRINTF *=/s/@GNULIB_OBSTACK_PRINTF@/0/
222 /^GNULIB_OBSTACK_PRINTF_POSIX *=/s/@GNULIB_OBSTACK_PRINTF_POSIX@/0/
223 /^GNULIB_PERROR *=/s/@GNULIB_PERROR@/0/
224 /^GNULIB_PIPE *=/s/@GNULIB_PIPE@/0/
225 /^GNULIB_PIPE2 *=/s/@GNULIB_PIPE2@/0/
226 /^GNULIB_POPEN *=/s/@GNULIB_POPEN@/0/
227 /^GNULIB_PREAD *=/s/@GNULIB_PREAD@/0/
228 /^GNULIB_PRINTF *=/s/@GNULIB_PRINTF@/0/
229 /^GNULIB_PRINTF_POSIX *=/s/@GNULIB_PRINTF_POSIX@/0/
230 /^GNULIB_PTSNAME *=/s/@GNULIB_PTSNAME@/0/
231 /^GNULIB_PUTC *=/s/@GNULIB_PUTC@/0/
232 /^GNULIB_PUTCHAR *=/s/@GNULIB_PUTCHAR@/0/
233 /^GNULIB_PUTENV *=/s/@GNULIB_PUTENV@/0/
234 /^GNULIB_PUTS *=/s/@GNULIB_PUTS@/0/
235 /^GNULIB_PWRITE *=/s/@GNULIB_PWRITE@/0/
236 /^GNULIB_RANDOM_R *=/s/@GNULIB_RANDOM_R@/0/
237 /^GNULIB_READ *=/s/@GNULIB_READ@/0/
238 /^GNULIB_READLINK *=/s/@GNULIB_READLINK@/0/
239 /^GNULIB_READLINKAT *=/s/@GNULIB_READLINKAT@/0/
240 /^GNULIB_REALLOC_POSIX *=/s/@GNULIB_REALLOC_POSIX@/0/
241 /^GNULIB_REALPATH *=/s/@GNULIB_REALPATH@/0/
242 /^GNULIB_REMOVE *=/s/@GNULIB_REMOVE@/0/
243 /^GNULIB_RENAME *=/s/@GNULIB_RENAME@/0/
244 /^GNULIB_RENAMEAT *=/s/@GNULIB_RENAMEAT@/0/
245 /^GNULIB_RMDIR *=/s/@GNULIB_RMDIR@/0/
246 /^GNULIB_RPMATCH *=/s/@GNULIB_RPMATCH@/0/
247 /^GNULIB_SCANF *=/s/@GNULIB_SCANF@/0/
248 /^GNULIB_SETENV *=/s/@GNULIB_SETENV@/0/
249 /^GNULIB_SLEEP *=/s/@GNULIB_SLEEP@/0/
250 /^GNULIB_SNPRINTF *=/s/@GNULIB_SNPRINTF@/0/
251 /^GNULIB_SPRINTF_POSIX *=/s/@GNULIB_SPRINTF_POSIX@/0/
252 /^GNULIB_STAT *=/s/@GNULIB_STAT@/0/
253 /^GNULIB_STDIO_H_NONBLOCKING *=/s/@GNULIB_STDIO_H_NONBLOCKING@/0/
254 /^GNULIB_STDIO_H_SIGPIPE *=/s/@GNULIB_STDIO_H_SIGPIPE@/0/
255 /^GNULIB_STRPTIME *=/s/@GNULIB_STRPTIME@/0/
256 /^GNULIB_STRTOD *=/s/@GNULIB_STRTOD@/0/
257 /^GNULIB_STRTOLL *=/s/@GNULIB_STRTOLL@/0/
258 /^GNULIB_STRTOULL *=/s/@GNULIB_STRTOULL@/0/
259 /^GNULIB_SYMLINK *=/s/@GNULIB_SYMLINK@/0/
260 /^GNULIB_SYMLINKAT *=/s/@GNULIB_SYMLINKAT@/0/
261 /^GNULIB_SYSTEM_POSIX *=/s/@GNULIB_SYSTEM_POSIX@/0/
262 /^GNULIB_TIMEGM *=/s/@GNULIB_TIMEGM@/0/
263 /^GNULIB_TIME_R *=/s/@GNULIB_TIME_R@/1/
264 /^GNULIB_TMPFILE *=/s/@GNULIB_TMPFILE@/0/
265 /^GNULIB_TTYNAME_R *=/s/@GNULIB_TTYNAME_R@/0/
266 /^GNULIB_UNISTD_H_GETOPT *=/s/@GNULIB_UNISTD_H_GETOPT@/1/
267 /^GNULIB_UNISTD_H_NONBLOCKING *=/s/@GNULIB_UNISTD_H_NONBLOCKING@/0/
268 /^GNULIB_UNISTD_H_SIGPIPE *=/s/@GNULIB_UNISTD_H_SIGPIPE@/0/
269 /^GNULIB_UNLINK *=/s/@GNULIB_UNLINK@/0/
270 /^GNULIB_UNLINKAT *=/s/@GNULIB_UNLINKAT@/0/
271 /^GNULIB_UNLOCKPT *=/s/@GNULIB_UNLOCKPT@/0/
272 /^GNULIB_UNSETENV *=/s/@GNULIB_UNSETENV@/1/
273 /^GNULIB_USLEEP *=/s/@GNULIB_USLEEP@/0/
274 /^GNULIB_UTIMENSAT *=/s/@GNULIB_UTIMENSAT@/0/
275 /^GNULIB_VASPRINTF *=/s/@GNULIB_VASPRINTF@/0/
276 /^GNULIB_VDPRINTF *=/s/@GNULIB_VDPRINTF@/0/
277 /^GNULIB_VFPRINTF *=/s/@GNULIB_VFPRINTF@/0/
278 /^GNULIB_VFPRINTF_POSIX *=/s/@GNULIB_VFPRINTF_POSIX@/0/
279 /^GNULIB_VFSCANF *=/s/@GNULIB_VFSCANF@/0/
280 /^GNULIB_VPRINTF *=/s/@GNULIB_VPRINTF@/0/
281 /^GNULIB_VPRINTF_POSIX *=/s/@GNULIB_VPRINTF_POSIX@/0/
282 /^GNULIB_VSCANF *=/s/@GNULIB_VSCANF@/0/
283 /^GNULIB_VSNPRINTF *=/s/@GNULIB_VSNPRINTF@/0/
284 /^GNULIB_VSPRINTF_POSIX *=/s/@GNULIB_VSPRINTF_POSIX@/0/
285 /^GNULIB_WCTOMB *=/s/@GNULIB_WCTOMB@/0/
286 /^GNULIB_WRITE *=/s/@GNULIB_WRITE@/0/
287 /^GNULIB__EXIT *=/s/@GNULIB__EXIT@/0/
288 /^HAVE_ATOLL *=/s/@HAVE_ATOLL@/0/
289 /^HAVE_CANONICALIZE_FILE_NAME *=/s/@HAVE_CANONICALIZE_FILE_NAME@/0/
290 /^HAVE_CHOWN *=/s/@HAVE_CHOWN@/1/
291 /^HAVE_DECL_ENVIRON *=/s/@HAVE_DECL_ENVIRON@/1/
292 /^HAVE_DECL_FCHDIR *=/s/@HAVE_DECL_FCHDIR@/0/
293 /^HAVE_DECL_FPURGE *=/s/@HAVE_DECL_FPURGE@//
294 /^HAVE_DECL_FSEEKO *=/s/@HAVE_DECL_FSEEKO@/0/
295 /^HAVE_DECL_FTELLO *=/s/@HAVE_DECL_FTELLO@/0/
296 /^HAVE_DECL_GETDELIM *=/s/@HAVE_DECL_GETDELIM@/0/
297 /^HAVE_DECL_GETDOMAINNAME *=/s/@HAVE_DECL_GETDOMAINNAME@/0/
298 /^HAVE_DECL_GETLINE *=/s/@HAVE_DECL_GETLINE@/0/
299 /^HAVE_DECL_GETLOADAVG *=/s/@HAVE_DECL_GETLOADAVG@/0/
300 /^HAVE_DECL_GETLOGIN_R *=/s/@HAVE_DECL_GETLOGIN_R@/0/
301 /^HAVE_DECL_GETPAGESIZE *=/s/@HAVE_DECL_GETPAGESIZE@/1/
302 /^HAVE_DECL_GETUSERSHELL *=/s/@HAVE_DECL_GETUSERSHELL@/0/
303 /^HAVE_DECL_LOCALTIME_R *=/s/@HAVE_DECL_LOCALTIME_R@/0/
304 /^HAVE_DECL_OBSTACK_PRINTF *=/s/@HAVE_DECL_OBSTACK_PRINTF@/0/
305 /^HAVE_DECL_SETENV *=/s/@HAVE_DECL_SETENV@/1/
306 /^HAVE_DECL_SNPRINTF *=/s/@HAVE_DECL_SNPRINTF@/0/
307 /^HAVE_DECL_TTYNAME_R *=/s/@HAVE_DECL_TTYNAME_R@/0/
308 /^HAVE_DECL_UNSETENV *=/s/@HAVE_DECL_UNSETENV@/0/
309 /^HAVE_DECL_VSNPRINTF *=/s/@HAVE_DECL_VSNPRINTF@/0/
310 /^HAVE_DPRINTF *=/s/@HAVE_DPRINTF@/0/
311 /^HAVE_DUP2 *=/s/@HAVE_DUP2@/1/
312 /^HAVE_DUP3 *=/s/@HAVE_DUP3@/0/
313 /^HAVE_EUIDACCESS *=/s/@HAVE_EUIDACCESS@/0/
314 /^HAVE_FACCESSAT *=/s/@HAVE_FACCESSAT@/0/
315 /^HAVE_FCHDIR *=/s/@HAVE_FCHDIR@/0/
316 /^HAVE_FCHMODAT *=/s/@HAVE_FCHMODAT@/0/
317 /^HAVE_FCHOWNAT *=/s/@HAVE_FCHOWNAT@/0/
318 /^HAVE_FSEEKO *=/s/@HAVE_FSEEKO@/0/
319 /^HAVE_FSTATAT *=/s/@HAVE_FSTATAT@/0/
320 /^HAVE_FSYNC *=/s/@HAVE_FSYNC@/1/
321 /^HAVE_FTELLO *=/s/@HAVE_FTELLO@/0/
322 /^HAVE_FTRUNCATE *=/s/@HAVE_FTRUNCATE@/1/
323 /^HAVE_FUTIMENS *=/s/@HAVE_FUTIMENS@/0/
324 /^HAVE_GETDTABLESIZE *=/s/@HAVE_GETDTABLESIZE@/0/
325 /^HAVE_GETGROUPS *=/s/@HAVE_GETGROUPS@/0/
326 /^HAVE_GETHOSTNAME *=/s/@HAVE_GETHOSTNAME@/1/
327 /^HAVE_GETLOGIN *=/s/@HAVE_GETLOGIN@/1/
328 /^HAVE_GETOPT_H *=/s/@HAVE_GETOPT_H@/0/
329 /^HAVE_GETPAGESIZE *=/s/@HAVE_GETPAGESIZE@/1/
330 /^HAVE_GETSUBOPT *=/s/@HAVE_GETSUBOPT@/0/
331 /^HAVE_GRANTPT *=/s/@HAVE_GRANTPT@/0/
332 /^HAVE_GROUP_MEMBER *=/s/@HAVE_GROUP_MEMBER@/0/
333 /^HAVE_LCHOWN *=/s/@HAVE_LCHOWN@/0/
334 /^HAVE_INTTYPES_H *=/s/@HAVE_INTTYPES_H@/HAVE_INTTYPES_H/
335 /^HAVE_LCHMOD *=/s/@HAVE_LCHMOD@/0/
336 /^HAVE_LINK *=/s/@HAVE_LINK@/1/
337 /^HAVE_LINKAT *=/s/@HAVE_LINKAT@/0/
338 /^HAVE_LONG_LONG_INT *=/s/@HAVE_LONG_LONG_INT@/1/
339 /^HAVE_LSTAT *=/s/@HAVE_LSTAT@/HAVE_LSTAT/
340 /^HAVE_MAKEINFO *=/s/@HAVE_MAKEINFO@/yes/
341 /^HAVE_MKDIRAT *=/s/@HAVE_MKDIRAT@/0/
342 /^HAVE_MKDTEMP *=/s/@HAVE_MKDTEMP@/0/
343 /^HAVE_MKFIFO *=/s/@HAVE_MKFIFO@/1/
344 /^HAVE_MKFIFOAT *=/s/@HAVE_MKFIFOAT@/0/
345 /^HAVE_MKNOD *=/s/@HAVE_MKNOD@/1/
346 /^HAVE_MKNODAT *=/s/@HAVE_MKNODAT@/0/
347 /^HAVE_MKOSTEMP *=/s/@HAVE_MKOSTEMP@/0/
348 /^HAVE_MKOSTEMPS *=/s/@HAVE_MKOSTEMPS@/0/
349 /^HAVE_MKSTEMP *=/s/@HAVE_MKSTEMP@/1/
350 /^HAVE_MKSTEMPS *=/s/@HAVE_MKSTEMPS@/0/
351 /^HAVE_NANOSLEEP *=/s/@HAVE_NANOSLEEP@/0/
352 /^HAVE_OS_H *=/s/@HAVE_OS_H@/0/
353 /^HAVE_PIPE *=/s/@HAVE_PIPE@/0/
354 /^HAVE_PIPE2 *=/s/@HAVE_PIPE2@/0/
355 /^HAVE_PREAD *=/s/@HAVE_PREAD@/0/
356 /^HAVE_PTSNAME *=/s/@HAVE_PTSNAME@/0/
357 /^HAVE_PWRITE *=/s/@HAVE_PWRITE@/0/
358 /^HAVE_RANDOM_H *=/s/@HAVE_RANDOM_H@/1/
359 /^HAVE_RANDOM_R *=/s/@HAVE_RANDOM_R@/0/
360 /^HAVE_READLINK *=/s/@HAVE_READLINK@/0/
361 /^HAVE_READLINKAT *=/s/@HAVE_READLINKAT@/0/
362 /^HAVE_REALPATH *=/s/@HAVE_REALPATH@/0/
363 /^HAVE_RENAMEAT *=/s/@HAVE_RENAMEAT@/0/
364 /^HAVE_RPMATCH *=/s/@HAVE_RPMATCH@/0/
365 /^HAVE_SETENV *=/s/@HAVE_SETENV@/1/
366 /^HAVE_SIGNED_SIG_ATOMIC_T *=/s/@HAVE_SIGNED_SIG_ATOMIC_T@/1/
367 /^HAVE_SIGNED_WCHAR_T *=/s/@HAVE_SIGNED_WCHAR_T@/0/
368 /^HAVE_SIGNED_WINT_T *=/s/@HAVE_SIGNED_WINT_T@/1/
369 /^HAVE_SLEEP *=/s/@HAVE_SLEEP@/1/
370 /^HAVE_STDINT_H *=/s/@HAVE_STDINT_H@/HAVE_STDINT_H/
371 /^HAVE_STRPTIME *=/s/@HAVE_STRPTIME@/0/
372 /^HAVE_STRTOD *=/s/@HAVE_STRTOD@/1/
373 /^HAVE_STRTOLL *=/s/@HAVE_STRTOLL@/1/
374 /^HAVE_STRTOULL *=/s/@HAVE_STRTOULL@/1/
375 /^HAVE_STRUCT_RANDOM_DATA *=/s/@HAVE_STRUCT_RANDOM_DATA@/0/
376 /^HAVE_SYMLINK *=/s/@HAVE_SYMLINK@/1/
377 /^HAVE_SYMLINKAT *=/s/@HAVE_SYMLINKAT@/0/
378 /^HAVE_SYS_BITYPES_H *=/s/@HAVE_SYS_BITYPES_H@/0/
379 /^HAVE_SYS_INTTYPES_H *=/s/@HAVE_SYS_INTTYPES_H@/0/
380 /^HAVE_SYS_LOADAVG_H *=/s/@HAVE_SYS_LOADAVG_H@/0/
381 /^HAVE_SYS_PARAM_H *=/s/@HAVE_SYS_PARAM_H@/1/
382 /^HAVE_SYS_TYPES_H *=/s/@HAVE_SYS_TYPES_H@/1/
383 /^HAVE_TIMEGM *=/s/@HAVE_TIMEGM@/0/
384 /^HAVE_UNISTD_H *=/s/@HAVE_UNISTD_H@/1/
385 /^HAVE_UNLINKAT *=/s/@HAVE_UNLINKAT@/0/
386 /^HAVE_UNLOCKPT *=/s/@HAVE_UNLOCKPT@/0/
387 /^HAVE_UNSIGNED_LONG_LONG_INT *=/s/@HAVE_UNSIGNED_LONG_LONG_INT@/1/
388 /^HAVE_USLEEP *=/s/@HAVE_USLEEP@/1/
389 /^HAVE_UTIMENSAT *=/s/@HAVE_UTIMENSAT@/0/
390 /^HAVE_VASPRINTF *=/s/@HAVE_VASPRINTF@/0/
391 /^HAVE_VDPRINTF *=/s/@HAVE_VDPRINTF@/0/
392 /^HAVE_WCHAR_H *=/s/@HAVE_WCHAR_H@/1/
393 /^HAVE_WCHAR_T *=/s/@HAVE_WCHAR_T@/1/
394 /^HAVE_XSERVER *=/s/@HAVE_XSERVER@/0/
395 /^HAVE__BOOL *=/s/@HAVE__BOOL@/1/
396 /^HAVE__EXIT *=/s/@HAVE__EXIT@/1/
397 /^INCLUDE_NEXT *=/s/@INCLUDE_NEXT@/include_next/
398 /^INCLUDE_NEXT_AS_FIRST_DIRECTIVE *=/s/@[^@\n]*@/include_next/
399 /^LDFLAGS *=/s/@[^@\n]*@//
400 /^LD_FIRSTFLAG *=/s/@[^@\n]*@//
401 /^LIBS *=/s/@[^@\n]*@//
402 /^MAKEINFO *=/s/@MAKEINFO@/makeinfo/
403 # MKDIR_P lines are edited further below
404 /^MKDIR_P *=/s/@MKDIR_P@//
405 /^NEXT_AS_FIRST_DIRECTIVE_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
406 /^NEXT_AS_FIRST_DIRECTIVE_STDARG_H *=/s/@[^@\n]*@//
407 /^NEXT_AS_FIRST_DIRECTIVE_STDDEF_H *=/s/@[^@\n]*@//
408 /^NEXT_AS_FIRST_DIRECTIVE_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
409 /^NEXT_AS_FIRST_DIRECTIVE_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/
410 /^NEXT_AS_FIRST_DIRECTIVE_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/
411 /^NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>!
412 /^NEXT_AS_FIRST_DIRECTIVE_TIME_H *=/s/@[^@\n]*@/<time.h>/
413 /^NEXT_AS_FIRST_DIRECTIVE_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/
414 /^NEXT_GETOPT_H *=/s/@[^@\n]*@/<getopt.h>/
415 /^NEXT_STDARG_H *=/s/@[^@\n]*@//
416 /^NEXT_STDDEF_H *=/s/@[^@\n]*@//
417 /^NEXT_STDIO_H *=/s/@[^@\n]*@/<stdio.h>/
418 /^NEXT_STDINT_H *=/s/@[^@\n]*@/<stdint.h>/
419 /^NEXT_STDLIB_H *=/s/@[^@\n]*@/<stdlib.h>/
420 /^NEXT_SYS_STAT_H *=/s!@[^@\n]*@!<sys/stat.h>!
421 /^NEXT_TIME_H *=/s/@[^@\n]*@/<time.h>/
422 /^NEXT_UNISTD_H *=/s/@[^@\n]*@/<unistd.h>/
423 /^OBJEXT *=/s/@[^@\n]*@/o/
424 /^PRAGMA_COLUMNS *=/s/@[^@\n]*@//
425 /^PRAGMA_SYSTEM_HEADER *=/s/@[^@\n]*@/\\\#pragma GCC system_header/
426 /^PTHREAD_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
427 /^PTRDIFF_T_SUFFIX *=/s/@[^@\n]*@//
428 /^RANLIB *=/s/@[^@\n]*@/ranlib/
429 /^REPLACE_CALLOC *=/s/@REPLACE_CALLOC@/0/
430 /^REPLACE_CANONICALIZE_FILE_NAME *=/s/@REPLACE_CANONICALIZE_FILE_NAME@/0/
431 /^REPLACE_CHOWN *=/s/@REPLACE_CHOWN@/0/
432 /^REPLACE_CLOSE *=/s/@REPLACE_CLOSE@/0/
433 /^REPLACE_DPRINTF *=/s/@REPLACE_DPRINTF@/0/
434 /^REPLACE_DUP *=/s/@REPLACE_DUP@/0/
435 /^REPLACE_DUP2 *=/s/@REPLACE_DUP2@/0/
436 /^REPLACE_FCHOWNAT *=/s/@REPLACE_FCHOWNAT@/0/
437 /^REPLACE_FCLOSE *=/s/@REPLACE_FCLOSE@/0/
438 /^REPLACE_FFLUSH *=/s/@REPLACE_FFLUSH@/0/
439 /^REPLACE_FOPEN *=/s/@REPLACE_FOPEN@/0/
440 /^REPLACE_FPRINTF *=/s/@REPLACE_FPRINTF@/0/
441 /^REPLACE_FPURGE *=/s/@REPLACE_FPURGE@/0/
442 /^REPLACE_FREOPEN *=/s/@REPLACE_FREOPEN@/0/
443 /^REPLACE_FSEEK *=/s/@REPLACE_FSEEK@/0/
444 /^REPLACE_FSEEKO *=/s/@REPLACE_FSEEKO@/0/
445 /^REPLACE_FSTAT *=/s/@REPLACE_FSTAT@/0/
446 /^REPLACE_FSTATAT *=/s/@REPLACE_FSTATAT@/0/
447 /^REPLACE_FTELL *=/s/@REPLACE_FTELL@/0/
448 /^REPLACE_FTELLO *=/s/@REPLACE_FTELLO@/0/
449 /^REPLACE_GETCWD *=/s/@REPLACE_GETCWD@/0/
450 /^REPLACE_GETDELIM *=/s/@REPLACE_GETDELIM@/0/
451 /^REPLACE_GETDOMAINNAME *=/s/@REPLACE_GETDOMAINNAME@/0/
452 /^REPLACE_GETGROUPS *=/s/@REPLACE_GETGROUPS@/0/
453 /^REPLACE_GETLINE *=/s/@REPLACE_GETLINE@/0/
454 /^REPLACE_GETLOGIN_R *=/s/@REPLACE_GETLOGIN_R@/0/
455 /^REPLACE_GETPAGESIZE *=/s/@REPLACE_GETPAGESIZE@/0/
456 /^REPLACE_LCHOWN *=/s/@REPLACE_LCHOWN@/0/
457 /^REPLACE_LINK *=/s/@REPLACE_LINK@/0/
458 /^REPLACE_LINKAT *=/s/@REPLACE_LINKAT@/0/
459 /^REPLACE_LOCALTIME_R *=/s/@REPLACE_LOCALTIME_R@/0/
460 /^REPLACE_LSEEK *=/s/@REPLACE_LSEEK@/0/
461 /^REPLACE_LSTAT *=/s/@REPLACE_LSTAT@/0/
462 /^REPLACE_MALLOC *=/s/@REPLACE_MALLOC@/0/
463 /^REPLACE_MBTOWC *=/s/@REPLACE_MBTOWC@/0/
464 /^REPLACE_MKDIR *=/s/@REPLACE_MKDIR@/0/
465 /^REPLACE_MKFIFO *=/s/@REPLACE_MKFIFO@/0/
466 /^REPLACE_MKNOD *=/s/@REPLACE_MKNOD@/0/
467 /^REPLACE_MKSTEMP *=/s/@REPLACE_MKSTEMP@/0/
468 /^REPLACE_MKTIME *=/s/@REPLACE_MKTIME@/0/
469 /^REPLACE_NANOSLEEP *=/s/@REPLACE_NANOSLEEP@/0/
470 /^REPLACE_NULL *=/s/@REPLACE_NULL@/0/
471 /^REPLACE_OBSTACK_PRINTF *=/s/@REPLACE_OBSTACK_PRINTF@/0/
472 /^REPLACE_PERROR *=/s/@REPLACE_PERROR@/0/
473 /^REPLACE_POPEN *=/s/@REPLACE_POPEN@/0/
474 /^REPLACE_PREAD *=/s/@REPLACE_PREAD@/0/
475 /^REPLACE_PRINTF *=/s/@REPLACE_PRINTF@/0/
476 /^REPLACE_PUTENV *=/s/@REPLACE_PUTENV@/0/
477 /^REPLACE_PWRITE *=/s/@REPLACE_PWRITE@/0/
478 /^REPLACE_READ *=/s/@REPLACE_READ@/0/
479 /^REPLACE_READLINK *=/s/@REPLACE_READLINK@/0/
480 /^REPLACE_REALLOC *=/s/@REPLACE_REALLOC@/0/
481 /^REPLACE_REALPATH *=/s/@REPLACE_REALPATH@/0/
482 /^REPLACE_REMOVE *=/s/@REPLACE_REMOVE@/0/
483 /^REPLACE_RENAME *=/s/@REPLACE_RENAME@/0/
484 /^REPLACE_RENAMEAT *=/s/@REPLACE_RENAMEAT@/0/
485 /^REPLACE_RMDIR *=/s/@REPLACE_RMDIR@/0/
486 /^REPLACE_SETENV *=/s/@REPLACE_SETENV@/0/
487 /^REPLACE_SLEEP *=/s/@REPLACE_SLEEP@/0/
488 /^REPLACE_SNPRINTF *=/s/@REPLACE_SNPRINTF@/0/
489 /^REPLACE_SPRINTF *=/s/@REPLACE_SPRINTF@/0/
490 /^REPLACE_STAT *=/s/@REPLACE_STAT@/0/
491 /^REPLACE_STDIO_READ_FUNCS *=/s/@REPLACE_STDIO_READ_FUNCS@/0/
492 /^REPLACE_STDIO_WRITE_FUNCS *=/s/@REPLACE_STDIO_WRITE_FUNCS@/0/
493 /^REPLACE_STRTOD *=/s/@REPLACE_STRTOD@/0/
494 /^REPLACE_SYMLINK *=/s/@REPLACE_SYMLINK@/0/
495 /^REPLACE_TIMEGM *=/s/@REPLACE_TIMEGM@/0/
496 /^REPLACE_TMPFILE *=/s/@REPLACE_TMPFILE@/0/
497 /^REPLACE_TTYNAME_R *=/s/@REPLACE_TTYNAME_R@/0/
498 /^REPLACE_UNLINK *=/s/@REPLACE_UNLINK@/0/
499 /^REPLACE_UNLINKAT *=/s/@REPLACE_UNLINKAT@/0/
500 /^REPLACE_UNSETENV *=/s/@REPLACE_UNSETENV@/0/
501 /^REPLACE_USLEEP *=/s/@REPLACE_USLEEP@/0/
502 /^REPLACE_UTIMENSAT *=/s/@REPLACE_UTIMENSAT@/0/
503 /^REPLACE_VASPRINTF *=/s/@REPLACE_VASPRINTF@/0/
504 /^REPLACE_VDPRINTF *=/s/@REPLACE_VDPRINTF@/0/
505 /^REPLACE_VFPRINTF *=/s/@REPLACE_VFPRINTF@/0/
506 /^REPLACE_VPRINTF *=/s/@REPLACE_VPRINTF@/0/
507 /^REPLACE_VSNPRINTF *=/s/@REPLACE_VSNPRINTF@/0/
508 /^REPLACE_VSPRINTF *=/s/@REPLACE_VSPRINTF@/0/
509 /^REPLACE_WCTOMB *=/s/@REPLACE_WCTOMB@/0/
510 /^REPLACE_WRITE *=/s/@REPLACE_WRITE@/0/
511 /^SIG_ATOMIC_T_SUFFIX *=/s/@SIG_ATOMIC_T_SUFFIX@//
512 /^SIZE_T_SUFFIX *=/s/@SIZE_T_SUFFIX@/u/
513 /^STDBOOL_H *=/s/@[^@\n]*@//
514 /^STDARG_H *=/s/@[^@\n]*@//
515 /^STDDEF_H *=/s/@[^@\n]*@//
516 /^STDINT_H *=/s/@[^@\n]*@/stdint.h/
517 /^SYS_TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
518 /^TIME_H_DEFINES_STRUCT_TIMESPEC *=/s/@[^@\n]*@/0/
519 /^UNISTD_H_HAVE_WINSOCK2_H *=/s/@[^@\n]*@/0/
520 /^UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS *=/s/@[^@\n]*@/0/
521 /^WCHAR_T_SUFFIX *=/s/@WCHAR_T_SUFFIX@/h/
522 /^WINT_T_SUFFIX *=/s/@WINT_T_SUFFIX@//
523 /am__append_1 *=.*gettext\.h/s/@[^@\n]*@/\#/
524 /am__append_2 *=.*verify\.h/s/@[^@\n]*@//
525 /^gl_LIBOBJS *=/s/@[^@\n]*@/getopt.o getopt1.o strftime.o time_r.o getloadavg.o md5.o filemode.o sha1.o/
526 /^BUILT_SOURCES *=/s/ *inttypes\.h//
527 /^am_libgnu_a_OBJECTS *=/s/careadlinkat\.\$(OBJEXT)//
528 /^am_libgnu_a_OBJECTS *=/s/allocator\.\$(OBJEXT)//
529 /^srcdir *=/s/@[^@\n]*@/./
530 /^top_srcdir *=/s/@[^@\n]*@/../
531 /^top_builddir *=/s/@[^@\n]*@/../
532 s/@PRAGMA_SYSTEM_HEADER@/\#pragma GCC system_header/
535 # Delete the recipes we don't want to get in our way.
536 /^\$(srcdir)\/Makefile\.in:/,/^[ ][ ]*\$(AUTOMAKE)/d
537 /^Makefile:/,/^[ ][ ]*esac/d
538 /^\$(top_srcdir)\/configure:/,/^\$(ACLOCAL_M4)/d
539 /^\$(top_builddir)\/config.status:/,/^$/d
541 # Remove the dependencies on $(top_builddir)/config.status
542 s/ $(top_builddir)\/config.status//
544 # Fix the include-dependency lines
547 s/@am__include@/include/
549 s/^@am__fastdepCC_TRUE@//
550 s/^@am__fastdepCC_FALSE@/\#/
552 # Fix the *-clean rules, to not use a Unixy `test' command. Empty
553 # lists are replaced with a dummy file, to avoid an error message from
554 # "rm -f" with no arguments.
555 /^CONFIG_CLEAN_FILES *= *$/c\
556 CONFIG_CLEAN_FILES = xyzzy
557 /^CONFIG_CLEAN_VPATH_FILES *= *$/c\
558 CONFIG_CLEAN_VPATH_FILES = xyzzy
559 s/^ -*test -z.*|| rm/ -rm/
562 # Fix the recipes for header files
563 s/^@GL_GENERATE_STDBOOL_H_TRUE@/\#/
564 s/^@GL_GENERATE_STDBOOL_H_FALSE@//
565 s/^@GL_GENERATE_STDARG_H_TRUE@/\#/
566 s/^@GL_GENERATE_STDARG_H_FALSE@/\#/
567 s/^@GL_GENERATE_STDDEF_H_TRUE@/\#/
568 s/^@GL_GENERATE_STDDEF_H_FALSE@/\#/
569 s/^@GL_GENERATE_STDINT_H_TRUE@//
570 s/^@GL_GENERATE_STDINT_H_FALSE@/\#/
571 /^arg-nonnull\.h:/,/^[ ][ ]*mv /c\
572 arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h\
573 sed -n -e '/GL_ARG_NONNULL/,$$p' < $(top_srcdir)/build-aux/snippet/arg-nonnull.h > $@
574 /^cxxdefs\.h:/,/^[ ][ ]*mv /c\
575 cxxdefs.h: $(top_srcdir)/build-aux/snippet/cxxdefs.h\
576 sed -n -e '/_GL_CXXDEFS/,$$p' < $(top_srcdir)/build-aux/snippet/cxxdefs.h > $@
577 s/^ [ ]*{ echo \(.*\); \\/ djecho \1 > $@-t/
578 s/^ [ ]*{ echo \(.*\) && \\/ djecho \1 > $@-t/
580 s/\.in-h\; *\\$/.in-h >> $@-t/
582 /^stdio\.h:/,/^ [ ]*mv /{
583 s/'\; \\ *$/' >> $@-t/
585 /^stdlib\.h:/,/^ [ ]*mv /{
586 s/'\; \\ *$/' >> $@-t/
588 /^unistd\.h:/,/^ [ ]*mv /{
589 s/'\; \\ *$/' >> $@-t/
591 s!\$(MKDIR_P)[ ][ ]*sys!command.com /c "if not exist sys\\stat.h md sys"!