Build dlopenable modules with `-module'.
[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.
2e65b52f 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 git-version-gen gitlog-to-changelog gnu-web-doc-update gnupload havelib iconv_open-utf inet_ntop inet_pton isinf isnan lib-symbol-versions lib-symbol-visibility libunistring locale maintainer-makefile putenv stat-time 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
5ad8e59f
LC
357## begin gnulib module git-version-gen
358
359
360EXTRA_DIST += $(top_srcdir)/build-aux/git-version-gen
361
362## end gnulib module git-version-gen
363
c84bdaf6
LC
364## begin gnulib module gitlog-to-changelog
365
366
367EXTRA_DIST += $(top_srcdir)/build-aux/gitlog-to-changelog
368
369## end gnulib module gitlog-to-changelog
370
371## begin gnulib module gnu-web-doc-update
372
373
374EXTRA_DIST += $(top_srcdir)/build-aux/gnu-web-doc-update
375
376## end gnulib module gnu-web-doc-update
377
378## begin gnulib module gnumakefile
379
380distclean-local: clean-GNUmakefile
381clean-GNUmakefile:
382 test x'$(VPATH)' != x && rm -f $(top_builddir)/GNUmakefile || :
383
384EXTRA_DIST += $(top_srcdir)/GNUmakefile
385
386## end gnulib module gnumakefile
387
388## begin gnulib module gnupload
389
390
391EXTRA_DIST += $(top_srcdir)/build-aux/gnupload
392
393## end gnulib module gnupload
394
24d56127
LC
395## begin gnulib module gperf
396
397GPERF = gperf
398
399## end gnulib module gperf
400
401## begin gnulib module havelib
402
403
404EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
405
406## end gnulib module havelib
407
f4c79b3c 408## begin gnulib module iconv-h
24d56127
LC
409
410BUILT_SOURCES += $(ICONV_H)
411
412# We need the following in order to create <iconv.h> when the system
413# doesn't have one that works with the given compiler.
f4c79b3c 414iconv.h: iconv.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 415 $(AM_V_GEN)rm -f $@-t $@ && \
24d56127
LC
416 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
417 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
418 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
419 -e 's|@''NEXT_ICONV_H''@|$(NEXT_ICONV_H)|g' \
420 -e 's|@''ICONV_CONST''@|$(ICONV_CONST)|g' \
421 -e 's|@''REPLACE_ICONV''@|$(REPLACE_ICONV)|g' \
422 -e 's|@''REPLACE_ICONV_OPEN''@|$(REPLACE_ICONV_OPEN)|g' \
423 -e 's|@''REPLACE_ICONV_UTF''@|$(REPLACE_ICONV_UTF)|g' \
f4c79b3c 424 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 425 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
f4c79b3c 426 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
24d56127 427 < $(srcdir)/iconv.in.h; \
8912421c 428 } > $@-t && \
24d56127
LC
429 mv $@-t $@
430MOSTLYCLEANFILES += iconv.h iconv.h-t
431
f4c79b3c
LC
432EXTRA_DIST += iconv.in.h
433
434## end gnulib module iconv-h
435
436## begin gnulib module iconv_open
437
24d56127
LC
438iconv_open-aix.h: iconv_open-aix.gperf
439 $(GPERF) -m 10 $(srcdir)/iconv_open-aix.gperf > $(srcdir)/iconv_open-aix.h-t
440 mv $(srcdir)/iconv_open-aix.h-t $(srcdir)/iconv_open-aix.h
441iconv_open-hpux.h: iconv_open-hpux.gperf
442 $(GPERF) -m 10 $(srcdir)/iconv_open-hpux.gperf > $(srcdir)/iconv_open-hpux.h-t
443 mv $(srcdir)/iconv_open-hpux.h-t $(srcdir)/iconv_open-hpux.h
444iconv_open-irix.h: iconv_open-irix.gperf
445 $(GPERF) -m 10 $(srcdir)/iconv_open-irix.gperf > $(srcdir)/iconv_open-irix.h-t
446 mv $(srcdir)/iconv_open-irix.h-t $(srcdir)/iconv_open-irix.h
447iconv_open-osf.h: iconv_open-osf.gperf
448 $(GPERF) -m 10 $(srcdir)/iconv_open-osf.gperf > $(srcdir)/iconv_open-osf.h-t
449 mv $(srcdir)/iconv_open-osf.h-t $(srcdir)/iconv_open-osf.h
8912421c
LC
450iconv_open-solaris.h: iconv_open-solaris.gperf
451 $(GPERF) -m 10 $(srcdir)/iconv_open-solaris.gperf > $(srcdir)/iconv_open-solaris.h-t
452 mv $(srcdir)/iconv_open-solaris.h-t $(srcdir)/iconv_open-solaris.h
453BUILT_SOURCES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h
454MOSTLYCLEANFILES += 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
455MAINTAINERCLEANFILES += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h
456EXTRA_DIST += iconv_open-aix.h iconv_open-hpux.h iconv_open-irix.h iconv_open-osf.h iconv_open-solaris.h
24d56127 457
f4c79b3c 458EXTRA_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
459
460EXTRA_libgnu_la_SOURCES += iconv_open.c
461
462## end gnulib module iconv_open
463
464## begin gnulib module iconv_open-utf
465
466
467EXTRA_DIST += iconv.c iconv_close.c
468
469EXTRA_libgnu_la_SOURCES += iconv.c iconv_close.c
470
471## end gnulib module iconv_open-utf
472
8912421c
LC
473## begin gnulib module inet_ntop
474
475
476EXTRA_DIST += inet_ntop.c
477
478EXTRA_libgnu_la_SOURCES += inet_ntop.c
479
480## end gnulib module inet_ntop
481
482## begin gnulib module inet_pton
483
484
485EXTRA_DIST += inet_pton.c
486
487EXTRA_libgnu_la_SOURCES += inet_pton.c
488
489## end gnulib module inet_pton
490
2e65b52f
LC
491## begin gnulib module isinf
492
493
494EXTRA_DIST += isinf.c
495
496EXTRA_libgnu_la_SOURCES += isinf.c
497
498## end gnulib module isinf
499
500## begin gnulib module isnand
501
502
503EXTRA_DIST += float+.h isnan.c isnand.c
504
505EXTRA_libgnu_la_SOURCES += isnan.c isnand.c
506
507## end gnulib module isnand
508
509## begin gnulib module isnanf
510
511
512EXTRA_DIST += float+.h isnan.c isnanf.c
513
514EXTRA_libgnu_la_SOURCES += isnan.c isnanf.c
515
516## end gnulib module isnanf
517
518## begin gnulib module isnanl
519
520
521EXTRA_DIST += float+.h isnan.c isnanl.c
522
523EXTRA_libgnu_la_SOURCES += isnan.c isnanl.c
524
525## end gnulib module isnanl
526
d9a9e182
AW
527## begin gnulib module lib-symbol-visibility
528
529# The value of $(CFLAG_VISIBILITY) needs to be added to the CFLAGS for the
530# compilation of all sources that make up the library. This line here does it
531# only for the gnulib part of it. The developer is responsible for adding
532# $(CFLAG_VISIBILITY) to the Makefile.ams of the other portions of the library.
533AM_CFLAGS += $(CFLAG_VISIBILITY)
534
535## end gnulib module lib-symbol-visibility
536
a927b6c1
LC
537## begin gnulib module libunistring
538
539
540EXTRA_DIST += libunistring.valgrind
541
542## end gnulib module libunistring
543
4a462e35
NJ
544## begin gnulib module localcharset
545
546libgnu_la_SOURCES += localcharset.h localcharset.c
547
548# We need the following in order to install a simple file in $(libdir)
549# which is shared with other installed packages. We use a list of referencing
550# packages so that "make uninstall" will remove the file if and only if it
551# is not used by another installed package.
552# On systems with glibc-2.1 or newer, the file is redundant, therefore we
553# avoid installing it.
554
555all-local: charset.alias ref-add.sed ref-del.sed
556
557charset_alias = $(DESTDIR)$(libdir)/charset.alias
558charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
f240aacb
LC
559install-exec-local: install-exec-localcharset
560install-exec-localcharset: all-local
561 if test $(GLIBC21) = no; then \
562 case '$(host_os)' in \
563 darwin[56]*) \
564 need_charset_alias=true ;; \
565 darwin* | cygwin* | mingw* | pw32* | cegcc*) \
566 need_charset_alias=false ;; \
567 *) \
568 need_charset_alias=true ;; \
569 esac ; \
570 else \
571 need_charset_alias=false ; \
572 fi ; \
573 if $$need_charset_alias; then \
574 $(mkinstalldirs) $(DESTDIR)$(libdir) ; \
575 fi ; \
4a462e35
NJ
576 if test -f $(charset_alias); then \
577 sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
578 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
579 rm -f $(charset_tmp) ; \
580 else \
f240aacb 581 if $$need_charset_alias; then \
4a462e35
NJ
582 sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
583 $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
584 rm -f $(charset_tmp) ; \
585 fi ; \
586 fi
587
f240aacb
LC
588uninstall-local: uninstall-localcharset
589uninstall-localcharset: all-local
4a462e35
NJ
590 if test -f $(charset_alias); then \
591 sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
592 if grep '^# Packages using this file: $$' $(charset_tmp) \
593 > /dev/null; then \
594 rm -f $(charset_alias); \
595 else \
596 $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
597 fi; \
598 rm -f $(charset_tmp); \
599 fi
600
601charset.alias: config.charset
8912421c
LC
602 $(AM_V_GEN)rm -f t-$@ $@ && \
603 $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \
4a462e35
NJ
604 mv t-$@ $@
605
606SUFFIXES += .sed .sin
607.sin.sed:
8912421c
LC
608 $(AM_V_GEN)rm -f t-$@ $@ && \
609 sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \
4a462e35
NJ
610 mv t-$@ $@
611
612CLEANFILES += charset.alias ref-add.sed ref-del.sed
613
614EXTRA_DIST += config.charset ref-add.sin ref-del.sin
615
616## end gnulib module localcharset
617
414e4441
LC
618## begin gnulib module locale
619
61cd9dc9 620BUILT_SOURCES += locale.h
414e4441
LC
621
622# We need the following in order to create <locale.h> when the system
623# doesn't have one that provides all definitions.
f4c79b3c 624locale.h: locale.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
414e4441
LC
625 $(AM_V_GEN)rm -f $@-t $@ && \
626 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
627 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
628 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
629 -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
630 -e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \
f4c79b3c 631 -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \
414e4441
LC
632 -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
633 -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
f4c79b3c 634 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 635 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 636 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
414e4441
LC
637 < $(srcdir)/locale.in.h; \
638 } > $@-t && \
639 mv $@-t $@
640MOSTLYCLEANFILES += locale.h locale.h-t
641
642EXTRA_DIST += locale.in.h
643
644## end gnulib module locale
645
8912421c
LC
646## begin gnulib module lstat
647
648
649EXTRA_DIST += lstat.c
650
651EXTRA_libgnu_la_SOURCES += lstat.c
652
653## end gnulib module lstat
654
c84bdaf6
LC
655## begin gnulib module maintainer-makefile
656
657EXTRA_DIST += $(top_srcdir)/maint.mk
658
659## end gnulib module maintainer-makefile
660
f240aacb
LC
661## begin gnulib module malloc-posix
662
663
664EXTRA_DIST += malloc.c
665
666EXTRA_libgnu_la_SOURCES += malloc.c
667
668## end gnulib module malloc-posix
669
ffca4c22
AW
670## begin gnulib module malloca
671
672libgnu_la_SOURCES += malloca.c
673
674EXTRA_DIST += malloca.h malloca.valgrind
675
676## end gnulib module malloca
677
2e65b52f
LC
678## begin gnulib module math
679
680BUILT_SOURCES += math.h
681
682# We need the following in order to create <math.h> when the system
683# doesn't have one that works with the given compiler.
684math.h: math.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
685 $(AM_V_GEN)rm -f $@-t $@ && \
686 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
687 sed -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
688 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
689 -e 's|@''NEXT_AS_FIRST_DIRECTIVE_MATH_H''@|$(NEXT_AS_FIRST_DIRECTIVE_MATH_H)|g' \
690 -e 's|@''GNULIB_ACOSL''@|$(GNULIB_ACOSL)|g' \
691 -e 's|@''GNULIB_ASINL''@|$(GNULIB_ASINL)|g' \
692 -e 's|@''GNULIB_ATANL''@|$(GNULIB_ATANL)|g' \
693 -e 's|@''GNULIB_CEILF''@|$(GNULIB_CEILF)|g' \
694 -e 's|@''GNULIB_CEILL''@|$(GNULIB_CEILL)|g' \
695 -e 's|@''GNULIB_COSL''@|$(GNULIB_COSL)|g' \
696 -e 's|@''GNULIB_EXPL''@|$(GNULIB_EXPL)|g' \
697 -e 's|@''GNULIB_FLOORF''@|$(GNULIB_FLOORF)|g' \
698 -e 's|@''GNULIB_FLOORL''@|$(GNULIB_FLOORL)|g' \
699 -e 's|@''GNULIB_FREXP''@|$(GNULIB_FREXP)|g' \
700 -e 's|@''GNULIB_FREXPL''@|$(GNULIB_FREXPL)|g' \
701 -e 's|@''GNULIB_ISFINITE''@|$(GNULIB_ISFINITE)|g' \
702 -e 's|@''GNULIB_ISINF''@|$(GNULIB_ISINF)|g' \
703 -e 's|@''GNULIB_ISNAN''@|$(GNULIB_ISNAN)|g' \
704 -e 's|@''GNULIB_ISNANF''@|$(GNULIB_ISNANF)|g' \
705 -e 's|@''GNULIB_ISNAND''@|$(GNULIB_ISNAND)|g' \
706 -e 's|@''GNULIB_ISNANL''@|$(GNULIB_ISNANL)|g' \
707 -e 's|@''GNULIB_LDEXPL''@|$(GNULIB_LDEXPL)|g' \
708 -e 's|@''GNULIB_LOGB''@|$(GNULIB_LOGB)|g' \
709 -e 's|@''GNULIB_LOGL''@|$(GNULIB_LOGL)|g' \
710 -e 's|@''GNULIB_ROUND''@|$(GNULIB_ROUND)|g' \
711 -e 's|@''GNULIB_ROUNDF''@|$(GNULIB_ROUNDF)|g' \
712 -e 's|@''GNULIB_ROUNDL''@|$(GNULIB_ROUNDL)|g' \
713 -e 's|@''GNULIB_SIGNBIT''@|$(GNULIB_SIGNBIT)|g' \
714 -e 's|@''GNULIB_SINL''@|$(GNULIB_SINL)|g' \
715 -e 's|@''GNULIB_SQRTL''@|$(GNULIB_SQRTL)|g' \
716 -e 's|@''GNULIB_TANL''@|$(GNULIB_TANL)|g' \
717 -e 's|@''GNULIB_TRUNC''@|$(GNULIB_TRUNC)|g' \
718 -e 's|@''GNULIB_TRUNCF''@|$(GNULIB_TRUNCF)|g' \
719 -e 's|@''GNULIB_TRUNCL''@|$(GNULIB_TRUNCL)|g' \
720 -e 's|@''HAVE_ACOSL''@|$(HAVE_ACOSL)|g' \
721 -e 's|@''HAVE_ASINL''@|$(HAVE_ASINL)|g' \
722 -e 's|@''HAVE_ATANL''@|$(HAVE_ATANL)|g' \
723 -e 's|@''HAVE_COSL''@|$(HAVE_COSL)|g' \
724 -e 's|@''HAVE_EXPL''@|$(HAVE_EXPL)|g' \
725 -e 's|@''HAVE_ISNANF''@|$(HAVE_ISNANF)|g' \
726 -e 's|@''HAVE_ISNAND''@|$(HAVE_ISNAND)|g' \
727 -e 's|@''HAVE_ISNANL''@|$(HAVE_ISNANL)|g' \
728 -e 's|@''HAVE_LOGL''@|$(HAVE_LOGL)|g' \
729 -e 's|@''HAVE_SINL''@|$(HAVE_SINL)|g' \
730 -e 's|@''HAVE_SQRTL''@|$(HAVE_SQRTL)|g' \
731 -e 's|@''HAVE_TANL''@|$(HAVE_TANL)|g' \
732 -e 's|@''HAVE_DECL_ACOSL''@|$(HAVE_DECL_ACOSL)|g' \
733 -e 's|@''HAVE_DECL_ASINL''@|$(HAVE_DECL_ASINL)|g' \
734 -e 's|@''HAVE_DECL_ATANL''@|$(HAVE_DECL_ATANL)|g' \
735 -e 's|@''HAVE_DECL_CEILF''@|$(HAVE_DECL_CEILF)|g' \
736 -e 's|@''HAVE_DECL_CEILL''@|$(HAVE_DECL_CEILL)|g' \
737 -e 's|@''HAVE_DECL_COSL''@|$(HAVE_DECL_COSL)|g' \
738 -e 's|@''HAVE_DECL_EXPL''@|$(HAVE_DECL_EXPL)|g' \
739 -e 's|@''HAVE_DECL_FLOORF''@|$(HAVE_DECL_FLOORF)|g' \
740 -e 's|@''HAVE_DECL_FLOORL''@|$(HAVE_DECL_FLOORL)|g' \
741 -e 's|@''HAVE_DECL_FREXPL''@|$(HAVE_DECL_FREXPL)|g' \
742 -e 's|@''HAVE_DECL_LDEXPL''@|$(HAVE_DECL_LDEXPL)|g' \
743 -e 's|@''HAVE_DECL_LOGB''@|$(HAVE_DECL_LOGB)|g' \
744 -e 's|@''HAVE_DECL_LOGL''@|$(HAVE_DECL_LOGL)|g' \
745 -e 's|@''HAVE_DECL_ROUND''@|$(HAVE_DECL_ROUND)|g' \
746 -e 's|@''HAVE_DECL_ROUNDF''@|$(HAVE_DECL_ROUNDF)|g' \
747 -e 's|@''HAVE_DECL_ROUNDL''@|$(HAVE_DECL_ROUNDL)|g' \
748 -e 's|@''HAVE_DECL_SINL''@|$(HAVE_DECL_SINL)|g' \
749 -e 's|@''HAVE_DECL_SQRTL''@|$(HAVE_DECL_SQRTL)|g' \
750 -e 's|@''HAVE_DECL_TANL''@|$(HAVE_DECL_TANL)|g' \
751 -e 's|@''HAVE_DECL_TRUNC''@|$(HAVE_DECL_TRUNC)|g' \
752 -e 's|@''HAVE_DECL_TRUNCF''@|$(HAVE_DECL_TRUNCF)|g' \
753 -e 's|@''HAVE_DECL_TRUNCL''@|$(HAVE_DECL_TRUNCL)|g' \
754 -e 's|@''REPLACE_CEILF''@|$(REPLACE_CEILF)|g' \
755 -e 's|@''REPLACE_CEILL''@|$(REPLACE_CEILL)|g' \
756 -e 's|@''REPLACE_FLOORF''@|$(REPLACE_FLOORF)|g' \
757 -e 's|@''REPLACE_FLOORL''@|$(REPLACE_FLOORL)|g' \
758 -e 's|@''REPLACE_FREXP''@|$(REPLACE_FREXP)|g' \
759 -e 's|@''REPLACE_FREXPL''@|$(REPLACE_FREXPL)|g' \
760 -e 's|@''REPLACE_HUGE_VAL''@|$(REPLACE_HUGE_VAL)|g' \
761 -e 's|@''REPLACE_ISFINITE''@|$(REPLACE_ISFINITE)|g' \
762 -e 's|@''REPLACE_ISINF''@|$(REPLACE_ISINF)|g' \
763 -e 's|@''REPLACE_ISNAN''@|$(REPLACE_ISNAN)|g' \
764 -e 's|@''REPLACE_LDEXPL''@|$(REPLACE_LDEXPL)|g' \
765 -e 's|@''REPLACE_NAN''@|$(REPLACE_NAN)|g' \
766 -e 's|@''REPLACE_ROUND''@|$(REPLACE_ROUND)|g' \
767 -e 's|@''REPLACE_ROUNDF''@|$(REPLACE_ROUNDF)|g' \
768 -e 's|@''REPLACE_ROUNDL''@|$(REPLACE_ROUNDL)|g' \
769 -e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
770 -e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
771 -e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
772 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
773 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
774 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
775 < $(srcdir)/math.in.h; \
776 } > $@-t && \
777 mv $@-t $@
778MOSTLYCLEANFILES += math.h math.h-t
779
780EXTRA_DIST += math.in.h
781
782## end gnulib module math
783
4a462e35
NJ
784## begin gnulib module mbrlen
785
786
787EXTRA_DIST += mbrlen.c
788
789EXTRA_libgnu_la_SOURCES += mbrlen.c
790
791## end gnulib module mbrlen
792
793## begin gnulib module mbrtowc
794
795
796EXTRA_DIST += mbrtowc.c
797
798EXTRA_libgnu_la_SOURCES += mbrtowc.c
799
800## end gnulib module mbrtowc
801
802## begin gnulib module mbsinit
803
804
805EXTRA_DIST += mbsinit.c
806
807EXTRA_libgnu_la_SOURCES += mbsinit.c
808
809## end gnulib module mbsinit
810
c4b681fd
LC
811## begin gnulib module memchr
812
813
814EXTRA_DIST += memchr.c memchr.valgrind
815
816EXTRA_libgnu_la_SOURCES += memchr.c
817
818## end gnulib module memchr
819
61cd9dc9
LC
820## begin gnulib module netdb
821
a927b6c1 822BUILT_SOURCES += netdb.h
61cd9dc9
LC
823
824# We need the following in order to create <netdb.h> when the system
825# doesn't have one that works with the given compiler.
a927b6c1 826netdb.h: netdb.in.h $(ARG_NONNULL_H) $(WARN_ON_USE_H)
61cd9dc9
LC
827 $(AM_V_GEN)rm -f $@-t $@ && \
828 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
829 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
830 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
831 -e 's|@''NEXT_NETDB_H''@|$(NEXT_NETDB_H)|g' \
832 -e 's|@''HAVE_NETDB_H''@|$(HAVE_NETDB_H)|g' \
833 -e 's|@''GNULIB_GETADDRINFO''@|$(GNULIB_GETADDRINFO)|g' \
834 -e 's|@''HAVE_STRUCT_ADDRINFO''@|$(HAVE_STRUCT_ADDRINFO)|g' \
835 -e 's|@''HAVE_DECL_FREEADDRINFO''@|$(HAVE_DECL_FREEADDRINFO)|g' \
836 -e 's|@''HAVE_DECL_GAI_STRERROR''@|$(HAVE_DECL_GAI_STRERROR)|g' \
837 -e 's|@''HAVE_DECL_GETADDRINFO''@|$(HAVE_DECL_GETADDRINFO)|g' \
838 -e 's|@''HAVE_DECL_GETNAMEINFO''@|$(HAVE_DECL_GETNAMEINFO)|g' \
839 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
a927b6c1 840 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
61cd9dc9
LC
841 < $(srcdir)/netdb.in.h; \
842 } > $@-t && \
843 mv $@-t $@
844MOSTLYCLEANFILES += netdb.h netdb.h-t
845
846EXTRA_DIST += netdb.in.h
847
848## end gnulib module netdb
849
8912421c
LC
850## begin gnulib module netinet_in
851
852BUILT_SOURCES += $(NETINET_IN_H)
853
854# We need the following in order to create <netinet/in.h> when the system
855# doesn't have one.
856netinet/in.h: netinet_in.in.h
857 $(AM_V_at)$(MKDIR_P) netinet
858 $(AM_V_GEN)rm -f $@-t $@ && \
859 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
860 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
861 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
862 -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
863 -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
864 < $(srcdir)/netinet_in.in.h; \
865 } > $@-t && \
866 mv $@-t $@
867MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
868MOSTLYCLEANDIRS += netinet
869
870EXTRA_DIST += netinet_in.in.h
871
872## end gnulib module netinet_in
873
ffca4c22
AW
874## begin gnulib module pathmax
875
876
877EXTRA_DIST += pathmax.h
878
879## end gnulib module pathmax
880
f240aacb
LC
881## begin gnulib module putenv
882
883
884EXTRA_DIST += putenv.c
885
886EXTRA_libgnu_la_SOURCES += putenv.c
887
888## end gnulib module putenv
889
ffca4c22
AW
890## begin gnulib module readlink
891
892
893EXTRA_DIST += readlink.c
894
895EXTRA_libgnu_la_SOURCES += readlink.c
896
897## end gnulib module readlink
898
9b36a80c
LC
899## begin gnulib module safe-read
900
901
902EXTRA_DIST += safe-read.c safe-read.h
903
904EXTRA_libgnu_la_SOURCES += safe-read.c
905
906## end gnulib module safe-read
907
908## begin gnulib module safe-write
909
910
911EXTRA_DIST += safe-write.c safe-write.h
912
913EXTRA_libgnu_la_SOURCES += safe-write.c
914
915## end gnulib module safe-write
916
c4b681fd
LC
917## begin gnulib module size_max
918
919libgnu_la_SOURCES += size_max.h
920
921## end gnulib module size_max
922
61cd9dc9
LC
923## begin gnulib module snprintf
924
925
926EXTRA_DIST += snprintf.c
927
928EXTRA_libgnu_la_SOURCES += snprintf.c
929
930## end gnulib module snprintf
931
8912421c
LC
932## begin gnulib module stat
933
934
935EXTRA_DIST += stat.c
936
937EXTRA_libgnu_la_SOURCES += stat.c
938
939## end gnulib module stat
940
9157d901
LC
941## begin gnulib module stat-time
942
943
944EXTRA_DIST += stat-time.h
945
946## end gnulib module stat-time
947
4f02b98d
LC
948## begin gnulib module stdarg
949
950BUILT_SOURCES += $(STDARG_H)
951
952# We need the following in order to create <stdarg.h> when the system
953# doesn't have one that works with the given compiler.
954stdarg.h: stdarg.in.h
955 $(AM_V_GEN)rm -f $@-t $@ && \
956 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
957 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
958 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
959 -e 's|@''NEXT_STDARG_H''@|$(NEXT_STDARG_H)|g' \
960 < $(srcdir)/stdarg.in.h; \
961 } > $@-t && \
962 mv $@-t $@
963MOSTLYCLEANFILES += stdarg.h stdarg.h-t
964
965EXTRA_DIST += stdarg.in.h
966
967## end gnulib module stdarg
968
e65fc94b
LC
969## begin gnulib module stdbool
970
971BUILT_SOURCES += $(STDBOOL_H)
972
973# We need the following in order to create <stdbool.h> when the system
974# doesn't have one that works.
975stdbool.h: stdbool.in.h
8912421c 976 $(AM_V_GEN)rm -f $@-t $@ && \
e65fc94b
LC
977 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
978 sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
8912421c 979 } > $@-t && \
e65fc94b
LC
980 mv $@-t $@
981MOSTLYCLEANFILES += stdbool.h stdbool.h-t
982
983EXTRA_DIST += stdbool.in.h
984
985## end gnulib module stdbool
986
8912421c
LC
987## begin gnulib module stddef
988
989BUILT_SOURCES += $(STDDEF_H)
990
991# We need the following in order to create <stddef.h> when the system
992# doesn't have one that works with the given compiler.
993stddef.h: stddef.in.h
994 $(AM_V_GEN)rm -f $@-t $@ && \
995 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
996 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
997 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
998 -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
999 -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
1000 -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
1001 < $(srcdir)/stddef.in.h; \
1002 } > $@-t && \
1003 mv $@-t $@
1004MOSTLYCLEANFILES += stddef.h stddef.h-t
1005
1006EXTRA_DIST += stddef.in.h
1007
1008## end gnulib module stddef
1009
f240aacb
LC
1010## begin gnulib module stdint
1011
1012BUILT_SOURCES += $(STDINT_H)
1013
1014# We need the following in order to create <stdint.h> when the system
1015# doesn't have one that works with the given compiler.
1016stdint.h: stdint.in.h
8912421c 1017 $(AM_V_GEN)rm -f $@-t $@ && \
f240aacb
LC
1018 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1019 sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
1020 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1021 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1022 -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
1023 -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
1024 -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
1025 -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
1026 -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
1027 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
1028 -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
1029 -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
1030 -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
1031 -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
1032 -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
1033 -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
1034 -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
1035 -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
1036 -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
1037 -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
1038 -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
1039 -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
1040 -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
1041 -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
1042 -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
1043 < $(srcdir)/stdint.in.h; \
8912421c 1044 } > $@-t && \
f240aacb
LC
1045 mv $@-t $@
1046MOSTLYCLEANFILES += stdint.h stdint.h-t
1047
1048EXTRA_DIST += stdint.in.h
1049
1050## end gnulib module stdint
1051
c4b681fd
LC
1052## begin gnulib module stdio
1053
1054BUILT_SOURCES += stdio.h
1055
1056# We need the following in order to create <stdio.h> when the system
1057# doesn't have one that works with the given compiler.
f4c79b3c 1058stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1059 $(AM_V_GEN)rm -f $@-t $@ && \
c4b681fd
LC
1060 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1061 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1062 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1063 -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
c4b681fd 1064 -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \
8912421c
LC
1065 -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \
1066 -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \
c4b681fd 1067 -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \
8912421c
LC
1068 -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \
1069 -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \
1070 -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \
1071 -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \
1072 -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \
c4b681fd
LC
1073 -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \
1074 -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \
1075 -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \
1076 -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \
1077 -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \
c4b681fd
LC
1078 -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \
1079 -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \
1080 -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \
8912421c
LC
1081 -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \
1082 -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \
c4b681fd 1083 -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \
8912421c
LC
1084 -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \
1085 -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \
1086 -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \
1087 -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \
1088 -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \
1089 -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \
1090 -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \
1091 -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \
1092 -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \
1093 -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \
1094 -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \
c4b681fd 1095 -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \
a927b6c1 1096 -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \
8912421c
LC
1097 -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \
1098 -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \
1099 -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \
1100 -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \
1101 -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \
1102 -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \
1103 -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \
1104 -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \
61cd9dc9
LC
1105 < $(srcdir)/stdio.in.h | \
1106 sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
8912421c
LC
1107 -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
1108 -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
1109 -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
c4b681fd 1110 -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
c4b681fd 1111 -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
c4b681fd 1112 -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
a927b6c1
LC
1113 -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \
1114 -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \
8912421c 1115 -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
c4b681fd 1116 -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
8912421c
LC
1117 -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
1118 -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \
1119 -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
1120 -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
c4b681fd 1121 -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
8912421c
LC
1122 -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
1123 -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \
c4b681fd 1124 -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
c4b681fd 1125 -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \
8912421c 1126 -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \
c4b681fd 1127 -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \
8912421c 1128 -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \
61cd9dc9 1129 -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \
c4b681fd 1130 -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \
8912421c 1131 -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \
c4b681fd 1132 -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \
8912421c
LC
1133 -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \
1134 -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \
1135 -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \
1136 -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \
1137 -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \
1138 -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \
1139 -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \
1140 -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \
a927b6c1 1141 -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \
8912421c
LC
1142 -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \
1143 -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \
1144 -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \
1145 -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
1146 -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
1147 -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
a927b6c1 1148 -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \
f4c79b3c 1149 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1150 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1151 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
8912421c 1152 } > $@-t && \
c4b681fd
LC
1153 mv $@-t $@
1154MOSTLYCLEANFILES += stdio.h stdio.h-t
1155
1156EXTRA_DIST += stdio-write.c stdio.in.h
1157
1158EXTRA_libgnu_la_SOURCES += stdio-write.c
1159
1160## end gnulib module stdio
1161
f240aacb
LC
1162## begin gnulib module stdlib
1163
1164BUILT_SOURCES += stdlib.h
1165
1166# We need the following in order to create <stdlib.h> when the system
1167# doesn't have one that works with the given compiler.
f4c79b3c 1168stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1169 $(AM_V_GEN)rm -f $@-t $@ && \
f240aacb
LC
1170 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1171 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1172 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1173 -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
9157d901 1174 -e 's|@''GNULIB__EXIT''@|$(GNULIB__EXIT)|g' \
f240aacb 1175 -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
8912421c
LC
1176 -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
1177 -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \
f240aacb
LC
1178 -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
1179 -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
a927b6c1 1180 -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \
8912421c 1181 -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
f240aacb 1182 -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
8912421c 1183 -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \
f29ded4b 1184 -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \
f240aacb 1185 -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
f29ded4b 1186 -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \
a927b6c1 1187 -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \
f240aacb
LC
1188 -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
1189 -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
8912421c
LC
1190 -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
1191 -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \
f240aacb
LC
1192 -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
1193 -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
1194 -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
1195 -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
1196 -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
a927b6c1 1197 -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \
f240aacb 1198 -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
9157d901 1199 -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
f240aacb 1200 -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
8912421c
LC
1201 -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
1202 -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
f240aacb 1203 -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
a927b6c1 1204 -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
f240aacb 1205 -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
8912421c 1206 -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
f29ded4b 1207 -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
a927b6c1 1208 -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
f29ded4b 1209 -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
a927b6c1 1210 -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
8912421c 1211 -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
f240aacb 1212 -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
8912421c 1213 -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
f240aacb
LC
1214 -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
1215 -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
1216 -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
1217 -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
1218 -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
1219 -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
1220 -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
a927b6c1 1221 -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
f240aacb 1222 -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
9157d901 1223 -e 's|@''REPLACE_CALLOC''@|$(REPLACE_CALLOC)|g' \
8912421c 1224 -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
9157d901 1225 -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \
f240aacb
LC
1226 -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
1227 -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
9157d901 1228 -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
8912421c 1229 -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
4f02b98d 1230 -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
f240aacb 1231 -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
4f02b98d 1232 -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
f4c79b3c 1233 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1234 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1235 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
f240aacb 1236 < $(srcdir)/stdlib.in.h; \
8912421c 1237 } > $@-t && \
f240aacb
LC
1238 mv $@-t $@
1239MOSTLYCLEANFILES += stdlib.h stdlib.h-t
1240
1241EXTRA_DIST += stdlib.in.h
1242
1243## end gnulib module stdlib
1244
103dc4d4
LC
1245## begin gnulib module strcase
1246
1247
1248EXTRA_DIST += strcasecmp.c strncasecmp.c
1249
1250EXTRA_libgnu_la_SOURCES += strcasecmp.c strncasecmp.c
1251
1252## end gnulib module strcase
1253
4a462e35
NJ
1254## begin gnulib module streq
1255
1256
1257EXTRA_DIST += streq.h
1258
1259## end gnulib module streq
1260
e65fc94b
LC
1261## begin gnulib module strftime
1262
1263
1264EXTRA_DIST += strftime.c strftime.h
1265
1266EXTRA_libgnu_la_SOURCES += strftime.c
1267
1268## end gnulib module strftime
1269
24d56127
LC
1270## begin gnulib module striconveh
1271
1272libgnu_la_SOURCES += striconveh.h striconveh.c
1273if GL_COND_LIBTOOL
1274libgnu_la_LDFLAGS += $(LTLIBICONV)
1275endif
1276
1277EXTRA_DIST += iconveh.h
1278
1279## end gnulib module striconveh
1280
1281## begin gnulib module string
1282
1283BUILT_SOURCES += string.h
1284
1285# We need the following in order to create <string.h> when the system
1286# doesn't have one that works with the given compiler.
f4c79b3c 1287string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1288 $(AM_V_GEN)rm -f $@-t $@ && \
24d56127
LC
1289 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1290 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1291 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1292 -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
1293 -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \
1294 -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \
1295 -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \
1296 -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \
1297 -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \
1298 -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \
1299 -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \
1300 -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \
1301 -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \
1302 -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \
1303 -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \
1304 -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
1305 -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
1306 -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
ffca4c22 1307 -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \
24d56127
LC
1308 -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
1309 -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
1310 -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
1311 -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \
1312 -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \
1313 -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
1314 -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
1315 -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
a927b6c1 1316 -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \
24d56127
LC
1317 -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
1318 -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
1319 -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
1320 -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \
1321 -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \
1322 -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \
1323 -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \
1324 -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \
1325 -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \
1326 -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \
61cd9dc9
LC
1327 < $(srcdir)/string.in.h | \
1328 sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
a927b6c1 1329 -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \
24d56127
LC
1330 -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
1331 -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
1332 -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
1333 -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
1334 -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
1335 -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
1336 -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
1337 -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
24d56127
LC
1338 -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
1339 -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
1340 -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
1341 -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
1342 -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
1343 -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
24d56127
LC
1344 -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
1345 -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
a927b6c1 1346 -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
ffca4c22 1347 -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
24d56127
LC
1348 -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
1349 -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
1350 -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
1351 -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
1352 -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
a927b6c1 1353 -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \
8912421c 1354 -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \
a927b6c1 1355 -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \
24d56127 1356 -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
8912421c
LC
1357 -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
1358 -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
f4c79b3c 1359 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1360 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1361 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
24d56127 1362 < $(srcdir)/string.in.h; \
8912421c 1363 } > $@-t && \
24d56127
LC
1364 mv $@-t $@
1365MOSTLYCLEANFILES += string.h string.h-t
1366
1367EXTRA_DIST += string.in.h
1368
1369## end gnulib module string
1370
103dc4d4
LC
1371## begin gnulib module strings
1372
1373BUILT_SOURCES += strings.h
1374
1375# We need the following in order to create <strings.h> when the system
1376# doesn't have one that works with the given compiler.
61cd9dc9 1377strings.h: strings.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
8912421c 1378 $(AM_V_GEN)rm -f $@-t $@ && \
103dc4d4 1379 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
e65fc94b
LC
1380 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1381 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
103dc4d4
LC
1382 -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
1383 -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
1384 -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
1cd4fffc 1385 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1386 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
103dc4d4 1387 < $(srcdir)/strings.in.h; \
8912421c 1388 } > $@-t && \
103dc4d4
LC
1389 mv $@-t $@
1390MOSTLYCLEANFILES += strings.h strings.h-t
1391
1392EXTRA_DIST += strings.in.h
1393
1394## end gnulib module strings
1395
f240aacb
LC
1396## begin gnulib module sys_file
1397
61cd9dc9 1398BUILT_SOURCES += sys/file.h
f240aacb
LC
1399
1400# We need the following in order to create <sys/file.h> when the system
1401# has one that is incomplete.
61cd9dc9 1402sys/file.h: sys_file.in.h $(WARN_ON_USE_H)
8912421c
LC
1403 $(AM_V_at)$(MKDIR_P) sys
1404 $(AM_V_GEN)rm -f $@-t $@ && \
f240aacb
LC
1405 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1406 sed -e 's/@''HAVE_SYS_FILE_H''@/$(HAVE_SYS_FILE_H)/g' \
1407 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1408 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1409 -e 's|@''NEXT_SYS_FILE_H''@|$(NEXT_SYS_FILE_H)|g' \
1410 -e 's/@''HAVE_FLOCK''@/$(HAVE_FLOCK)/g' \
1411 -e 's/@''GNULIB_FLOCK''@/$(GNULIB_FLOCK)/g' \
61cd9dc9 1412 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
f240aacb 1413 < $(srcdir)/sys_file.in.h; \
8912421c 1414 } > $@-t && \
f240aacb
LC
1415 mv $@-t $@
1416MOSTLYCLEANFILES += sys/file.h sys/file.h-t
1417MOSTLYCLEANDIRS += sys
1418
1419EXTRA_DIST += sys_file.in.h
1420
1421## end gnulib module sys_file
1422
8912421c
LC
1423## begin gnulib module sys_socket
1424
61cd9dc9 1425BUILT_SOURCES += sys/socket.h
8912421c
LC
1426
1427# We need the following in order to create <sys/socket.h> when the system
1428# doesn't have one that works with the given compiler.
f4c79b3c 1429sys/socket.h: sys_socket.in.h $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
8912421c
LC
1430 $(AM_V_at)$(MKDIR_P) sys
1431 $(AM_V_GEN)rm -f $@-t $@ && \
1432 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1433 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1434 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1435 -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
1436 -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
1437 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
1438 -e 's|@''GNULIB_SOCKET''@|$(GNULIB_SOCKET)|g' \
1439 -e 's|@''GNULIB_CONNECT''@|$(GNULIB_CONNECT)|g' \
1440 -e 's|@''GNULIB_ACCEPT''@|$(GNULIB_ACCEPT)|g' \
1441 -e 's|@''GNULIB_BIND''@|$(GNULIB_BIND)|g' \
1442 -e 's|@''GNULIB_GETPEERNAME''@|$(GNULIB_GETPEERNAME)|g' \
1443 -e 's|@''GNULIB_GETSOCKNAME''@|$(GNULIB_GETSOCKNAME)|g' \
1444 -e 's|@''GNULIB_GETSOCKOPT''@|$(GNULIB_GETSOCKOPT)|g' \
1445 -e 's|@''GNULIB_LISTEN''@|$(GNULIB_LISTEN)|g' \
1446 -e 's|@''GNULIB_RECV''@|$(GNULIB_RECV)|g' \
1447 -e 's|@''GNULIB_SEND''@|$(GNULIB_SEND)|g' \
1448 -e 's|@''GNULIB_RECVFROM''@|$(GNULIB_RECVFROM)|g' \
1449 -e 's|@''GNULIB_SENDTO''@|$(GNULIB_SENDTO)|g' \
1450 -e 's|@''GNULIB_SETSOCKOPT''@|$(GNULIB_SETSOCKOPT)|g' \
1451 -e 's|@''GNULIB_SHUTDOWN''@|$(GNULIB_SHUTDOWN)|g' \
1452 -e 's|@''GNULIB_ACCEPT4''@|$(GNULIB_ACCEPT4)|g' \
1453 -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
1454 -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
1455 -e 's|@''HAVE_STRUCT_SOCKADDR_STORAGE''@|$(HAVE_STRUCT_SOCKADDR_STORAGE)|g' \
1456 -e 's|@''HAVE_SA_FAMILY_T''@|$(HAVE_SA_FAMILY_T)|g' \
1457 -e 's|@''HAVE_ACCEPT4''@|$(HAVE_ACCEPT4)|g' \
f4c79b3c 1458 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1459 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1460 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8912421c
LC
1461 < $(srcdir)/sys_socket.in.h; \
1462 } > $@-t && \
1463 mv -f $@-t $@
1464MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
1465MOSTLYCLEANDIRS += sys
1466
1467EXTRA_DIST += sys_socket.in.h
1468
1469## end gnulib module sys_socket
1470
1471## begin gnulib module sys_stat
1472
1473BUILT_SOURCES += sys/stat.h
1474
1475# We need the following in order to create <sys/stat.h> when the system
1476# has one that is incomplete.
f4c79b3c 1477sys/stat.h: sys_stat.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c
LC
1478 $(AM_V_at)$(MKDIR_P) sys
1479 $(AM_V_GEN)rm -f $@-t $@ && \
1480 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1481 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1482 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1483 -e 's|@''NEXT_SYS_STAT_H''@|$(NEXT_SYS_STAT_H)|g' \
1484 -e 's|@''GNULIB_FCHMODAT''@|$(GNULIB_FCHMODAT)|g' \
1485 -e 's|@''GNULIB_FSTATAT''@|$(GNULIB_FSTATAT)|g' \
1486 -e 's|@''GNULIB_FUTIMENS''@|$(GNULIB_FUTIMENS)|g' \
1487 -e 's|@''GNULIB_LCHMOD''@|$(GNULIB_LCHMOD)|g' \
1488 -e 's|@''GNULIB_LSTAT''@|$(GNULIB_LSTAT)|g' \
1489 -e 's|@''GNULIB_MKDIRAT''@|$(GNULIB_MKDIRAT)|g' \
f29ded4b 1490 -e 's|@''GNULIB_MKFIFO''@|$(GNULIB_MKFIFO)|g' \
8912421c 1491 -e 's|@''GNULIB_MKFIFOAT''@|$(GNULIB_MKFIFOAT)|g' \
f29ded4b 1492 -e 's|@''GNULIB_MKNOD''@|$(GNULIB_MKNOD)|g' \
8912421c
LC
1493 -e 's|@''GNULIB_MKNODAT''@|$(GNULIB_MKNODAT)|g' \
1494 -e 's|@''GNULIB_STAT''@|$(GNULIB_STAT)|g' \
1495 -e 's|@''GNULIB_UTIMENSAT''@|$(GNULIB_UTIMENSAT)|g' \
1496 -e 's|@''HAVE_FCHMODAT''@|$(HAVE_FCHMODAT)|g' \
1497 -e 's|@''HAVE_FSTATAT''@|$(HAVE_FSTATAT)|g' \
1498 -e 's|@''HAVE_FUTIMENS''@|$(HAVE_FUTIMENS)|g' \
1499 -e 's|@''HAVE_LCHMOD''@|$(HAVE_LCHMOD)|g' \
1500 -e 's|@''HAVE_LSTAT''@|$(HAVE_LSTAT)|g' \
1501 -e 's|@''HAVE_MKDIRAT''@|$(HAVE_MKDIRAT)|g' \
f29ded4b 1502 -e 's|@''HAVE_MKFIFO''@|$(HAVE_MKFIFO)|g' \
8912421c 1503 -e 's|@''HAVE_MKFIFOAT''@|$(HAVE_MKFIFOAT)|g' \
f29ded4b 1504 -e 's|@''HAVE_MKNOD''@|$(HAVE_MKNOD)|g' \
8912421c
LC
1505 -e 's|@''HAVE_MKNODAT''@|$(HAVE_MKNODAT)|g' \
1506 -e 's|@''HAVE_UTIMENSAT''@|$(HAVE_UTIMENSAT)|g' \
1507 -e 's|@''REPLACE_FSTAT''@|$(REPLACE_FSTAT)|g' \
1508 -e 's|@''REPLACE_FSTATAT''@|$(REPLACE_FSTATAT)|g' \
1509 -e 's|@''REPLACE_FUTIMENS''@|$(REPLACE_FUTIMENS)|g' \
1510 -e 's|@''REPLACE_LSTAT''@|$(REPLACE_LSTAT)|g' \
1511 -e 's|@''REPLACE_MKDIR''@|$(REPLACE_MKDIR)|g' \
f29ded4b
LC
1512 -e 's|@''REPLACE_MKFIFO''@|$(REPLACE_MKFIFO)|g' \
1513 -e 's|@''REPLACE_MKNOD''@|$(REPLACE_MKNOD)|g' \
8912421c
LC
1514 -e 's|@''REPLACE_STAT''@|$(REPLACE_STAT)|g' \
1515 -e 's|@''REPLACE_UTIMENSAT''@|$(REPLACE_UTIMENSAT)|g' \
f4c79b3c 1516 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1517 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1518 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
8912421c
LC
1519 < $(srcdir)/sys_stat.in.h; \
1520 } > $@-t && \
1521 mv $@-t $@
1522MOSTLYCLEANFILES += sys/stat.h sys/stat.h-t
1523MOSTLYCLEANDIRS += sys
1524
1525EXTRA_DIST += sys_stat.in.h
1526
1527## end gnulib module sys_stat
1528
e65fc94b
LC
1529## begin gnulib module time
1530
1531BUILT_SOURCES += time.h
1532
1533# We need the following in order to create <time.h> when the system
1534# doesn't have one that works with the given compiler.
f4c79b3c 1535time.h: time.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1536 $(AM_V_GEN)rm -f $@-t $@ && \
e65fc94b
LC
1537 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
1538 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1539 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
f4c79b3c
LC
1540 -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
1541 -e 's|@''GNULIB_MKTIME''@|$(GNULIB_MKTIME)|g' \
1542 -e 's|@''GNULIB_NANOSLEEP''@|$(GNULIB_NANOSLEEP)|g' \
1543 -e 's|@''GNULIB_STRPTIME''@|$(GNULIB_STRPTIME)|g' \
1544 -e 's|@''GNULIB_TIMEGM''@|$(GNULIB_TIMEGM)|g' \
1545 -e 's|@''GNULIB_TIME_R''@|$(GNULIB_TIME_R)|g' \
a927b6c1
LC
1546 -e 's|@''HAVE_LOCALTIME_R''@|$(HAVE_LOCALTIME_R)|g' \
1547 -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
1548 -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
1549 -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
f4c79b3c
LC
1550 -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
1551 -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
1552 -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
f4c79b3c 1553 -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
6f32e5c7 1554 -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
f4c79b3c
LC
1555 -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
1556 -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
1557 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1558 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
f4c79b3c 1559 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
e65fc94b 1560 < $(srcdir)/time.in.h; \
8912421c 1561 } > $@-t && \
e65fc94b
LC
1562 mv $@-t $@
1563MOSTLYCLEANFILES += time.h time.h-t
1564
1565EXTRA_DIST += time.in.h
1566
1567## end gnulib module time
1568
1569## begin gnulib module time_r
1570
1571
1572EXTRA_DIST += time_r.c
1573
1574EXTRA_libgnu_la_SOURCES += time_r.c
1575
1576## end gnulib module time_r
1577
9b36a80c
LC
1578## begin gnulib module unistd
1579
1580BUILT_SOURCES += unistd.h
1581
1582# We need the following in order to create an empty placeholder for
1583# <unistd.h> when the system doesn't have one.
f4c79b3c 1584unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1585 $(AM_V_GEN)rm -f $@-t $@ && \
9b36a80c
LC
1586 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1587 sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
1588 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1589 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1590 -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
1591 -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
1592 -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
1593 -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
8912421c 1594 -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \
9b36a80c
LC
1595 -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
1596 -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
8912421c 1597 -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \
9b36a80c 1598 -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
8912421c 1599 -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \
9b36a80c
LC
1600 -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
1601 -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
1602 -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
1603 -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
1604 -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
f29ded4b 1605 -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \
9b36a80c 1606 -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
61cd9dc9 1607 -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \
9b36a80c
LC
1608 -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
1609 -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
1610 -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
1611 -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
f240aacb 1612 -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
8912421c 1613 -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \
9b36a80c 1614 -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
8912421c 1615 -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \
1cd4fffc 1616 -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \
a927b6c1 1617 -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \
9b36a80c 1618 -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
8912421c
LC
1619 -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \
1620 -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \
9b36a80c 1621 -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
8912421c
LC
1622 -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \
1623 -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \
a927b6c1 1624 -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \
8912421c 1625 -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \
9b36a80c 1626 -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
8912421c
LC
1627 -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \
1628 -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \
414e4441 1629 -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \
9b36a80c 1630 -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
61cd9dc9
LC
1631 < $(srcdir)/unistd.in.h | \
1632 sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
9b36a80c 1633 -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
8912421c 1634 -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
9b36a80c 1635 -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
8912421c 1636 -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
a927b6c1 1637 -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
8912421c 1638 -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
9b36a80c
LC
1639 -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
1640 -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
1641 -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \
1642 -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
f29ded4b 1643 -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
9b36a80c 1644 -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
61cd9dc9 1645 -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \
9b36a80c 1646 -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
f29ded4b 1647 -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
f240aacb 1648 -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
8912421c
LC
1649 -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
1650 -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
1cd4fffc 1651 -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
a927b6c1 1652 -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
9b36a80c 1653 -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
8912421c 1654 -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
9b36a80c 1655 -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
8912421c
LC
1656 -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
1657 -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
a927b6c1 1658 -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \
8912421c 1659 -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
414e4441 1660 -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
9b36a80c
LC
1661 -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
1662 -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
a927b6c1
LC
1663 -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
1664 -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
9b36a80c
LC
1665 -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
1666 -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
1667 -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
1668 -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
8912421c 1669 -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
25361e4b 1670 -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
8912421c 1671 -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
9b36a80c 1672 -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
f29ded4b 1673 -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
9b36a80c
LC
1674 -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
1675 -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
8912421c
LC
1676 -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
1677 -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
9b36a80c 1678 -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
1cd4fffc 1679 -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
a927b6c1 1680 -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
8912421c
LC
1681 -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
1682 -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
414e4441 1683 -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
8912421c 1684 -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
a927b6c1 1685 -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
8912421c
LC
1686 -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
1687 -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
414e4441 1688 -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
9b36a80c
LC
1689 -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
1690 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
8912421c 1691 -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
f4c79b3c 1692 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1693 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1694 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
8912421c 1695 } > $@-t && \
9b36a80c
LC
1696 mv $@-t $@
1697MOSTLYCLEANFILES += unistd.h unistd.h-t
1698
1699EXTRA_DIST += unistd.in.h
1700
1701## end gnulib module unistd
1702
24d56127
LC
1703## begin gnulib module unistr/base
1704
a927b6c1 1705BUILT_SOURCES += $(LIBUNISTRING_UNISTR_H)
24d56127 1706
a927b6c1
LC
1707unistr.h: unistr.in.h
1708 $(AM_V_GEN)rm -f $@-t $@ && \
1709 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1710 cat $(srcdir)/unistr.in.h; \
1711 } > $@-t && \
1712 mv -f $@-t $@
1713MOSTLYCLEANFILES += unistr.h unistr.h-t
1714
1715EXTRA_DIST += unistr.in.h
24d56127
LC
1716
1717## end gnulib module unistr/base
1718
1719## begin gnulib module unistr/u8-mbtouc
1720
6f32e5c7
LC
1721if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC
1722libgnu_la_SOURCES += unistr/u8-mbtouc.c unistr/u8-mbtouc-aux.c
1723endif
24d56127
LC
1724
1725## end gnulib module unistr/u8-mbtouc
1726
1727## begin gnulib module unistr/u8-mbtouc-unsafe
1728
6f32e5c7
LC
1729if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUC_UNSAFE
1730libgnu_la_SOURCES += unistr/u8-mbtouc-unsafe.c unistr/u8-mbtouc-unsafe-aux.c
1731endif
24d56127
LC
1732
1733## end gnulib module unistr/u8-mbtouc-unsafe
1734
1735## begin gnulib module unistr/u8-mbtoucr
1736
6f32e5c7
LC
1737if LIBUNISTRING_COMPILE_UNISTR_U8_MBTOUCR
1738libgnu_la_SOURCES += unistr/u8-mbtoucr.c
1739endif
24d56127
LC
1740
1741## end gnulib module unistr/u8-mbtoucr
1742
1743## begin gnulib module unistr/u8-prev
1744
6f32e5c7
LC
1745if LIBUNISTRING_COMPILE_UNISTR_U8_PREV
1746libgnu_la_SOURCES += unistr/u8-prev.c
1747endif
24d56127
LC
1748
1749## end gnulib module unistr/u8-prev
1750
1751## begin gnulib module unistr/u8-uctomb
1752
6f32e5c7
LC
1753if LIBUNISTRING_COMPILE_UNISTR_U8_UCTOMB
1754libgnu_la_SOURCES += unistr/u8-uctomb.c unistr/u8-uctomb-aux.c
1755endif
24d56127
LC
1756
1757## end gnulib module unistr/u8-uctomb
1758
1759## begin gnulib module unitypes
1760
a927b6c1
LC
1761BUILT_SOURCES += $(LIBUNISTRING_UNITYPES_H)
1762
1763unitypes.h: unitypes.in.h
1764 $(AM_V_GEN)rm -f $@-t $@ && \
1765 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1766 cat $(srcdir)/unitypes.in.h; \
1767 } > $@-t && \
1768 mv -f $@-t $@
1769MOSTLYCLEANFILES += unitypes.h unitypes.h-t
24d56127 1770
a927b6c1 1771EXTRA_DIST += unitypes.in.h
24d56127
LC
1772
1773## end gnulib module unitypes
1774
61cd9dc9
LC
1775## begin gnulib module unused-parameter
1776
1777# The BUILT_SOURCES created by this Makefile snippet are not used via #include
1778# statements but through direct file reference. Therefore this snippet must be
1779# present in all Makefile.am that need it. This is ensured by the applicability
1780# 'all' defined above.
1781
1782BUILT_SOURCES += unused-parameter.h
1783# The unused-parameter.h that gets inserted into generated .h files is the same
1784# as build-aux/unused-parameter.h, except that it has the copyright header cut
1785# off.
1786unused-parameter.h: $(top_srcdir)/build-aux/unused-parameter.h
1787 $(AM_V_GEN)rm -f $@-t $@ && \
1788 sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \
1789 < $(top_srcdir)/build-aux/unused-parameter.h \
1790 > $@-t && \
1791 mv $@-t $@
1792MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t
1793
1794UNUSED_PARAMETER_H=unused-parameter.h
1795
1796EXTRA_DIST += $(top_srcdir)/build-aux/unused-parameter.h
1797
1798## end gnulib module unused-parameter
1799
c84bdaf6
LC
1800## begin gnulib module useless-if-before-free
1801
1802
1803EXTRA_DIST += $(top_srcdir)/build-aux/useless-if-before-free
1804
1805## end gnulib module useless-if-before-free
1806
c4b681fd
LC
1807## begin gnulib module vasnprintf
1808
1809
1810EXTRA_DIST += asnprintf.c float+.h printf-args.c printf-args.h printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h
1811
1812EXTRA_libgnu_la_SOURCES += asnprintf.c printf-args.c printf-parse.c vasnprintf.c
1813
1814## end gnulib module vasnprintf
1815
c84bdaf6
LC
1816## begin gnulib module vc-list-files
1817
1818
1819EXTRA_DIST += $(top_srcdir)/build-aux/vc-list-files
1820
1821## end gnulib module vc-list-files
1822
d7014610
LC
1823## begin gnulib module verify
1824
1825libgnu_la_SOURCES += verify.h
1826
1827## end gnulib module verify
1828
4f02b98d
LC
1829## begin gnulib module version-etc
1830
1831libgnu_la_SOURCES += version-etc.h version-etc.c
1832
1833## end gnulib module version-etc
1834
1835## begin gnulib module version-etc-fsf
1836
1837libgnu_la_SOURCES += version-etc-fsf.c
1838
1839## end gnulib module version-etc-fsf
1840
c4b681fd
LC
1841## begin gnulib module vsnprintf
1842
1843
1844EXTRA_DIST += vsnprintf.c
1845
1846EXTRA_libgnu_la_SOURCES += vsnprintf.c
1847
1848## end gnulib module vsnprintf
1849
61cd9dc9
LC
1850## begin gnulib module warn-on-use
1851
1852BUILT_SOURCES += warn-on-use.h
1853# The warn-on-use.h that gets inserted into generated .h files is the same as
1854# build-aux/warn-on-use.h, except that it has the copyright header cut off.
1855warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h
1856 $(AM_V_GEN)rm -f $@-t $@ && \
1857 sed -n -e '/^.ifndef/,$$p' \
1858 < $(top_srcdir)/build-aux/warn-on-use.h \
1859 > $@-t && \
1860 mv $@-t $@
1861MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
1862
1863WARN_ON_USE_H=warn-on-use.h
1864
1865EXTRA_DIST += $(top_srcdir)/build-aux/warn-on-use.h
1866
1867## end gnulib module warn-on-use
1868
e65fc94b
LC
1869## begin gnulib module wchar
1870
61cd9dc9 1871BUILT_SOURCES += wchar.h
e65fc94b
LC
1872
1873# We need the following in order to create <wchar.h> when the system
1874# version does not work standalone.
f4c79b3c 1875wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
8912421c 1876 $(AM_V_GEN)rm -f $@-t $@ && \
e65fc94b
LC
1877 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1878 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1879 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1880 -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
4a462e35
NJ
1881 -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
1882 -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \
1883 -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \
1884 -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \
1885 -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \
1886 -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \
1887 -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \
1888 -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \
1889 -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \
1890 -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \
1891 -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \
e65fc94b 1892 -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
4a462e35
NJ
1893 -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
1894 -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
1895 -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
1896 -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
1897 -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
1898 -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
1899 -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
1900 -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
1901 -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
1902 -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
1903 -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
e65fc94b 1904 -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
4a462e35
NJ
1905 -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
1906 -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
1907 -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
1908 -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
1909 -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
1910 -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
1911 -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
1912 -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
1913 -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
1914 -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
f240aacb 1915 -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
e65fc94b 1916 -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
f4c79b3c 1917 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1cd4fffc 1918 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
61cd9dc9 1919 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
e65fc94b 1920 < $(srcdir)/wchar.in.h; \
8912421c 1921 } > $@-t && \
e65fc94b
LC
1922 mv $@-t $@
1923MOSTLYCLEANFILES += wchar.h wchar.h-t
1924
1925EXTRA_DIST += wchar.in.h
1926
1927## end gnulib module wchar
1928
9b36a80c
LC
1929## begin gnulib module write
1930
1931
1932EXTRA_DIST += write.c
103dc4d4 1933
9b36a80c 1934EXTRA_libgnu_la_SOURCES += write.c
103dc4d4 1935
9b36a80c 1936## end gnulib module write
103dc4d4 1937
c4b681fd
LC
1938## begin gnulib module xsize
1939
1940libgnu_la_SOURCES += xsize.h
1941
1942## end gnulib module xsize
1943
103dc4d4
LC
1944
1945mostlyclean-local: mostlyclean-generic
1946 @for dir in '' $(MOSTLYCLEANDIRS); do \
1947 if test -n "$$dir" && test -d $$dir; then \
1948 echo "rmdir $$dir"; rmdir $$dir; \
1949 fi; \
1950 done; \
1951 :