Imported Upstream version 1.4.17
[platform/upstream/m4.git] / tests / gnulib.mk
1 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
2 ## Process this file with automake to produce Makefile.in.
3 # Copyright (C) 2002-2013 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 <http://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
25 AUTOMAKE_OPTIONS = 1.9.6 foreign
26
27 SUBDIRS = .
28 TESTS =
29 XFAIL_TESTS =
30 TESTS_ENVIRONMENT =
31 noinst_PROGRAMS =
32 check_PROGRAMS =
33 noinst_HEADERS =
34 noinst_LIBRARIES =
35 check_LIBRARIES = libtests.a
36 EXTRA_DIST =
37 BUILT_SOURCES =
38 SUFFIXES =
39 MOSTLYCLEANFILES = core *.stackdump
40 MOSTLYCLEANDIRS =
41 CLEANFILES =
42 DISTCLEANFILES =
43 MAINTAINERCLEANFILES =
44
45 AM_CPPFLAGS = \
46   -D@M4tests_WITNESS@=1 \
47   -I. -I$(srcdir) \
48   -I.. -I$(srcdir)/.. \
49   -I../lib -I$(srcdir)/../lib
50
51 LDADD = libtests.a ../lib/libm4.a libtests.a $(LIBTESTS_LIBDEPS)
52
53 libtests_a_SOURCES =
54 libtests_a_LIBADD = $(M4tests_LIBOBJS)
55 libtests_a_DEPENDENCIES = $(M4tests_LIBOBJS)
56 EXTRA_libtests_a_SOURCES =
57 AM_LIBTOOLFLAGS = --preserve-dup-deps
58
59 TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'
60
61 ## begin gnulib module alloca-opt-tests
62
63 TESTS += test-alloca-opt
64 check_PROGRAMS += test-alloca-opt
65
66 EXTRA_DIST += test-alloca-opt.c
67
68 ## end   gnulib module alloca-opt-tests
69
70 ## begin gnulib module array-list
71
72 libtests_a_SOURCES += gl_array_list.h gl_array_list.c
73
74 ## end   gnulib module array-list
75
76 ## begin gnulib module array-list-tests
77
78 TESTS += test-array_list
79 check_PROGRAMS += test-array_list
80
81 EXTRA_DIST += test-array_list.c macros.h
82
83 ## end   gnulib module array-list-tests
84
85 ## begin gnulib module array-oset
86
87 libtests_a_SOURCES += gl_array_oset.h gl_array_oset.c
88
89 ## end   gnulib module array-oset
90
91 ## begin gnulib module array-oset-tests
92
93 TESTS += test-array_oset
94 check_PROGRAMS += test-array_oset
95 test_array_oset_LDADD = $(LDADD) @LIBINTL@
96
97 EXTRA_DIST += test-array_oset.c macros.h
98
99 ## end   gnulib module array-oset-tests
100
101 ## begin gnulib module avltree-oset-tests
102
103 TESTS += test-avltree_oset
104 check_PROGRAMS += test-avltree_oset
105 EXTRA_DIST += test-avltree_oset.c macros.h
106
107 ## end   gnulib module avltree-oset-tests
108
109 ## begin gnulib module binary-io-tests
110
111 TESTS += test-binary-io.sh
112 check_PROGRAMS += test-binary-io
113
114 EXTRA_DIST += test-binary-io.sh test-binary-io.c macros.h
115
116 ## end   gnulib module binary-io-tests
117
118 ## begin gnulib module btowc-tests
119
120 TESTS += test-btowc1.sh test-btowc2.sh
121 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
122 check_PROGRAMS += test-btowc
123
124 EXTRA_DIST += test-btowc1.sh test-btowc2.sh test-btowc.c signature.h macros.h
125
126 ## end   gnulib module btowc-tests
127
128 ## begin gnulib module c-ctype-tests
129
130 TESTS += test-c-ctype
131 check_PROGRAMS += test-c-ctype
132
133 EXTRA_DIST += test-c-ctype.c macros.h
134
135 ## end   gnulib module c-ctype-tests
136
137 ## begin gnulib module c-stack-tests
138
139 TESTS += test-c-stack.sh test-c-stack2.sh
140 TESTS_ENVIRONMENT += LIBSIGSEGV='@LIBSIGSEGV@'
141 check_PROGRAMS += test-c-stack
142 test_c_stack_LDADD = $(LDADD) $(LIBCSTACK) @LIBINTL@
143 MOSTLYCLEANFILES += t-c-stack.tmp t-c-stack2.tmp
144 EXTRA_DIST += test-c-stack.c test-c-stack.sh test-c-stack2.sh macros.h
145
146 ## end   gnulib module c-stack-tests
147
148 ## begin gnulib module c-strcase-tests
149
150 TESTS += test-c-strcase.sh
151 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
152 check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp
153 EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c macros.h
154
155 ## end   gnulib module c-strcase-tests
156
157 ## begin gnulib module canonicalize-lgpl-tests
158
159 TESTS += test-canonicalize-lgpl
160 check_PROGRAMS += test-canonicalize-lgpl
161 EXTRA_DIST += test-canonicalize-lgpl.c signature.h macros.h
162
163 ## end   gnulib module canonicalize-lgpl-tests
164
165 ## begin gnulib module chdir-tests
166
167 TESTS += test-chdir
168 check_PROGRAMS += test-chdir
169 EXTRA_DIST += test-chdir.c signature.h macros.h
170
171 ## end   gnulib module chdir-tests
172
173 ## begin gnulib module cloexec-tests
174
175 TESTS += test-cloexec
176 check_PROGRAMS += test-cloexec
177 EXTRA_DIST += test-cloexec.c macros.h
178
179 ## end   gnulib module cloexec-tests
180
181 ## begin gnulib module close-tests
182
183 TESTS += test-close
184 check_PROGRAMS += test-close
185 EXTRA_DIST += test-close.c signature.h macros.h
186
187 ## end   gnulib module close-tests
188
189 ## begin gnulib module closedir
190
191
192 EXTRA_DIST += closedir.c dirent-private.h
193
194 EXTRA_libtests_a_SOURCES += closedir.c
195
196 ## end   gnulib module closedir
197
198 ## begin gnulib module closein-tests
199
200 TESTS += test-closein.sh
201 check_PROGRAMS += test-closein
202 test_closein_LDADD = $(LDADD) @LIBINTL@
203 EXTRA_DIST += test-closein.sh test-closein.c
204
205 ## end   gnulib module closein-tests
206
207 ## begin gnulib module dirent
208
209 BUILT_SOURCES += dirent.h
210
211 # We need the following in order to create <dirent.h> when the system
212 # doesn't have one that works with the given compiler.
213 dirent.h: dirent.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
214         $(AM_V_GEN)rm -f $@-t $@ && \
215         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
216           sed -e 's|@''GUARD_PREFIX''@|GL_M4|g' \
217               -e 's|@''HAVE_DIRENT_H''@|$(HAVE_DIRENT_H)|g' \
218               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
219               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
220               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
221               -e 's|@''NEXT_DIRENT_H''@|$(NEXT_DIRENT_H)|g' \
222               -e 's/@''GNULIB_OPENDIR''@/$(GNULIB_OPENDIR)/g' \
223               -e 's/@''GNULIB_READDIR''@/$(GNULIB_READDIR)/g' \
224               -e 's/@''GNULIB_REWINDDIR''@/$(GNULIB_REWINDDIR)/g' \
225               -e 's/@''GNULIB_CLOSEDIR''@/$(GNULIB_CLOSEDIR)/g' \
226               -e 's/@''GNULIB_DIRFD''@/$(GNULIB_DIRFD)/g' \
227               -e 's/@''GNULIB_FDOPENDIR''@/$(GNULIB_FDOPENDIR)/g' \
228               -e 's/@''GNULIB_SCANDIR''@/$(GNULIB_SCANDIR)/g' \
229               -e 's/@''GNULIB_ALPHASORT''@/$(GNULIB_ALPHASORT)/g' \
230               -e 's/@''HAVE_OPENDIR''@/$(HAVE_OPENDIR)/g' \
231               -e 's/@''HAVE_READDIR''@/$(HAVE_READDIR)/g' \
232               -e 's/@''HAVE_REWINDDIR''@/$(HAVE_REWINDDIR)/g' \
233               -e 's/@''HAVE_CLOSEDIR''@/$(HAVE_CLOSEDIR)/g' \
234               -e 's|@''HAVE_DECL_DIRFD''@|$(HAVE_DECL_DIRFD)|g' \
235               -e 's|@''HAVE_DECL_FDOPENDIR''@|$(HAVE_DECL_FDOPENDIR)|g' \
236               -e 's|@''HAVE_FDOPENDIR''@|$(HAVE_FDOPENDIR)|g' \
237               -e 's|@''HAVE_SCANDIR''@|$(HAVE_SCANDIR)|g' \
238               -e 's|@''HAVE_ALPHASORT''@|$(HAVE_ALPHASORT)|g' \
239               -e 's|@''REPLACE_OPENDIR''@|$(REPLACE_OPENDIR)|g' \
240               -e 's|@''REPLACE_CLOSEDIR''@|$(REPLACE_CLOSEDIR)|g' \
241               -e 's|@''REPLACE_DIRFD''@|$(REPLACE_DIRFD)|g' \
242               -e 's|@''REPLACE_FDOPENDIR''@|$(REPLACE_FDOPENDIR)|g' \
243               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
244               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
245               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
246               < $(srcdir)/dirent.in.h; \
247         } > $@-t && \
248         mv $@-t $@
249 MOSTLYCLEANFILES += dirent.h dirent.h-t
250
251 EXTRA_DIST += dirent.in.h
252
253 ## end   gnulib module dirent
254
255 ## begin gnulib module dirent-c++-tests
256
257 if ANSICXX
258 TESTS += test-dirent-c++
259 check_PROGRAMS += test-dirent-c++
260 test_dirent_c___SOURCES = test-dirent-c++.cc
261 test_dirent_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
262 endif
263 EXTRA_DIST += test-dirent-c++.cc signature.h
264
265 ## end   gnulib module dirent-c++-tests
266
267 ## begin gnulib module dirent-tests
268
269 TESTS += test-dirent
270 check_PROGRAMS += test-dirent
271 EXTRA_DIST += test-dirent.c
272
273 ## end   gnulib module dirent-tests
274
275 ## begin gnulib module dirname-tests
276
277 TESTS += test-dirname
278 check_PROGRAMS += test-dirname
279 test_dirname_LDADD = $(LDADD) @LIBINTL@
280 EXTRA_DIST += test-dirname.c
281
282 ## end   gnulib module dirname-tests
283
284 ## begin gnulib module dup
285
286
287 EXTRA_DIST += dup.c
288
289 EXTRA_libtests_a_SOURCES += dup.c
290
291 ## end   gnulib module dup
292
293 ## begin gnulib module dup-tests
294
295 TESTS += test-dup
296 check_PROGRAMS += test-dup
297 EXTRA_DIST += test-dup.c signature.h macros.h
298
299 ## end   gnulib module dup-tests
300
301 ## begin gnulib module dup2-tests
302
303 TESTS += test-dup2
304 check_PROGRAMS += test-dup2
305 EXTRA_DIST += test-dup2.c signature.h macros.h
306
307 ## end   gnulib module dup2-tests
308
309 ## begin gnulib module environ-tests
310
311 TESTS += test-environ
312 check_PROGRAMS += test-environ
313
314 EXTRA_DIST += test-environ.c
315
316 ## end   gnulib module environ-tests
317
318 ## begin gnulib module errno-tests
319
320 TESTS += test-errno
321 check_PROGRAMS += test-errno
322
323 EXTRA_DIST += test-errno.c
324
325 ## end   gnulib module errno-tests
326
327 ## begin gnulib module fclose-tests
328
329 TESTS += test-fclose
330 check_PROGRAMS += test-fclose
331 EXTRA_DIST += test-fclose.c
332
333 ## end   gnulib module fclose-tests
334
335 ## begin gnulib module fcntl-h-c++-tests
336
337 if ANSICXX
338 TESTS += test-fcntl-h-c++
339 check_PROGRAMS += test-fcntl-h-c++
340 test_fcntl_h_c___SOURCES = test-fcntl-h-c++.cc
341 test_fcntl_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET)
342 endif
343 EXTRA_DIST += test-fcntl-h-c++.cc signature.h
344
345 ## end   gnulib module fcntl-h-c++-tests
346
347 ## begin gnulib module fcntl-h-tests
348
349 TESTS += test-fcntl-h
350 check_PROGRAMS += test-fcntl-h
351 EXTRA_DIST += test-fcntl-h.c
352
353 ## end   gnulib module fcntl-h-tests
354
355 ## begin gnulib module fcntl-tests
356
357 TESTS += test-fcntl
358 check_PROGRAMS += test-fcntl
359 EXTRA_DIST += test-fcntl.c signature.h macros.h
360
361 ## end   gnulib module fcntl-tests
362
363 ## begin gnulib module fdopen
364
365
366 EXTRA_DIST += fdopen.c
367
368 EXTRA_libtests_a_SOURCES += fdopen.c
369
370 ## end   gnulib module fdopen
371
372 ## begin gnulib module fdopen-tests
373
374 TESTS += test-fdopen
375 check_PROGRAMS += test-fdopen
376 EXTRA_DIST += test-fdopen.c signature.h macros.h
377
378 ## end   gnulib module fdopen-tests
379
380 ## begin gnulib module fflush-tests
381
382 TESTS += test-fflush test-fflush2.sh
383 check_PROGRAMS += test-fflush test-fflush2
384 MOSTLYCLEANFILES += test-fflush.txt
385 EXTRA_DIST += test-fflush.c test-fflush2.sh test-fflush2.c signature.h macros.h
386
387 ## end   gnulib module fflush-tests
388
389 ## begin gnulib module fgetc-tests
390
391 TESTS += test-fgetc
392 check_PROGRAMS += test-fgetc
393 EXTRA_DIST += test-fgetc.c signature.h macros.h
394
395 ## end   gnulib module fgetc-tests
396
397 ## begin gnulib module filename
398
399
400 EXTRA_DIST += filename.h
401
402 ## end   gnulib module filename
403
404 ## begin gnulib module filenamecat-tests
405
406 TESTS += test-filenamecat
407 check_PROGRAMS += test-filenamecat
408 test_filenamecat_LDADD = $(LDADD) @LIBINTL@
409 EXTRA_DIST += test-filenamecat.c
410
411 ## end   gnulib module filenamecat-tests
412
413 ## begin gnulib module float-tests
414
415 TESTS += test-float
416 check_PROGRAMS += test-float
417 EXTRA_DIST += test-float.c macros.h
418
419 ## end   gnulib module float-tests
420
421 ## begin gnulib module fopen-safer-tests
422
423 TESTS += test-fopen-safer
424 check_PROGRAMS += test-fopen-safer
425 EXTRA_DIST += test-fopen.h test-fopen-safer.c macros.h
426
427 ## end   gnulib module fopen-safer-tests
428
429 ## begin gnulib module fopen-tests
430
431 TESTS += test-fopen
432 check_PROGRAMS += test-fopen
433
434 EXTRA_DIST += test-fopen.h test-fopen.c signature.h macros.h
435
436 ## end   gnulib module fopen-tests
437
438 ## begin gnulib module fpending-tests
439
440 TESTS += test-fpending.sh
441 check_PROGRAMS += test-fpending
442 MOSTLYCLEANFILES += test-fpending.t
443 EXTRA_DIST += test-fpending.c test-fpending.sh macros.h
444
445 ## end   gnulib module fpending-tests
446
447 ## begin gnulib module fpurge-tests
448
449 TESTS += test-fpurge
450 check_PROGRAMS += test-fpurge
451 MOSTLYCLEANFILES += t-fpurge.tmp
452 EXTRA_DIST += test-fpurge.c macros.h
453
454 ## end   gnulib module fpurge-tests
455
456 ## begin gnulib module fputc-tests
457
458 TESTS += test-fputc
459 check_PROGRAMS += test-fputc
460 EXTRA_DIST += test-fputc.c signature.h macros.h
461
462 ## end   gnulib module fputc-tests
463
464 ## begin gnulib module fread-tests
465
466 TESTS += test-fread
467 check_PROGRAMS += test-fread
468 EXTRA_DIST += test-fread.c signature.h macros.h
469
470 ## end   gnulib module fread-tests
471
472 ## begin gnulib module freadahead-tests
473
474 TESTS += test-freadahead.sh
475 check_PROGRAMS += test-freadahead
476 EXTRA_DIST += test-freadahead.c test-freadahead.sh macros.h
477
478 ## end   gnulib module freadahead-tests
479
480 ## begin gnulib module freading-tests
481
482 TESTS += test-freading
483 check_PROGRAMS += test-freading
484 MOSTLYCLEANFILES += t-freading.tmp
485 EXTRA_DIST += test-freading.c macros.h
486
487 ## end   gnulib module freading-tests
488
489 ## begin gnulib module frexp-nolibm-tests
490
491 TESTS += test-frexp-nolibm
492 check_PROGRAMS += test-frexp-nolibm
493 test_frexp_nolibm_SOURCES = test-frexp.c randomd.c
494 EXTRA_DIST += test-frexp.c test-frexp.h minus-zero.h infinity.h nan.h signature.h macros.h randomd.c
495
496 ## end   gnulib module frexp-nolibm-tests
497
498 ## begin gnulib module frexpl-nolibm-tests
499
500 TESTS += test-frexpl-nolibm
501 check_PROGRAMS += test-frexpl-nolibm
502 test_frexpl_nolibm_SOURCES = test-frexpl.c randoml.c
503 EXTRA_DIST += test-frexpl.c test-frexp.h minus-zero.h infinity.h nan.h signature.h macros.h randoml.c
504
505 ## end   gnulib module frexpl-nolibm-tests
506
507 ## begin gnulib module fseek-tests
508
509 TESTS += test-fseek.sh test-fseek2.sh
510 check_PROGRAMS += test-fseek
511 EXTRA_DIST += test-fseek.c test-fseek.sh test-fseek2.sh signature.h macros.h
512
513 ## end   gnulib module fseek-tests
514
515 ## begin gnulib module fseeko-tests
516
517 TESTS += test-fseeko.sh test-fseeko2.sh test-fseeko3.sh test-fseeko4.sh
518 check_PROGRAMS += test-fseeko test-fseeko3 test-fseeko4
519 EXTRA_DIST += test-fseeko.c test-fseeko.sh test-fseeko2.sh test-fseeko3.c test-fseeko3.sh test-fseeko4.c test-fseeko4.sh signature.h macros.h
520
521 ## end   gnulib module fseeko-tests
522
523 ## begin gnulib module fstat-tests
524
525 TESTS += test-fstat
526 check_PROGRAMS += test-fstat
527 EXTRA_DIST += test-fstat.c signature.h macros.h
528
529 ## end   gnulib module fstat-tests
530
531 ## begin gnulib module ftell-tests
532
533 TESTS += test-ftell.sh test-ftell2.sh test-ftell3
534 check_PROGRAMS += test-ftell test-ftell3
535 MOSTLYCLEANFILES += t-ftell3.tmp
536 EXTRA_DIST += test-ftell.c test-ftell.sh test-ftell2.sh test-ftell3.c signature.h macros.h
537
538 ## end   gnulib module ftell-tests
539
540 ## begin gnulib module ftello-tests
541
542 TESTS += test-ftello.sh test-ftello2.sh test-ftello3 test-ftello4.sh
543 check_PROGRAMS += test-ftello test-ftello3 test-ftello4
544 MOSTLYCLEANFILES += t-ftello3.tmp
545 EXTRA_DIST += test-ftello.c test-ftello.sh test-ftello2.sh test-ftello3.c test-ftello4.c test-ftello4.sh signature.h macros.h
546
547 ## end   gnulib module ftello-tests
548
549 ## begin gnulib module fwrite-tests
550
551 TESTS += test-fwrite
552 check_PROGRAMS += test-fwrite
553 EXTRA_DIST += test-fwrite.c signature.h macros.h
554
555 ## end   gnulib module fwrite-tests
556
557 ## begin gnulib module getcwd-lgpl
558
559
560 EXTRA_DIST += getcwd-lgpl.c
561
562 EXTRA_libtests_a_SOURCES += getcwd-lgpl.c
563
564 ## end   gnulib module getcwd-lgpl
565
566 ## begin gnulib module getcwd-lgpl-tests
567
568 TESTS += test-getcwd-lgpl
569 check_PROGRAMS += test-getcwd-lgpl
570 test_getcwd_lgpl_LDADD = $(LDADD) $(LIBINTL)
571 EXTRA_DIST += test-getcwd-lgpl.c signature.h macros.h
572
573 ## end   gnulib module getcwd-lgpl-tests
574
575 ## begin gnulib module getdtablesize-tests
576
577 TESTS += test-getdtablesize
578 check_PROGRAMS += test-getdtablesize
579 EXTRA_DIST += test-getdtablesize.c signature.h macros.h
580
581 ## end   gnulib module getdtablesize-tests
582
583 ## begin gnulib module getopt-posix-tests
584
585 TESTS += test-getopt
586 check_PROGRAMS += test-getopt
587 test_getopt_LDADD = $(LDADD) $(LIBINTL)
588 EXTRA_DIST += macros.h signature.h test-getopt.c test-getopt.h test-getopt_long.h
589
590 ## end   gnulib module getopt-posix-tests
591
592 ## begin gnulib module getpagesize
593
594
595 EXTRA_DIST += getpagesize.c
596
597 EXTRA_libtests_a_SOURCES += getpagesize.c
598
599 ## end   gnulib module getpagesize
600
601 ## begin gnulib module gettimeofday-tests
602
603 TESTS += test-gettimeofday
604 check_PROGRAMS += test-gettimeofday
605
606 EXTRA_DIST += signature.h test-gettimeofday.c
607
608 ## end   gnulib module gettimeofday-tests
609
610 ## begin gnulib module ignore-value-tests
611
612 TESTS += test-ignore-value
613 check_PROGRAMS += test-ignore-value
614 EXTRA_DIST += test-ignore-value.c
615
616 ## end   gnulib module ignore-value-tests
617
618 ## begin gnulib module intprops-tests
619
620 TESTS += test-intprops
621 check_PROGRAMS += test-intprops
622 EXTRA_DIST += test-intprops.c macros.h
623
624 ## end   gnulib module intprops-tests
625
626 ## begin gnulib module inttypes-incomplete
627
628 BUILT_SOURCES += inttypes.h
629
630 # We need the following in order to create <inttypes.h> when the system
631 # doesn't have one that works with the given compiler.
632 inttypes.h: inttypes.in.h $(top_builddir)/config.status $(CXXDEFS_H) $(WARN_ON_USE_H) $(ARG_NONNULL_H)
633         $(AM_V_GEN)rm -f $@-t $@ && \
634         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
635           sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
636               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
637               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
638               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
639               -e 's|@''NEXT_INTTYPES_H''@|$(NEXT_INTTYPES_H)|g' \
640               -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \
641               -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
642               -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
643               -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
644               -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
645               -e 's/@''GNULIB_IMAXABS''@/$(GNULIB_IMAXABS)/g' \
646               -e 's/@''GNULIB_IMAXDIV''@/$(GNULIB_IMAXDIV)/g' \
647               -e 's/@''GNULIB_STRTOIMAX''@/$(GNULIB_STRTOIMAX)/g' \
648               -e 's/@''GNULIB_STRTOUMAX''@/$(GNULIB_STRTOUMAX)/g' \
649               -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
650               -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
651               -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
652               -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
653               -e 's/@''REPLACE_STRTOIMAX''@/$(REPLACE_STRTOIMAX)/g' \
654               -e 's/@''INT32_MAX_LT_INTMAX_MAX''@/$(INT32_MAX_LT_INTMAX_MAX)/g' \
655               -e 's/@''INT64_MAX_EQ_LONG_MAX''@/$(INT64_MAX_EQ_LONG_MAX)/g' \
656               -e 's/@''UINT32_MAX_LT_UINTMAX_MAX''@/$(UINT32_MAX_LT_UINTMAX_MAX)/g' \
657               -e 's/@''UINT64_MAX_EQ_ULONG_MAX''@/$(UINT64_MAX_EQ_ULONG_MAX)/g' \
658               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
659               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
660               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
661               < $(srcdir)/inttypes.in.h; \
662         } > $@-t && \
663         mv $@-t $@
664 MOSTLYCLEANFILES += inttypes.h inttypes.h-t
665
666 EXTRA_DIST += inttypes.in.h
667
668 ## end   gnulib module inttypes-incomplete
669
670 ## begin gnulib module inttypes-tests
671
672 TESTS += test-inttypes
673 check_PROGRAMS += test-inttypes
674 EXTRA_DIST += test-inttypes.c
675
676 ## end   gnulib module inttypes-tests
677
678 ## begin gnulib module isnand-nolibm-tests
679
680 TESTS += test-isnand-nolibm
681 check_PROGRAMS += test-isnand-nolibm
682
683 EXTRA_DIST += test-isnand-nolibm.c test-isnand.h minus-zero.h infinity.h nan.h macros.h
684
685 ## end   gnulib module isnand-nolibm-tests
686
687 ## begin gnulib module isnanf-nolibm-tests
688
689 TESTS += test-isnanf-nolibm
690 check_PROGRAMS += test-isnanf-nolibm
691
692 EXTRA_DIST += test-isnanf-nolibm.c test-isnanf.h minus-zero.h infinity.h nan.h macros.h
693
694 ## end   gnulib module isnanf-nolibm-tests
695
696 ## begin gnulib module isnanl-nolibm-tests
697
698 TESTS += test-isnanl-nolibm
699 check_PROGRAMS += test-isnanl-nolibm
700
701 EXTRA_DIST += test-isnanl-nolibm.c test-isnanl.h minus-zero.h infinity.h nan.h macros.h
702
703 ## end   gnulib module isnanl-nolibm-tests
704
705 ## begin gnulib module langinfo-c++-tests
706
707 if ANSICXX
708 TESTS += test-langinfo-c++
709 check_PROGRAMS += test-langinfo-c++
710 test_langinfo_c___SOURCES = test-langinfo-c++.cc
711 endif
712 EXTRA_DIST += test-langinfo-c++.cc signature.h
713
714 ## end   gnulib module langinfo-c++-tests
715
716 ## begin gnulib module langinfo-tests
717
718 TESTS += test-langinfo
719 check_PROGRAMS += test-langinfo
720 EXTRA_DIST += test-langinfo.c
721
722 ## end   gnulib module langinfo-tests
723
724 ## begin gnulib module link
725
726
727 EXTRA_DIST += link.c
728
729 EXTRA_libtests_a_SOURCES += link.c
730
731 ## end   gnulib module link
732
733 ## begin gnulib module link-tests
734
735 TESTS += test-link
736 check_PROGRAMS += test-link
737 EXTRA_DIST += test-link.h test-link.c signature.h macros.h
738
739 ## end   gnulib module link-tests
740
741 ## begin gnulib module linkedhash-list-tests
742
743 TESTS += test-linkedhash_list
744 check_PROGRAMS += test-linkedhash_list
745 EXTRA_DIST += test-linkedhash_list.c macros.h
746
747 ## end   gnulib module linkedhash-list-tests
748
749 ## begin gnulib module locale-c++-tests
750
751 if ANSICXX
752 TESTS += test-locale-c++
753 check_PROGRAMS += test-locale-c++
754 test_locale_c___SOURCES = test-locale-c++.cc test-locale-c++2.cc
755 endif
756 EXTRA_DIST += test-locale-c++.cc test-locale-c++2.cc signature.h
757
758 ## end   gnulib module locale-c++-tests
759
760 ## begin gnulib module locale-tests
761
762 TESTS += test-locale
763 check_PROGRAMS += test-locale
764 EXTRA_DIST += test-locale.c
765
766 ## end   gnulib module locale-tests
767
768 ## begin gnulib module localeconv-tests
769
770 TESTS += test-localeconv
771 check_PROGRAMS += test-localeconv
772 EXTRA_DIST += test-localeconv.c signature.h macros.h
773
774 ## end   gnulib module localeconv-tests
775
776 ## begin gnulib module localename
777
778 libtests_a_SOURCES += localename.c
779
780 EXTRA_DIST += localename.h
781
782 ## end   gnulib module localename
783
784 ## begin gnulib module localename-tests
785
786 TESTS += test-localename
787 check_PROGRAMS += test-localename
788 test_localename_LDADD = $(LDADD) @INTL_MACOSX_LIBS@ $(LIBTHREAD)
789
790 EXTRA_DIST += test-localename.c macros.h
791
792 ## end   gnulib module localename-tests
793
794 ## begin gnulib module lseek-tests
795
796 TESTS += test-lseek.sh
797 check_PROGRAMS += test-lseek
798 EXTRA_DIST += test-lseek.c test-lseek.sh signature.h macros.h
799
800 ## end   gnulib module lseek-tests
801
802 ## begin gnulib module lstat-tests
803
804 TESTS += test-lstat
805 check_PROGRAMS += test-lstat
806 EXTRA_DIST += test-lstat.h test-lstat.c signature.h macros.h
807
808 ## end   gnulib module lstat-tests
809
810 ## begin gnulib module malloc-gnu-tests
811
812 TESTS += test-malloc-gnu
813 check_PROGRAMS += test-malloc-gnu
814 EXTRA_DIST += test-malloc-gnu.c
815
816 ## end   gnulib module malloc-gnu-tests
817
818 ## begin gnulib module malloca-tests
819
820 TESTS += test-malloca
821 check_PROGRAMS += test-malloca
822
823 EXTRA_DIST += test-malloca.c
824
825 ## end   gnulib module malloca-tests
826
827 ## begin gnulib module math-c++-tests
828
829 if ANSICXX
830 TESTS += test-math-c++
831 check_PROGRAMS += test-math-c++
832 test_math_c___SOURCES = test-math-c++.cc test-math-c++2.cc
833 # These link dependencies are needed on IRIX 6.5 with cc.
834 test_math_c___LDADD = $(LDADD) $(COPYSIGNL_LIBM) $(RINT_LIBM) $(RINTL_LIBM)
835 endif
836 EXTRA_DIST += test-math-c++.cc test-math-c++2.cc signature.h
837
838 ## end   gnulib module math-c++-tests
839
840 ## begin gnulib module math-tests
841
842 TESTS += test-math
843 check_PROGRAMS += test-math
844 EXTRA_DIST += test-math.c macros.h
845
846 ## end   gnulib module math-tests
847
848 ## begin gnulib module mbrtowc-tests
849
850 TESTS += \
851   test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh \
852   test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh \
853   test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh
854 TESTS_ENVIRONMENT += \
855   LOCALE_FR='@LOCALE_FR@' \
856   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
857   LOCALE_JA='@LOCALE_JA@' \
858   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
859 check_PROGRAMS += test-mbrtowc test-mbrtowc-w32
860
861 EXTRA_DIST += test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh test-mbrtowc.c test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh test-mbrtowc-w32.c signature.h macros.h
862
863 ## end   gnulib module mbrtowc-tests
864
865 ## begin gnulib module mbsinit-tests
866
867 TESTS += test-mbsinit.sh
868 TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
869 check_PROGRAMS += test-mbsinit
870
871 EXTRA_DIST += test-mbsinit.sh test-mbsinit.c signature.h macros.h
872
873 ## end   gnulib module mbsinit-tests
874
875 ## begin gnulib module memchr-tests
876
877 TESTS += test-memchr
878 check_PROGRAMS += test-memchr
879 EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h
880
881 ## end   gnulib module memchr-tests
882
883 ## begin gnulib module memchr2-tests
884
885 TESTS += test-memchr2
886 check_PROGRAMS += test-memchr2
887 EXTRA_DIST += test-memchr2.c zerosize-ptr.h macros.h
888
889 ## end   gnulib module memchr2-tests
890
891 ## begin gnulib module nl_langinfo-tests
892
893 TESTS += test-nl_langinfo.sh
894 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
895 check_PROGRAMS += test-nl_langinfo
896 EXTRA_DIST += test-nl_langinfo.sh test-nl_langinfo.c signature.h macros.h
897
898 ## end   gnulib module nl_langinfo-tests
899
900 ## begin gnulib module open-tests
901
902 TESTS += test-open
903 check_PROGRAMS += test-open
904 EXTRA_DIST += test-open.h test-open.c signature.h macros.h
905
906 ## end   gnulib module open-tests
907
908 ## begin gnulib module opendir
909
910
911 EXTRA_DIST += dirent-private.h opendir.c
912
913 EXTRA_libtests_a_SOURCES += opendir.c
914
915 ## end   gnulib module opendir
916
917 ## begin gnulib module pathmax-tests
918
919 TESTS += test-pathmax
920 check_PROGRAMS += test-pathmax
921 EXTRA_DIST += test-pathmax.c
922
923 ## end   gnulib module pathmax-tests
924
925 ## begin gnulib module pipe2-tests
926
927 TESTS += test-pipe2
928 check_PROGRAMS += test-pipe2
929 test_pipe2_LDADD = $(LDADD) $(LIBSOCKET)
930 EXTRA_DIST += test-pipe2.c signature.h macros.h
931
932 ## end   gnulib module pipe2-tests
933
934 ## begin gnulib module posix_spawn_file_actions_addclose-tests
935
936 TESTS += test-posix_spawn_file_actions_addclose
937 check_PROGRAMS += test-posix_spawn_file_actions_addclose
938 EXTRA_DIST += test-posix_spawn_file_actions_addclose.c signature.h macros.h
939
940 ## end   gnulib module posix_spawn_file_actions_addclose-tests
941
942 ## begin gnulib module posix_spawn_file_actions_adddup2-tests
943
944 TESTS += test-posix_spawn_file_actions_adddup2
945 check_PROGRAMS += test-posix_spawn_file_actions_adddup2
946 EXTRA_DIST += test-posix_spawn_file_actions_adddup2.c signature.h macros.h
947
948 ## end   gnulib module posix_spawn_file_actions_adddup2-tests
949
950 ## begin gnulib module posix_spawn_file_actions_addopen-tests
951
952 TESTS += test-posix_spawn_file_actions_addopen
953 check_PROGRAMS += test-posix_spawn_file_actions_addopen
954 EXTRA_DIST += test-posix_spawn_file_actions_addopen.c signature.h macros.h
955
956 ## end   gnulib module posix_spawn_file_actions_addopen-tests
957
958 ## begin gnulib module posix_spawnp-tests
959
960 if POSIX_SPAWN_PORTED
961 TESTS += test-posix_spawn1 test-posix_spawn2
962 check_PROGRAMS += test-posix_spawn1 test-posix_spawn2
963
964 BUILT_SOURCES += test-posix_spawn1.sh
965 test-posix_spawn1.sh: test-posix_spawn1.in.sh
966         $(AM_V_GEN)rm -f $@-t $@ && \
967         cp $(srcdir)/test-posix_spawn1.in.sh $@-t && \
968         mv $@-t $@
969 MOSTLYCLEANFILES += test-posix_spawn1.sh test-posix_spawn1.sh-t
970
971 BUILT_SOURCES += test-posix_spawn2.sh
972 test-posix_spawn2.sh: test-posix_spawn2.in.sh
973         $(AM_V_GEN)rm -f $@-t $@ && \
974         cp $(srcdir)/test-posix_spawn2.in.sh $@-t && \
975         mv $@-t $@
976 MOSTLYCLEANFILES += test-posix_spawn2.sh test-posix_spawn2.sh-t
977 endif
978 EXTRA_DIST += test-posix_spawn1.c test-posix_spawn1.in.sh test-posix_spawn2.c test-posix_spawn2.in.sh signature.h
979
980 ## end   gnulib module posix_spawnp-tests
981
982 ## begin gnulib module printf-frexp-tests
983
984 TESTS += test-printf-frexp
985 check_PROGRAMS += test-printf-frexp
986 EXTRA_DIST += test-printf-frexp.c macros.h
987
988 ## end   gnulib module printf-frexp-tests
989
990 ## begin gnulib module printf-frexpl-tests
991
992 TESTS += test-printf-frexpl
993 check_PROGRAMS += test-printf-frexpl
994 EXTRA_DIST += test-printf-frexpl.c macros.h
995
996 ## end   gnulib module printf-frexpl-tests
997
998 ## begin gnulib module putenv
999
1000
1001 EXTRA_DIST += putenv.c
1002
1003 EXTRA_libtests_a_SOURCES += putenv.c
1004
1005 ## end   gnulib module putenv
1006
1007 ## begin gnulib module quotearg-simple-tests
1008
1009 TESTS += test-quotearg-simple
1010 check_PROGRAMS += test-quotearg-simple
1011 test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@
1012 EXTRA_DIST += test-quotearg-simple.c test-quotearg.h macros.h zerosize-ptr.h
1013
1014 ## end   gnulib module quotearg-simple-tests
1015
1016 ## begin gnulib module raise-tests
1017
1018 TESTS += test-raise
1019 check_PROGRAMS += test-raise
1020 EXTRA_DIST += test-raise.c signature.h macros.h
1021
1022 ## end   gnulib module raise-tests
1023
1024 ## begin gnulib module rawmemchr-tests
1025
1026 TESTS += test-rawmemchr
1027 check_PROGRAMS += test-rawmemchr
1028 EXTRA_DIST += test-rawmemchr.c zerosize-ptr.h signature.h macros.h
1029
1030 ## end   gnulib module rawmemchr-tests
1031
1032 ## begin gnulib module readdir
1033
1034
1035 EXTRA_DIST += dirent-private.h readdir.c
1036
1037 EXTRA_libtests_a_SOURCES += readdir.c
1038
1039 ## end   gnulib module readdir
1040
1041 ## begin gnulib module readlink-tests
1042
1043 TESTS += test-readlink
1044 check_PROGRAMS += test-readlink
1045 EXTRA_DIST += test-readlink.h test-readlink.c signature.h macros.h
1046
1047 ## end   gnulib module readlink-tests
1048
1049 ## begin gnulib module regex-tests
1050
1051 TESTS += test-regex
1052 check_PROGRAMS += test-regex
1053 test_regex_LDADD = $(LDADD) @LIBINTL@
1054 EXTRA_DIST += test-regex.c macros.h
1055
1056 ## end   gnulib module regex-tests
1057
1058 ## begin gnulib module rename-tests
1059
1060 TESTS += test-rename
1061 check_PROGRAMS += test-rename
1062 EXTRA_DIST += test-rename.h test-rename.c signature.h macros.h
1063
1064 ## end   gnulib module rename-tests
1065
1066 ## begin gnulib module rmdir-tests
1067
1068 TESTS += test-rmdir
1069 check_PROGRAMS += test-rmdir
1070 EXTRA_DIST += test-rmdir.h test-rmdir.c signature.h macros.h
1071
1072 ## end   gnulib module rmdir-tests
1073
1074 ## begin gnulib module sched-tests
1075
1076 TESTS += test-sched
1077 check_PROGRAMS += test-sched
1078 EXTRA_DIST += test-sched.c
1079
1080 ## end   gnulib module sched-tests
1081
1082 ## begin gnulib module setenv
1083
1084
1085 EXTRA_DIST += setenv.c
1086
1087 EXTRA_libtests_a_SOURCES += setenv.c
1088
1089 ## end   gnulib module setenv
1090
1091 ## begin gnulib module setenv-tests
1092
1093 TESTS += test-setenv
1094 check_PROGRAMS += test-setenv
1095 EXTRA_DIST += test-setenv.c signature.h macros.h
1096
1097 ## end   gnulib module setenv-tests
1098
1099 ## begin gnulib module setlocale
1100
1101
1102 EXTRA_DIST += setlocale.c
1103
1104 EXTRA_libtests_a_SOURCES += setlocale.c
1105
1106 ## end   gnulib module setlocale
1107
1108 ## begin gnulib module setlocale-tests
1109
1110 TESTS += test-setlocale1.sh test-setlocale2.sh
1111 TESTS_ENVIRONMENT += \
1112   LOCALE_FR='@LOCALE_FR@' \
1113   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1114   LOCALE_JA='@LOCALE_JA@' \
1115   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1116 check_PROGRAMS += test-setlocale1 test-setlocale2
1117 EXTRA_DIST += test-setlocale1.sh test-setlocale1.c test-setlocale2.sh test-setlocale2.c signature.h macros.h
1118
1119 ## end   gnulib module setlocale-tests
1120
1121 ## begin gnulib module sigaction-tests
1122
1123 TESTS += test-sigaction
1124 check_PROGRAMS += test-sigaction
1125 EXTRA_DIST += test-sigaction.c signature.h macros.h
1126
1127 ## end   gnulib module sigaction-tests
1128
1129 ## begin gnulib module signal-h-c++-tests
1130
1131 if ANSICXX
1132 TESTS += test-signal-h-c++
1133 check_PROGRAMS += test-signal-h-c++
1134 test_signal_h_c___SOURCES = test-signal-h-c++.cc test-signal-h-c++2.cc
1135 test_signal_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_PTHREAD_SIGMASK)
1136 endif
1137 EXTRA_DIST += test-signal-h-c++.cc test-signal-h-c++2.cc signature.h
1138
1139 ## end   gnulib module signal-h-c++-tests
1140
1141 ## begin gnulib module signal-h-tests
1142
1143 TESTS += test-signal-h
1144 check_PROGRAMS += test-signal-h
1145 EXTRA_DIST += test-signal-h.c
1146
1147 ## end   gnulib module signal-h-tests
1148
1149 ## begin gnulib module signbit-tests
1150
1151 TESTS += test-signbit
1152 check_PROGRAMS += test-signbit
1153
1154 EXTRA_DIST += test-signbit.c minus-zero.h infinity.h macros.h
1155
1156 ## end   gnulib module signbit-tests
1157
1158 ## begin gnulib module sigpipe-tests
1159
1160 TESTS += test-sigpipe.sh
1161 check_PROGRAMS += test-sigpipe
1162
1163 EXTRA_DIST += test-sigpipe.c test-sigpipe.sh
1164
1165 ## end   gnulib module sigpipe-tests
1166
1167 ## begin gnulib module sigprocmask-tests
1168
1169 TESTS += test-sigprocmask
1170 check_PROGRAMS += test-sigprocmask
1171 EXTRA_DIST += test-sigprocmask.c signature.h macros.h
1172
1173 ## end   gnulib module sigprocmask-tests
1174
1175 ## begin gnulib module sleep
1176
1177
1178 EXTRA_DIST += sleep.c
1179
1180 EXTRA_libtests_a_SOURCES += sleep.c
1181
1182 ## end   gnulib module sleep
1183
1184 ## begin gnulib module sleep-tests
1185
1186 TESTS += test-sleep
1187 check_PROGRAMS += test-sleep
1188 EXTRA_DIST += test-sleep.c signature.h macros.h
1189
1190 ## end   gnulib module sleep-tests
1191
1192 ## begin gnulib module snippet/_Noreturn
1193
1194 # Because this Makefile snippet defines a variable used by other
1195 # gnulib Makefile snippets, it must be present in all Makefile.am that
1196 # need it. This is ensured by the applicability 'all' defined above.
1197
1198 _NORETURN_H=$(top_srcdir)/build-aux/snippet/_Noreturn.h
1199
1200 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/_Noreturn.h
1201
1202 ## end   gnulib module snippet/_Noreturn
1203
1204 ## begin gnulib module snippet/arg-nonnull
1205
1206 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
1207 # statements but through direct file reference. Therefore this snippet must be
1208 # present in all Makefile.am that need it. This is ensured by the applicability
1209 # 'all' defined above.
1210
1211 BUILT_SOURCES += arg-nonnull.h
1212 # The arg-nonnull.h that gets inserted into generated .h files is the same as
1213 # build-aux/snippet/arg-nonnull.h, except that it has the copyright header cut
1214 # off.
1215 arg-nonnull.h: $(top_srcdir)/build-aux/snippet/arg-nonnull.h
1216         $(AM_V_GEN)rm -f $@-t $@ && \
1217         sed -n -e '/GL_ARG_NONNULL/,$$p' \
1218           < $(top_srcdir)/build-aux/snippet/arg-nonnull.h \
1219           > $@-t && \
1220         mv $@-t $@
1221 MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
1222
1223 ARG_NONNULL_H=arg-nonnull.h
1224
1225 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/arg-nonnull.h
1226
1227 ## end   gnulib module snippet/arg-nonnull
1228
1229 ## begin gnulib module snippet/c++defs
1230
1231 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
1232 # statements but through direct file reference. Therefore this snippet must be
1233 # present in all Makefile.am that need it. This is ensured by the applicability
1234 # 'all' defined above.
1235
1236 BUILT_SOURCES += c++defs.h
1237 # The c++defs.h that gets inserted into generated .h files is the same as
1238 # build-aux/snippet/c++defs.h, except that it has the copyright header cut off.
1239 c++defs.h: $(top_srcdir)/build-aux/snippet/c++defs.h
1240         $(AM_V_GEN)rm -f $@-t $@ && \
1241         sed -n -e '/_GL_CXXDEFS/,$$p' \
1242           < $(top_srcdir)/build-aux/snippet/c++defs.h \
1243           > $@-t && \
1244         mv $@-t $@
1245 MOSTLYCLEANFILES += c++defs.h c++defs.h-t
1246
1247 CXXDEFS_H=c++defs.h
1248
1249 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/c++defs.h
1250
1251 ## end   gnulib module snippet/c++defs
1252
1253 ## begin gnulib module snippet/unused-parameter
1254
1255 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
1256 # statements but through direct file reference. Therefore this snippet must be
1257 # present in all Makefile.am that need it. This is ensured by the applicability
1258 # 'all' defined above.
1259
1260 BUILT_SOURCES += unused-parameter.h
1261 # The unused-parameter.h that gets inserted into generated .h files is the same
1262 # as build-aux/snippet/unused-parameter.h, except that it has the copyright
1263 # header cut off.
1264 unused-parameter.h: $(top_srcdir)/build-aux/snippet/unused-parameter.h
1265         $(AM_V_GEN)rm -f $@-t $@ && \
1266         sed -n -e '/GL_UNUSED_PARAMETER/,$$p' \
1267           < $(top_srcdir)/build-aux/snippet/unused-parameter.h \
1268           > $@-t && \
1269         mv $@-t $@
1270 MOSTLYCLEANFILES += unused-parameter.h unused-parameter.h-t
1271
1272 UNUSED_PARAMETER_H=unused-parameter.h
1273
1274 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/unused-parameter.h
1275
1276 ## end   gnulib module snippet/unused-parameter
1277
1278 ## begin gnulib module snippet/warn-on-use
1279
1280 BUILT_SOURCES += warn-on-use.h
1281 # The warn-on-use.h that gets inserted into generated .h files is the same as
1282 # build-aux/snippet/warn-on-use.h, except that it has the copyright header cut
1283 # off.
1284 warn-on-use.h: $(top_srcdir)/build-aux/snippet/warn-on-use.h
1285         $(AM_V_GEN)rm -f $@-t $@ && \
1286         sed -n -e '/^.ifndef/,$$p' \
1287           < $(top_srcdir)/build-aux/snippet/warn-on-use.h \
1288           > $@-t && \
1289         mv $@-t $@
1290 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
1291
1292 WARN_ON_USE_H=warn-on-use.h
1293
1294 EXTRA_DIST += $(top_srcdir)/build-aux/snippet/warn-on-use.h
1295
1296 ## end   gnulib module snippet/warn-on-use
1297
1298 ## begin gnulib module snprintf-tests
1299
1300 TESTS += test-snprintf
1301 check_PROGRAMS += test-snprintf
1302
1303 EXTRA_DIST += test-snprintf.c signature.h macros.h
1304
1305 ## end   gnulib module snprintf-tests
1306
1307 ## begin gnulib module spawn-c++-tests
1308
1309 if ANSICXX
1310 TESTS += test-spawn-c++
1311 check_PROGRAMS += test-spawn-c++
1312 test_spawn_c___SOURCES = test-spawn-c++.cc
1313 test_spawn_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
1314 endif
1315 EXTRA_DIST += test-spawn-c++.cc signature.h
1316
1317 ## end   gnulib module spawn-c++-tests
1318
1319 ## begin gnulib module spawn-pipe-tests
1320
1321 TESTS += test-spawn-pipe.sh
1322 check_PROGRAMS += test-spawn-pipe-main test-spawn-pipe-child
1323 test_spawn_pipe_main_LDADD = $(LDADD) @LIBINTL@
1324 # The test-spawn-pipe-child program must be a real executable, not a libtool
1325 # wrapper script, and should link against as few libraries as possible.
1326 # Therefore don't link it against any libraries other than -lc.
1327 test_spawn_pipe_child_LDADD =
1328 EXTRA_DIST += test-spawn-pipe.sh test-spawn-pipe-main.c test-spawn-pipe-child.c macros.h
1329
1330 ## end   gnulib module spawn-pipe-tests
1331
1332 ## begin gnulib module spawn-tests
1333
1334 TESTS += test-spawn
1335 check_PROGRAMS += test-spawn
1336 EXTRA_DIST += test-spawn.c
1337
1338 ## end   gnulib module spawn-tests
1339
1340 ## begin gnulib module stat-tests
1341
1342 TESTS += test-stat
1343 check_PROGRAMS += test-stat
1344 test_stat_LDADD = $(LDADD) $(LIBINTL)
1345 EXTRA_DIST += test-stat.h test-stat.c signature.h macros.h
1346
1347 ## end   gnulib module stat-tests
1348
1349 ## begin gnulib module stdbool-tests
1350
1351 TESTS += test-stdbool
1352 check_PROGRAMS += test-stdbool
1353 EXTRA_DIST += test-stdbool.c
1354
1355 ## end   gnulib module stdbool-tests
1356
1357 ## begin gnulib module stddef-tests
1358
1359 TESTS += test-stddef
1360 check_PROGRAMS += test-stddef
1361 EXTRA_DIST += test-stddef.c
1362
1363 ## end   gnulib module stddef-tests
1364
1365 ## begin gnulib module stdint-tests
1366
1367 TESTS += test-stdint
1368 check_PROGRAMS += test-stdint
1369 EXTRA_DIST += test-stdint.c
1370
1371 ## end   gnulib module stdint-tests
1372
1373 ## begin gnulib module stdio-c++-tests
1374
1375 if ANSICXX
1376 TESTS += test-stdio-c++
1377 check_PROGRAMS += test-stdio-c++
1378 test_stdio_c___SOURCES = test-stdio-c++.cc test-stdio-c++2.cc
1379 test_stdio_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS)
1380 endif
1381 EXTRA_DIST += test-stdio-c++.cc test-stdio-c++2.cc signature.h
1382
1383 ## end   gnulib module stdio-c++-tests
1384
1385 ## begin gnulib module stdio-tests
1386
1387 TESTS += test-stdio
1388 check_PROGRAMS += test-stdio
1389 EXTRA_DIST += test-stdio.c
1390
1391 ## end   gnulib module stdio-tests
1392
1393 ## begin gnulib module stdlib-c++-tests
1394
1395 if ANSICXX
1396 TESTS += test-stdlib-c++
1397 check_PROGRAMS += test-stdlib-c++
1398 test_stdlib_c___SOURCES = test-stdlib-c++.cc test-stdlib-c++2.cc
1399 test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)
1400 endif
1401 EXTRA_DIST += test-stdlib-c++.cc test-stdlib-c++2.cc signature.h
1402
1403 ## end   gnulib module stdlib-c++-tests
1404
1405 ## begin gnulib module stdlib-tests
1406
1407 TESTS += test-stdlib
1408 check_PROGRAMS += test-stdlib
1409 EXTRA_DIST += test-stdlib.c test-sys_wait.h
1410
1411 ## end   gnulib module stdlib-tests
1412
1413 ## begin gnulib module strchrnul-tests
1414
1415 TESTS += test-strchrnul
1416 check_PROGRAMS += test-strchrnul
1417 EXTRA_DIST += test-strchrnul.c signature.h macros.h
1418
1419 ## end   gnulib module strchrnul-tests
1420
1421 ## begin gnulib module strdup-posix
1422
1423
1424 EXTRA_DIST += strdup.c
1425
1426 EXTRA_libtests_a_SOURCES += strdup.c
1427
1428 ## end   gnulib module strdup-posix
1429
1430 ## begin gnulib module strerror-tests
1431
1432 TESTS += test-strerror
1433 check_PROGRAMS += test-strerror
1434 EXTRA_DIST += test-strerror.c signature.h macros.h
1435
1436 ## end   gnulib module strerror-tests
1437
1438 ## begin gnulib module string-c++-tests
1439
1440 if ANSICXX
1441 TESTS += test-string-c++
1442 check_PROGRAMS += test-string-c++
1443 test_string_c___SOURCES = test-string-c++.cc test-string-c++2.cc
1444 test_string_c___LDADD = $(LDADD) $(LIBINTL)
1445 endif
1446 EXTRA_DIST += test-string-c++.cc test-string-c++2.cc signature.h
1447
1448 ## end   gnulib module string-c++-tests
1449
1450 ## begin gnulib module string-tests
1451
1452 TESTS += test-string
1453 check_PROGRAMS += test-string
1454 EXTRA_DIST += test-string.c
1455
1456 ## end   gnulib module string-tests
1457
1458 ## begin gnulib module strnlen-tests
1459
1460 TESTS += test-strnlen
1461 check_PROGRAMS += test-strnlen
1462 EXTRA_DIST += test-strnlen.c zerosize-ptr.h signature.h macros.h
1463
1464 ## end   gnulib module strnlen-tests
1465
1466 ## begin gnulib module strsignal-tests
1467
1468 TESTS += test-strsignal
1469 check_PROGRAMS += test-strsignal
1470 test_strsignal_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
1471 EXTRA_DIST += test-strsignal.c signature.h macros.h
1472
1473 ## end   gnulib module strsignal-tests
1474
1475 ## begin gnulib module strstr-tests
1476
1477 TESTS += test-strstr
1478 check_PROGRAMS += test-strstr
1479 EXTRA_DIST += test-strstr.c zerosize-ptr.h signature.h macros.h
1480
1481 ## end   gnulib module strstr-tests
1482
1483 ## begin gnulib module strtod-tests
1484
1485 TESTS += test-strtod
1486 check_PROGRAMS += test-strtod
1487 EXTRA_DIST += test-strtod.c signature.h minus-zero.h macros.h
1488
1489 ## end   gnulib module strtod-tests
1490
1491 ## begin gnulib module symlink
1492
1493
1494 EXTRA_DIST += symlink.c
1495
1496 EXTRA_libtests_a_SOURCES += symlink.c
1497
1498 ## end   gnulib module symlink
1499
1500 ## begin gnulib module symlink-tests
1501
1502 TESTS += test-symlink
1503 check_PROGRAMS += test-symlink
1504 EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h
1505
1506 ## end   gnulib module symlink-tests
1507
1508 ## begin gnulib module sys_stat-c++-tests
1509
1510 if ANSICXX
1511 TESTS += test-sys_stat-c++
1512 check_PROGRAMS += test-sys_stat-c++
1513 test_sys_stat_c___SOURCES = test-sys_stat-c++.cc
1514 test_sys_stat_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME)
1515 endif
1516 EXTRA_DIST += test-sys_stat-c++.cc signature.h
1517
1518 ## end   gnulib module sys_stat-c++-tests
1519
1520 ## begin gnulib module sys_stat-tests
1521
1522 TESTS += test-sys_stat
1523 check_PROGRAMS += test-sys_stat
1524 EXTRA_DIST += test-sys_stat.c
1525
1526 ## end   gnulib module sys_stat-tests
1527
1528 ## begin gnulib module sys_time-c++-tests
1529
1530 if ANSICXX
1531 TESTS += test-sys_time-c++
1532 check_PROGRAMS += test-sys_time-c++
1533 test_sys_time_c___SOURCES = test-sys_time-c++.cc
1534 test_sys_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
1535 endif
1536 EXTRA_DIST += test-sys_time-c++.cc signature.h
1537
1538 ## end   gnulib module sys_time-c++-tests
1539
1540 ## begin gnulib module sys_time-tests
1541
1542 TESTS += test-sys_time
1543 check_PROGRAMS += test-sys_time
1544 EXTRA_DIST += test-sys_time.c
1545
1546 ## end   gnulib module sys_time-tests
1547
1548 ## begin gnulib module sys_types-c++-tests
1549
1550 if ANSICXX
1551 TESTS += test-sys_types-c++
1552 check_PROGRAMS += test-sys_types-c++
1553 test_sys_types_c___SOURCES = test-sys_types-c++.cc
1554 endif
1555 EXTRA_DIST += test-sys_types-c++.cc
1556
1557 ## end   gnulib module sys_types-c++-tests
1558
1559 ## begin gnulib module sys_types-tests
1560
1561 TESTS += test-sys_types
1562 check_PROGRAMS += test-sys_types
1563 EXTRA_DIST += test-sys_types.c
1564
1565 ## end   gnulib module sys_types-tests
1566
1567 ## begin gnulib module sys_wait-c++-tests
1568
1569 if ANSICXX
1570 TESTS += test-sys_wait-c++
1571 check_PROGRAMS += test-sys_wait-c++
1572 test_sys_wait_c___SOURCES = test-sys_wait-c++.cc
1573 endif
1574 EXTRA_DIST += test-sys_wait-c++.cc signature.h
1575
1576 ## end   gnulib module sys_wait-c++-tests
1577
1578 ## begin gnulib module sys_wait-tests
1579
1580 TESTS += test-sys_wait
1581 check_PROGRAMS += test-sys_wait
1582 EXTRA_DIST += test-sys_wait.c test-sys_wait.h
1583
1584 ## end   gnulib module sys_wait-tests
1585
1586 ## begin gnulib module test-framework-sh-tests
1587
1588 TESTS += test-init.sh
1589 EXTRA_DIST += init.sh
1590 EXTRA_DIST += test-init.sh
1591
1592 ## end   gnulib module test-framework-sh-tests
1593
1594 ## begin gnulib module time-c++-tests
1595
1596 if ANSICXX
1597 TESTS += test-time-c++
1598 check_PROGRAMS += test-time-c++
1599 test_time_c___SOURCES = test-time-c++.cc test-time-c++2.cc
1600 test_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
1601 endif
1602 EXTRA_DIST += test-time-c++.cc test-time-c++2.cc signature.h
1603
1604 ## end   gnulib module time-c++-tests
1605
1606 ## begin gnulib module time-tests
1607
1608 TESTS += test-time
1609 check_PROGRAMS += test-time
1610 EXTRA_DIST += test-time.c
1611
1612 ## end   gnulib module time-tests
1613
1614 ## begin gnulib module unistd-c++-tests
1615
1616 if ANSICXX
1617 TESTS += test-unistd-c++
1618 check_PROGRAMS += test-unistd-c++
1619 test_unistd_c___SOURCES = test-unistd-c++.cc
1620 test_unistd_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET)
1621 endif
1622 EXTRA_DIST += test-unistd-c++.cc signature.h
1623
1624 ## end   gnulib module unistd-c++-tests
1625
1626 ## begin gnulib module unistd-safer-tests
1627
1628 TESTS += test-dup-safer
1629 check_PROGRAMS += test-dup-safer
1630 EXTRA_DIST += test-dup-safer.c macros.h
1631
1632 ## end   gnulib module unistd-safer-tests
1633
1634 ## begin gnulib module unistd-tests
1635
1636 TESTS += test-unistd
1637 check_PROGRAMS += test-unistd
1638 EXTRA_DIST += test-unistd.c
1639
1640 ## end   gnulib module unistd-tests
1641
1642 ## begin gnulib module unsetenv
1643
1644
1645 EXTRA_DIST += unsetenv.c
1646
1647 EXTRA_libtests_a_SOURCES += unsetenv.c
1648
1649 ## end   gnulib module unsetenv
1650
1651 ## begin gnulib module unsetenv-tests
1652
1653 TESTS += test-unsetenv
1654 check_PROGRAMS += test-unsetenv
1655 EXTRA_DIST += test-unsetenv.c signature.h macros.h
1656
1657 ## end   gnulib module unsetenv-tests
1658
1659 ## begin gnulib module update-copyright-tests
1660
1661 TESTS += test-update-copyright.sh
1662 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
1663 EXTRA_DIST += test-update-copyright.sh
1664
1665 ## end   gnulib module update-copyright-tests
1666
1667 ## begin gnulib module vasnprintf-tests
1668
1669 TESTS += test-vasnprintf
1670 check_PROGRAMS += test-vasnprintf
1671
1672 EXTRA_DIST += test-vasnprintf.c macros.h
1673
1674 ## end   gnulib module vasnprintf-tests
1675
1676 ## begin gnulib module vasprintf-posix-tests
1677
1678 TESTS += test-vasprintf-posix
1679 check_PROGRAMS += test-vasprintf-posix
1680
1681 EXTRA_DIST += test-vasprintf-posix.c minus-zero.h infinity.h nan.h macros.h
1682
1683 ## end   gnulib module vasprintf-posix-tests
1684
1685 ## begin gnulib module vasprintf-tests
1686
1687 TESTS += test-vasprintf
1688 check_PROGRAMS += test-vasprintf
1689
1690 EXTRA_DIST += test-vasprintf.c signature.h macros.h
1691
1692 ## end   gnulib module vasprintf-tests
1693
1694 ## begin gnulib module vc-list-files-tests
1695
1696 TESTS += test-vc-list-files-git.sh
1697 TESTS += test-vc-list-files-cvs.sh
1698 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
1699 EXTRA_DIST += test-vc-list-files-git.sh test-vc-list-files-cvs.sh
1700
1701 ## end   gnulib module vc-list-files-tests
1702
1703 ## begin gnulib module verify-tests
1704
1705 TESTS_ENVIRONMENT += MAKE='$(MAKE)'
1706 TESTS += test-verify test-verify.sh
1707 check_PROGRAMS += test-verify
1708 EXTRA_DIST += test-verify.c test-verify.sh
1709
1710 ## end   gnulib module verify-tests
1711
1712 ## begin gnulib module version-etc-tests
1713
1714 TESTS += test-version-etc.sh
1715 check_PROGRAMS += test-version-etc
1716 test_version_etc_LDADD = $(LDADD) @LIBINTL@
1717 EXTRA_DIST += test-version-etc.c test-version-etc.sh
1718
1719 ## end   gnulib module version-etc-tests
1720
1721 ## begin gnulib module wchar-c++-tests
1722
1723 if ANSICXX
1724 TESTS += test-wchar-c++
1725 check_PROGRAMS += test-wchar-c++
1726 test_wchar_c___SOURCES = test-wchar-c++.cc
1727 test_wchar_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS)
1728 endif
1729 EXTRA_DIST += test-wchar-c++.cc signature.h
1730
1731 ## end   gnulib module wchar-c++-tests
1732
1733 ## begin gnulib module wchar-tests
1734
1735 TESTS += test-wchar
1736 check_PROGRAMS += test-wchar
1737 EXTRA_DIST += test-wchar.c
1738
1739 ## end   gnulib module wchar-tests
1740
1741 ## begin gnulib module wcrtomb-tests
1742
1743 TESTS += \
1744   test-wcrtomb.sh \
1745   test-wcrtomb-w32-1.sh test-wcrtomb-w32-2.sh test-wcrtomb-w32-3.sh \
1746   test-wcrtomb-w32-4.sh test-wcrtomb-w32-5.sh
1747 TESTS_ENVIRONMENT += \
1748   LOCALE_FR='@LOCALE_FR@' \
1749   LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1750   LOCALE_JA='@LOCALE_JA@' \
1751   LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1752 check_PROGRAMS += test-wcrtomb test-wcrtomb-w32
1753
1754 EXTRA_DIST += test-wcrtomb.sh test-wcrtomb.c test-wcrtomb-w32-1.sh test-wcrtomb-w32-2.sh test-wcrtomb-w32-3.sh test-wcrtomb-w32-4.sh test-wcrtomb-w32-5.sh test-wcrtomb-w32.c signature.h macros.h
1755
1756 ## end   gnulib module wcrtomb-tests
1757
1758 ## begin gnulib module wctob
1759
1760
1761 EXTRA_DIST += wctob.c
1762
1763 EXTRA_libtests_a_SOURCES += wctob.c
1764
1765 ## end   gnulib module wctob
1766
1767 ## begin gnulib module wctomb
1768
1769
1770 EXTRA_DIST += wctomb-impl.h wctomb.c
1771
1772 EXTRA_libtests_a_SOURCES += wctomb.c
1773
1774 ## end   gnulib module wctomb
1775
1776 ## begin gnulib module wctype-h-c++-tests
1777
1778 if ANSICXX
1779 TESTS += test-wctype-h-c++
1780 check_PROGRAMS += test-wctype-h-c++
1781 test_wctype_h_c___SOURCES = test-wctype-h-c++.cc
1782 test_wctype_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS)
1783 endif
1784 EXTRA_DIST += test-wctype-h-c++.cc signature.h
1785
1786 ## end   gnulib module wctype-h-c++-tests
1787
1788 ## begin gnulib module wctype-h-tests
1789
1790 TESTS += test-wctype-h
1791 check_PROGRAMS += test-wctype-h
1792 EXTRA_DIST += test-wctype-h.c macros.h
1793
1794 ## end   gnulib module wctype-h-tests
1795
1796 ## begin gnulib module write
1797
1798
1799 EXTRA_DIST += write.c
1800
1801 EXTRA_libtests_a_SOURCES += write.c
1802
1803 ## end   gnulib module write
1804
1805 ## begin gnulib module write-tests
1806
1807 TESTS += test-write
1808 check_PROGRAMS += test-write
1809 EXTRA_DIST += test-write.c signature.h macros.h
1810
1811 ## end   gnulib module write-tests
1812
1813 ## begin gnulib module xalloc-die-tests
1814
1815 TESTS += test-xalloc-die.sh
1816 check_PROGRAMS += test-xalloc-die
1817 test_xalloc_die_LDADD = $(LDADD) @LIBINTL@
1818 EXTRA_DIST += test-xalloc-die.c test-xalloc-die.sh
1819
1820 ## end   gnulib module xalloc-die-tests
1821
1822 ## begin gnulib module xvasprintf-tests
1823
1824 TESTS += test-xvasprintf
1825 check_PROGRAMS += test-xvasprintf
1826 test_xvasprintf_LDADD = $(LDADD) @LIBINTL@
1827
1828 EXTRA_DIST += test-xvasprintf.c macros.h
1829
1830 ## end   gnulib module xvasprintf-tests
1831
1832 # Clean up after Solaris cc.
1833 clean-local:
1834         rm -rf SunWS_cache
1835
1836 mostlyclean-local: mostlyclean-generic
1837         @for dir in '' $(MOSTLYCLEANDIRS); do \
1838           if test -n "$$dir" && test -d $$dir; then \
1839             echo "rmdir $$dir"; rmdir $$dir; \
1840           fi; \
1841         done; \
1842         :