~darkmuggle-deactivatedaccount/ubuntu/quantal/grub2/fix-872244

« back to all changes in this revision

Viewing changes to grub-core/gnulib/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson, Colin Watson, Evan Broder, Mario Limonciello
  • Date: 2010-11-24 13:59:55 UTC
  • mfrom: (1.17.6 upstream) (17.6.15 experimental)
  • Revision ID: james.westby@ubuntu.com-20101124135955-r6ii5sepayr7jt53
Tags: 1.99~20101124-1ubuntu1
[ Colin Watson ]
* Resynchronise with Debian experimental.  Remaining changes:
  - Adjust for default Ubuntu boot options ("quiet splash").
  - Default to hiding the menu; holding down Shift at boot will show it.
  - Set a monochromatic theme for Ubuntu.
  - Apply Ubuntu GRUB Legacy changes to legacy update-grub script: title,
    recovery mode, quiet option, tweak how memtest86+ is displayed, and
    use UUIDs where appropriate.
  - Fix backslash-escaping in merge_debconf_into_conf.
  - Remove "GNU/Linux" from default distributor string.
  - Add crashkernel= options if kdump and makedumpfile are available.
  - If other operating systems are installed, then automatically unhide
    the menu.  Otherwise, if GRUB_HIDDEN_TIMEOUT is 0, then use keystatus
    if available to check whether Shift is pressed.  If it is, show the
    menu, otherwise boot immediately.  If keystatus is not available, then
    fall back to a short delay interruptible with Escape.
  - Allow Shift to interrupt 'sleep --interruptible'.
  - Don't display introductory message about line editing unless we're
    actually offering a shell prompt.  Don't clear the screen just before
    booting if we never drew the menu in the first place.
  - Remove some verbose messages printed before reading the configuration
    file.
  - Suppress progress messages as the kernel and initrd load for
    non-recovery kernel menu entries.
  - Change prepare_grub_to_access_device to handle filesystems
    loop-mounted on file images.
  - Ignore devices loop-mounted from files in 10_linux.
  - Show the boot menu if the previous boot failed, that is if it failed
    to get to the end of one of the normal runlevels.
  - Don't generate /boot/grub/device.map during grub-install or
    grub-mkconfig by default.
  - Adjust upgrade version checks for Ubuntu.
  - Don't display "GRUB loading" unless Shift is held down.
  - Adjust versions of grub-doc and grub-legacy-doc conflicts to tolerate
    our backport of the grub-doc split.
  - Fix LVM/RAID probing in the absence of /boot/grub/device.map.
  - Look for .mo files in /usr/share/locale-langpack as well, in
    preference.
  - Make sure GRUB_TIMEOUT isn't quoted unnecessarily.
  - Probe all devices in 'grub-probe --target=drive' if
    /boot/grub/device.map is missing.
  - Build-depend on qemu-kvm rather than qemu-system for grub-pc tests.
  - Use qemu rather than qemu-system-i386.
  - Program vesafb on BIOS systems rather than efifb.
  - Add a grub-rescue-efi-amd64 package containing a rescue CD-ROM image
    for EFI-AMD64.
  - On Wubi, don't ask for an install device, but just update wubildr
    using the diverted grub-install.
  - When embedding the core image in a post-MBR gap, check for and avoid
    sectors matching any of a list of known signatures.
  - Disable video_bochs and video_cirrus on PC BIOS systems, as probing
    PCI space seems to break on some systems.
* Downgrade "ACPI shutdown failed" error to a debug message, since it can
  cause spurious test failures.

[ Evan Broder ]
* Enable lua from grub-extras.
* Incorporate the bitop library into lua.
* Add enum_pci function to grub module in lua.
* Switch back to gfxpayload=keep by default, unless the video hardware
  is known to not support it.

[ Mario Limonciello ]
* Built part_msdos and vfat into bootx64.efi (LP: #677758)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
## DO NOT EDIT! GENERATED AUTOMATICALLY!
 
2
## Process this file with automake to produce Makefile.in.
 
3
# Copyright (C) 2002-2010 Free Software Foundation, Inc.
 
4
#
 
5
# This file is free software, distributed under the terms of the GNU
 
6
# General Public License.  As a special exception to the GNU General
 
7
# Public License, this file may be distributed as part of a program
 
8
# that contains a configuration script generated by Autoconf, under
 
9
# the same distribution terms as the rest of that program.
 
10
#
 
11
# Generated by gnulib-tool.
 
12
# Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=grub-core/gnulib --m4-base=m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-libtool --macro-prefix=gl --no-vc-files argp error fnmatch getdelim getline gettext progname regex
 
13
 
 
14
AUTOMAKE_OPTIONS = 1.5 gnits
 
15
 
 
16
SUBDIRS =
 
17
noinst_HEADERS =
 
18
noinst_LIBRARIES =
 
19
noinst_LTLIBRARIES =
 
20
EXTRA_DIST =
 
21
BUILT_SOURCES =
 
22
SUFFIXES =
 
23
MOSTLYCLEANFILES = core *.stackdump
 
24
MOSTLYCLEANDIRS =
 
25
CLEANFILES =
 
26
DISTCLEANFILES =
 
27
MAINTAINERCLEANFILES =
 
28
 
 
29
AM_CPPFLAGS =
 
30
AM_CFLAGS =
 
31
 
 
32
noinst_LIBRARIES += libgnu.a
 
33
 
 
34
libgnu_a_SOURCES =
 
35
libgnu_a_LIBADD = $(gl_LIBOBJS)
 
36
libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
 
37
EXTRA_libgnu_a_SOURCES =
 
38
 
 
39
## begin gnulib module alloca
 
40
 
 
41
 
 
42
EXTRA_DIST += alloca.c
 
43
 
 
44
EXTRA_libgnu_a_SOURCES += alloca.c
 
45
 
 
46
libgnu_a_LIBADD += @ALLOCA@
 
47
libgnu_a_DEPENDENCIES += @ALLOCA@
 
48
## end   gnulib module alloca
 
49
 
 
50
## begin gnulib module alloca-opt
 
51
 
 
52
BUILT_SOURCES += $(ALLOCA_H)
 
53
 
 
54
# We need the following in order to create <alloca.h> when the system
 
55
# doesn't have one that works with the given compiler.
 
56
alloca.h: alloca.in.h
 
57
        $(AM_V_GEN)rm -f $@-t $@ && \
 
58
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
59
          cat $(srcdir)/alloca.in.h; \
 
60
        } > $@-t && \
 
61
        mv -f $@-t $@
 
62
MOSTLYCLEANFILES += alloca.h alloca.h-t
 
63
 
 
64
EXTRA_DIST += alloca.in.h
 
65
 
 
66
## end   gnulib module alloca-opt
 
67
 
 
68
## begin gnulib module arg-nonnull
 
69
 
 
70
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
 
71
# statements but through direct file reference. Therefore this snippet must be
 
72
# present in all Makefile.am that need it. This is ensured by the applicability
 
73
# 'all' defined above.
 
74
 
 
75
BUILT_SOURCES += arg-nonnull.h
 
76
# The arg-nonnull.h that gets inserted into generated .h files is the same as
 
77
# build-aux/arg-nonnull.h, except that it has the copyright header cut off.
 
78
arg-nonnull.h: $(top_srcdir)/build-aux/arg-nonnull.h
 
79
        $(AM_V_GEN)rm -f $@-t $@ && \
 
80
        sed -n -e '/GL_ARG_NONNULL/,$$p' \
 
81
          < $(top_srcdir)/build-aux/arg-nonnull.h \
 
82
          > $@-t && \
 
83
        mv $@-t $@
 
84
MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
 
85
 
 
86
ARG_NONNULL_H=arg-nonnull.h
 
87
 
 
88
EXTRA_DIST += $(top_srcdir)/build-aux/arg-nonnull.h
 
89
 
 
90
## end   gnulib module arg-nonnull
 
91
 
 
92
## begin gnulib module argp
 
93
 
 
94
libgnu_a_SOURCES += argp.h argp-ba.c argp-eexst.c \
 
95
           argp-fmtstream.c argp-fmtstream.h argp-fs-xinl.c argp-help.c \
 
96
           argp-namefrob.h argp-parse.c argp-pin.c argp-pv.c argp-pvh.c \
 
97
           argp-xinl.c
 
98
 
 
99
## end   gnulib module argp
 
100
 
 
101
## begin gnulib module btowc
 
102
 
 
103
 
 
104
EXTRA_DIST += btowc.c
 
105
 
 
106
EXTRA_libgnu_a_SOURCES += btowc.c
 
107
 
 
108
## end   gnulib module btowc
 
109
 
 
110
## begin gnulib module c++defs
 
111
 
 
112
# The BUILT_SOURCES created by this Makefile snippet are not used via #include
 
113
# statements but through direct file reference. Therefore this snippet must be
 
114
# present in all Makefile.am that need it. This is ensured by the applicability
 
115
# 'all' defined above.
 
116
 
 
117
BUILT_SOURCES += c++defs.h
 
118
# The c++defs.h that gets inserted into generated .h files is the same as
 
119
# build-aux/c++defs.h, except that it has the copyright header cut off.
 
120
c++defs.h: $(top_srcdir)/build-aux/c++defs.h
 
121
        $(AM_V_GEN)rm -f $@-t $@ && \
 
122
        sed -n -e '/_GL_CXXDEFS/,$$p' \
 
123
          < $(top_srcdir)/build-aux/c++defs.h \
 
124
          > $@-t && \
 
125
        mv $@-t $@
 
126
MOSTLYCLEANFILES += c++defs.h c++defs.h-t
 
127
 
 
128
CXXDEFS_H=c++defs.h
 
129
 
 
130
EXTRA_DIST += $(top_srcdir)/build-aux/c++defs.h
 
131
 
 
132
## end   gnulib module c++defs
 
133
 
 
134
## begin gnulib module configmake
 
135
 
 
136
# Retrieve values of the variables through 'configure' followed by
 
137
# 'make', not directly through 'configure', so that a user who
 
138
# sets some of these variables consistently on the 'make' command
 
139
# line gets correct results.
 
140
#
 
141
# One advantage of this approach, compared to the classical
 
142
# approach of adding -DLIBDIR=\"$(libdir)\" etc. to AM_CPPFLAGS,
 
143
# is that it protects against the use of undefined variables.
 
144
# If, say, $(libdir) is not set in the Makefile, LIBDIR is not
 
145
# defined by this module, and code using LIBDIR gives a
 
146
# compilation error.
 
147
#
 
148
# Another advantage is that 'make' output is shorter.
 
149
#
 
150
# Listed in the same order as the GNU makefile conventions.
 
151
# The Automake-defined pkg* macros are appended, in the order
 
152
# listed in the Automake 1.10a+ documentation.
 
153
configmake.h: Makefile
 
154
        $(AM_V_GEN)rm -f $@-t && \
 
155
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
156
          echo '#define PREFIX "$(prefix)"'; \
 
157
          echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
 
158
          echo '#define BINDIR "$(bindir)"'; \
 
159
          echo '#define SBINDIR "$(sbindir)"'; \
 
160
          echo '#define LIBEXECDIR "$(libexecdir)"'; \
 
161
          echo '#define DATAROOTDIR "$(datarootdir)"'; \
 
162
          echo '#define DATADIR "$(datadir)"'; \
 
163
          echo '#define SYSCONFDIR "$(sysconfdir)"'; \
 
164
          echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
 
165
          echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
 
166
          echo '#define INCLUDEDIR "$(includedir)"'; \
 
167
          echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
 
168
          echo '#define DOCDIR "$(docdir)"'; \
 
169
          echo '#define INFODIR "$(infodir)"'; \
 
170
          echo '#define HTMLDIR "$(htmldir)"'; \
 
171
          echo '#define DVIDIR "$(dvidir)"'; \
 
172
          echo '#define PDFDIR "$(pdfdir)"'; \
 
173
          echo '#define PSDIR "$(psdir)"'; \
 
174
          echo '#define LIBDIR "$(libdir)"'; \
 
175
          echo '#define LISPDIR "$(lispdir)"'; \
 
176
          echo '#define LOCALEDIR "$(localedir)"'; \
 
177
          echo '#define MANDIR "$(mandir)"'; \
 
178
          echo '#define MANEXT "$(manext)"'; \
 
179
          echo '#define PKGDATADIR "$(pkgdatadir)"'; \
 
180
          echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
 
181
          echo '#define PKGLIBDIR "$(pkglibdir)"'; \
 
182
          echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
 
183
        } | sed '/""/d' > $@-t && \
 
184
        if test -f $@ && cmp $@-t $@ > /dev/null; then \
 
185
          rm -f $@-t; \
 
186
        else \
 
187
          rm -f $@; mv $@-t $@; \
 
188
        fi
 
189
 
 
190
BUILT_SOURCES += configmake.h
 
191
CLEANFILES += configmake.h configmake.h-t
 
192
 
 
193
## end   gnulib module configmake
 
194
 
 
195
## begin gnulib module dirname-lgpl
 
196
 
 
197
 
 
198
EXTRA_DIST += basename-lgpl.c dirname-lgpl.c dirname.h stripslash.c
 
199
 
 
200
EXTRA_libgnu_a_SOURCES += basename-lgpl.c dirname-lgpl.c stripslash.c
 
201
 
 
202
## end   gnulib module dirname-lgpl
 
203
 
 
204
## begin gnulib module errno
 
205
 
 
206
BUILT_SOURCES += $(ERRNO_H)
 
207
 
 
208
# We need the following in order to create <errno.h> when the system
 
209
# doesn't have one that is POSIX compliant.
 
210
errno.h: errno.in.h
 
211
        $(AM_V_GEN)rm -f $@-t $@ && \
 
212
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
 
213
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
214
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
215
              -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
 
216
              -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
 
217
              -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
 
218
              -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
 
219
              -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
 
220
              -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
 
221
              -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
 
222
              < $(srcdir)/errno.in.h; \
 
223
        } > $@-t && \
 
224
        mv $@-t $@
 
225
MOSTLYCLEANFILES += errno.h errno.h-t
 
226
 
 
227
EXTRA_DIST += errno.in.h
 
228
 
 
229
## end   gnulib module errno
 
230
 
 
231
## begin gnulib module error
 
232
 
 
233
 
 
234
EXTRA_DIST += error.c error.h
 
235
 
 
236
EXTRA_libgnu_a_SOURCES += error.c
 
237
 
 
238
## end   gnulib module error
 
239
 
 
240
## begin gnulib module float
 
241
 
 
242
BUILT_SOURCES += $(FLOAT_H)
 
243
 
 
244
# We need the following in order to create <float.h> when the system
 
245
# doesn't have one that works with the given compiler.
 
246
float.h: float.in.h
 
247
        $(AM_V_GEN)rm -f $@-t $@ && \
 
248
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
 
249
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
250
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
251
              -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
 
252
              < $(srcdir)/float.in.h; \
 
253
        } > $@-t && \
 
254
        mv $@-t $@
 
255
MOSTLYCLEANFILES += float.h float.h-t
 
256
 
 
257
EXTRA_DIST += float.in.h
 
258
 
 
259
## end   gnulib module float
 
260
 
 
261
## begin gnulib module fnmatch
 
262
 
 
263
BUILT_SOURCES += $(FNMATCH_H)
 
264
 
 
265
# We need the following in order to create <fnmatch.h> when the system
 
266
# doesn't have one that supports the required API.
 
267
fnmatch.h: fnmatch.in.h $(ARG_NONNULL_H)
 
268
        $(AM_V_GEN)rm -f $@-t $@ && \
 
269
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
270
          sed -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
271
              < $(srcdir)/fnmatch.in.h; \
 
272
        } > $@-t && \
 
273
        mv -f $@-t $@
 
274
MOSTLYCLEANFILES += fnmatch.h fnmatch.h-t
 
275
 
 
276
EXTRA_DIST += fnmatch.c fnmatch.in.h fnmatch_loop.c
 
277
 
 
278
EXTRA_libgnu_a_SOURCES += fnmatch.c fnmatch_loop.c
 
279
 
 
280
## end   gnulib module fnmatch
 
281
 
 
282
## begin gnulib module getdelim
 
283
 
 
284
 
 
285
EXTRA_DIST += getdelim.c
 
286
 
 
287
EXTRA_libgnu_a_SOURCES += getdelim.c
 
288
 
 
289
## end   gnulib module getdelim
 
290
 
 
291
## begin gnulib module getline
 
292
 
 
293
 
 
294
EXTRA_DIST += getline.c
 
295
 
 
296
EXTRA_libgnu_a_SOURCES += getline.c
 
297
 
 
298
## end   gnulib module getline
 
299
 
 
300
## begin gnulib module getopt-posix
 
301
 
 
302
BUILT_SOURCES += $(GETOPT_H)
 
303
 
 
304
# We need the following in order to create <getopt.h> when the system
 
305
# doesn't have one that works with the given compiler.
 
306
getopt.h: getopt.in.h $(ARG_NONNULL_H)
 
307
        $(AM_V_GEN)rm -f $@-t $@ && \
 
308
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
309
          sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
 
310
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
311
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
312
              -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
 
313
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
314
              < $(srcdir)/getopt.in.h; \
 
315
        } > $@-t && \
 
316
        mv -f $@-t $@
 
317
MOSTLYCLEANFILES += getopt.h getopt.h-t
 
318
 
 
319
EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
 
320
 
 
321
EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
 
322
 
 
323
## end   gnulib module getopt-posix
 
324
 
 
325
## begin gnulib module gettext
 
326
 
 
327
# This is for those projects which use "gettextize --intl" to put a source-code
 
328
# copy of libintl into their package. In such projects, every Makefile.am needs
 
329
# -I$(top_builddir)/intl, so that <libintl.h> can be found in this directory.
 
330
# For the Makefile.ams in other directories it is the maintainer's
 
331
# responsibility; for the one from gnulib we do it here.
 
332
# This option has no effect when the user disables NLS (because then the intl
 
333
# directory contains no libintl.h file) or when the project does not use
 
334
# "gettextize --intl".
 
335
AM_CPPFLAGS += -I$(top_builddir)/intl
 
336
 
 
337
EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
 
338
 
 
339
## end   gnulib module gettext
 
340
 
 
341
## begin gnulib module gettext-h
 
342
 
 
343
libgnu_a_SOURCES += gettext.h
 
344
 
 
345
## end   gnulib module gettext-h
 
346
 
 
347
## begin gnulib module havelib
 
348
 
 
349
 
 
350
EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
 
351
 
 
352
## end   gnulib module havelib
 
353
 
 
354
## begin gnulib module intprops
 
355
 
 
356
 
 
357
EXTRA_DIST += intprops.h
 
358
 
 
359
## end   gnulib module intprops
 
360
 
 
361
## begin gnulib module langinfo
 
362
 
 
363
BUILT_SOURCES += langinfo.h
 
364
 
 
365
# We need the following in order to create an empty placeholder for
 
366
# <langinfo.h> when the system doesn't have one.
 
367
langinfo.h: langinfo.in.h $(CXXDEFS_H) $(WARN_ON_USE_H)
 
368
        $(AM_V_GEN)rm -f $@-t $@ && \
 
369
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
370
          sed -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \
 
371
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
372
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
373
              -e 's|@''NEXT_LANGINFO_H''@|$(NEXT_LANGINFO_H)|g' \
 
374
              -e 's|@''GNULIB_NL_LANGINFO''@|$(GNULIB_NL_LANGINFO)|g' \
 
375
              -e 's|@''HAVE_LANGINFO_CODESET''@|$(HAVE_LANGINFO_CODESET)|g' \
 
376
              -e 's|@''HAVE_LANGINFO_T_FMT_AMPM''@|$(HAVE_LANGINFO_T_FMT_AMPM)|g' \
 
377
              -e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \
 
378
              -e 's|@''HAVE_LANGINFO_YESEXPR''@|$(HAVE_LANGINFO_YESEXPR)|g' \
 
379
              -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \
 
380
              -e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \
 
381
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
382
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
 
383
              < $(srcdir)/langinfo.in.h; \
 
384
        } > $@-t && \
 
385
        mv $@-t $@
 
386
MOSTLYCLEANFILES += langinfo.h langinfo.h-t
 
387
 
 
388
EXTRA_DIST += langinfo.in.h
 
389
 
 
390
## end   gnulib module langinfo
 
391
 
 
392
## begin gnulib module localcharset
 
393
 
 
394
libgnu_a_SOURCES += localcharset.h localcharset.c
 
395
 
 
396
# We need the following in order to install a simple file in $(libdir)
 
397
# which is shared with other installed packages. We use a list of referencing
 
398
# packages so that "make uninstall" will remove the file if and only if it
 
399
# is not used by another installed package.
 
400
# On systems with glibc-2.1 or newer, the file is redundant, therefore we
 
401
# avoid installing it.
 
402
 
 
403
all-local: charset.alias ref-add.sed ref-del.sed
 
404
 
 
405
charset_alias = $(DESTDIR)$(libdir)/charset.alias
 
406
charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
 
407
install-exec-local: install-exec-localcharset
 
408
install-exec-localcharset: all-local
 
409
        if test $(GLIBC21) = no; then \
 
410
          case '$(host_os)' in \
 
411
            darwin[56]*) \
 
412
              need_charset_alias=true ;; \
 
413
            darwin* | cygwin* | mingw* | pw32* | cegcc*) \
 
414
              need_charset_alias=false ;; \
 
415
            *) \
 
416
              need_charset_alias=true ;; \
 
417
          esac ; \
 
418
        else \
 
419
          need_charset_alias=false ; \
 
420
        fi ; \
 
421
        if $$need_charset_alias; then \
 
422
          $(mkinstalldirs) $(DESTDIR)$(libdir) ; \
 
423
        fi ; \
 
424
        if test -f $(charset_alias); then \
 
425
          sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
 
426
          $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
 
427
          rm -f $(charset_tmp) ; \
 
428
        else \
 
429
          if $$need_charset_alias; then \
 
430
            sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
 
431
            $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
 
432
            rm -f $(charset_tmp) ; \
 
433
          fi ; \
 
434
        fi
 
435
 
 
436
uninstall-local: uninstall-localcharset
 
437
uninstall-localcharset: all-local
 
438
        if test -f $(charset_alias); then \
 
439
          sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
 
440
          if grep '^# Packages using this file: $$' $(charset_tmp) \
 
441
              > /dev/null; then \
 
442
            rm -f $(charset_alias); \
 
443
          else \
 
444
            $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
 
445
          fi; \
 
446
          rm -f $(charset_tmp); \
 
447
        fi
 
448
 
 
449
charset.alias: config.charset
 
450
        $(AM_V_GEN)rm -f t-$@ $@ && \
 
451
        $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@ && \
 
452
        mv t-$@ $@
 
453
 
 
454
SUFFIXES += .sed .sin
 
455
.sin.sed:
 
456
        $(AM_V_GEN)rm -f t-$@ $@ && \
 
457
        sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@ && \
 
458
        mv t-$@ $@
 
459
 
 
460
CLEANFILES += charset.alias ref-add.sed ref-del.sed
 
461
 
 
462
EXTRA_DIST += config.charset ref-add.sin ref-del.sin
 
463
 
 
464
## end   gnulib module localcharset
 
465
 
 
466
## begin gnulib module malloc-gnu
 
467
 
 
468
 
 
469
EXTRA_DIST += malloc.c
 
470
 
 
471
EXTRA_libgnu_a_SOURCES += malloc.c
 
472
 
 
473
## end   gnulib module malloc-gnu
 
474
 
 
475
## begin gnulib module malloc-posix
 
476
 
 
477
 
 
478
EXTRA_DIST += malloc.c
 
479
 
 
480
EXTRA_libgnu_a_SOURCES += malloc.c
 
481
 
 
482
## end   gnulib module malloc-posix
 
483
 
 
484
## begin gnulib module mbrtowc
 
485
 
 
486
 
 
487
EXTRA_DIST += mbrtowc.c
 
488
 
 
489
EXTRA_libgnu_a_SOURCES += mbrtowc.c
 
490
 
 
491
## end   gnulib module mbrtowc
 
492
 
 
493
## begin gnulib module mbsinit
 
494
 
 
495
 
 
496
EXTRA_DIST += mbsinit.c
 
497
 
 
498
EXTRA_libgnu_a_SOURCES += mbsinit.c
 
499
 
 
500
## end   gnulib module mbsinit
 
501
 
 
502
## begin gnulib module mbsrtowcs
 
503
 
 
504
 
 
505
EXTRA_DIST += mbsrtowcs-state.c mbsrtowcs.c
 
506
 
 
507
EXTRA_libgnu_a_SOURCES += mbsrtowcs-state.c mbsrtowcs.c
 
508
 
 
509
## end   gnulib module mbsrtowcs
 
510
 
 
511
## begin gnulib module memchr
 
512
 
 
513
 
 
514
EXTRA_DIST += memchr.c memchr.valgrind
 
515
 
 
516
EXTRA_libgnu_a_SOURCES += memchr.c
 
517
 
 
518
## end   gnulib module memchr
 
519
 
 
520
## begin gnulib module mempcpy
 
521
 
 
522
 
 
523
EXTRA_DIST += mempcpy.c
 
524
 
 
525
EXTRA_libgnu_a_SOURCES += mempcpy.c
 
526
 
 
527
## end   gnulib module mempcpy
 
528
 
 
529
## begin gnulib module nl_langinfo
 
530
 
 
531
 
 
532
EXTRA_DIST += nl_langinfo.c
 
533
 
 
534
EXTRA_libgnu_a_SOURCES += nl_langinfo.c
 
535
 
 
536
## end   gnulib module nl_langinfo
 
537
 
 
538
## begin gnulib module progname
 
539
 
 
540
libgnu_a_SOURCES += progname.h progname.c
 
541
 
 
542
## end   gnulib module progname
 
543
 
 
544
## begin gnulib module rawmemchr
 
545
 
 
546
 
 
547
EXTRA_DIST += rawmemchr.c rawmemchr.valgrind
 
548
 
 
549
EXTRA_libgnu_a_SOURCES += rawmemchr.c
 
550
 
 
551
## end   gnulib module rawmemchr
 
552
 
 
553
## begin gnulib module realloc-posix
 
554
 
 
555
 
 
556
EXTRA_DIST += realloc.c
 
557
 
 
558
EXTRA_libgnu_a_SOURCES += realloc.c
 
559
 
 
560
## end   gnulib module realloc-posix
 
561
 
 
562
## begin gnulib module regex
 
563
 
 
564
 
 
565
EXTRA_DIST += regcomp.c regex.c regex.h regex_internal.c regex_internal.h regexec.c
 
566
 
 
567
EXTRA_libgnu_a_SOURCES += regcomp.c regex.c regex_internal.c regexec.c
 
568
 
 
569
## end   gnulib module regex
 
570
 
 
571
## begin gnulib module size_max
 
572
 
 
573
libgnu_a_SOURCES += size_max.h
 
574
 
 
575
## end   gnulib module size_max
 
576
 
 
577
## begin gnulib module sleep
 
578
 
 
579
 
 
580
EXTRA_DIST += sleep.c
 
581
 
 
582
EXTRA_libgnu_a_SOURCES += sleep.c
 
583
 
 
584
## end   gnulib module sleep
 
585
 
 
586
## begin gnulib module stdbool
 
587
 
 
588
BUILT_SOURCES += $(STDBOOL_H)
 
589
 
 
590
# We need the following in order to create <stdbool.h> when the system
 
591
# doesn't have one that works.
 
592
stdbool.h: stdbool.in.h
 
593
        $(AM_V_GEN)rm -f $@-t $@ && \
 
594
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
595
          sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
 
596
        } > $@-t && \
 
597
        mv $@-t $@
 
598
MOSTLYCLEANFILES += stdbool.h stdbool.h-t
 
599
 
 
600
EXTRA_DIST += stdbool.in.h
 
601
 
 
602
## end   gnulib module stdbool
 
603
 
 
604
## begin gnulib module stddef
 
605
 
 
606
BUILT_SOURCES += $(STDDEF_H)
 
607
 
 
608
# We need the following in order to create <stddef.h> when the system
 
609
# doesn't have one that works with the given compiler.
 
610
stddef.h: stddef.in.h
 
611
        $(AM_V_GEN)rm -f $@-t $@ && \
 
612
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
 
613
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
614
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
615
              -e 's|@''NEXT_STDDEF_H''@|$(NEXT_STDDEF_H)|g' \
 
616
              -e 's|@''HAVE_WCHAR_T''@|$(HAVE_WCHAR_T)|g' \
 
617
              -e 's|@''REPLACE_NULL''@|$(REPLACE_NULL)|g' \
 
618
              < $(srcdir)/stddef.in.h; \
 
619
        } > $@-t && \
 
620
        mv $@-t $@
 
621
MOSTLYCLEANFILES += stddef.h stddef.h-t
 
622
 
 
623
EXTRA_DIST += stddef.in.h
 
624
 
 
625
## end   gnulib module stddef
 
626
 
 
627
## begin gnulib module stdint
 
628
 
 
629
BUILT_SOURCES += $(STDINT_H)
 
630
 
 
631
# We need the following in order to create <stdint.h> when the system
 
632
# doesn't have one that works with the given compiler.
 
633
stdint.h: stdint.in.h
 
634
        $(AM_V_GEN)rm -f $@-t $@ && \
 
635
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
636
          sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
 
637
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
638
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
639
              -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
 
640
              -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
 
641
              -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
 
642
              -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
 
643
              -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
 
644
              -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
 
645
              -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
 
646
              -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
 
647
              -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
 
648
              -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
 
649
              -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
 
650
              -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
 
651
              -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
 
652
              -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
 
653
              -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
 
654
              -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
 
655
              -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
 
656
              -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
 
657
              -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
 
658
              -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
 
659
              -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
 
660
              < $(srcdir)/stdint.in.h; \
 
661
        } > $@-t && \
 
662
        mv $@-t $@
 
663
MOSTLYCLEANFILES += stdint.h stdint.h-t
 
664
 
 
665
EXTRA_DIST += stdint.in.h
 
666
 
 
667
## end   gnulib module stdint
 
668
 
 
669
## begin gnulib module stdio
 
670
 
 
671
BUILT_SOURCES += stdio.h
 
672
 
 
673
# We need the following in order to create <stdio.h> when the system
 
674
# doesn't have one that works with the given compiler.
 
675
stdio.h: stdio.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
676
        $(AM_V_GEN)rm -f $@-t $@ && \
 
677
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
 
678
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
679
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
680
              -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
 
681
              -e 's|@''GNULIB_DPRINTF''@|$(GNULIB_DPRINTF)|g' \
 
682
              -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \
 
683
              -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \
 
684
              -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \
 
685
              -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \
 
686
              -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \
 
687
              -e 's|@''GNULIB_FPURGE''@|$(GNULIB_FPURGE)|g' \
 
688
              -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \
 
689
              -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \
 
690
              -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \
 
691
              -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \
 
692
              -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \
 
693
              -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \
 
694
              -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \
 
695
              -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \
 
696
              -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \
 
697
              -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \
 
698
              -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \
 
699
              -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \
 
700
              -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \
 
701
              -e 's|@''GNULIB_POPEN''@|$(GNULIB_POPEN)|g' \
 
702
              -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \
 
703
              -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \
 
704
              -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \
 
705
              -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \
 
706
              -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \
 
707
              -e 's|@''GNULIB_REMOVE''@|$(GNULIB_REMOVE)|g' \
 
708
              -e 's|@''GNULIB_RENAME''@|$(GNULIB_RENAME)|g' \
 
709
              -e 's|@''GNULIB_RENAMEAT''@|$(GNULIB_RENAMEAT)|g' \
 
710
              -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \
 
711
              -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \
 
712
              -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \
 
713
              -e 's|@''GNULIB_TMPFILE''@|$(GNULIB_TMPFILE)|g' \
 
714
              -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \
 
715
              -e 's|@''GNULIB_VDPRINTF''@|$(GNULIB_VDPRINTF)|g' \
 
716
              -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \
 
717
              -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \
 
718
              -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \
 
719
              -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \
 
720
              -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \
 
721
              -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \
 
722
              < $(srcdir)/stdio.in.h | \
 
723
          sed -e 's|@''HAVE_DECL_FPURGE''@|$(HAVE_DECL_FPURGE)|g' \
 
724
              -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
 
725
              -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
 
726
              -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
 
727
              -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
 
728
              -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
 
729
              -e 's|@''HAVE_DPRINTF''@|$(HAVE_DPRINTF)|g' \
 
730
              -e 's|@''HAVE_FSEEKO''@|$(HAVE_FSEEKO)|g' \
 
731
              -e 's|@''HAVE_FTELLO''@|$(HAVE_FTELLO)|g' \
 
732
              -e 's|@''HAVE_RENAMEAT''@|$(HAVE_RENAMEAT)|g' \
 
733
              -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
 
734
              -e 's|@''HAVE_VDPRINTF''@|$(HAVE_VDPRINTF)|g' \
 
735
              -e 's|@''REPLACE_DPRINTF''@|$(REPLACE_DPRINTF)|g' \
 
736
              -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
 
737
              -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
 
738
              -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
 
739
              -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
 
740
              -e 's|@''REPLACE_FPURGE''@|$(REPLACE_FPURGE)|g' \
 
741
              -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
 
742
              -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \
 
743
              -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \
 
744
              -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \
 
745
              -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \
 
746
              -e 's|@''REPLACE_GETDELIM''@|$(REPLACE_GETDELIM)|g' \
 
747
              -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \
 
748
              -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \
 
749
              -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \
 
750
              -e 's|@''REPLACE_POPEN''@|$(REPLACE_POPEN)|g' \
 
751
              -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \
 
752
              -e 's|@''REPLACE_REMOVE''@|$(REPLACE_REMOVE)|g' \
 
753
              -e 's|@''REPLACE_RENAME''@|$(REPLACE_RENAME)|g' \
 
754
              -e 's|@''REPLACE_RENAMEAT''@|$(REPLACE_RENAMEAT)|g' \
 
755
              -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \
 
756
              -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \
 
757
              -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \
 
758
              -e 's|@''REPLACE_TMPFILE''@|$(REPLACE_TMPFILE)|g' \
 
759
              -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \
 
760
              -e 's|@''REPLACE_VDPRINTF''@|$(REPLACE_VDPRINTF)|g' \
 
761
              -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \
 
762
              -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
 
763
              -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
 
764
              -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
 
765
              -e 's|@''ASM_SYMBOL_PREFIX''@|$(ASM_SYMBOL_PREFIX)|g' \
 
766
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
767
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
768
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
 
769
        } > $@-t && \
 
770
        mv $@-t $@
 
771
MOSTLYCLEANFILES += stdio.h stdio.h-t
 
772
 
 
773
EXTRA_DIST += stdio-write.c stdio.in.h
 
774
 
 
775
EXTRA_libgnu_a_SOURCES += stdio-write.c
 
776
 
 
777
## end   gnulib module stdio
 
778
 
 
779
## begin gnulib module stdlib
 
780
 
 
781
BUILT_SOURCES += stdlib.h
 
782
 
 
783
# We need the following in order to create <stdlib.h> when the system
 
784
# doesn't have one that works with the given compiler.
 
785
stdlib.h: stdlib.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
786
        $(AM_V_GEN)rm -f $@-t $@ && \
 
787
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
 
788
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
789
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
790
              -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
 
791
              -e 's|@''GNULIB__EXIT''@|$(GNULIB__EXIT)|g' \
 
792
              -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
 
793
              -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
 
794
              -e 's|@''GNULIB_CANONICALIZE_FILE_NAME''@|$(GNULIB_CANONICALIZE_FILE_NAME)|g' \
 
795
              -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
 
796
              -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
 
797
              -e 's|@''GNULIB_GRANTPT''@|$(GNULIB_GRANTPT)|g' \
 
798
              -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
 
799
              -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
 
800
              -e 's|@''GNULIB_MKOSTEMP''@|$(GNULIB_MKOSTEMP)|g' \
 
801
              -e 's|@''GNULIB_MKOSTEMPS''@|$(GNULIB_MKOSTEMPS)|g' \
 
802
              -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
 
803
              -e 's|@''GNULIB_MKSTEMPS''@|$(GNULIB_MKSTEMPS)|g' \
 
804
              -e 's|@''GNULIB_PTSNAME''@|$(GNULIB_PTSNAME)|g' \
 
805
              -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
 
806
              -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
 
807
              -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
 
808
              -e 's|@''GNULIB_REALPATH''@|$(GNULIB_REALPATH)|g' \
 
809
              -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
 
810
              -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
 
811
              -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
 
812
              -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
 
813
              -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
 
814
              -e 's|@''GNULIB_UNLOCKPT''@|$(GNULIB_UNLOCKPT)|g' \
 
815
              -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
 
816
              -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
 
817
              -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
 
818
              -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
 
819
              -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
 
820
              -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
 
821
              -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
 
822
              -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
 
823
              -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
 
824
              -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
 
825
              -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
 
826
              -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
 
827
              -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
 
828
              -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
 
829
              -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
 
830
              -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
 
831
              -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
 
832
              -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
 
833
              -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
 
834
              -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
 
835
              -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
 
836
              -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
 
837
              -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
 
838
              -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
 
839
              -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
 
840
              -e 's|@''REPLACE_CALLOC''@|$(REPLACE_CALLOC)|g' \
 
841
              -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
 
842
              -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \
 
843
              -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
 
844
              -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
 
845
              -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
 
846
              -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
 
847
              -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
 
848
              -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
 
849
              -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
 
850
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
851
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
852
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
 
853
              < $(srcdir)/stdlib.in.h; \
 
854
        } > $@-t && \
 
855
        mv $@-t $@
 
856
MOSTLYCLEANFILES += stdlib.h stdlib.h-t
 
857
 
 
858
EXTRA_DIST += stdlib.in.h
 
859
 
 
860
## end   gnulib module stdlib
 
861
 
 
862
## begin gnulib module strcase
 
863
 
 
864
 
 
865
EXTRA_DIST += strcasecmp.c strncasecmp.c
 
866
 
 
867
EXTRA_libgnu_a_SOURCES += strcasecmp.c strncasecmp.c
 
868
 
 
869
## end   gnulib module strcase
 
870
 
 
871
## begin gnulib module strchrnul
 
872
 
 
873
 
 
874
EXTRA_DIST += strchrnul.c strchrnul.valgrind
 
875
 
 
876
EXTRA_libgnu_a_SOURCES += strchrnul.c
 
877
 
 
878
## end   gnulib module strchrnul
 
879
 
 
880
## begin gnulib module streq
 
881
 
 
882
 
 
883
EXTRA_DIST += streq.h
 
884
 
 
885
## end   gnulib module streq
 
886
 
 
887
## begin gnulib module strerror
 
888
 
 
889
 
 
890
EXTRA_DIST += strerror.c
 
891
 
 
892
EXTRA_libgnu_a_SOURCES += strerror.c
 
893
 
 
894
## end   gnulib module strerror
 
895
 
 
896
## begin gnulib module string
 
897
 
 
898
BUILT_SOURCES += string.h
 
899
 
 
900
# We need the following in order to create <string.h> when the system
 
901
# doesn't have one that works with the given compiler.
 
902
string.h: string.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
903
        $(AM_V_GEN)rm -f $@-t $@ && \
 
904
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
 
905
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
906
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
907
              -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
 
908
              -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \
 
909
              -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \
 
910
              -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \
 
911
              -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \
 
912
              -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \
 
913
              -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \
 
914
              -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \
 
915
              -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \
 
916
              -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \
 
917
              -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \
 
918
              -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \
 
919
              -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
 
920
              -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
 
921
              -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
 
922
              -e 's|@''GNULIB_MEMCHR''@|$(GNULIB_MEMCHR)|g' \
 
923
              -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
 
924
              -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
 
925
              -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
 
926
              -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \
 
927
              -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \
 
928
              -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
 
929
              -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
 
930
              -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
 
931
              -e 's|@''GNULIB_STRNCAT''@|$(GNULIB_STRNCAT)|g' \
 
932
              -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
 
933
              -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
 
934
              -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
 
935
              -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \
 
936
              -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \
 
937
              -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \
 
938
              -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \
 
939
              -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \
 
940
              -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \
 
941
              -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \
 
942
              < $(srcdir)/string.in.h | \
 
943
          sed -e 's|@''HAVE_MBSLEN''@|$(HAVE_MBSLEN)|g' \
 
944
              -e 's|@''HAVE_MEMCHR''@|$(HAVE_MEMCHR)|g' \
 
945
              -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
 
946
              -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
 
947
              -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
 
948
              -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
 
949
              -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
 
950
              -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
 
951
              -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
 
952
              -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
 
953
              -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
 
954
              -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
 
955
              -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
 
956
              -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
 
957
              -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
 
958
              -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
 
959
              -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
 
960
              -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
 
961
              -e 's|@''REPLACE_STPNCPY''@|$(REPLACE_STPNCPY)|g' \
 
962
              -e 's|@''REPLACE_MEMCHR''@|$(REPLACE_MEMCHR)|g' \
 
963
              -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
 
964
              -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
 
965
              -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
 
966
              -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
 
967
              -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
 
968
              -e 's|@''REPLACE_STRNCAT''@|$(REPLACE_STRNCAT)|g' \
 
969
              -e 's|@''REPLACE_STRNDUP''@|$(REPLACE_STRNDUP)|g' \
 
970
              -e 's|@''REPLACE_STRNLEN''@|$(REPLACE_STRNLEN)|g' \
 
971
              -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
 
972
              -e 's|@''REPLACE_STRTOK_R''@|$(REPLACE_STRTOK_R)|g' \
 
973
              -e 's|@''UNDEFINE_STRTOK_R''@|$(UNDEFINE_STRTOK_R)|g' \
 
974
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
975
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
976
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
 
977
              < $(srcdir)/string.in.h; \
 
978
        } > $@-t && \
 
979
        mv $@-t $@
 
980
MOSTLYCLEANFILES += string.h string.h-t
 
981
 
 
982
EXTRA_DIST += string.in.h
 
983
 
 
984
## end   gnulib module string
 
985
 
 
986
## begin gnulib module strings
 
987
 
 
988
BUILT_SOURCES += strings.h
 
989
 
 
990
# We need the following in order to create <strings.h> when the system
 
991
# doesn't have one that works with the given compiler.
 
992
strings.h: strings.in.h $(WARN_ON_USE_H) $(ARG_NONNULL_H)
 
993
        $(AM_V_GEN)rm -f $@-t $@ && \
 
994
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
 
995
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
996
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
997
              -e 's|@''NEXT_STRINGS_H''@|$(NEXT_STRINGS_H)|g' \
 
998
              -e 's|@''HAVE_STRCASECMP''@|$(HAVE_STRCASECMP)|g' \
 
999
              -e 's|@''HAVE_DECL_STRNCASECMP''@|$(HAVE_DECL_STRNCASECMP)|g' \
 
1000
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
1001
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
 
1002
              < $(srcdir)/strings.in.h; \
 
1003
        } > $@-t && \
 
1004
        mv $@-t $@
 
1005
MOSTLYCLEANFILES += strings.h strings.h-t
 
1006
 
 
1007
EXTRA_DIST += strings.in.h
 
1008
 
 
1009
## end   gnulib module strings
 
1010
 
 
1011
## begin gnulib module strndup
 
1012
 
 
1013
 
 
1014
EXTRA_DIST += strndup.c
 
1015
 
 
1016
EXTRA_libgnu_a_SOURCES += strndup.c
 
1017
 
 
1018
## end   gnulib module strndup
 
1019
 
 
1020
## begin gnulib module strnlen
 
1021
 
 
1022
 
 
1023
EXTRA_DIST += strnlen.c
 
1024
 
 
1025
EXTRA_libgnu_a_SOURCES += strnlen.c
 
1026
 
 
1027
## end   gnulib module strnlen
 
1028
 
 
1029
## begin gnulib module strnlen1
 
1030
 
 
1031
libgnu_a_SOURCES += strnlen1.h strnlen1.c
 
1032
 
 
1033
## end   gnulib module strnlen1
 
1034
 
 
1035
## begin gnulib module sys_wait
 
1036
 
 
1037
BUILT_SOURCES += sys/wait.h
 
1038
 
 
1039
# We need the following in order to create <sys/wait.h> when the system
 
1040
# has one that is incomplete.
 
1041
sys/wait.h: sys_wait.in.h
 
1042
        $(AM_V_at)$(MKDIR_P) sys
 
1043
        $(AM_V_GEN)rm -f $@-t $@ && \
 
1044
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
1045
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
1046
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
1047
              -e 's|@''NEXT_SYS_WAIT_H''@|$(NEXT_SYS_WAIT_H)|g' \
 
1048
              < $(srcdir)/sys_wait.in.h; \
 
1049
        } > $@-t && \
 
1050
        mv $@-t $@
 
1051
MOSTLYCLEANFILES += sys/wait.h sys/wait.h-t
 
1052
MOSTLYCLEANDIRS += sys
 
1053
 
 
1054
EXTRA_DIST += sys_wait.in.h
 
1055
 
 
1056
## end   gnulib module sys_wait
 
1057
 
 
1058
## begin gnulib module sysexits
 
1059
 
 
1060
BUILT_SOURCES += $(SYSEXITS_H)
 
1061
 
 
1062
# We need the following in order to create <sysexits.h> when the system
 
1063
# doesn't have one that works with the given compiler.
 
1064
sysexits.h: sysexits.in.h
 
1065
        $(AM_V_GEN)rm -f $@-t $@ && \
 
1066
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
1067
          sed -e 's|@''HAVE_SYSEXITS_H''@|$(HAVE_SYSEXITS_H)|g' \
 
1068
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
1069
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
1070
              -e 's|@''NEXT_SYSEXITS_H''@|$(NEXT_SYSEXITS_H)|g' \
 
1071
              < $(srcdir)/sysexits.in.h; \
 
1072
        } > $@-t && \
 
1073
        mv -f $@-t $@
 
1074
MOSTLYCLEANFILES += sysexits.h sysexits.h-t
 
1075
 
 
1076
EXTRA_DIST += sysexits.in.h
 
1077
 
 
1078
## end   gnulib module sysexits
 
1079
 
 
1080
## begin gnulib module unistd
 
1081
 
 
1082
BUILT_SOURCES += unistd.h
 
1083
 
 
1084
# We need the following in order to create an empty placeholder for
 
1085
# <unistd.h> when the system doesn't have one.
 
1086
unistd.h: unistd.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
1087
        $(AM_V_GEN)rm -f $@-t $@ && \
 
1088
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
1089
          sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
 
1090
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
1091
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
1092
              -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
 
1093
              -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
 
1094
              -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
 
1095
              -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
 
1096
              -e 's|@''GNULIB_DUP3''@|$(GNULIB_DUP3)|g' \
 
1097
              -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
 
1098
              -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
 
1099
              -e 's|@''GNULIB_FACCESSAT''@|$(GNULIB_FACCESSAT)|g' \
 
1100
              -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
 
1101
              -e 's|@''GNULIB_FCHOWNAT''@|$(GNULIB_FCHOWNAT)|g' \
 
1102
              -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
 
1103
              -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
 
1104
              -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
 
1105
              -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
 
1106
              -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
 
1107
              -e 's|@''GNULIB_GETGROUPS''@|$(GNULIB_GETGROUPS)|g' \
 
1108
              -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
 
1109
              -e 's|@''GNULIB_GETLOGIN''@|$(GNULIB_GETLOGIN)|g' \
 
1110
              -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
 
1111
              -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
 
1112
              -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
 
1113
              -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
 
1114
              -e 's|@''GNULIB_LINK''@|$(GNULIB_LINK)|g' \
 
1115
              -e 's|@''GNULIB_LINKAT''@|$(GNULIB_LINKAT)|g' \
 
1116
              -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
 
1117
              -e 's|@''GNULIB_PIPE2''@|$(GNULIB_PIPE2)|g' \
 
1118
              -e 's|@''GNULIB_PREAD''@|$(GNULIB_PREAD)|g' \
 
1119
              -e 's|@''GNULIB_PWRITE''@|$(GNULIB_PWRITE)|g' \
 
1120
              -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
 
1121
              -e 's|@''GNULIB_READLINKAT''@|$(GNULIB_READLINKAT)|g' \
 
1122
              -e 's|@''GNULIB_RMDIR''@|$(GNULIB_RMDIR)|g' \
 
1123
              -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
 
1124
              -e 's|@''GNULIB_SYMLINK''@|$(GNULIB_SYMLINK)|g' \
 
1125
              -e 's|@''GNULIB_SYMLINKAT''@|$(GNULIB_SYMLINKAT)|g' \
 
1126
              -e 's|@''GNULIB_TTYNAME_R''@|$(GNULIB_TTYNAME_R)|g' \
 
1127
              -e 's|@''GNULIB_UNISTD_H_GETOPT''@|$(GNULIB_UNISTD_H_GETOPT)|g' \
 
1128
              -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
 
1129
              -e 's|@''GNULIB_UNLINK''@|$(GNULIB_UNLINK)|g' \
 
1130
              -e 's|@''GNULIB_UNLINKAT''@|$(GNULIB_UNLINKAT)|g' \
 
1131
              -e 's|@''GNULIB_USLEEP''@|$(GNULIB_USLEEP)|g' \
 
1132
              -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
 
1133
              < $(srcdir)/unistd.in.h | \
 
1134
          sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
 
1135
              -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
 
1136
              -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
 
1137
              -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
 
1138
              -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
 
1139
              -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
 
1140
              -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
 
1141
              -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
 
1142
              -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
 
1143
              -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \
 
1144
              -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
 
1145
              -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
 
1146
              -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
 
1147
              -e 's|@''HAVE_GETLOGIN''@|$(HAVE_GETLOGIN)|g' \
 
1148
              -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
 
1149
              -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
 
1150
              -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
 
1151
              -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
 
1152
              -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
 
1153
              -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
 
1154
              -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
 
1155
              -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
 
1156
              -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
 
1157
              -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
 
1158
              -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
 
1159
              -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
 
1160
              -e 's|@''HAVE_TTYNAME_R''@|$(HAVE_TTYNAME_R)|g' \
 
1161
              -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
 
1162
              -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
 
1163
              -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
 
1164
              -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
 
1165
              -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
 
1166
              -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
 
1167
              -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
 
1168
              -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
 
1169
              -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
 
1170
              -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
 
1171
              -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
 
1172
              -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
 
1173
              -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
 
1174
              -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
 
1175
              -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
 
1176
              -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
 
1177
              -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
 
1178
              -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
 
1179
              -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
 
1180
              -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
 
1181
              -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
 
1182
              -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
 
1183
              -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
 
1184
              -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
 
1185
              -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
 
1186
              -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
 
1187
              -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
 
1188
              -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
 
1189
              -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
 
1190
              -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
 
1191
              -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
 
1192
              -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
 
1193
              -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
 
1194
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
1195
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
1196
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
 
1197
        } > $@-t && \
 
1198
        mv $@-t $@
 
1199
MOSTLYCLEANFILES += unistd.h unistd.h-t
 
1200
 
 
1201
EXTRA_DIST += unistd.in.h
 
1202
 
 
1203
## end   gnulib module unistd
 
1204
 
 
1205
## begin gnulib module vasnprintf
 
1206
 
 
1207
 
 
1208
EXTRA_DIST += asnprintf.c float+.h printf-args.c printf-args.h printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h
 
1209
 
 
1210
EXTRA_libgnu_a_SOURCES += asnprintf.c printf-args.c printf-parse.c vasnprintf.c
 
1211
 
 
1212
## end   gnulib module vasnprintf
 
1213
 
 
1214
## begin gnulib module verify
 
1215
 
 
1216
libgnu_a_SOURCES += verify.h
 
1217
 
 
1218
## end   gnulib module verify
 
1219
 
 
1220
## begin gnulib module vsnprintf
 
1221
 
 
1222
 
 
1223
EXTRA_DIST += vsnprintf.c
 
1224
 
 
1225
EXTRA_libgnu_a_SOURCES += vsnprintf.c
 
1226
 
 
1227
## end   gnulib module vsnprintf
 
1228
 
 
1229
## begin gnulib module warn-on-use
 
1230
 
 
1231
BUILT_SOURCES += warn-on-use.h
 
1232
# The warn-on-use.h that gets inserted into generated .h files is the same as
 
1233
# build-aux/warn-on-use.h, except that it has the copyright header cut off.
 
1234
warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h
 
1235
        $(AM_V_GEN)rm -f $@-t $@ && \
 
1236
        sed -n -e '/^.ifndef/,$$p' \
 
1237
          < $(top_srcdir)/build-aux/warn-on-use.h \
 
1238
          > $@-t && \
 
1239
        mv $@-t $@
 
1240
MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
 
1241
 
 
1242
WARN_ON_USE_H=warn-on-use.h
 
1243
 
 
1244
EXTRA_DIST += $(top_srcdir)/build-aux/warn-on-use.h
 
1245
 
 
1246
## end   gnulib module warn-on-use
 
1247
 
 
1248
## begin gnulib module wchar
 
1249
 
 
1250
BUILT_SOURCES += wchar.h
 
1251
 
 
1252
# We need the following in order to create <wchar.h> when the system
 
1253
# version does not work standalone.
 
1254
wchar.h: wchar.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
 
1255
        $(AM_V_GEN)rm -f $@-t $@ && \
 
1256
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
1257
          sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
1258
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
1259
              -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
 
1260
              -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
 
1261
              -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \
 
1262
              -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \
 
1263
              -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \
 
1264
              -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \
 
1265
              -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \
 
1266
              -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \
 
1267
              -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \
 
1268
              -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \
 
1269
              -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \
 
1270
              -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \
 
1271
              -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
 
1272
              -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
 
1273
              -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
 
1274
              -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
 
1275
              -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
 
1276
              -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
 
1277
              -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
 
1278
              -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
 
1279
              -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
 
1280
              -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
 
1281
              -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
 
1282
              -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
 
1283
              -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
 
1284
              -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
 
1285
              -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
 
1286
              -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
 
1287
              -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
 
1288
              -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
 
1289
              -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
 
1290
              -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
 
1291
              -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
 
1292
              -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
 
1293
              -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
 
1294
              -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
 
1295
              -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
 
1296
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
1297
              -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
 
1298
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
 
1299
            < $(srcdir)/wchar.in.h; \
 
1300
        } > $@-t && \
 
1301
        mv $@-t $@
 
1302
MOSTLYCLEANFILES += wchar.h wchar.h-t
 
1303
 
 
1304
EXTRA_DIST += wchar.in.h
 
1305
 
 
1306
## end   gnulib module wchar
 
1307
 
 
1308
## begin gnulib module wcrtomb
 
1309
 
 
1310
 
 
1311
EXTRA_DIST += wcrtomb.c
 
1312
 
 
1313
EXTRA_libgnu_a_SOURCES += wcrtomb.c
 
1314
 
 
1315
## end   gnulib module wcrtomb
 
1316
 
 
1317
## begin gnulib module wctype
 
1318
 
 
1319
BUILT_SOURCES += wctype.h
 
1320
 
 
1321
# We need the following in order to create <wctype.h> when the system
 
1322
# doesn't have one that works with the given compiler.
 
1323
wctype.h: wctype.in.h $(CXXDEFS_H) $(WARN_ON_USE_H)
 
1324
        $(AM_V_GEN)rm -f $@-t $@ && \
 
1325
        { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
 
1326
          sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \
 
1327
              -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
 
1328
              -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
 
1329
              -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \
 
1330
              -e 's/@''HAVE_ISWBLANK''@/$(HAVE_ISWBLANK)/g' \
 
1331
              -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \
 
1332
              -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \
 
1333
              -e 's/@''REPLACE_ISWBLANK''@/$(REPLACE_ISWBLANK)/g' \
 
1334
              -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \
 
1335
              -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
 
1336
              -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
 
1337
              < $(srcdir)/wctype.in.h; \
 
1338
        } > $@-t && \
 
1339
        mv $@-t $@
 
1340
MOSTLYCLEANFILES += wctype.h wctype.h-t
 
1341
 
 
1342
EXTRA_DIST += wctype.in.h
 
1343
 
 
1344
## end   gnulib module wctype
 
1345
 
 
1346
## begin gnulib module xsize
 
1347
 
 
1348
libgnu_a_SOURCES += xsize.h
 
1349
 
 
1350
## end   gnulib module xsize
 
1351
 
 
1352
 
 
1353
mostlyclean-local: mostlyclean-generic
 
1354
        @for dir in '' $(MOSTLYCLEANDIRS); do \
 
1355
          if test -n "$$dir" && test -d $$dir; then \
 
1356
            echo "rmdir $$dir"; rmdir $$dir; \
 
1357
          fi; \
 
1358
        done; \
 
1359
        :