Update `THANKS'.
[bpt/guile.git] / lib / Makefile.am
CommitLineData
103dc4d4
LC
1## DO NOT EDIT! GENERATED AUTOMATICALLY!
2## Process this file with automake to produce Makefile.in.
61cd9dc9 3# Copyright (C) 2002-2010 Free Software Foundation, Inc.
103dc4d4
LC
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.
f4c79b3c 12# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=lib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=3 --libtool --macro-prefix=gl --no-vc-files alignof alloca-opt announce-gen autobuild byteswap canonicalize-lgpl duplocale environ extensions flock fpieee full-read full-write func gendocs getaddrinfo gitlog-to-changelog gnu-web-doc-update gnupload havelib iconv_open-utf inet_ntop inet_pton lib-symbol-versions lib-symbol-visibility libunistring locale maintainer-makefile putenv stdlib strcase strftime striconveh string sys_stat verify version-etc-fsf vsnprintf warnings
103dc4d4 13
24d56127 14AUTOMAKE_OPTIONS = 1.5 gnits subdir-objects
103dc4d4 15
aa7a939c 16SUBDIRS =
103dc4d4
LC
17noinst_HEADERS =
18noinst_LIBRARIES =
19noinst_LTLIBRARIES =
20EXTRA_DIST =
21BUILT_SOURCES =
22SUFFIXES =
23MOSTLYCLEANFILES = core *.stackdump
24MOSTLYCLEANDIRS =
25CLEANFILES =
26DISTCLEANFILES =
27MAINTAINERCLEANFILES =
28
29AM_CPPFLAGS =
f240aacb 30AM_CFLAGS =
103dc4d4
LC
31
32noinst_LTLIBRARIES += libgnu.la
33
34libgnu_la_SOURCES =
35libgnu_la_LIBADD = $(gl_LTLIBOBJS)
36libgnu_la_DEPENDENCIES = $(gl_LTLIBOBJS)
37EXTRA_libgnu_la_SOURCES =
38libgnu_la_LDFLAGS = $(AM_LDFLAGS)
39
8912421c
LC
40## begin gnulib module alignof
41
42
43EXTRA_DIST += alignof.h
44
45## end gnulib module alignof
46
103dc4d4
LC
47## begin gnulib module alloca-opt
48
49BUILT_SOURCES += $(ALLOCA_H)
50
51# We need the following in order to create <alloca.h> when the system
52# doesn't have one that works with the given compiler.
53alloca.h: alloca.in.h
8912421c 54 $(AM_V_GEN)rm -f $@-t $@ && \
103dc4d4
LC
55 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
56 cat $(srcdir)/alloca.in.h; \
8912421c 57 } > $@-t && \
103dc4d4
LC
58 mv -f $@-t $@
59MOSTLYCLEANFILES += alloca.h alloca.h-t
60
61EXTRA_DIST += alloca.in.h
62
63## end gnulib module alloca-opt
64
c84bdaf6
LC
65## begin gnulib module announce-gen
66
67
68EXTRA_DIST += $(top_srcdir)/build-aux/announce-gen
69
70## end gnulib module announce-gen
71
1cd4fffc
LC
72## begin gnulib module arg-nonnull
73
61cd9dc9
LC
74# The BUILT_SOURCES created by this Makefile snippet are not used via #include
75# statements but through direct file reference. Therefore this snippet must be
76# present in all Makefile.am that need it. This is ensured by the applicability
77# 'all' defined above.
78
1cd4fffc
LC
79BUILT_SOURCES += arg-nonnull.h
80# The arg-nonnull.h that gets inserted into generated .h files is the same as
81# build-aux/arg-nonnull.h, except that it has the copyright header cut off.
82arg-nonnull.h: $(top_srcdir)/build-aux/arg-nonnull.h
83 $(AM_V_GEN)rm -f $@-t $@ && \
84 sed -n -e '/GL_ARG_NONNULL/,$$p' \
85 < $(top_srcdir)/build-aux/arg-nonnull.h \
86 > $@-t && \
87 mv $@-t $@
88MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
89
90ARG_NONNULL_H=arg-nonnull.h
91
92EXTRA_DIST += $(top_srcdir)/build-aux/arg-nonnull.h
93
94## end gnulib module arg-nonnull
95
8912421c
LC
96## begin gnulib module arpa_inet
97
61cd9dc9 98BUILT_SOURCES += arpa/inet.h
8912421c
LC
99
100# We need the following in order to create <arpa/inet.h> when the system
101# doesn't have one.
61cd9dc9 102arpa/inet.h: arpa_inet.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
8912421c
LC
103 $(AM_V_at)$(MKDIR_P) arpa
104 $(AM_V_GEN)rm -f $@-t $@ && \
105 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
106 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
107 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
108 -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
109 -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
110 -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \
111 -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \
112 -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
113 -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
1cd4fffc 114 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 115 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8912421c
LC
116 < $(srcdir)/arpa_inet.in.h; \
117 } > $@-t && \
118 mv $@-t $@
119MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
120MOSTLYCLEANDIRS += arpa
121
122EXTRA_DIST += arpa_inet.in.h
123
124## end gnulib module arpa_inet
125
24d56127
LC
126## begin gnulib module byteswap
127
128BUILT_SOURCES += $(BYTESWAP_H)
129
130# We need the following in order to create <byteswap.h> when the system
131# doesn't have one.
132byteswap.h: byteswap.in.h
8912421c 133 $(AM_V_GEN)rm -f $@-t $@ && \
24d56127
LC
134 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
135 cat $(srcdir)/byteswap.in.h; \
8912421c 136 } > $@-t && \
24d56127
LC
137 mv -f $@-t $@
138MOSTLYCLEANFILES += byteswap.h byteswap.h-t
139
140EXTRA_DIST += byteswap.in.h
141
142## end gnulib module byteswap
143
f4c79b3c
LC
144## begin gnulib module c++defs
145
146# The BUILT_SOURCES created by this Makefile snippet are not used via #include
147# statements but through direct file reference. Therefore this snippet must be
148# present in all Makefile.am that need it. This is ensured by the applicability
149# 'all' defined above.
150
151BUILT_SOURCES += c++defs.h
152# The c++defs.h that gets inserted into generated .h files is the same as
153# build-aux/c++defs.h, except that it has the copyright header cut off.
154c++defs.h: $(top_srcdir)/build-aux/c++defs.h
155 $(AM_V_GEN)rm -f $@-t $@ && \
156 sed -n -e '/_GL_CXXDEFS/,$$p' \
157 < $(top_srcdir)/build-aux/c++defs.h \
158 > $@-t && \
159 mv $@-t $@
160MOSTLYCLEANFILES += c++defs.h c++defs.h-t
161
162CXXDEFS_H=c++defs.h
163
164EXTRA_DIST += $(top_srcdir)/build-aux/c++defs.h
165
166## end gnulib module c++defs
167
24d56127
LC
168## begin gnulib module c-ctype
169
170libgnu_la_SOURCES += c-ctype.h c-ctype.c
171
172## end gnulib module c-ctype
173
174## begin gnulib module c-strcase
175
176libgnu_la_SOURCES += c-strcase.h c-strcasecmp.c c-strncasecmp.c
177
178## end gnulib module c-strcase
179
180## begin gnulib module c-strcaseeq
181
182
183EXTRA_DIST += c-strcaseeq.h
184
185## end gnulib module c-strcaseeq
186
ffca4c22
AW
187## begin gnulib module canonicalize-lgpl
188
189
8912421c 190EXTRA_DIST += canonicalize-lgpl.c
ffca4c22
AW
191
192EXTRA_libgnu_la_SOURCES += canonicalize-lgpl.c
193
194## end gnulib module canonicalize-lgpl
195
4a462e35
NJ
196## begin gnulib module configmake
197
198# Retrieve values of the variables through 'configure' followed by
199# 'make', not directly through 'configure', so that a user who
200# sets some of these variables consistently on the 'make' command
201# line gets correct results.
202#
203# One advantage of this approach, compared to the classical
204# approach of adding -DLIBDIR=\"$(libdir)\" etc. to AM_CPPFLAGS,
205# is that it protects against the use of undefined variables.
206# If, say, $(libdir) is not set in the Makefile, LIBDIR is not
207# defined by this module, and code using LIBDIR gives a
208# compilation error.
209#
210# Another advantage is that 'make' output is shorter.
211#
212# Listed in the same order as the GNU makefile conventions.
213# The Automake-defined pkg* macros are appended, in the order
214# listed in the Automake 1.10a+ documentation.
215configmake.h: Makefile
8912421c 216 $(AM_V_GEN)rm -f $@-t && \
4a462e35
NJ
217 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
218 echo '#define PREFIX "$(prefix)"'; \
219 echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
220 echo '#define BINDIR "$(bindir)"'; \
221 echo '#define SBINDIR "$(sbindir)"'; \
222 echo '#define LIBEXECDIR "$(libexecdir)"'; \
223 echo '#define DATAROOTDIR "$(datarootdir)"'; \
224 echo '#define DATADIR "$(datadir)"'; \
225 echo '#define SYSCONFDIR "$(sysconfdir)"'; \
226 echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
227 echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
228 echo '#define INCLUDEDIR "$(includedir)"'; \
229 echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
230 echo '#define DOCDIR "$(docdir)"'; \
231 echo '#define INFODIR "$(infodir)"'; \
232 echo '#define HTMLDIR "$(htmldir)"'; \
233 echo '#define DVIDIR "$(dvidir)"'; \
234 echo '#define PDFDIR "$(pdfdir)"'; \
235 echo '#define PSDIR "$(psdir)"'; \
236 echo '#define LIBDIR "$(libdir)"'; \
237 echo '#define LISPDIR "$(lispdir)"'; \
238 echo '#define LOCALEDIR "$(localedir)"'; \
239 echo '#define MANDIR "$(mandir)"'; \
240 echo '#define MANEXT "$(manext)"'; \
241 echo '#define PKGDATADIR "$(pkgdatadir)"'; \
242 echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
243 echo '#define PKGLIBDIR "$(pkglibdir)"'; \
244 echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
8912421c 245 } | sed '/""/d' > $@-t && \
f240aacb
LC
246 if test -f $@ && cmp $@-t $@ > /dev/null; then \
247 rm -f $@-t; \
248 else \
249 rm -f $@; mv $@-t $@; \
250 fi
251
4a462e35
NJ
252BUILT_SOURCES += configmake.h
253CLEANFILES += configmake.h configmake.h-t
254
255## end gnulib module configmake
256
c3b16a5d
LC
257## begin gnulib module duplocale
258
259
260EXTRA_DIST += duplocale.c
261
262EXTRA_libgnu_la_SOURCES += duplocale.c
263
264## end gnulib module duplocale
265
c4b681fd
LC
266## begin gnulib module errno
267
268BUILT_SOURCES += $(ERRNO_H)
269
270# We need the following in order to create <errno.h> when the system
271# doesn't have one that is POSIX compliant.
272errno.h: errno.in.h
8912421c 273 $(AM_V_GEN)rm -f $@-t $@ && \
c4b681fd
LC
274 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
275 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
276 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
277 -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
278 -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
279 -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
280 -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
281 -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
282 -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
283 -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
284 < $(srcdir)/errno.in.h; \
8912421c 285 } > $@-t && \
c4b681fd
LC
286 mv $@-t $@
287MOSTLYCLEANFILES += errno.h errno.h-t
288
289EXTRA_DIST += errno.in.h
290
291## end gnulib module errno
292
293## begin gnulib module float
294
295BUILT_SOURCES += $(FLOAT_H)
296
297# We need the following in order to create <float.h> when the system
298# doesn't have one that works with the given compiler.
299float.h: float.in.h
8912421c 300 $(AM_V_GEN)rm -f $@-t $@ && \
c4b681fd
LC
301 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
302 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
303 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
304 -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
305 < $(srcdir)/float.in.h; \
8912421c 306 } > $@-t && \
c4b681fd
LC
307 mv $@-t $@
308MOSTLYCLEANFILES += float.h float.h-t
309
310EXTRA_DIST += float.in.h
311
312## end gnulib module float
313
f240aacb
LC
314## begin gnulib module flock
315
316
317EXTRA_DIST += flock.c
318
319EXTRA_libgnu_la_SOURCES += flock.c
320
321## end gnulib module flock
322
9b36a80c
LC
323## begin gnulib module full-read
324
325libgnu_la_SOURCES += full-read.h full-read.c
326
327## end gnulib module full-read
328
329## begin gnulib module full-write
330
331libgnu_la_SOURCES += full-write.h full-write.c
332
333## end gnulib module full-write
334
c84bdaf6
LC
335## begin gnulib module gendocs
336
337
338EXTRA_DIST += $(top_srcdir)/build-aux/gendocs.sh
339
340## end gnulib module gendocs
341
61cd9dc9
LC
342## begin gnulib module getaddrinfo
343
344
345EXTRA_DIST += gai_strerror.c getaddrinfo.c
346
347EXTRA_libgnu_la_SOURCES += gai_strerror.c getaddrinfo.c
348
349## end gnulib module getaddrinfo
350
4f02b98d
LC
351## begin gnulib module gettext-h
352
353libgnu_la_SOURCES += gettext.h
354
355## end gnulib module gettext-h
356
c84bdaf6
LC
357## begin gnulib module gitlog-to-changelog
358
359
360EXTRA_DIST += $(top_srcdir)/build-aux/gitlog-to-changelog
361
362## end gnulib module gitlog-to-changelog
363
364## begin gnulib module gnu-web-doc-update
365
366
367EXTRA_DIST += $(top_srcdir)/build-aux/gnu-web-doc-update
368
369## end gnulib module gnu-web-doc-update
370
371## begin gnulib module gnumakefile
372
373distclean-local: clean-GNUmakefile
374clean-GNUmakefile:
375 test x'$(VPATH)' != x && rm -f $(top_builddir)/GNUmakefile || :
376
377EXTRA_DIST += $(top_srcdir)/GNUmakefile
378
379## end gnulib module gnumakefile
380
381## begin gnulib module gnupload
382
383
384EXTRA_DIST += $(top_srcdir)/build-aux/gnupload
385
386## end gnulib module gnupload
387
24d56127
LC
388## begin gnulib module gperf
389
390GPERF = gperf
391
392## end gnulib module gperf
393
394## begin gnulib module havelib
395
396
397EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
398
399## end gnulib module havelib
400
f4c79b3c 401## begin gnulib module iconv-h
24d56127
LC
402
403BUILT_SOURCES += $(ICONV_H)
404
405# We need the following in order to create <iconv.h> when the system
406# doesn't have one that works with the given compiler.
f4c79b3c 407iconv.h: iconv.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 408 $(AM_V_GEN)rm -f $@-t $@ && \
24d56127
LC
409 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
410 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
411 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
412 -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \
413 -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \
414 -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \
415 -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \
416 -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \
f4c79b3c 417 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 418 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
f4c79b3c 419 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
24d56127 420 < $(srcdir)/iconv.in.h; \
8912421c 421 } > $@-t && \
24d56127
LC
422 mv $@-t $@
423MOSTLYCLEANFILES += iconv.h iconv.h-t
424
f4c79b3c
LC
425EXTRA_DIST += iconv.in.h
426
427## end gnulib module iconv-h
428
429## begin gnulib module iconv_open
430
24d56127
LC
431iconv_open-aix.h: iconv_open-aix.gperf
432 $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t
433 mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h
434iconv_open-hpux.h: iconv_open-hpux.gperf
435 $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $(srcdir)/iconv_open-hpux.h-t
436 mv $(srcdir)/iconv_open-hpux.h-t $(srcdir)/iconv_open-hpux.h
437iconv_open-irix.h: iconv_open-irix.gperf
438 $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $(srcdir)/iconv_open-irix.h-t
439 mv $(srcdir)/iconv_open-irix.h-t $(srcdir)/iconv_open-irix.h
440iconv_open-osf.h: iconv_open-osf.gperf
441 $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $(srcdir)/iconv_open-osf.h-t
442 mv $(srcdir)/iconv_open-osf.h-t $(srcdir)/iconv_open-osf.h
8912421c
LC
443iconv_open-solaris.h: iconv_open-solaris.gperf
444 $(GPERF) -m 10 $(srcdir)/iconv_open-solaris.gperf > $(srcdir)/iconv_open-solaris.h-t
445 mv $(srcdir)/iconv_open-solaris.h-t $(srcdir)/iconv_open-solaris.h
446BUILT_SOURCES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h
447MOSTLYCLEANFILES += iconv_open-aix.h-t iconv_open-hpux.h-t iconv_open-irix.h-t iconv_open-osf.h-t iconv_open-solaris.h-t
448MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h
449EXTRA_DIST += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h
24d56127 450
f4c79b3c 451EXTRA_DIST += iconv_open-aix.gperf iconv_open-hpux.gperf iconv_open-irix.gperf iconv_open-osf.gperf iconv_open-solaris.gperf iconv_open.c
24d56127
LC
452
453EXTRA_libgnu_la_SOURCES += iconv_open.c
454
455## end gnulib module iconv_open
456
457## begin gnulib module iconv_open-utf
458
459
460EXTRA_DIST += iconv.c iconv_close.c
461
462EXTRA_libgnu_la_SOURCES += iconv.c iconv_close.c
463
464## end gnulib module iconv_open-utf
465
8912421c
LC
466## begin gnulib module inet_ntop
467
468
469EXTRA_DIST += inet_ntop.c
470
471EXTRA_libgnu_la_SOURCES += inet_ntop.c
472
473## end gnulib module inet_ntop
474
475## begin gnulib module inet_pton
476
477
478EXTRA_DIST += inet_pton.c
479
480EXTRA_libgnu_la_SOURCES += inet_pton.c
481
482## end gnulib module inet_pton
483
d9a9e182
AW
484## begin gnulib module lib-symbol-visibility
485
486# The value of $(CFLAG_VISIBILITY) needs to be added to the CFLAGS for the
487# compilation of all sources that make up the library. This line here does it
488# only for the gnulib part of it. The developer is responsible for adding
489# $(CFLAG_VISIBILITY) to the Makefile.ams of the other portions of the library.
490AM_CFLAGS += $(CFLAG_VISIBILITY)
491
492## end gnulib module lib-symbol-visibility
493
4a462e35
NJ
494## begin gnulib module localcharset
495
496libgnu_la_SOURCES += localcharset.h localcharset.c
497
498# We need the following in order to install a simple file in $(libdir)
499# which is shared with other installed packages. We use a list of referencing
500# packages so that "make uninstall" will remove the file if and only if it
501# is not used by another installed package.
502# On systems with glibc-2.1 or newer, the file is redundant, therefore we
503# avoid installing it.
504
505all-local: charset.alias ref-add.sed ref-del.sed
506
507charset_alias = $(DESTDIR)$(libdir)/charset.alias
508charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
f240aacb
LC
509install-exec-local: install-exec-localcharset
510install-exec-localcharset: all-local
511 if test $(GLIBC21) = no; then \
512 case '$(host_os)' in \
513 darwin[56]*) \
514 need_charset_alias=true ;; \
515 darwin* | cygwin* | mingw* | pw32* | cegcc*) \
516 need_charset_alias=false ;; \
517 *) \
518 need_charset_alias=true ;; \
519 esac ; \
520 else \
521 need_charset_alias=false ; \
522 fi ; \
523 if $$need_charset_alias; then \
524 $(mkinstalldirs) $(DESTDIR)$(libdir) ; \
525 fi ; \
4a462e35
NJ
526 if test -f $(charset_alias); then \
527 sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
528 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
529 rm -f $(charset_tmp) ; \
530 else \
f240aacb 531 if $$need_charset_alias; then \
4a462e35
NJ
532 sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
533 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
534 rm -f $(charset_tmp) ; \
535 fi ; \
536 fi
537
f240aacb
LC
538uninstall-local: uninstall-localcharset
539uninstall-localcharset: all-local
4a462e35
NJ
540 if test -f $(charset_alias); then \
541 sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
542 if grep '^# Packages using this file: $$' $(charset_tmp) \
543 > /dev/null; then \
544 rm -f $(charset_alias); \
545 else \
546 $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
547 fi; \
548 rm -f $(charset_tmp); \
549 fi
550
551charset.alias: config.charset
8912421c
LC
552 $(AM_V_GEN)rm -f t-$@ $@ && \
553 $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \
4a462e35
NJ
554 mv t-$@ $@
555
556SUFFIXES += .sed .sin
557.sin.sed:
8912421c
LC
558 $(AM_V_GEN)rm -f t-$@ $@ && \
559 sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \
4a462e35
NJ
560 mv t-$@ $@
561
562CLEANFILES += charset.alias ref-add.sed ref-del.sed
563
564EXTRA_DIST += config.charset ref-add.sin ref-del.sin
565
566## end gnulib module localcharset
567
414e4441
LC
568## begin gnulib module locale
569
61cd9dc9 570BUILT_SOURCES += locale.h
414e4441
LC
571
572# We need the following in order to create <locale.h> when the system
573# doesn't have one that provides all definitions.
f4c79b3c 574locale.h: locale.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
414e4441
LC
575 $(AM_V_GEN)rm -f $@-t $@ && \
576 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
577 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
578 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
579 -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
580 -e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \
f4c79b3c 581 -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \
414e4441
LC
582 -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
583 -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
f4c79b3c 584 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 585 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 586 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
414e4441
LC
587 < $(srcdir)/locale.in.h; \
588 } > $@-t && \
589 mv $@-t $@
590MOSTLYCLEANFILES += locale.h locale.h-t
591
592EXTRA_DIST += locale.in.h
593
594## end gnulib module locale
595
8912421c
LC
596## begin gnulib module lstat
597
598
599EXTRA_DIST += lstat.c
600
601EXTRA_libgnu_la_SOURCES += lstat.c
602
603## end gnulib module lstat
604
c84bdaf6
LC
605## begin gnulib module maintainer-makefile
606
607EXTRA_DIST += $(top_srcdir)/maint.mk
608
609## end gnulib module maintainer-makefile
610
f240aacb
LC
611## begin gnulib module malloc-posix
612
613
614EXTRA_DIST += malloc.c
615
616EXTRA_libgnu_la_SOURCES += malloc.c
617
618## end gnulib module malloc-posix
619
ffca4c22
AW
620## begin gnulib module malloca
621
622libgnu_la_SOURCES += malloca.c
623
624EXTRA_DIST += malloca.h malloca.valgrind
625
626## end gnulib module malloca
627
4a462e35
NJ
628## begin gnulib module mbrlen
629
630
631EXTRA_DIST += mbrlen.c
632
633EXTRA_libgnu_la_SOURCES += mbrlen.c
634
635## end gnulib module mbrlen
636
637## begin gnulib module mbrtowc
638
639
640EXTRA_DIST += mbrtowc.c
641
642EXTRA_libgnu_la_SOURCES += mbrtowc.c
643
644## end gnulib module mbrtowc
645
646## begin gnulib module mbsinit
647
648
649EXTRA_DIST += mbsinit.c
650
651EXTRA_libgnu_la_SOURCES += mbsinit.c
652
653## end gnulib module mbsinit
654
c4b681fd
LC
655## begin gnulib module memchr
656
657
658EXTRA_DIST += memchr.c memchr.valgrind
659
660EXTRA_libgnu_la_SOURCES += memchr.c
661
662## end gnulib module memchr
663
61cd9dc9
LC
664## begin gnulib module netdb
665
666BUILT_SOURCES += $(NETDB_H)
667
668# We need the following in order to create <netdb.h> when the system
669# doesn't have one that works with the given compiler.
670netdb.h: netdb.in.h $(ARG_NONNULL_H)
671 $(AM_V_GEN)rm -f $@-t $@ && \
672 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
673 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
674 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
675 -e 's|@''NEXT_NETDB_H''@|$(NEXT_NETDB_H)|g' \
676 -e 's|@''HAVE_NETDB_H''@|$(HAVE_NETDB_H)|g' \
677 -e 's|@''GNULIB_GETADDRINFO''@|$(GNULIB_GETADDRINFO)|g' \
678 -e 's|@''HAVE_STRUCT_ADDRINFO''@|$(HAVE_STRUCT_ADDRINFO)|g' \
679 -e 's|@''HAVE_DECL_FREEADDRINFO''@|$(HAVE_DECL_FREEADDRINFO)|g' \
680 -e 's|@''HAVE_DECL_GAI_STRERROR''@|$(HAVE_DECL_GAI_STRERROR)|g' \
681 -e 's|@''HAVE_DECL_GETADDRINFO''@|$(HAVE_DECL_GETADDRINFO)|g' \
682 -e 's|@''HAVE_DECL_GETNAMEINFO''@|$(HAVE_DECL_GETNAMEINFO)|g' \
683 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
684 < $(srcdir)/netdb.in.h; \
685 } > $@-t && \
686 mv $@-t $@
687MOSTLYCLEANFILES += netdb.h netdb.h-t
688
689EXTRA_DIST += netdb.in.h
690
691## end gnulib module netdb
692
8912421c
LC
693## begin gnulib module netinet_in
694
695BUILT_SOURCES += $(NETINET_IN_H)
696
697# We need the following in order to create <netinet/in.h> when the system
698# doesn't have one.
699netinet/in.h: netinet_in.in.h
700 $(AM_V_at)$(MKDIR_P) netinet
701 $(AM_V_GEN)rm -f $@-t $@ && \
702 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
703 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
704 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
705 -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
706 -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
707 < $(srcdir)/netinet_in.in.h; \
708 } > $@-t && \
709 mv $@-t $@
710MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
711MOSTLYCLEANDIRS += netinet
712
713EXTRA_DIST += netinet_in.in.h
714
715## end gnulib module netinet_in
716
ffca4c22
AW
717## begin gnulib module pathmax
718
719
720EXTRA_DIST += pathmax.h
721
722## end gnulib module pathmax
723
f240aacb
LC
724## begin gnulib module putenv
725
726
727EXTRA_DIST += putenv.c
728
729EXTRA_libgnu_la_SOURCES += putenv.c
730
731## end gnulib module putenv
732
ffca4c22
AW
733## begin gnulib module readlink
734
735
736EXTRA_DIST += readlink.c
737
738EXTRA_libgnu_la_SOURCES += readlink.c
739
740## end gnulib module readlink
741
9b36a80c
LC
742## begin gnulib module safe-read
743
744
745EXTRA_DIST += safe-read.c safe-read.h
746
747EXTRA_libgnu_la_SOURCES += safe-read.c
748
749## end gnulib module safe-read
750
751## begin gnulib module safe-write
752
753
754EXTRA_DIST += safe-write.c safe-write.h
755
756EXTRA_libgnu_la_SOURCES += safe-write.c
757
758## end gnulib module safe-write
759
c4b681fd
LC
760## begin gnulib module size_max
761
762libgnu_la_SOURCES += size_max.h
763
764## end gnulib module size_max
765
61cd9dc9
LC
766## begin gnulib module snprintf
767
768
769EXTRA_DIST += snprintf.c
770
771EXTRA_libgnu_la_SOURCES += snprintf.c
772
773## end gnulib module snprintf
774
8912421c
LC
775## begin gnulib module stat
776
777
778EXTRA_DIST += stat.c
779
780EXTRA_libgnu_la_SOURCES += stat.c
781
782## end gnulib module stat
783
4f02b98d
LC
784## begin gnulib module stdarg
785
786BUILT_SOURCES += $(STDARG_H)
787
788# We need the following in order to create <stdarg.h> when the system
789# doesn't have one that works with the given compiler.
790stdarg.h: stdarg.in.h
791 $(AM_V_GEN)rm -f $@-t $@ && \
792 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
793 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
794 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
795 -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
796 < $(srcdir)/stdarg.in.h; \
797 } > $@-t && \
798 mv $@-t $@
799MOSTLYCLEANFILES += stdarg.h stdarg.h-t
800
801EXTRA_DIST += stdarg.in.h
802
803## end gnulib module stdarg
804
e65fc94b
LC
805## begin gnulib module stdbool
806
807BUILT_SOURCES += $(STDBOOL_H)
808
809# We need the following in order to create <stdbool.h> when the system
810# doesn't have one that works.
811stdbool.h: stdbool.in.h
8912421c 812 $(AM_V_GEN)rm -f $@-t $@ && \
e65fc94b
LC
813 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
814 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
8912421c 815 } > $@-t && \
e65fc94b
LC
816 mv $@-t $@
817MOSTLYCLEANFILES += stdbool.h stdbool.h-t
818
819EXTRA_DIST += stdbool.in.h
820
821## end gnulib module stdbool
822
8912421c
LC
823## begin gnulib module stddef
824
825BUILT_SOURCES += $(STDDEF_H)
826
827# We need the following in order to create <stddef.h> when the system
828# doesn't have one that works with the given compiler.
829stddef.h: stddef.in.h
830 $(AM_V_GEN)rm -f $@-t $@ && \
831 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
832 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
833 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
834 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
835 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
836 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
837 < $(srcdir)/stddef.in.h; \
838 } > $@-t && \
839 mv $@-t $@
840MOSTLYCLEANFILES += stddef.h stddef.h-t
841
842EXTRA_DIST += stddef.in.h
843
844## end gnulib module stddef
845
f240aacb
LC
846## begin gnulib module stdint
847
848BUILT_SOURCES += $(STDINT_H)
849
850# We need the following in order to create <stdint.h> when the system
851# doesn't have one that works with the given compiler.
852stdint.h: stdint.in.h
8912421c 853 $(AM_V_GEN)rm -f $@-t $@ && \
f240aacb
LC
854 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
855 sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
856 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
857 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
858 -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
859 -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
860 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
861 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
862 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
863 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
864 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
865 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
866 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
867 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
868 -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
869 -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
870 -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
871 -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
872 -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
873 -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
874 -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
875 -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
876 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
877 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
878 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
879 < $(srcdir)/stdint.in.h; \
8912421c 880 } > $@-t && \
f240aacb
LC
881 mv $@-t $@
882MOSTLYCLEANFILES += stdint.h stdint.h-t
883
884EXTRA_DIST += stdint.in.h
885
886## end gnulib module stdint
887
c4b681fd
LC
888## begin gnulib module stdio
889
890BUILT_SOURCES += stdio.h
891
892# We need the following in order to create <stdio.h> when the system
893# doesn't have one that works with the given compiler.
f4c79b3c 894stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 895 $(AM_V_GEN)rm -f $@-t $@ && \
c4b681fd
LC
896 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
897 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
898 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
899 -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
c4b681fd 900 -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \
8912421c
LC
901 -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \
902 -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \
c4b681fd 903 -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \
8912421c
LC
904 -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \
905 -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \
906 -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \
907 -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \
908 -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \
c4b681fd
LC
909 -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \
910 -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \
911 -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \
912 -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \
913 -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \
c4b681fd
LC
914 -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \
915 -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \
916 -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \
8912421c
LC
917 -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \
918 -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \
c4b681fd 919 -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \
8912421c
LC
920 -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \
921 -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \
922 -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \
923 -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \
924 -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \
925 -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \
926 -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \
927 -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \
928 -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \
929 -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \
930 -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \
c4b681fd 931 -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \
8912421c
LC
932 -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \
933 -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \
934 -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \
935 -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \
936 -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \
937 -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \
938 -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \
939 -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \
61cd9dc9
LC
940 < $(srcdir)/stdio.in.h | \
941 sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
8912421c
LC
942 -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
943 -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
944 -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
c4b681fd 945 -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
c4b681fd 946 -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
c4b681fd 947 -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
8912421c 948 -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
c4b681fd 949 -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
8912421c
LC
950 -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
951 -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \
952 -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
953 -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
c4b681fd 954 -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
8912421c
LC
955 -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
956 -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \
c4b681fd 957 -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
c4b681fd 958 -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \
8912421c 959 -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \
c4b681fd 960 -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \
8912421c 961 -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \
61cd9dc9 962 -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \
c4b681fd 963 -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \
8912421c 964 -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \
c4b681fd 965 -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \
8912421c
LC
966 -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \
967 -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \
968 -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \
969 -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \
970 -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \
971 -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \
972 -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \
973 -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \
974 -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \
975 -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \
976 -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \
977 -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
978 -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
979 -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
f4c79b3c 980 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 981 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 982 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
8912421c 983 } > $@-t && \
c4b681fd
LC
984 mv $@-t $@
985MOSTLYCLEANFILES += stdio.h stdio.h-t
986
987EXTRA_DIST += stdio-write.c stdio.in.h
988
989EXTRA_libgnu_la_SOURCES += stdio-write.c
990
991## end gnulib module stdio
992
f240aacb
LC
993## begin gnulib module stdlib
994
995BUILT_SOURCES += stdlib.h
996
997# We need the following in order to create <stdlib.h> when the system
998# doesn't have one that works with the given compiler.
f4c79b3c 999stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1000 $(AM_V_GEN)rm -f $@-t $@ && \
f240aacb
LC
1001 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1002 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1003 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1004 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
f240aacb 1005 -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
8912421c
LC
1006 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
1007 -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \
f240aacb
LC
1008 -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
1009 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
8912421c 1010 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
f240aacb 1011 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
8912421c 1012 -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \
f29ded4b 1013 -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \
f240aacb 1014 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
f29ded4b 1015 -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \
f240aacb
LC
1016 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
1017 -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
8912421c
LC
1018 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
1019 -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \
f240aacb
LC
1020 -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
1021 -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
1022 -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
1023 -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
1024 -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
1025 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
1026 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
1027 -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \
8912421c
LC
1028 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
1029 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
f240aacb
LC
1030 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
1031 -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \
1032 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
8912421c 1033 -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
f29ded4b
LC
1034 -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
1035 -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
8912421c 1036 -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
f240aacb 1037 -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
8912421c
LC
1038 -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \
1039 -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
f240aacb
LC
1040 -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
1041 -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
1042 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
1043 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
1044 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
1045 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
1046 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
1047 -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
8912421c 1048 -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
f240aacb
LC
1049 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
1050 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
8912421c 1051 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
4f02b98d 1052 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
f240aacb 1053 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
4f02b98d 1054 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
f4c79b3c 1055 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1056 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1057 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
f240aacb 1058 < $(srcdir)/stdlib.in.h; \
8912421c 1059 } > $@-t && \
f240aacb
LC
1060 mv $@-t $@
1061MOSTLYCLEANFILES += stdlib.h stdlib.h-t
1062
1063EXTRA_DIST += stdlib.in.h
1064
1065## end gnulib module stdlib
1066
103dc4d4
LC
1067## begin gnulib module strcase
1068
1069
1070EXTRA_DIST += strcasecmp.c strncasecmp.c
1071
1072EXTRA_libgnu_la_SOURCES += strcasecmp.c strncasecmp.c
1073
1074## end gnulib module strcase
1075
4a462e35
NJ
1076## begin gnulib module streq
1077
1078
1079EXTRA_DIST += streq.h
1080
1081## end gnulib module streq
1082
e65fc94b
LC
1083## begin gnulib module strftime
1084
1085
1086EXTRA_DIST += strftime.c strftime.h
1087
1088EXTRA_libgnu_la_SOURCES += strftime.c
1089
1090## end gnulib module strftime
1091
24d56127
LC
1092## begin gnulib module striconveh
1093
1094libgnu_la_SOURCES += striconveh.h striconveh.c
1095if GL_COND_LIBTOOL
1096libgnu_la_LDFLAGS += $(LTLIBICONV)
1097endif
1098
1099EXTRA_DIST += iconveh.h
1100
1101## end gnulib module striconveh
1102
1103## begin gnulib module string
1104
1105BUILT_SOURCES += string.h
1106
1107# We need the following in order to create <string.h> when the system
1108# doesn't have one that works with the given compiler.
f4c79b3c 1109string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1110 $(AM_V_GEN)rm -f $@-t $@ && \
24d56127
LC
1111 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1112 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1113 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1114 -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
1115 -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \
1116 -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \
1117 -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \
1118 -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \
1119 -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \
1120 -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \
1121 -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \
1122 -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \
1123 -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \
1124 -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \
1125 -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \
1126 -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
1127 -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
1128 -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
ffca4c22 1129 -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \
24d56127
LC
1130 -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
1131 -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
1132 -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
1133 -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \
1134 -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \
1135 -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
1136 -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
1137 -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
1138 -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
1139 -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
1140 -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
1141 -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \
1142 -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \
1143 -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \
1144 -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \
1145 -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \
1146 -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \
1147 -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \
61cd9dc9
LC
1148 < $(srcdir)/string.in.h | \
1149 sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
24d56127
LC
1150 -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
1151 -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
1152 -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
1153 -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
1154 -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
1155 -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
1156 -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
1157 -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
24d56127
LC
1158 -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
1159 -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
1160 -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
1161 -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
1162 -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
1163 -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
1164 -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \
1165 -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
1166 -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
ffca4c22 1167 -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
24d56127
LC
1168 -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
1169 -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
1170 -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
1171 -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
1172 -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
8912421c 1173 -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \
24d56127 1174 -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
8912421c
LC
1175 -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
1176 -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
f4c79b3c 1177 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1178 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1179 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
24d56127 1180 < $(srcdir)/string.in.h; \
8912421c 1181 } > $@-t && \
24d56127
LC
1182 mv $@-t $@
1183MOSTLYCLEANFILES += string.h string.h-t
1184
1185EXTRA_DIST += string.in.h
1186
1187## end gnulib module string
1188
103dc4d4
LC
1189## begin gnulib module strings
1190
1191BUILT_SOURCES += strings.h
1192
1193# We need the following in order to create <strings.h> when the system
1194# doesn't have one that works with the given compiler.
61cd9dc9 1195strings.h: strings.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
8912421c 1196 $(AM_V_GEN)rm -f $@-t $@ && \
103dc4d4 1197 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
e65fc94b
LC
1198 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1199 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
103dc4d4
LC
1200 -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
1201 -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
1202 -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
1cd4fffc 1203 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1204 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
103dc4d4 1205 < $(srcdir)/strings.in.h; \
8912421c 1206 } > $@-t && \
103dc4d4
LC
1207 mv $@-t $@
1208MOSTLYCLEANFILES += strings.h strings.h-t
1209
1210EXTRA_DIST += strings.in.h
1211
1212## end gnulib module strings
1213
f240aacb
LC
1214## begin gnulib module sys_file
1215
61cd9dc9 1216BUILT_SOURCES += sys/file.h
f240aacb
LC
1217
1218# We need the following in order to create <sys/file.h> when the system
1219# has one that is incomplete.
61cd9dc9 1220sys/file.h: sys_file.in.h $(WARN_ON_USE_H)
8912421c
LC
1221 $(AM_V_at)$(MKDIR_P) sys
1222 $(AM_V_GEN)rm -f $@-t $@ && \
f240aacb
LC
1223 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1224 sed -e 's/@''HAVE_SYS_FILE_H''@/$(HAVE_SYS_FILE_H)/g' \
1225 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1226 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1227 -e 's|@''NEXT_SYS_FILE_H''@|$(NEXT_SYS_FILE_H)|g' \
1228 -e 's/@''HAVE_FLOCK''@/$(HAVE_FLOCK)/g' \
1229 -e 's/@''GNULIB_FLOCK''@/$(GNULIB_FLOCK)/g' \
61cd9dc9 1230 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
f240aacb 1231 < $(srcdir)/sys_file.in.h; \
8912421c 1232 } > $@-t && \
f240aacb
LC
1233 mv $@-t $@
1234MOSTLYCLEANFILES += sys/file.h sys/file.h-t
1235MOSTLYCLEANDIRS += sys
1236
1237EXTRA_DIST += sys_file.in.h
1238
1239## end gnulib module sys_file
1240
8912421c
LC
1241## begin gnulib module sys_socket
1242
61cd9dc9 1243BUILT_SOURCES += sys/socket.h
8912421c
LC
1244
1245# We need the following in order to create <sys/socket.h> when the system
1246# doesn't have one that works with the given compiler.
f4c79b3c 1247sys/socket.h: sys_socket.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
8912421c
LC
1248 $(AM_V_at)$(MKDIR_P) sys
1249 $(AM_V_GEN)rm -f $@-t $@ && \
1250 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1251 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1252 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1253 -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
1254 -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
1255 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
1256 -e 's|@''GNULIB_SOCKET''@|$(GNULIB_SOCKET)|g' \
1257 -e 's|@''GNULIB_CONNECT''@|$(GNULIB_CONNECT)|g' \
1258 -e 's|@''GNULIB_ACCEPT''@|$(GNULIB_ACCEPT)|g' \
1259 -e 's|@''GNULIB_BIND''@|$(GNULIB_BIND)|g' \
1260 -e 's|@''GNULIB_GETPEERNAME''@|$(GNULIB_GETPEERNAME)|g' \
1261 -e 's|@''GNULIB_GETSOCKNAME''@|$(GNULIB_GETSOCKNAME)|g' \
1262 -e 's|@''GNULIB_GETSOCKOPT''@|$(GNULIB_GETSOCKOPT)|g' \
1263 -e 's|@''GNULIB_LISTEN''@|$(GNULIB_LISTEN)|g' \
1264 -e 's|@''GNULIB_RECV''@|$(GNULIB_RECV)|g' \
1265 -e 's|@''GNULIB_SEND''@|$(GNULIB_SEND)|g' \
1266 -e 's|@''GNULIB_RECVFROM''@|$(GNULIB_RECVFROM)|g' \
1267 -e 's|@''GNULIB_SENDTO''@|$(GNULIB_SENDTO)|g' \
1268 -e 's|@''GNULIB_SETSOCKOPT''@|$(GNULIB_SETSOCKOPT)|g' \
1269 -e 's|@''GNULIB_SHUTDOWN''@|$(GNULIB_SHUTDOWN)|g' \
1270 -e 's|@''GNULIB_ACCEPT4''@|$(GNULIB_ACCEPT4)|g' \
1271 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
1272 -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
1273 -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
1274 -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
1275 -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
f4c79b3c 1276 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1277 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1278 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8912421c
LC
1279 < $(srcdir)/sys_socket.in.h; \
1280 } > $@-t && \
1281 mv -f $@-t $@
1282MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
1283MOSTLYCLEANDIRS += sys
1284
1285EXTRA_DIST += sys_socket.in.h
1286
1287## end gnulib module sys_socket
1288
1289## begin gnulib module sys_stat
1290
1291BUILT_SOURCES += sys/stat.h
1292
1293# We need the following in order to create <sys/stat.h> when the system
1294# has one that is incomplete.
f4c79b3c 1295sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c
LC
1296 $(AM_V_at)$(MKDIR_P) sys
1297 $(AM_V_GEN)rm -f $@-t $@ && \
1298 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1299 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1300 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1301 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
1302 -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \
1303 -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \
1304 -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \
1305 -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
1306 -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
1307 -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \
f29ded4b 1308 -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \
8912421c 1309 -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \
f29ded4b 1310 -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \
8912421c
LC
1311 -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \
1312 -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \
1313 -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \
1314 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
1315 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
1316 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
1317 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
1318 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
1319 -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
f29ded4b 1320 -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
8912421c 1321 -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
f29ded4b 1322 -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
8912421c
LC
1323 -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
1324 -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
1325 -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
1326 -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
1327 -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
1328 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
1329 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
f29ded4b
LC
1330 -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
1331 -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
8912421c
LC
1332 -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
1333 -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
f4c79b3c 1334 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1335 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1336 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8912421c
LC
1337 < $(srcdir)/sys_stat.in.h; \
1338 } > $@-t && \
1339 mv $@-t $@
1340MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
1341MOSTLYCLEANDIRS += sys
1342
1343EXTRA_DIST += sys_stat.in.h
1344
1345## end gnulib module sys_stat
1346
e65fc94b
LC
1347## begin gnulib module time
1348
1349BUILT_SOURCES += time.h
1350
1351# We need the following in order to create <time.h> when the system
1352# doesn't have one that works with the given compiler.
f4c79b3c 1353time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1354 $(AM_V_GEN)rm -f $@-t $@ && \
e65fc94b
LC
1355 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1356 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1357 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
f4c79b3c
LC
1358 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
1359 -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
1360 -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
1361 -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
1362 -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
1363 -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
1364 -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
1365 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
1366 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
1367 -e 's|@''REPLACE_STRPTIME''@|$(REPLACE_STRPTIME)|g' \
1368 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
1369 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
1370 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
1371 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1372 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
f4c79b3c 1373 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
e65fc94b 1374 < $(srcdir)/time.in.h; \
8912421c 1375 } > $@-t && \
e65fc94b
LC
1376 mv $@-t $@
1377MOSTLYCLEANFILES += time.h time.h-t
1378
1379EXTRA_DIST += time.in.h
1380
1381## end gnulib module time
1382
1383## begin gnulib module time_r
1384
1385
1386EXTRA_DIST += time_r.c
1387
1388EXTRA_libgnu_la_SOURCES += time_r.c
1389
1390## end gnulib module time_r
1391
9b36a80c
LC
1392## begin gnulib module unistd
1393
1394BUILT_SOURCES += unistd.h
1395
1396# We need the following in order to create an empty placeholder for
1397# <unistd.h> when the system doesn't have one.
f4c79b3c 1398unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1399 $(AM_V_GEN)rm -f $@-t $@ && \
9b36a80c
LC
1400 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1401 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
1402 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1403 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1404 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
1405 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
1406 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
1407 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
8912421c 1408 -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \
9b36a80c
LC
1409 -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
1410 -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
8912421c 1411 -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \
9b36a80c 1412 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
8912421c 1413 -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \
9b36a80c
LC
1414 -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
1415 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
1416 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
1417 -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
1418 -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
f29ded4b 1419 -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \
9b36a80c 1420 -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
61cd9dc9 1421 -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \
9b36a80c
LC
1422 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
1423 -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
1424 -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
1425 -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
f240aacb 1426 -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
8912421c 1427 -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \
9b36a80c 1428 -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
8912421c 1429 -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \
1cd4fffc 1430 -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \
9b36a80c 1431 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
8912421c
LC
1432 -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \
1433 -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \
9b36a80c 1434 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
8912421c
LC
1435 -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \
1436 -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \
1437 -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \
9b36a80c 1438 -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
8912421c
LC
1439 -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \
1440 -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \
414e4441 1441 -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \
9b36a80c 1442 -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
61cd9dc9
LC
1443 < $(srcdir)/unistd.in.h | \
1444 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
9b36a80c 1445 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
8912421c 1446 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
9b36a80c 1447 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
8912421c
LC
1448 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
1449 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
9b36a80c
LC
1450 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
1451 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
1452 -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \
1453 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
f29ded4b 1454 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
9b36a80c 1455 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
61cd9dc9 1456 -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \
9b36a80c
LC
1457 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
1458 -e 's|@''HAVE_GETUSERSHELL''@|$(HAVE_GETUSERSHELL)|g' \
f29ded4b 1459 -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
f240aacb 1460 -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
8912421c
LC
1461 -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
1462 -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
1cd4fffc 1463 -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
9b36a80c 1464 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
8912421c 1465 -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
9b36a80c 1466 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
8912421c
LC
1467 -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
1468 -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
1469 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
414e4441 1470 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
9b36a80c
LC
1471 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
1472 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
1473 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
1474 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
1475 -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
1476 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
8912421c 1477 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
25361e4b 1478 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
9b36a80c 1479 -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
8912421c 1480 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
9b36a80c 1481 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
f29ded4b 1482 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
9b36a80c
LC
1483 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
1484 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
8912421c
LC
1485 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
1486 -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
9b36a80c 1487 -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
1cd4fffc 1488 -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
8912421c
LC
1489 -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
1490 -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
414e4441 1491 -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
8912421c
LC
1492 -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
1493 -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
1494 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
414e4441 1495 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
9b36a80c
LC
1496 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
1497 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
8912421c 1498 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
f4c79b3c 1499 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1500 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1501 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
8912421c 1502 } > $@-t && \
9b36a80c
LC
1503 mv $@-t $@
1504MOSTLYCLEANFILES += unistd.h unistd.h-t
1505
1506EXTRA_DIST += unistd.in.h
1507
1508## end gnulib module unistd
1509
24d56127
LC
1510## begin gnulib module unistr/base
1511
1512
1513EXTRA_DIST += unistr.h
1514
1515## end gnulib module unistr/base
1516
1517## begin gnulib module unistr/u8-mbtouc
1518
1519libgnu_la_SOURCES += unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c
1520
1521## end gnulib module unistr/u8-mbtouc
1522
1523## begin gnulib module unistr/u8-mbtouc-unsafe
1524
1525libgnu_la_SOURCES += unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c
1526
1527## end gnulib module unistr/u8-mbtouc-unsafe
1528
1529## begin gnulib module unistr/u8-mbtoucr
1530
1531libgnu_la_SOURCES += unistr/u8-mbtoucr.c
1532
1533## end gnulib module unistr/u8-mbtoucr
1534
1535## begin gnulib module unistr/u8-prev
1536
1537libgnu_la_SOURCES += unistr/u8-prev.c
1538
1539## end gnulib module unistr/u8-prev
1540
1541## begin gnulib module unistr/u8-uctomb
1542
1543libgnu_la_SOURCES += unistr/u8-uctomb.c unistr/u8-uctomb-aux.c
1544
1545## end gnulib module unistr/u8-uctomb
1546
1547## begin gnulib module unitypes
1548
1549
1550EXTRA_DIST += unitypes.h
1551
1552## end gnulib module unitypes
1553
61cd9dc9
LC
1554## begin gnulib module unused-parameter
1555
1556# The BUILT_SOURCES created by this Makefile snippet are not used via #include
1557# statements but through direct file reference. Therefore this snippet must be
1558# present in all Makefile.am that need it. This is ensured by the applicability
1559# 'all' defined above.
1560
1561BUILT_SOURCES += unused-parameter.h
1562# The unused-parameter.h that gets inserted into generated .h files is the same
1563# as build-aux/unused-parameter.h, except that it has the copyright header cut
1564# off.
1565unused-parameter.h: $(top_srcdir)/build-aux/unused-parameter.h
1566 $(AM_V_GEN)rm -f $@-t $@ && \
1567 sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \
1568 < $(top_srcdir)/build-aux/unused-parameter.h \
1569 > $@-t && \
1570 mv $@-t $@
1571MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t
1572
1573UNUSED_PARAMETER_H=unused-parameter.h
1574
1575EXTRA_DIST += $(top_srcdir)/build-aux/unused-parameter.h
1576
1577## end gnulib module unused-parameter
1578
c84bdaf6
LC
1579## begin gnulib module useless-if-before-free
1580
1581
1582EXTRA_DIST += $(top_srcdir)/build-aux/useless-if-before-free
1583
1584## end gnulib module useless-if-before-free
1585
c4b681fd
LC
1586## begin gnulib module vasnprintf
1587
1588
1589EXTRA_DIST += asnprintf.c float+.h printf-args.c printf-args.h printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h
1590
1591EXTRA_libgnu_la_SOURCES += asnprintf.c printf-args.c printf-parse.c vasnprintf.c
1592
1593## end gnulib module vasnprintf
1594
c84bdaf6
LC
1595## begin gnulib module vc-list-files
1596
1597
1598EXTRA_DIST += $(top_srcdir)/build-aux/vc-list-files
1599
1600## end gnulib module vc-list-files
1601
d7014610
LC
1602## begin gnulib module verify
1603
1604libgnu_la_SOURCES += verify.h
1605
1606## end gnulib module verify
1607
4f02b98d
LC
1608## begin gnulib module version-etc
1609
1610libgnu_la_SOURCES += version-etc.h version-etc.c
1611
1612## end gnulib module version-etc
1613
1614## begin gnulib module version-etc-fsf
1615
1616libgnu_la_SOURCES += version-etc-fsf.c
1617
1618## end gnulib module version-etc-fsf
1619
c4b681fd
LC
1620## begin gnulib module vsnprintf
1621
1622
1623EXTRA_DIST += vsnprintf.c
1624
1625EXTRA_libgnu_la_SOURCES += vsnprintf.c
1626
1627## end gnulib module vsnprintf
1628
61cd9dc9
LC
1629## begin gnulib module warn-on-use
1630
1631BUILT_SOURCES += warn-on-use.h
1632# The warn-on-use.h that gets inserted into generated .h files is the same as
1633# build-aux/warn-on-use.h, except that it has the copyright header cut off.
1634warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h
1635 $(AM_V_GEN)rm -f $@-t $@ && \
1636 sed -n -e '/^.ifndef/,$$p' \
1637 < $(top_srcdir)/build-aux/warn-on-use.h \
1638 > $@-t && \
1639 mv $@-t $@
1640MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
1641
1642WARN_ON_USE_H=warn-on-use.h
1643
1644EXTRA_DIST += $(top_srcdir)/build-aux/warn-on-use.h
1645
1646## end gnulib module warn-on-use
1647
e65fc94b
LC
1648## begin gnulib module wchar
1649
61cd9dc9 1650BUILT_SOURCES += wchar.h
e65fc94b
LC
1651
1652# We need the following in order to create <wchar.h> when the system
1653# version does not work standalone.
f4c79b3c 1654wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1655 $(AM_V_GEN)rm -f $@-t $@ && \
e65fc94b
LC
1656 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1657 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1658 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1659 -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
4a462e35
NJ
1660 -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
1661 -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \
1662 -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \
1663 -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \
1664 -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \
1665 -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \
1666 -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \
1667 -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \
1668 -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \
1669 -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \
1670 -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \
e65fc94b 1671 -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
4a462e35
NJ
1672 -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
1673 -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
1674 -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
1675 -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
1676 -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
1677 -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
1678 -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
1679 -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
1680 -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
1681 -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
1682 -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
e65fc94b 1683 -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
4a462e35
NJ
1684 -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
1685 -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
1686 -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
1687 -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
1688 -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
1689 -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
1690 -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
1691 -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
1692 -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
1693 -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
f240aacb 1694 -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
e65fc94b 1695 -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
f4c79b3c 1696 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1697 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1698 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
e65fc94b 1699 < $(srcdir)/wchar.in.h; \
8912421c 1700 } > $@-t && \
e65fc94b
LC
1701 mv $@-t $@
1702MOSTLYCLEANFILES += wchar.h wchar.h-t
1703
1704EXTRA_DIST += wchar.in.h
1705
1706## end gnulib module wchar
1707
9b36a80c
LC
1708## begin gnulib module write
1709
1710
1711EXTRA_DIST += write.c
103dc4d4 1712
9b36a80c 1713EXTRA_libgnu_la_SOURCES += write.c
103dc4d4 1714
9b36a80c 1715## end gnulib module write
103dc4d4 1716
c4b681fd
LC
1717## begin gnulib module xsize
1718
1719libgnu_la_SOURCES += xsize.h
1720
1721## end gnulib module xsize
1722
103dc4d4
LC
1723
1724mostlyclean-local: mostlyclean-generic
1725 @for dir in '' $(MOSTLYCLEANDIRS); do \
1726 if test -n "$$dir" && test -d $$dir; then \
1727 echo "rmdir $$dir"; rmdir $$dir; \
1728 fi; \
1729 done; \
1730 :