Import crypto/md5 module from gnulib.
[bpt/emacs.git] / lib / gnulib.mk
1 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
2 ## Process this file with automake to produce Makefile.in.
3 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
4 #
5 # This file is free software, distributed under the terms of the GNU
6 # General Public License. As a special exception to the GNU General
7 # Public License, this file may be distributed as part of a program
8 # that contains a configuration script generated by Autoconf, under
9 # the same distribution terms as the rest of that program.
10 #
11 # Generated by gnulib-tool.
12 # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=. --makefile-name=gnulib.mk --no-libtool --macro-prefix=gl --no-vc-files crypto/md5 dtoastr getloadavg getopt-gnu ignore-value mktime strftime
13
14
15 MOSTLYCLEANFILES += core *.stackdump
16
17 noinst_LIBRARIES += libgnu.a
18
19 libgnu_a_SOURCES =
20 libgnu_a_LIBADD = $(gl_LIBOBJS)
21 libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
22 EXTRA_libgnu_a_SOURCES =
23
24 ## begin gnulib module arg-nonnull
25
26 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
27 # statements but through direct file reference. Therefore this snippet must be
28 # present in all Makefile.am that need it. This is ensured by the applicability
29 # 'all' defined above.
30
31 BUILT_SOURCES += arg-nonnull.h
32 # The arg-nonnull.h that gets inserted into generated .h files is the same as
33 # build-aux/arg-nonnull.h, except that it has the copyright header cut off.
34 arg-nonnull.h: $(top_srcdir)/./arg-nonnull.h
35 $(AM_V_GEN)rm -f $@-t $@ && \
36 sed -n -e '/GL_ARG_NONNULL/,$$p' \
37 < $(top_srcdir)/./arg-nonnull.h \
38 > $@-t && \
39 mv $@-t $@
40 MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
41
42 ARG_NONNULL_H=arg-nonnull.h
43
44 EXTRA_DIST += $(top_srcdir)/./arg-nonnull.h
45
46 ## end gnulib module arg-nonnull
47
48 ## begin gnulib module c++defs
49
50 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
51 # statements but through direct file reference. Therefore this snippet must be
52 # present in all Makefile.am that need it. This is ensured by the applicability
53 # 'all' defined above.
54
55 BUILT_SOURCES += c++defs.h
56 # The c++defs.h that gets inserted into generated .h files is the same as
57 # build-aux/c++defs.h, except that it has the copyright header cut off.
58 c++defs.h: $(top_srcdir)/./c++defs.h
59 $(AM_V_GEN)rm -f $@-t $@ && \
60 sed -n -e '/_GL_CXXDEFS/,$$p' \
61 < $(top_srcdir)/./c++defs.h \
62 > $@-t && \
63 mv $@-t $@
64 MOSTLYCLEANFILES += c++defs.h c++defs.h-t
65
66 CXXDEFS_H=c++defs.h
67
68 EXTRA_DIST += $(top_srcdir)/./c++defs.h
69
70 ## end gnulib module c++defs
71
72 ## begin gnulib module crypto/md5
73
74
75 EXTRA_DIST += md5.c md5.h
76
77 EXTRA_libgnu_a_SOURCES += md5.c
78
79 ## end gnulib module crypto/md5
80
81 ## begin gnulib module dtoastr
82
83 libgnu_a_SOURCES += dtoastr.c
84
85 EXTRA_DIST += ftoastr.c ftoastr.h
86
87 EXTRA_libgnu_a_SOURCES += ftoastr.c
88
89 ## end gnulib module dtoastr
90
91 ## begin gnulib module getloadavg
92
93
94 EXTRA_DIST += getloadavg.c
95
96 EXTRA_libgnu_a_SOURCES += getloadavg.c
97
98 ## end gnulib module getloadavg
99
100 ## begin gnulib module getopt-posix
101
102 BUILT_SOURCES += $(GETOPT_H)
103
104 # We need the following in order to create <getopt.h> when the system
105 # doesn't have one that works with the given compiler.
106 getopt.h: getopt.in.h $(ARG_NONNULL_H)
107 $(AM_V_GEN)rm -f $@-t $@ && \
108 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
109 sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
110 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
111 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
112 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
113 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
114 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
115 < $(srcdir)/getopt.in.h; \
116 } > $@-t && \
117 mv -f $@-t $@
118 MOSTLYCLEANFILES += getopt.h getopt.h-t
119
120 EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
121
122 EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
123
124 ## end gnulib module getopt-posix
125
126 ## begin gnulib module gettext-h
127
128 libgnu_a_SOURCES += gettext.h
129
130 ## end gnulib module gettext-h
131
132 ## begin gnulib module ignore-value
133
134 libgnu_a_SOURCES += ignore-value.h
135
136 ## end gnulib module ignore-value
137
138 ## begin gnulib module intprops
139
140
141 EXTRA_DIST += intprops.h
142
143 ## end gnulib module intprops
144
145 ## begin gnulib module mktime
146
147
148 EXTRA_DIST += mktime-internal.h mktime.c
149
150 EXTRA_libgnu_a_SOURCES += mktime.c
151
152 ## end gnulib module mktime
153
154 ## begin gnulib module stdbool
155
156 BUILT_SOURCES += $(STDBOOL_H)
157
158 # We need the following in order to create <stdbool.h> when the system
159 # doesn't have one that works.
160 stdbool.h: stdbool.in.h
161 $(AM_V_GEN)rm -f $@-t $@ && \
162 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
163 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
164 } > $@-t && \
165 mv $@-t $@
166 MOSTLYCLEANFILES += stdbool.h stdbool.h-t
167
168 EXTRA_DIST += stdbool.in.h
169
170 ## end gnulib module stdbool
171
172 ## begin gnulib module stddef
173
174 BUILT_SOURCES += $(STDDEF_H)
175
176 # We need the following in order to create <stddef.h> when the system
177 # doesn't have one that works with the given compiler.
178 stddef.h: stddef.in.h
179 $(AM_V_GEN)rm -f $@-t $@ && \
180 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
181 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
182 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
183 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
184 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
185 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
186 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
187 < $(srcdir)/stddef.in.h; \
188 } > $@-t && \
189 mv $@-t $@
190 MOSTLYCLEANFILES += stddef.h stddef.h-t
191
192 EXTRA_DIST += stddef.in.h
193
194 ## end gnulib module stddef
195
196 ## begin gnulib module stdlib
197
198 BUILT_SOURCES += stdlib.h
199
200 # We need the following in order to create <stdlib.h> when the system
201 # doesn't have one that works with the given compiler.
202 stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
203 $(AM_V_GEN)rm -f $@-t $@ && \
204 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
205 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
206 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
207 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
208 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
209 -e 's|@''GNULIB__EXIT''@|$(GNULIB__EXIT)|g' \
210 -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
211 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
212 -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \
213 -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
214 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
215 -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \
216 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
217 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
218 -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \
219 -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \
220 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
221 -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \
222 -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \
223 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
224 -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
225 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
226 -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \
227 -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
228 -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
229 -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
230 -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
231 -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
232 -e 's|@''GNULIB_SYSTEM_POSIX''@|$(GNULIB_SYSTEM_POSIX)|g' \
233 -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \
234 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
235 < $(srcdir)/stdlib.in.h | \
236 sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
237 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
238 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
239 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
240 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
241 -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
242 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
243 -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
244 -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
245 -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
246 -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
247 -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
248 -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
249 -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
250 -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
251 -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
252 -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \
253 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
254 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
255 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
256 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
257 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
258 -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
259 -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
260 -e 's|@''REPLACE_CALLOC''@|$(REPLACE_CALLOC)|g' \
261 -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
262 -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \
263 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
264 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
265 -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
266 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
267 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
268 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
269 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
270 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
271 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
272 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
273 } > $@-t && \
274 mv $@-t $@
275 MOSTLYCLEANFILES += stdlib.h stdlib.h-t
276
277 EXTRA_DIST += stdlib.in.h
278
279 ## end gnulib module stdlib
280
281 ## begin gnulib module strftime
282
283
284 EXTRA_DIST += strftime.c strftime.h
285
286 EXTRA_libgnu_a_SOURCES += strftime.c
287
288 ## end gnulib module strftime
289
290 ## begin gnulib module time
291
292 BUILT_SOURCES += time.h
293
294 # We need the following in order to create <time.h> when the system
295 # doesn't have one that works with the given compiler.
296 time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
297 $(AM_V_GEN)rm -f $@-t $@ && \
298 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
299 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
300 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
301 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
302 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
303 -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
304 -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
305 -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
306 -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
307 -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
308 -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
309 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
310 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
311 -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
312 -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
313 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
314 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
315 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
316 -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
317 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
318 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
319 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
320 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
321 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
322 < $(srcdir)/time.in.h; \
323 } > $@-t && \
324 mv $@-t $@
325 MOSTLYCLEANFILES += time.h time.h-t
326
327 EXTRA_DIST += time.in.h
328
329 ## end gnulib module time
330
331 ## begin gnulib module time_r
332
333
334 EXTRA_DIST += time_r.c
335
336 EXTRA_libgnu_a_SOURCES += time_r.c
337
338 ## end gnulib module time_r
339
340 ## begin gnulib module unistd
341
342 BUILT_SOURCES += unistd.h
343
344 # We need the following in order to create an empty placeholder for
345 # <unistd.h> when the system doesn't have one.
346 unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
347 $(AM_V_GEN)rm -f $@-t $@ && \
348 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
349 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
350 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
351 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
352 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
353 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
354 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
355 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
356 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
357 -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \
358 -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
359 -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
360 -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \
361 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
362 -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \
363 -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
364 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
365 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
366 -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
367 -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
368 -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \
369 -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
370 -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \
371 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
372 -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
373 -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
374 -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
375 -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
376 -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \
377 -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
378 -e 's|@''GNULIB_PIPE''@|$(GNULIB_PIPE)|g' \
379 -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \
380 -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \
381 -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \
382 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
383 -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \
384 -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \
385 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
386 -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \
387 -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \
388 -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \
389 -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \
390 -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
391 -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \
392 -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \
393 -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \
394 -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
395 < $(srcdir)/unistd.in.h | \
396 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
397 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
398 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
399 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
400 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
401 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
402 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
403 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
404 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
405 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
406 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
407 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
408 -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \
409 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
410 -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
411 -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
412 -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
413 -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \
414 -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
415 -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
416 -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
417 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
418 -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
419 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
420 -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
421 -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
422 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
423 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
424 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
425 -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \
426 -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \
427 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
428 -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
429 -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
430 -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
431 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
432 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
433 | \
434 sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
435 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
436 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
437 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
438 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
439 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
440 -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \
441 -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \
442 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
443 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
444 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
445 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
446 -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
447 -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
448 -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
449 -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
450 -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
451 -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
452 -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
453 -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
454 -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
455 -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
456 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
457 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
458 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
459 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
460 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
461 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
462 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
463 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
464 } > $@-t && \
465 mv $@-t $@
466 MOSTLYCLEANFILES += unistd.h unistd.h-t
467
468 EXTRA_DIST += unistd.in.h
469
470 ## end gnulib module unistd
471
472 ## begin gnulib module warn-on-use
473
474 BUILT_SOURCES += warn-on-use.h
475 # The warn-on-use.h that gets inserted into generated .h files is the same as
476 # build-aux/warn-on-use.h, except that it has the copyright header cut off.
477 warn-on-use.h: $(top_srcdir)/./warn-on-use.h
478 $(AM_V_GEN)rm -f $@-t $@ && \
479 sed -n -e '/^.ifndef/,$$p' \
480 < $(top_srcdir)/./warn-on-use.h \
481 > $@-t && \
482 mv $@-t $@
483 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
484
485 WARN_ON_USE_H=warn-on-use.h
486
487 EXTRA_DIST += $(top_srcdir)/./warn-on-use.h
488
489 ## end gnulib module warn-on-use
490
491
492 mostlyclean-local: mostlyclean-generic
493 @for dir in '' $(MOSTLYCLEANDIRS); do \
494 if test -n "$$dir" && test -d $$dir; then \
495 echo "rmdir $$dir"; rmdir $$dir; \
496 fi; \
497 done; \
498 :