1## DO NOT EDIT! GENERATED AUTOMATICALLY!
2## Process this file with automake to produce Makefile.in.
3# Copyright (C) 2002-2018 Free Software Foundation, Inc.
4#
5# This file is free software; you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3 of the License, or
8# (at your option) any later version.
9#
10# This file is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this file.  If not, see <https://www.gnu.org/licenses/>.
17#
18# As a special exception to the GNU General Public License,
19# this file may be distributed as part of a program that
20# contains a configuration script generated by Autoconf, under
21# the same distribution terms as the rest of that program.
22#
23# Generated by gnulib-tool.
24
25AUTOMAKE_OPTIONS = 1.9.6 foreign subdir-objects
26
27SUBDIRS = .
28TESTS =
29XFAIL_TESTS =
30TESTS_ENVIRONMENT =
31noinst_PROGRAMS =
32check_PROGRAMS =
33EXTRA_PROGRAMS =
34noinst_HEADERS =
35noinst_LIBRARIES =
36check_LIBRARIES = libtests.a
37EXTRA_DIST =
38BUILT_SOURCES =
39SUFFIXES =
40MOSTLYCLEANFILES = core *.stackdump
41MOSTLYCLEANDIRS =
42CLEANFILES =
43DISTCLEANFILES =
44MAINTAINERCLEANFILES =
45
46AM_CPPFLAGS = \
47  -D@lgltests_WITNESS@=1 \
48  -I. -I$(srcdir) \
49  -I../.. -I$(srcdir)/../.. \
50  -I../../lib/gl -I$(srcdir)/../../lib/gl
51
52LDADD = libtests.a ../../lib/gl/libgnu.la libtests.a $(LIBTESTS_LIBDEPS)
53
54libtests_a_SOURCES =
55libtests_a_LIBADD = $(lgltests_LIBOBJS)
56libtests_a_DEPENDENCIES = $(lgltests_LIBOBJS)
57EXTRA_libtests_a_SOURCES =
58AM_LIBTOOLFLAGS = --preserve-dup-deps
59
60TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'
61
62## begin gnulib module alloca-opt
63
64BUILT_SOURCES += $(ALLOCA_H)
65
66# We need the following in order to create <alloca.h> when the system
67# doesn't have one that works with the given compiler.
68if GL_GENERATE_ALLOCA_H
69alloca.h: alloca.in.h $(top_builddir)/config.status
70	$(AM_V_GEN)rm -f $@-t $@ && \
71	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
72	  cat $(srcdir)/alloca.in.h; \
73	} > $@-t && \
74	mv -f $@-t $@
75else
76alloca.h: $(top_builddir)/config.status
77	rm -f $@
78endif
79MOSTLYCLEANFILES += alloca.h alloca.h-t
80
81EXTRA_DIST += alloca.in.h
82
83## end   gnulib module alloca-opt
84
85## begin gnulib module alloca-opt-tests
86
87TESTS += test-alloca-opt
88check_PROGRAMS += test-alloca-opt
89
90EXTRA_DIST += test-alloca-opt.c
91
92## end   gnulib module alloca-opt-tests
93
94## begin gnulib module c-ctype-tests
95
96TESTS += test-c-ctype
97check_PROGRAMS += test-c-ctype
98EXTRA_DIST += test-c-ctype.c macros.h
99
100## end   gnulib module c-ctype-tests
101
102## begin gnulib module c-strcase-tests
103
104TESTS += test-c-strcase.sh
105TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
106check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp
107EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c macros.h
108
109## end   gnulib module c-strcase-tests
110
111## begin gnulib module ctype
112
113BUILT_SOURCES += ctype.h
114
115# We need the following in order to create <ctype.h> when the system
116# doesn't have one that works with the given compiler.
117ctype.h: ctype.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
118	$(AM_V_GEN)rm -f $@-t $@ && \
119	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
120	  sed -e 's|@''GUARD_PREFIX''@|GL_LGL|g' \
121	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
122	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
123	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
124	      -e 's|@''NEXT_CTYPE_H''@|$(NEXT_CTYPE_H)|g' \
125	      -e 's/@''GNULIB_ISBLANK''@/$(GNULIB_ISBLANK)/g' \
126	      -e 's/@''HAVE_ISBLANK''@/$(HAVE_ISBLANK)/g' \
127	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
128	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
129	      < $(srcdir)/ctype.in.h; \
130	} > $@-t && \
131	mv $@-t $@
132MOSTLYCLEANFILES += ctype.h ctype.h-t
133
134EXTRA_DIST += ctype.in.h
135
136## end   gnulib module ctype
137
138## begin gnulib module ctype-tests
139
140TESTS += test-ctype
141check_PROGRAMS += test-ctype
142EXTRA_DIST += test-ctype.c
143
144## end   gnulib module ctype-tests
145
146## begin gnulib module environ-tests
147
148TESTS += test-environ
149check_PROGRAMS += test-environ
150
151EXTRA_DIST += test-environ.c
152
153## end   gnulib module environ-tests
154
155## begin gnulib module flexmember
156
157
158EXTRA_DIST += flexmember.h
159
160## end   gnulib module flexmember
161
162## begin gnulib module iconv-tests
163
164TESTS += test-iconv
165check_PROGRAMS += test-iconv
166test_iconv_LDADD = $(LDADD) @LIBICONV@
167
168EXTRA_DIST += test-iconv.c signature.h macros.h
169
170## end   gnulib module iconv-tests
171
172## begin gnulib module intprops
173
174
175EXTRA_DIST += intprops.h
176
177## end   gnulib module intprops
178
179## begin gnulib module intprops-tests
180
181TESTS += test-intprops
182check_PROGRAMS += test-intprops
183EXTRA_DIST += test-intprops.c macros.h
184
185## end   gnulib module intprops-tests
186
187## begin gnulib module inttypes-incomplete
188
189BUILT_SOURCES += inttypes.h
190
191# We need the following in order to create <inttypes.h> when the system
192# doesn't have one that works with the given compiler.
193inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
194	$(AM_V_GEN)rm -f $@-t $@ && \
195	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
196	  sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
197	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
198	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
199	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
200	      -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \
201	      -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \
202	      -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
203	      -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
204	      -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
205	      -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
206	      -e 's/@''GNULIB_IMAXABS''@/$(GNULIB_IMAXABS)/g' \
207	      -e 's/@''GNULIB_IMAXDIV''@/$(GNULIB_IMAXDIV)/g' \
208	      -e 's/@''GNULIB_STRTOIMAX''@/$(GNULIB_STRTOIMAX)/g' \
209	      -e 's/@''GNULIB_STRTOUMAX''@/$(GNULIB_STRTOUMAX)/g' \
210	      -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
211	      -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
212	      -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
213	      -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
214	      -e 's/@''REPLACE_STRTOIMAX''@/$(REPLACE_STRTOIMAX)/g' \
215	      -e 's/@''REPLACE_STRTOUMAX''@/$(REPLACE_STRTOUMAX)/g' \
216	      -e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \
217	      -e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \
218	      -e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \
219	      -e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \
220	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
221	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
222	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
223	      < $(srcdir)/inttypes.in.h; \
224	} > $@-t && \
225	mv $@-t $@
226MOSTLYCLEANFILES += inttypes.h inttypes.h-t
227
228EXTRA_DIST += inttypes.in.h
229
230## end   gnulib module inttypes-incomplete
231
232## begin gnulib module inttypes-tests
233
234TESTS += test-inttypes
235check_PROGRAMS += test-inttypes
236EXTRA_DIST += test-inttypes.c
237
238## end   gnulib module inttypes-tests
239
240## begin gnulib module isblank
241
242
243EXTRA_DIST += isblank.c
244
245EXTRA_libtests_a_SOURCES += isblank.c
246
247## end   gnulib module isblank
248
249## begin gnulib module isblank-tests
250
251TESTS += test-isblank
252check_PROGRAMS += test-isblank
253EXTRA_DIST += test-isblank.c signature.h macros.h
254
255## end   gnulib module isblank-tests
256
257## begin gnulib module langinfo
258
259BUILT_SOURCES += langinfo.h
260
261# We need the following in order to create an empty placeholder for
262# <langinfo.h> when the system doesn't have one.
263langinfo.h: langinfo.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H)
264	$(AM_V_GEN)rm -f $@-t $@ && \
265	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
266	  sed -e 's|@''GUARD_PREFIX''@|GL_LGL|g' \
267	      -e 's|@''HAVE_LANGINFO_H''@|$(HAVE_LANGINFO_H)|g' \
268	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
269	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
270	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
271	      -e 's|@''NEXT_LANGINFO_H''@|$(NEXT_LANGINFO_H)|g' \
272	      -e 's/@''GNULIB_NL_LANGINFO''@/$(GNULIB_NL_LANGINFO)/g' \
273	      -e 's|@''HAVE_LANGINFO_CODESET''@|$(HAVE_LANGINFO_CODESET)|g' \
274	      -e 's|@''HAVE_LANGINFO_T_FMT_AMPM''@|$(HAVE_LANGINFO_T_FMT_AMPM)|g' \
275	      -e 's|@''HAVE_LANGINFO_ALTMON''@|$(HAVE_LANGINFO_ALTMON)|g' \
276	      -e 's|@''HAVE_LANGINFO_ERA''@|$(HAVE_LANGINFO_ERA)|g' \
277	      -e 's|@''HAVE_LANGINFO_YESEXPR''@|$(HAVE_LANGINFO_YESEXPR)|g' \
278	      -e 's|@''HAVE_NL_LANGINFO''@|$(HAVE_NL_LANGINFO)|g' \
279	      -e 's|@''REPLACE_NL_LANGINFO''@|$(REPLACE_NL_LANGINFO)|g' \
280	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
281	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
282	      < $(srcdir)/langinfo.in.h; \
283	} > $@-t && \
284	mv $@-t $@
285MOSTLYCLEANFILES += langinfo.h langinfo.h-t
286
287EXTRA_DIST += langinfo.in.h
288
289## end   gnulib module langinfo
290
291## begin gnulib module langinfo-tests
292
293TESTS += test-langinfo
294check_PROGRAMS += test-langinfo
295EXTRA_DIST += test-langinfo.c
296
297## end   gnulib module langinfo-tests
298
299## begin gnulib module limits-h-tests
300
301TESTS += test-limits-h
302check_PROGRAMS += test-limits-h
303EXTRA_DIST += test-limits-h.c
304
305## end   gnulib module limits-h-tests
306
307## begin gnulib module locale
308
309BUILT_SOURCES += locale.h
310
311# We need the following in order to create <locale.h> when the system
312# doesn't have one that provides all definitions.
313locale.h: locale.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
314	$(AM_V_GEN)rm -f $@-t $@ && \
315	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
316	  sed -e 's|@''GUARD_PREFIX''@|GL_LGL|g' \
317	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
318	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
319	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
320	      -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
321	      -e 's/@''GNULIB_LOCALECONV''@/$(GNULIB_LOCALECONV)/g' \
322	      -e 's/@''GNULIB_SETLOCALE''@/$(GNULIB_SETLOCALE)/g' \
323	      -e 's/@''GNULIB_DUPLOCALE''@/$(GNULIB_DUPLOCALE)/g' \
324	      -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \
325	      -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
326	      -e 's|@''REPLACE_LOCALECONV''@|$(REPLACE_LOCALECONV)|g' \
327	      -e 's|@''REPLACE_SETLOCALE''@|$(REPLACE_SETLOCALE)|g' \
328	      -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
329	      -e 's|@''REPLACE_STRUCT_LCONV''@|$(REPLACE_STRUCT_LCONV)|g' \
330	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
331	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
332	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
333	      < $(srcdir)/locale.in.h; \
334	} > $@-t && \
335	mv $@-t $@
336MOSTLYCLEANFILES += locale.h locale.h-t
337
338EXTRA_DIST += locale.in.h
339
340## end   gnulib module locale
341
342## begin gnulib module locale-tests
343
344TESTS += test-locale
345check_PROGRAMS += test-locale
346EXTRA_DIST += test-locale.c
347
348## end   gnulib module locale-tests
349
350## begin gnulib module localename
351
352libtests_a_SOURCES += localename.c
353
354EXTRA_DIST += localename.h
355
356## end   gnulib module localename
357
358## begin gnulib module localename-tests
359
360TESTS += test-localename
361check_PROGRAMS += test-localename
362test_localename_LDADD = $(LDADD) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
363
364EXTRA_DIST += test-localename.c macros.h
365
366## end   gnulib module localename-tests
367
368## begin gnulib module lock
369
370libtests_a_SOURCES += glthread/lock.h glthread/lock.c
371
372## end   gnulib module lock
373
374## begin gnulib module lock-tests
375
376TESTS += test-rwlock1 test-lock
377check_PROGRAMS += test-rwlock1 test-lock
378test_rwlock1_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@
379test_lock_LDADD = $(LDADD) @LIBMULTITHREAD@ @YIELD_LIB@
380EXTRA_DIST += test-rwlock1.c test-lock.c
381
382## end   gnulib module lock-tests
383
384## begin gnulib module malloc-posix
385
386
387EXTRA_DIST += malloc.c
388
389EXTRA_libtests_a_SOURCES += malloc.c
390
391## end   gnulib module malloc-posix
392
393## begin gnulib module malloca
394
395libtests_a_SOURCES += malloca.c
396
397EXTRA_DIST += malloca.h
398
399## end   gnulib module malloca
400
401## begin gnulib module malloca-tests
402
403TESTS += test-malloca
404check_PROGRAMS += test-malloca
405
406EXTRA_DIST += test-malloca.c
407
408## end   gnulib module malloca-tests
409
410## begin gnulib module msvc-inval
411
412
413EXTRA_DIST += msvc-inval.c msvc-inval.h
414
415EXTRA_libtests_a_SOURCES += msvc-inval.c
416
417## end   gnulib module msvc-inval
418
419## begin gnulib module pthread_sigmask
420
421
422EXTRA_DIST += pthread_sigmask.c
423
424EXTRA_libtests_a_SOURCES += pthread_sigmask.c
425
426## end   gnulib module pthread_sigmask
427
428## begin gnulib module pthread_sigmask-tests
429
430TESTS += test-pthread_sigmask1 test-pthread_sigmask2
431check_PROGRAMS += test-pthread_sigmask1 test-pthread_sigmask2
432test_pthread_sigmask1_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@
433test_pthread_sigmask2_LDADD = $(LDADD) @LIB_PTHREAD_SIGMASK@ @LIBMULTITHREAD@
434EXTRA_DIST += test-pthread_sigmask1.c test-pthread_sigmask2.c signature.h macros.h
435
436## end   gnulib module pthread_sigmask-tests
437
438## begin gnulib module putenv
439
440
441EXTRA_DIST += putenv.c
442
443EXTRA_libtests_a_SOURCES += putenv.c
444
445## end   gnulib module putenv
446
447## begin gnulib module raise
448
449
450EXTRA_DIST += raise.c
451
452EXTRA_libtests_a_SOURCES += raise.c
453
454## end   gnulib module raise
455
456## begin gnulib module raise-tests
457
458TESTS += test-raise
459check_PROGRAMS += test-raise
460EXTRA_DIST += test-raise.c signature.h macros.h
461
462## end   gnulib module raise-tests
463
464## begin gnulib module setenv
465
466
467EXTRA_DIST += setenv.c
468
469EXTRA_libtests_a_SOURCES += setenv.c
470
471## end   gnulib module setenv
472
473## begin gnulib module setenv-tests
474
475TESTS += test-setenv
476check_PROGRAMS += test-setenv
477EXTRA_DIST += test-setenv.c signature.h macros.h
478
479## end   gnulib module setenv-tests
480
481## begin gnulib module setlocale
482
483
484EXTRA_DIST += setlocale.c
485
486EXTRA_libtests_a_SOURCES += setlocale.c
487
488## end   gnulib module setlocale
489
490## begin gnulib module setlocale-tests
491
492TESTS += test-setlocale1.sh test-setlocale2.sh
493TESTS_ENVIRONMENT += \
494  LOCALE_FR='@LOCALE_FR@' \
495  LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
496  LOCALE_JA='@LOCALE_JA@' \
497  LOCALE_ZH_CN='@LOCALE_ZH_CN@'
498check_PROGRAMS += test-setlocale1 test-setlocale2
499EXTRA_DIST += test-setlocale1.sh test-setlocale1.c test-setlocale2.sh test-setlocale2.c signature.h macros.h
500
501## end   gnulib module setlocale-tests
502
503## begin gnulib module signal-h
504
505BUILT_SOURCES += signal.h
506
507# We need the following in order to create <signal.h> when the system
508# doesn't have a complete one.
509signal.h: signal.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
510	$(AM_V_GEN)rm -f $@-t $@ && \
511	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
512	  sed -e 's|@''GUARD_PREFIX''@|GL_LGL|g' \
513	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
514	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
515	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
516	      -e 's|@''NEXT_SIGNAL_H''@|$(NEXT_SIGNAL_H)|g' \
517	      -e 's/@''GNULIB_PTHREAD_SIGMASK''@/$(GNULIB_PTHREAD_SIGMASK)/g' \
518	      -e 's/@''GNULIB_RAISE''@/$(GNULIB_RAISE)/g' \
519	      -e 's/@''GNULIB_SIGNAL_H_SIGPIPE''@/$(GNULIB_SIGNAL_H_SIGPIPE)/g' \
520	      -e 's/@''GNULIB_SIGPROCMASK''@/$(GNULIB_SIGPROCMASK)/g' \
521	      -e 's/@''GNULIB_SIGACTION''@/$(GNULIB_SIGACTION)/g' \
522	      -e 's|@''HAVE_POSIX_SIGNALBLOCKING''@|$(HAVE_POSIX_SIGNALBLOCKING)|g' \
523	      -e 's|@''HAVE_PTHREAD_SIGMASK''@|$(HAVE_PTHREAD_SIGMASK)|g' \
524	      -e 's|@''HAVE_RAISE''@|$(HAVE_RAISE)|g' \
525	      -e 's|@''HAVE_SIGSET_T''@|$(HAVE_SIGSET_T)|g' \
526	      -e 's|@''HAVE_SIGINFO_T''@|$(HAVE_SIGINFO_T)|g' \
527	      -e 's|@''HAVE_SIGACTION''@|$(HAVE_SIGACTION)|g' \
528	      -e 's|@''HAVE_STRUCT_SIGACTION_SA_SIGACTION''@|$(HAVE_STRUCT_SIGACTION_SA_SIGACTION)|g' \
529	      -e 's|@''HAVE_TYPE_VOLATILE_SIG_ATOMIC_T''@|$(HAVE_TYPE_VOLATILE_SIG_ATOMIC_T)|g' \
530	      -e 's|@''HAVE_SIGHANDLER_T''@|$(HAVE_SIGHANDLER_T)|g' \
531	      -e 's|@''REPLACE_PTHREAD_SIGMASK''@|$(REPLACE_PTHREAD_SIGMASK)|g' \
532	      -e 's|@''REPLACE_RAISE''@|$(REPLACE_RAISE)|g' \
533	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
534	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
535	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
536	      < $(srcdir)/signal.in.h; \
537	} > $@-t && \
538	mv $@-t $@
539MOSTLYCLEANFILES += signal.h signal.h-t
540
541EXTRA_DIST += signal.in.h
542
543## end   gnulib module signal-h
544
545## begin gnulib module signal-h-tests
546
547TESTS += test-signal-h
548check_PROGRAMS += test-signal-h
549EXTRA_DIST += test-signal-h.c
550
551## end   gnulib module signal-h-tests
552
553## begin gnulib module sigprocmask
554
555
556EXTRA_DIST += sigprocmask.c
557
558EXTRA_libtests_a_SOURCES += sigprocmask.c
559
560## end   gnulib module sigprocmask
561
562## begin gnulib module sigprocmask-tests
563
564TESTS += test-sigprocmask
565check_PROGRAMS += test-sigprocmask
566EXTRA_DIST += test-sigprocmask.c signature.h macros.h
567
568## end   gnulib module sigprocmask-tests
569
570## begin gnulib module sleep
571
572
573EXTRA_DIST += sleep.c
574
575EXTRA_libtests_a_SOURCES += sleep.c
576
577## end   gnulib module sleep
578
579## begin gnulib module sleep-tests
580
581TESTS += test-sleep
582check_PROGRAMS += test-sleep
583EXTRA_DIST += test-sleep.c signature.h macros.h
584
585## end   gnulib module sleep-tests
586
587## begin gnulib module snippet/_Noreturn
588
589# Because this Makefile snippet defines a variable used by other
590# gnulib Makefile snippets, it must be present in all makefiles that
591# need it. This is ensured by the applicability 'all' defined above.
592
593_NORETURN_H=$(srcdir)/_Noreturn.h
594
595EXTRA_DIST += _Noreturn.h
596
597## end   gnulib module snippet/_Noreturn
598
599## begin gnulib module snippet/arg-nonnull
600
601# Because this Makefile snippet defines a variable used by other
602# gnulib Makefile snippets, it must be present in all makefiles that
603# need it. This is ensured by the applicability 'all' defined above.
604
605ARG_NONNULL_H=$(srcdir)/arg-nonnull.h
606
607EXTRA_DIST += arg-nonnull.h
608
609## end   gnulib module snippet/arg-nonnull
610
611## begin gnulib module snippet/c++defs
612
613# Because this Makefile snippet defines a variable used by other
614# gnulib Makefile snippets, it must be present in all makefiles that
615# need it. This is ensured by the applicability 'all' defined above.
616
617CXXDEFS_H=$(srcdir)/c++defs.h
618
619EXTRA_DIST += c++defs.h
620
621## end   gnulib module snippet/c++defs
622
623## begin gnulib module snippet/unused-parameter
624
625# Because this Makefile snippet defines a variable used by other
626# gnulib Makefile snippets, it must be present in all makefiles that
627# need it. This is ensured by the applicability 'all' defined above.
628
629UNUSED_PARAMETER_H=$(srcdir)/unused-parameter.h
630
631EXTRA_DIST += unused-parameter.h
632
633## end   gnulib module snippet/unused-parameter
634
635## begin gnulib module snippet/warn-on-use
636
637# Because this Makefile snippet defines a variable used by other
638# gnulib Makefile snippets, it must be present in all makefiles that
639# need it. This is ensured by the applicability 'all' defined above.
640
641WARN_ON_USE_H=$(srcdir)/warn-on-use.h
642
643EXTRA_DIST += warn-on-use.h
644
645## end   gnulib module snippet/warn-on-use
646
647## begin gnulib module stdalign
648
649BUILT_SOURCES += $(STDALIGN_H)
650
651# We need the following in order to create <stdalign.h> when the system
652# doesn't have one that works.
653if GL_GENERATE_STDALIGN_H
654stdalign.h: stdalign.in.h $(top_builddir)/config.status
655	$(AM_V_GEN)rm -f $@-t $@ && \
656	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
657	  cat $(srcdir)/stdalign.in.h; \
658	} > $@-t && \
659	mv $@-t $@
660else
661stdalign.h: $(top_builddir)/config.status
662	rm -f $@
663endif
664MOSTLYCLEANFILES += stdalign.h stdalign.h-t
665
666EXTRA_DIST += stdalign.in.h
667
668## end   gnulib module stdalign
669
670## begin gnulib module stdalign-tests
671
672TESTS += test-stdalign
673check_PROGRAMS += test-stdalign
674EXTRA_DIST += test-stdalign.c macros.h
675
676## end   gnulib module stdalign-tests
677
678## begin gnulib module stdbool-tests
679
680TESTS += test-stdbool
681check_PROGRAMS += test-stdbool
682EXTRA_DIST += test-stdbool.c
683
684## end   gnulib module stdbool-tests
685
686## begin gnulib module stddef-tests
687
688TESTS += test-stddef
689check_PROGRAMS += test-stddef
690EXTRA_DIST += test-stddef.c
691
692## end   gnulib module stddef-tests
693
694## begin gnulib module stdint-tests
695
696TESTS += test-stdint
697check_PROGRAMS += test-stdint
698EXTRA_DIST += test-stdint.c
699
700## end   gnulib module stdint-tests
701
702## begin gnulib module stdlib
703
704BUILT_SOURCES += stdlib.h
705
706# We need the following in order to create <stdlib.h> when the system
707# doesn't have one that works with the given compiler.
708stdlib.h: stdlib.in.h $(top_builddir)/config.status $(CXXDEFS_H) \
709  $(_NORETURN_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
710	$(AM_V_GEN)rm -f $@-t $@ && \
711	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
712	  sed -e 's|@''GUARD_PREFIX''@|GL_LGL|g' \
713	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
714	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
715	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
716	      -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
717	      -e 's/@''GNULIB__EXIT''@/$(GNULIB__EXIT)/g' \
718	      -e 's/@''GNULIB_ATOLL''@/$(GNULIB_ATOLL)/g' \
719	      -e 's/@''GNULIB_CALLOC_POSIX''@/$(GNULIB_CALLOC_POSIX)/g' \
720	      -e 's/@''GNULIB_CANONICALIZE_FILE_NAME''@/$(GNULIB_CANONICALIZE_FILE_NAME)/g' \
721	      -e 's/@''GNULIB_GETLOADAVG''@/$(GNULIB_GETLOADAVG)/g' \
722	      -e 's/@''GNULIB_GETSUBOPT''@/$(GNULIB_GETSUBOPT)/g' \
723	      -e 's/@''GNULIB_GRANTPT''@/$(GNULIB_GRANTPT)/g' \
724	      -e 's/@''GNULIB_MALLOC_POSIX''@/$(GNULIB_MALLOC_POSIX)/g' \
725	      -e 's/@''GNULIB_MBTOWC''@/$(GNULIB_MBTOWC)/g' \
726	      -e 's/@''GNULIB_MKDTEMP''@/$(GNULIB_MKDTEMP)/g' \
727	      -e 's/@''GNULIB_MKOSTEMP''@/$(GNULIB_MKOSTEMP)/g' \
728	      -e 's/@''GNULIB_MKOSTEMPS''@/$(GNULIB_MKOSTEMPS)/g' \
729	      -e 's/@''GNULIB_MKSTEMP''@/$(GNULIB_MKSTEMP)/g' \
730	      -e 's/@''GNULIB_MKSTEMPS''@/$(GNULIB_MKSTEMPS)/g' \
731	      -e 's/@''GNULIB_POSIX_OPENPT''@/$(GNULIB_POSIX_OPENPT)/g' \
732	      -e 's/@''GNULIB_PTSNAME''@/$(GNULIB_PTSNAME)/g' \
733	      -e 's/@''GNULIB_PTSNAME_R''@/$(GNULIB_PTSNAME_R)/g' \
734	      -e 's/@''GNULIB_PUTENV''@/$(GNULIB_PUTENV)/g' \
735	      -e 's/@''GNULIB_QSORT_R''@/$(GNULIB_QSORT_R)/g' \
736	      -e 's/@''GNULIB_RANDOM''@/$(GNULIB_RANDOM)/g' \
737	      -e 's/@''GNULIB_RANDOM_R''@/$(GNULIB_RANDOM_R)/g' \
738	      -e 's/@''GNULIB_REALLOC_POSIX''@/$(GNULIB_REALLOC_POSIX)/g' \
739	      -e 's/@''GNULIB_REALLOCARRAY''@/$(GNULIB_REALLOCARRAY)/g' \
740	      -e 's/@''GNULIB_REALPATH''@/$(GNULIB_REALPATH)/g' \
741	      -e 's/@''GNULIB_RPMATCH''@/$(GNULIB_RPMATCH)/g' \
742	      -e 's/@''GNULIB_SECURE_GETENV''@/$(GNULIB_SECURE_GETENV)/g' \
743	      -e 's/@''GNULIB_SETENV''@/$(GNULIB_SETENV)/g' \
744	      -e 's/@''GNULIB_STRTOD''@/$(GNULIB_STRTOD)/g' \
745	      -e 's/@''GNULIB_STRTOLL''@/$(GNULIB_STRTOLL)/g' \
746	      -e 's/@''GNULIB_STRTOULL''@/$(GNULIB_STRTOULL)/g' \
747	      -e 's/@''GNULIB_SYSTEM_POSIX''@/$(GNULIB_SYSTEM_POSIX)/g' \
748	      -e 's/@''GNULIB_UNLOCKPT''@/$(GNULIB_UNLOCKPT)/g' \
749	      -e 's/@''GNULIB_UNSETENV''@/$(GNULIB_UNSETENV)/g' \
750	      -e 's/@''GNULIB_WCTOMB''@/$(GNULIB_WCTOMB)/g' \
751	      < $(srcdir)/stdlib.in.h | \
752	  sed -e 's|@''HAVE__EXIT''@|$(HAVE__EXIT)|g' \
753	      -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
754	      -e 's|@''HAVE_CANONICALIZE_FILE_NAME''@|$(HAVE_CANONICALIZE_FILE_NAME)|g' \
755	      -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
756	      -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
757	      -e 's|@''HAVE_GRANTPT''@|$(HAVE_GRANTPT)|g' \
758	      -e 's|@''HAVE_DECL_INITSTATE''@|$(HAVE_DECL_INITSTATE)|g' \
759	      -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
760	      -e 's|@''HAVE_MKOSTEMP''@|$(HAVE_MKOSTEMP)|g' \
761	      -e 's|@''HAVE_MKOSTEMPS''@|$(HAVE_MKOSTEMPS)|g' \
762	      -e 's|@''HAVE_MKSTEMP''@|$(HAVE_MKSTEMP)|g' \
763	      -e 's|@''HAVE_MKSTEMPS''@|$(HAVE_MKSTEMPS)|g' \
764	      -e 's|@''HAVE_POSIX_OPENPT''@|$(HAVE_POSIX_OPENPT)|g' \
765	      -e 's|@''HAVE_PTSNAME''@|$(HAVE_PTSNAME)|g' \
766	      -e 's|@''HAVE_PTSNAME_R''@|$(HAVE_PTSNAME_R)|g' \
767	      -e 's|@''HAVE_QSORT_R''@|$(HAVE_QSORT_R)|g' \
768	      -e 's|@''HAVE_RANDOM''@|$(HAVE_RANDOM)|g' \
769	      -e 's|@''HAVE_RANDOM_H''@|$(HAVE_RANDOM_H)|g' \
770	      -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
771	      -e 's|@''HAVE_REALLOCARRAY''@|$(HAVE_REALLOCARRAY)|g' \
772	      -e 's|@''HAVE_REALPATH''@|$(HAVE_REALPATH)|g' \
773	      -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
774	      -e 's|@''HAVE_SECURE_GETENV''@|$(HAVE_SECURE_GETENV)|g' \
775	      -e 's|@''HAVE_DECL_SETENV''@|$(HAVE_DECL_SETENV)|g' \
776	      -e 's|@''HAVE_DECL_SETSTATE''@|$(HAVE_DECL_SETSTATE)|g' \
777	      -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
778	      -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
779	      -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
780	      -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
781	      -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
782	      -e 's|@''HAVE_UNLOCKPT''@|$(HAVE_UNLOCKPT)|g' \
783	      -e 's|@''HAVE_DECL_UNSETENV''@|$(HAVE_DECL_UNSETENV)|g' \
784	      -e 's|@''REPLACE_CALLOC''@|$(REPLACE_CALLOC)|g' \
785	      -e 's|@''REPLACE_CANONICALIZE_FILE_NAME''@|$(REPLACE_CANONICALIZE_FILE_NAME)|g' \
786	      -e 's|@''REPLACE_MALLOC''@|$(REPLACE_MALLOC)|g' \
787	      -e 's|@''REPLACE_MBTOWC''@|$(REPLACE_MBTOWC)|g' \
788	      -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
789	      -e 's|@''REPLACE_PTSNAME''@|$(REPLACE_PTSNAME)|g' \
790	      -e 's|@''REPLACE_PTSNAME_R''@|$(REPLACE_PTSNAME_R)|g' \
791	      -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
792	      -e 's|@''REPLACE_QSORT_R''@|$(REPLACE_QSORT_R)|g' \
793	      -e 's|@''REPLACE_RANDOM_R''@|$(REPLACE_RANDOM_R)|g' \
794	      -e 's|@''REPLACE_REALLOC''@|$(REPLACE_REALLOC)|g' \
795	      -e 's|@''REPLACE_REALPATH''@|$(REPLACE_REALPATH)|g' \
796	      -e 's|@''REPLACE_SETENV''@|$(REPLACE_SETENV)|g' \
797	      -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
798	      -e 's|@''REPLACE_UNSETENV''@|$(REPLACE_UNSETENV)|g' \
799	      -e 's|@''REPLACE_WCTOMB''@|$(REPLACE_WCTOMB)|g' \
800	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
801	      -e '/definition of _Noreturn/r $(_NORETURN_H)' \
802	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
803	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
804	} > $@-t && \
805	mv $@-t $@
806MOSTLYCLEANFILES += stdlib.h stdlib.h-t
807
808EXTRA_DIST += stdlib.in.h
809
810## end   gnulib module stdlib
811
812## begin gnulib module stdlib-tests
813
814TESTS += test-stdlib
815check_PROGRAMS += test-stdlib
816EXTRA_DIST += test-stdlib.c test-sys_wait.h
817
818## end   gnulib module stdlib-tests
819
820## begin gnulib module striconv-tests
821
822TESTS += test-striconv
823check_PROGRAMS += test-striconv
824test_striconv_LDADD = $(LDADD) @LIBICONV@
825
826EXTRA_DIST += test-striconv.c macros.h
827
828## end   gnulib module striconv-tests
829
830## begin gnulib module strverscmp-tests
831
832TESTS += test-strverscmp
833check_PROGRAMS += test-strverscmp
834EXTRA_DIST += test-strverscmp.c signature.h macros.h
835
836## end   gnulib module strverscmp-tests
837
838## begin gnulib module sys_types-tests
839
840TESTS += test-sys_types
841check_PROGRAMS += test-sys_types
842EXTRA_DIST += test-sys_types.c
843
844## end   gnulib module sys_types-tests
845
846## begin gnulib module test-framework-sh-tests
847
848TESTS += test-init.sh
849EXTRA_DIST += init.sh
850EXTRA_DIST += test-init.sh
851
852## end   gnulib module test-framework-sh-tests
853
854## begin gnulib module thread
855
856libtests_a_SOURCES += glthread/thread.h glthread/thread.c
857
858## end   gnulib module thread
859
860## begin gnulib module thread-tests
861
862TESTS += test-thread_self test-thread_create
863check_PROGRAMS += test-thread_self test-thread_create
864test_thread_self_LDADD = $(LDADD) @LIBTHREAD@
865test_thread_create_LDADD = $(LDADD) @LIBMULTITHREAD@
866EXTRA_DIST += test-thread_self.c test-thread_create.c macros.h
867
868## end   gnulib module thread-tests
869
870## begin gnulib module threadlib
871
872libtests_a_SOURCES += glthread/threadlib.c
873
874EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
875
876## end   gnulib module threadlib
877
878## begin gnulib module time
879
880BUILT_SOURCES += time.h
881
882# We need the following in order to create <time.h> when the system
883# doesn't have one that works with the given compiler.
884time.h: time.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
885	$(AM_V_GEN)rm -f $@-t $@ && \
886	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
887	  sed -e 's|@''GUARD_PREFIX''@|GL_LGL|g' \
888	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
889	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
890	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
891	      -e 's|@''NEXT_TIME_H''@|$(NEXT_TIME_H)|g' \
892	      -e 's/@''GNULIB_CTIME''@/$(GNULIB_CTIME)/g' \
893	      -e 's/@''GNULIB_LOCALTIME''@/$(GNULIB_LOCALTIME)/g' \
894	      -e 's/@''GNULIB_MKTIME''@/$(GNULIB_MKTIME)/g' \
895	      -e 's/@''GNULIB_NANOSLEEP''@/$(GNULIB_NANOSLEEP)/g' \
896	      -e 's/@''GNULIB_STRFTIME''@/$(GNULIB_STRFTIME)/g' \
897	      -e 's/@''GNULIB_STRPTIME''@/$(GNULIB_STRPTIME)/g' \
898	      -e 's/@''GNULIB_TIMEGM''@/$(GNULIB_TIMEGM)/g' \
899	      -e 's/@''GNULIB_TIME_R''@/$(GNULIB_TIME_R)/g' \
900	      -e 's/@''GNULIB_TIME_RZ''@/$(GNULIB_TIME_RZ)/g' \
901	      -e 's/@''GNULIB_TZSET''@/$(GNULIB_TZSET)/g' \
902	      -e 's|@''HAVE_DECL_LOCALTIME_R''@|$(HAVE_DECL_LOCALTIME_R)|g' \
903	      -e 's|@''HAVE_NANOSLEEP''@|$(HAVE_NANOSLEEP)|g' \
904	      -e 's|@''HAVE_STRPTIME''@|$(HAVE_STRPTIME)|g' \
905	      -e 's|@''HAVE_TIMEGM''@|$(HAVE_TIMEGM)|g' \
906	      -e 's|@''HAVE_TIMEZONE_T''@|$(HAVE_TIMEZONE_T)|g' \
907	      -e 's|@''HAVE_TZSET''@|$(HAVE_TZSET)|g' \
908	      -e 's|@''REPLACE_CTIME''@|$(REPLACE_CTIME)|g' \
909	      -e 's|@''REPLACE_GMTIME''@|$(REPLACE_GMTIME)|g' \
910	      -e 's|@''REPLACE_LOCALTIME''@|$(REPLACE_LOCALTIME)|g' \
911	      -e 's|@''REPLACE_LOCALTIME_R''@|$(REPLACE_LOCALTIME_R)|g' \
912	      -e 's|@''REPLACE_MKTIME''@|$(REPLACE_MKTIME)|g' \
913	      -e 's|@''REPLACE_NANOSLEEP''@|$(REPLACE_NANOSLEEP)|g' \
914	      -e 's|@''REPLACE_STRFTIME''@|$(REPLACE_STRFTIME)|g' \
915	      -e 's|@''REPLACE_TIMEGM''@|$(REPLACE_TIMEGM)|g' \
916	      -e 's|@''REPLACE_TZSET''@|$(REPLACE_TZSET)|g' \
917	      -e 's|@''PTHREAD_H_DEFINES_STRUCT_TIMESPEC''@|$(PTHREAD_H_DEFINES_STRUCT_TIMESPEC)|g' \
918	      -e 's|@''SYS_TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(SYS_TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
919	      -e 's|@''TIME_H_DEFINES_STRUCT_TIMESPEC''@|$(TIME_H_DEFINES_STRUCT_TIMESPEC)|g' \
920	      -e 's|@''UNISTD_H_DEFINES_STRUCT_TIMESPEC''@|$(UNISTD_H_DEFINES_STRUCT_TIMESPEC)|g' \
921	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
922	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
923	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
924	      < $(srcdir)/time.in.h; \
925	} > $@-t && \
926	mv $@-t $@
927MOSTLYCLEANFILES += time.h time.h-t
928
929EXTRA_DIST += time.in.h
930
931## end   gnulib module time
932
933## begin gnulib module time-tests
934
935TESTS += test-time
936check_PROGRAMS += test-time
937EXTRA_DIST += test-time.c
938
939## end   gnulib module time-tests
940
941## begin gnulib module unistd
942
943BUILT_SOURCES += unistd.h
944libtests_a_SOURCES += unistd.c
945
946# We need the following in order to create an empty placeholder for
947# <unistd.h> when the system doesn't have one.
948unistd.h: unistd.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
949	$(AM_V_GEN)rm -f $@-t $@ && \
950	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
951	  sed -e 's|@''GUARD_PREFIX''@|GL_LGL|g' \
952	      -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
953	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
954	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
955	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
956	      -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
957	      -e 's|@''WINDOWS_64_BIT_OFF_T''@|$(WINDOWS_64_BIT_OFF_T)|g' \
958	      -e 's/@''GNULIB_CHDIR''@/$(GNULIB_CHDIR)/g' \
959	      -e 's/@''GNULIB_CHOWN''@/$(GNULIB_CHOWN)/g' \
960	      -e 's/@''GNULIB_CLOSE''@/$(GNULIB_CLOSE)/g' \
961	      -e 's/@''GNULIB_DUP''@/$(GNULIB_DUP)/g' \
962	      -e 's/@''GNULIB_DUP2''@/$(GNULIB_DUP2)/g' \
963	      -e 's/@''GNULIB_DUP3''@/$(GNULIB_DUP3)/g' \
964	      -e 's/@''GNULIB_ENVIRON''@/$(GNULIB_ENVIRON)/g' \
965	      -e 's/@''GNULIB_EUIDACCESS''@/$(GNULIB_EUIDACCESS)/g' \
966	      -e 's/@''GNULIB_FACCESSAT''@/$(GNULIB_FACCESSAT)/g' \
967	      -e 's/@''GNULIB_FCHDIR''@/$(GNULIB_FCHDIR)/g' \
968	      -e 's/@''GNULIB_FCHOWNAT''@/$(GNULIB_FCHOWNAT)/g' \
969	      -e 's/@''GNULIB_FDATASYNC''@/$(GNULIB_FDATASYNC)/g' \
970	      -e 's/@''GNULIB_FSYNC''@/$(GNULIB_FSYNC)/g' \
971	      -e 's/@''GNULIB_FTRUNCATE''@/$(GNULIB_FTRUNCATE)/g' \
972	      -e 's/@''GNULIB_GETCWD''@/$(GNULIB_GETCWD)/g' \
973	      -e 's/@''GNULIB_GETDOMAINNAME''@/$(GNULIB_GETDOMAINNAME)/g' \
974	      -e 's/@''GNULIB_GETDTABLESIZE''@/$(GNULIB_GETDTABLESIZE)/g' \
975	      -e 's/@''GNULIB_GETGROUPS''@/$(GNULIB_GETGROUPS)/g' \
976	      -e 's/@''GNULIB_GETHOSTNAME''@/$(GNULIB_GETHOSTNAME)/g' \
977	      -e 's/@''GNULIB_GETLOGIN''@/$(GNULIB_GETLOGIN)/g' \
978	      -e 's/@''GNULIB_GETLOGIN_R''@/$(GNULIB_GETLOGIN_R)/g' \
979	      -e 's/@''GNULIB_GETPAGESIZE''@/$(GNULIB_GETPAGESIZE)/g' \
980	      -e 's/@''GNULIB_GETUSERSHELL''@/$(GNULIB_GETUSERSHELL)/g' \
981	      -e 's/@''GNULIB_GROUP_MEMBER''@/$(GNULIB_GROUP_MEMBER)/g' \
982	      -e 's/@''GNULIB_ISATTY''@/$(GNULIB_ISATTY)/g' \
983	      -e 's/@''GNULIB_LCHOWN''@/$(GNULIB_LCHOWN)/g' \
984	      -e 's/@''GNULIB_LINK''@/$(GNULIB_LINK)/g' \
985	      -e 's/@''GNULIB_LINKAT''@/$(GNULIB_LINKAT)/g' \
986	      -e 's/@''GNULIB_LSEEK''@/$(GNULIB_LSEEK)/g' \
987	      -e 's/@''GNULIB_PIPE''@/$(GNULIB_PIPE)/g' \
988	      -e 's/@''GNULIB_PIPE2''@/$(GNULIB_PIPE2)/g' \
989	      -e 's/@''GNULIB_PREAD''@/$(GNULIB_PREAD)/g' \
990	      -e 's/@''GNULIB_PWRITE''@/$(GNULIB_PWRITE)/g' \
991	      -e 's/@''GNULIB_READ''@/$(GNULIB_READ)/g' \
992	      -e 's/@''GNULIB_READLINK''@/$(GNULIB_READLINK)/g' \
993	      -e 's/@''GNULIB_READLINKAT''@/$(GNULIB_READLINKAT)/g' \
994	      -e 's/@''GNULIB_RMDIR''@/$(GNULIB_RMDIR)/g' \
995	      -e 's/@''GNULIB_SETHOSTNAME''@/$(GNULIB_SETHOSTNAME)/g' \
996	      -e 's/@''GNULIB_SLEEP''@/$(GNULIB_SLEEP)/g' \
997	      -e 's/@''GNULIB_SYMLINK''@/$(GNULIB_SYMLINK)/g' \
998	      -e 's/@''GNULIB_SYMLINKAT''@/$(GNULIB_SYMLINKAT)/g' \
999	      -e 's/@''GNULIB_TRUNCATE''@/$(GNULIB_TRUNCATE)/g' \
1000	      -e 's/@''GNULIB_TTYNAME_R''@/$(GNULIB_TTYNAME_R)/g' \
1001	      -e 's/@''GNULIB_UNISTD_H_GETOPT''@/0$(GNULIB_GL_LGL_UNISTD_H_GETOPT)/g' \
1002	      -e 's/@''GNULIB_UNISTD_H_NONBLOCKING''@/$(GNULIB_UNISTD_H_NONBLOCKING)/g' \
1003	      -e 's/@''GNULIB_UNISTD_H_SIGPIPE''@/$(GNULIB_UNISTD_H_SIGPIPE)/g' \
1004	      -e 's/@''GNULIB_UNLINK''@/$(GNULIB_UNLINK)/g' \
1005	      -e 's/@''GNULIB_UNLINKAT''@/$(GNULIB_UNLINKAT)/g' \
1006	      -e 's/@''GNULIB_USLEEP''@/$(GNULIB_USLEEP)/g' \
1007	      -e 's/@''GNULIB_WRITE''@/$(GNULIB_WRITE)/g' \
1008	      < $(srcdir)/unistd.in.h | \
1009	  sed -e 's|@''HAVE_CHOWN''@|$(HAVE_CHOWN)|g' \
1010	      -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
1011	      -e 's|@''HAVE_DUP3''@|$(HAVE_DUP3)|g' \
1012	      -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
1013	      -e 's|@''HAVE_FACCESSAT''@|$(HAVE_FACCESSAT)|g' \
1014	      -e 's|@''HAVE_FCHDIR''@|$(HAVE_FCHDIR)|g' \
1015	      -e 's|@''HAVE_FCHOWNAT''@|$(HAVE_FCHOWNAT)|g' \
1016	      -e 's|@''HAVE_FDATASYNC''@|$(HAVE_FDATASYNC)|g' \
1017	      -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
1018	      -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
1019	      -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
1020	      -e 's|@''HAVE_GETGROUPS''@|$(HAVE_GETGROUPS)|g' \
1021	      -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
1022	      -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
1023	      -e 's|@''HAVE_GROUP_MEMBER''@|$(HAVE_GROUP_MEMBER)|g' \
1024	      -e 's|@''HAVE_LCHOWN''@|$(HAVE_LCHOWN)|g' \
1025	      -e 's|@''HAVE_LINK''@|$(HAVE_LINK)|g' \
1026	      -e 's|@''HAVE_LINKAT''@|$(HAVE_LINKAT)|g' \
1027	      -e 's|@''HAVE_PIPE''@|$(HAVE_PIPE)|g' \
1028	      -e 's|@''HAVE_PIPE2''@|$(HAVE_PIPE2)|g' \
1029	      -e 's|@''HAVE_PREAD''@|$(HAVE_PREAD)|g' \
1030	      -e 's|@''HAVE_PWRITE''@|$(HAVE_PWRITE)|g' \
1031	      -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
1032	      -e 's|@''HAVE_READLINKAT''@|$(HAVE_READLINKAT)|g' \
1033	      -e 's|@''HAVE_SETHOSTNAME''@|$(HAVE_SETHOSTNAME)|g' \
1034	      -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
1035	      -e 's|@''HAVE_SYMLINK''@|$(HAVE_SYMLINK)|g' \
1036	      -e 's|@''HAVE_SYMLINKAT''@|$(HAVE_SYMLINKAT)|g' \
1037	      -e 's|@''HAVE_TRUNCATE''@|$(HAVE_TRUNCATE)|g' \
1038	      -e 's|@''HAVE_UNLINKAT''@|$(HAVE_UNLINKAT)|g' \
1039	      -e 's|@''HAVE_USLEEP''@|$(HAVE_USLEEP)|g' \
1040	      -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
1041	      -e 's|@''HAVE_DECL_FCHDIR''@|$(HAVE_DECL_FCHDIR)|g' \
1042	      -e 's|@''HAVE_DECL_FDATASYNC''@|$(HAVE_DECL_FDATASYNC)|g' \
1043	      -e 's|@''HAVE_DECL_GETDOMAINNAME''@|$(HAVE_DECL_GETDOMAINNAME)|g' \
1044	      -e 's|@''HAVE_DECL_GETLOGIN''@|$(HAVE_DECL_GETLOGIN)|g' \
1045	      -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
1046	      -e 's|@''HAVE_DECL_GETPAGESIZE''@|$(HAVE_DECL_GETPAGESIZE)|g' \
1047	      -e 's|@''HAVE_DECL_GETUSERSHELL''@|$(HAVE_DECL_GETUSERSHELL)|g' \
1048	      -e 's|@''HAVE_DECL_SETHOSTNAME''@|$(HAVE_DECL_SETHOSTNAME)|g' \
1049	      -e 's|@''HAVE_DECL_TTYNAME_R''@|$(HAVE_DECL_TTYNAME_R)|g' \
1050	      -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
1051	      -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
1052	  | \
1053	  sed -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
1054	      -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
1055	      -e 's|@''REPLACE_DUP''@|$(REPLACE_DUP)|g' \
1056	      -e 's|@''REPLACE_DUP2''@|$(REPLACE_DUP2)|g' \
1057	      -e 's|@''REPLACE_FACCESSAT''@|$(REPLACE_FACCESSAT)|g' \
1058	      -e 's|@''REPLACE_FCHOWNAT''@|$(REPLACE_FCHOWNAT)|g' \
1059	      -e 's|@''REPLACE_FTRUNCATE''@|$(REPLACE_FTRUNCATE)|g' \
1060	      -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
1061	      -e 's|@''REPLACE_GETDOMAINNAME''@|$(REPLACE_GETDOMAINNAME)|g' \
1062	      -e 's|@''REPLACE_GETDTABLESIZE''@|$(REPLACE_GETDTABLESIZE)|g' \
1063	      -e 's|@''REPLACE_GETLOGIN_R''@|$(REPLACE_GETLOGIN_R)|g' \
1064	      -e 's|@''REPLACE_GETGROUPS''@|$(REPLACE_GETGROUPS)|g' \
1065	      -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
1066	      -e 's|@''REPLACE_ISATTY''@|$(REPLACE_ISATTY)|g' \
1067	      -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
1068	      -e 's|@''REPLACE_LINK''@|$(REPLACE_LINK)|g' \
1069	      -e 's|@''REPLACE_LINKAT''@|$(REPLACE_LINKAT)|g' \
1070	      -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
1071	      -e 's|@''REPLACE_PREAD''@|$(REPLACE_PREAD)|g' \
1072	      -e 's|@''REPLACE_PWRITE''@|$(REPLACE_PWRITE)|g' \
1073	      -e 's|@''REPLACE_READ''@|$(REPLACE_READ)|g' \
1074	      -e 's|@''REPLACE_READLINK''@|$(REPLACE_READLINK)|g' \
1075	      -e 's|@''REPLACE_READLINKAT''@|$(REPLACE_READLINKAT)|g' \
1076	      -e 's|@''REPLACE_RMDIR''@|$(REPLACE_RMDIR)|g' \
1077	      -e 's|@''REPLACE_SLEEP''@|$(REPLACE_SLEEP)|g' \
1078	      -e 's|@''REPLACE_SYMLINK''@|$(REPLACE_SYMLINK)|g' \
1079	      -e 's|@''REPLACE_SYMLINKAT''@|$(REPLACE_SYMLINKAT)|g' \
1080	      -e 's|@''REPLACE_TRUNCATE''@|$(REPLACE_TRUNCATE)|g' \
1081	      -e 's|@''REPLACE_TTYNAME_R''@|$(REPLACE_TTYNAME_R)|g' \
1082	      -e 's|@''REPLACE_UNLINK''@|$(REPLACE_UNLINK)|g' \
1083	      -e 's|@''REPLACE_UNLINKAT''@|$(REPLACE_UNLINKAT)|g' \
1084	      -e 's|@''REPLACE_USLEEP''@|$(REPLACE_USLEEP)|g' \
1085	      -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
1086	      -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
1087	      -e 's|@''UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
1088	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1089	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1090	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
1091	} > $@-t && \
1092	mv $@-t $@
1093MOSTLYCLEANFILES += unistd.h unistd.h-t
1094
1095EXTRA_DIST += unistd.in.h
1096
1097## end   gnulib module unistd
1098
1099## begin gnulib module unistd-tests
1100
1101TESTS += test-unistd
1102check_PROGRAMS += test-unistd
1103EXTRA_DIST += test-unistd.c
1104
1105## end   gnulib module unistd-tests
1106
1107## begin gnulib module unistr/u8-check-tests
1108
1109TESTS += test-u8-check
1110check_PROGRAMS += test-u8-check
1111test_u8_check_SOURCES = unistr/test-u8-check.c
1112test_u8_check_LDADD = $(LDADD) $(LIBUNISTRING)
1113EXTRA_DIST += unistr/test-u8-check.c macros.h
1114
1115## end   gnulib module unistr/u8-check-tests
1116
1117## begin gnulib module unistr/u8-mbtoucr-tests
1118
1119TESTS += test-u8-mbtoucr
1120check_PROGRAMS += test-u8-mbtoucr
1121test_u8_mbtoucr_SOURCES = unistr/test-u8-mbtoucr.c
1122test_u8_mbtoucr_LDADD = $(LDADD) $(LIBUNISTRING)
1123EXTRA_DIST += unistr/test-u8-mbtoucr.c macros.h
1124
1125## end   gnulib module unistr/u8-mbtoucr-tests
1126
1127## begin gnulib module unistr/u8-uctomb-tests
1128
1129TESTS += test-u8-uctomb
1130check_PROGRAMS += test-u8-uctomb
1131test_u8_uctomb_SOURCES = unistr/test-u8-uctomb.c
1132test_u8_uctomb_LDADD = $(LDADD) $(LIBUNISTRING)
1133EXTRA_DIST += unistr/test-u8-uctomb.c macros.h
1134
1135## end   gnulib module unistr/u8-uctomb-tests
1136
1137## begin gnulib module unsetenv
1138
1139
1140EXTRA_DIST += unsetenv.c
1141
1142EXTRA_libtests_a_SOURCES += unsetenv.c
1143
1144## end   gnulib module unsetenv
1145
1146## begin gnulib module unsetenv-tests
1147
1148TESTS += test-unsetenv
1149check_PROGRAMS += test-unsetenv
1150EXTRA_DIST += test-unsetenv.c signature.h macros.h
1151
1152## end   gnulib module unsetenv-tests
1153
1154## begin gnulib module usleep
1155
1156
1157EXTRA_DIST += usleep.c
1158
1159EXTRA_libtests_a_SOURCES += usleep.c
1160
1161## end   gnulib module usleep
1162
1163## begin gnulib module usleep-tests
1164
1165TESTS += test-usleep
1166check_PROGRAMS += test-usleep
1167EXTRA_DIST += test-usleep.c signature.h macros.h
1168
1169## end   gnulib module usleep-tests
1170
1171## begin gnulib module verify
1172
1173
1174EXTRA_DIST += verify.h
1175
1176## end   gnulib module verify
1177
1178## begin gnulib module verify-tests
1179
1180TESTS_ENVIRONMENT += MAKE='$(MAKE)'
1181TESTS += test-verify test-verify.sh
1182check_PROGRAMS += test-verify
1183# test-verify-try is never built, but test-verify.sh needs a rule to
1184# build test-verify-try.o.
1185EXTRA_PROGRAMS += test-verify-try
1186
1187# This test expects compilation of test-verify-try.c to fail, and
1188# each time it fails, the makefile rule does not perform the usual
1189#  "mv -f $name.Tpo $name.po, so tell make clean to remove that file.
1190MOSTLYCLEANFILES += .deps/test-verify-try.Tpo
1191EXTRA_DIST += test-verify.c test-verify-try.c test-verify.sh
1192
1193## end   gnulib module verify-tests
1194
1195## begin gnulib module wchar
1196
1197BUILT_SOURCES += wchar.h
1198
1199# We need the following in order to create <wchar.h> when the system
1200# version does not work standalone.
1201wchar.h: wchar.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
1202	$(AM_V_GEN)rm -f $@-t $@ && \
1203	{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
1204	  sed -e 's|@''GUARD_PREFIX''@|GL_LGL|g' \
1205	      -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
1206	      -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
1207	      -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
1208	      -e 's|@''HAVE_FEATURES_H''@|$(HAVE_FEATURES_H)|g' \
1209	      -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
1210	      -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
1211	      -e 's/@''HAVE_CRTDEFS_H''@/$(HAVE_CRTDEFS_H)/g' \
1212	      -e 's/@''GNULIB_OVERRIDES_WINT_T''@/$(GNULIB_OVERRIDES_WINT_T)/g' \
1213	      -e 's/@''GNULIB_BTOWC''@/$(GNULIB_BTOWC)/g' \
1214	      -e 's/@''GNULIB_WCTOB''@/$(GNULIB_WCTOB)/g' \
1215	      -e 's/@''GNULIB_MBSINIT''@/$(GNULIB_MBSINIT)/g' \
1216	      -e 's/@''GNULIB_MBRTOWC''@/$(GNULIB_MBRTOWC)/g' \
1217	      -e 's/@''GNULIB_MBRLEN''@/$(GNULIB_MBRLEN)/g' \
1218	      -e 's/@''GNULIB_MBSRTOWCS''@/$(GNULIB_MBSRTOWCS)/g' \
1219	      -e 's/@''GNULIB_MBSNRTOWCS''@/$(GNULIB_MBSNRTOWCS)/g' \
1220	      -e 's/@''GNULIB_WCRTOMB''@/$(GNULIB_WCRTOMB)/g' \
1221	      -e 's/@''GNULIB_WCSRTOMBS''@/$(GNULIB_WCSRTOMBS)/g' \
1222	      -e 's/@''GNULIB_WCSNRTOMBS''@/$(GNULIB_WCSNRTOMBS)/g' \
1223	      -e 's/@''GNULIB_WCWIDTH''@/$(GNULIB_WCWIDTH)/g' \
1224	      -e 's/@''GNULIB_WMEMCHR''@/$(GNULIB_WMEMCHR)/g' \
1225	      -e 's/@''GNULIB_WMEMCMP''@/$(GNULIB_WMEMCMP)/g' \
1226	      -e 's/@''GNULIB_WMEMCPY''@/$(GNULIB_WMEMCPY)/g' \
1227	      -e 's/@''GNULIB_WMEMMOVE''@/$(GNULIB_WMEMMOVE)/g' \
1228	      -e 's/@''GNULIB_WMEMSET''@/$(GNULIB_WMEMSET)/g' \
1229	      -e 's/@''GNULIB_WCSLEN''@/$(GNULIB_WCSLEN)/g' \
1230	      -e 's/@''GNULIB_WCSNLEN''@/$(GNULIB_WCSNLEN)/g' \
1231	      -e 's/@''GNULIB_WCSCPY''@/$(GNULIB_WCSCPY)/g' \
1232	      -e 's/@''GNULIB_WCPCPY''@/$(GNULIB_WCPCPY)/g' \
1233	      -e 's/@''GNULIB_WCSNCPY''@/$(GNULIB_WCSNCPY)/g' \
1234	      -e 's/@''GNULIB_WCPNCPY''@/$(GNULIB_WCPNCPY)/g' \
1235	      -e 's/@''GNULIB_WCSCAT''@/$(GNULIB_WCSCAT)/g' \
1236	      -e 's/@''GNULIB_WCSNCAT''@/$(GNULIB_WCSNCAT)/g' \
1237	      -e 's/@''GNULIB_WCSCMP''@/$(GNULIB_WCSCMP)/g' \
1238	      -e 's/@''GNULIB_WCSNCMP''@/$(GNULIB_WCSNCMP)/g' \
1239	      -e 's/@''GNULIB_WCSCASECMP''@/$(GNULIB_WCSCASECMP)/g' \
1240	      -e 's/@''GNULIB_WCSNCASECMP''@/$(GNULIB_WCSNCASECMP)/g' \
1241	      -e 's/@''GNULIB_WCSCOLL''@/$(GNULIB_WCSCOLL)/g' \
1242	      -e 's/@''GNULIB_WCSXFRM''@/$(GNULIB_WCSXFRM)/g' \
1243	      -e 's/@''GNULIB_WCSDUP''@/$(GNULIB_WCSDUP)/g' \
1244	      -e 's/@''GNULIB_WCSCHR''@/$(GNULIB_WCSCHR)/g' \
1245	      -e 's/@''GNULIB_WCSRCHR''@/$(GNULIB_WCSRCHR)/g' \
1246	      -e 's/@''GNULIB_WCSCSPN''@/$(GNULIB_WCSCSPN)/g' \
1247	      -e 's/@''GNULIB_WCSSPN''@/$(GNULIB_WCSSPN)/g' \
1248	      -e 's/@''GNULIB_WCSPBRK''@/$(GNULIB_WCSPBRK)/g' \
1249	      -e 's/@''GNULIB_WCSSTR''@/$(GNULIB_WCSSTR)/g' \
1250	      -e 's/@''GNULIB_WCSTOK''@/$(GNULIB_WCSTOK)/g' \
1251	      -e 's/@''GNULIB_WCSWIDTH''@/$(GNULIB_WCSWIDTH)/g' \
1252	      -e 's/@''GNULIB_WCSFTIME''@/$(GNULIB_WCSFTIME)/g' \
1253	      < $(srcdir)/wchar.in.h | \
1254	  sed -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
1255	      -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
1256	      -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
1257	      -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
1258	      -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
1259	      -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
1260	      -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
1261	      -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
1262	      -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
1263	      -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
1264	      -e 's|@''HAVE_WMEMCHR''@|$(HAVE_WMEMCHR)|g' \
1265	      -e 's|@''HAVE_WMEMCMP''@|$(HAVE_WMEMCMP)|g' \
1266	      -e 's|@''HAVE_WMEMCPY''@|$(HAVE_WMEMCPY)|g' \
1267	      -e 's|@''HAVE_WMEMMOVE''@|$(HAVE_WMEMMOVE)|g' \
1268	      -e 's|@''HAVE_WMEMSET''@|$(HAVE_WMEMSET)|g' \
1269	      -e 's|@''HAVE_WCSLEN''@|$(HAVE_WCSLEN)|g' \
1270	      -e 's|@''HAVE_WCSNLEN''@|$(HAVE_WCSNLEN)|g' \
1271	      -e 's|@''HAVE_WCSCPY''@|$(HAVE_WCSCPY)|g' \
1272	      -e 's|@''HAVE_WCPCPY''@|$(HAVE_WCPCPY)|g' \
1273	      -e 's|@''HAVE_WCSNCPY''@|$(HAVE_WCSNCPY)|g' \
1274	      -e 's|@''HAVE_WCPNCPY''@|$(HAVE_WCPNCPY)|g' \
1275	      -e 's|@''HAVE_WCSCAT''@|$(HAVE_WCSCAT)|g' \
1276	      -e 's|@''HAVE_WCSNCAT''@|$(HAVE_WCSNCAT)|g' \
1277	      -e 's|@''HAVE_WCSCMP''@|$(HAVE_WCSCMP)|g' \
1278	      -e 's|@''HAVE_WCSNCMP''@|$(HAVE_WCSNCMP)|g' \
1279	      -e 's|@''HAVE_WCSCASECMP''@|$(HAVE_WCSCASECMP)|g' \
1280	      -e 's|@''HAVE_WCSNCASECMP''@|$(HAVE_WCSNCASECMP)|g' \
1281	      -e 's|@''HAVE_WCSCOLL''@|$(HAVE_WCSCOLL)|g' \
1282	      -e 's|@''HAVE_WCSXFRM''@|$(HAVE_WCSXFRM)|g' \
1283	      -e 's|@''HAVE_WCSDUP''@|$(HAVE_WCSDUP)|g' \
1284	      -e 's|@''HAVE_WCSCHR''@|$(HAVE_WCSCHR)|g' \
1285	      -e 's|@''HAVE_WCSRCHR''@|$(HAVE_WCSRCHR)|g' \
1286	      -e 's|@''HAVE_WCSCSPN''@|$(HAVE_WCSCSPN)|g' \
1287	      -e 's|@''HAVE_WCSSPN''@|$(HAVE_WCSSPN)|g' \
1288	      -e 's|@''HAVE_WCSPBRK''@|$(HAVE_WCSPBRK)|g' \
1289	      -e 's|@''HAVE_WCSSTR''@|$(HAVE_WCSSTR)|g' \
1290	      -e 's|@''HAVE_WCSTOK''@|$(HAVE_WCSTOK)|g' \
1291	      -e 's|@''HAVE_WCSWIDTH''@|$(HAVE_WCSWIDTH)|g' \
1292	      -e 's|@''HAVE_WCSFTIME''@|$(HAVE_WCSFTIME)|g' \
1293	      -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
1294	      -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
1295	  | \
1296	  sed -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
1297	      -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
1298	      -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
1299	      -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
1300	      -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
1301	      -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
1302	      -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
1303	      -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
1304	      -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
1305	      -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
1306	      -e 's|@''REPLACE_WCSNRTOMBS''@|$(REPLACE_WCSNRTOMBS)|g' \
1307	      -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
1308	      -e 's|@''REPLACE_WCSWIDTH''@|$(REPLACE_WCSWIDTH)|g' \
1309	      -e 's|@''REPLACE_WCSFTIME''@|$(REPLACE_WCSFTIME)|g' \
1310	      -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
1311	      -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
1312	      -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)'; \
1313	} > $@-t && \
1314	mv $@-t $@
1315MOSTLYCLEANFILES += wchar.h wchar.h-t
1316
1317EXTRA_DIST += wchar.in.h
1318
1319## end   gnulib module wchar
1320
1321## begin gnulib module xalloc-oversized
1322
1323
1324EXTRA_DIST += xalloc-oversized.h
1325
1326## end   gnulib module xalloc-oversized
1327
1328## begin gnulib module yield
1329
1330libtests_a_SOURCES += glthread/yield.h
1331
1332## end   gnulib module yield
1333
1334# Clean up after Solaris cc.
1335clean-local:
1336	rm -rf SunWS_cache
1337
1338mostlyclean-local: mostlyclean-generic
1339	@for dir in '' $(MOSTLYCLEANDIRS); do \
1340	  if test -n "$$dir" && test -d $$dir; then \
1341	    echo "rmdir $$dir"; rmdir $$dir; \
1342	  fi; \
1343	done; \
1344	:
1345