1 ## DO NOT EDIT! GENERATED AUTOMATICALLY!
2 ## Process this file with automake to produce Makefile.in.
3 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
5 # This file is free software, distributed under the terms of the GNU
6 # General Public License. As a special exception to the GNU General
7 # Public License, this file may be distributed as part of a program
8 # that contains a configuration script generated by Autoconf, under
9 # the same distribution terms as the rest of that program.
11 # Generated by gnulib-tool.
13 AUTOMAKE_OPTIONS = 1.5 foreign
23 check_LIBRARIES = libtests.a
27 MOSTLYCLEANFILES = core *.stackdump
31 MAINTAINERCLEANFILES =
34 -D@M4tests_WITNESS@=1 \
37 -I../lib -I$(srcdir)/../lib
39 LDADD = libtests.a ../lib/libm4.a libtests.a $(LIBTESTS_LIBDEPS)
42 libtests_a_LIBADD = $(M4tests_LIBOBJS)
43 libtests_a_DEPENDENCIES = $(M4tests_LIBOBJS)
44 EXTRA_libtests_a_SOURCES =
45 AM_LIBTOOLFLAGS = --preserve-dup-deps
47 TESTS_ENVIRONMENT += EXEEXT='@EXEEXT@' srcdir='$(srcdir)'
49 ## begin gnulib module alloca-opt-tests
51 TESTS += test-alloca-opt
52 check_PROGRAMS += test-alloca-opt
54 EXTRA_DIST += test-alloca-opt.c
56 ## end gnulib module alloca-opt-tests
58 ## begin gnulib module arg-nonnull
60 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
61 # statements but through direct file reference. Therefore this snippet must be
62 # present in all Makefile.am that need it. This is ensured by the applicability
63 # 'all' defined above.
65 BUILT_SOURCES += arg-nonnull.h
66 # The arg-nonnull.h that gets inserted into generated .h files is the same as
67 # build-aux/arg-nonnull.h, except that it has the copyright header cut off.
68 arg-nonnull.h: $(top_srcdir)/build-aux/arg-nonnull.h
69 $(AM_V_GEN)rm -f $@-t $@ && \
70 sed -n -e '/GL_ARG_NONNULL/,$$p' \
71 < $(top_srcdir)/build-aux/arg-nonnull.h \
74 MOSTLYCLEANFILES += arg-nonnull.h arg-nonnull.h-t
76 ARG_NONNULL_H=arg-nonnull.h
78 EXTRA_DIST += $(top_srcdir)/build-aux/arg-nonnull.h
80 ## end gnulib module arg-nonnull
82 ## begin gnulib module array-list
84 libtests_a_SOURCES += gl_array_list.h gl_array_list.c
86 ## end gnulib module array-list
88 ## begin gnulib module array-list-tests
90 TESTS += test-array_list
91 check_PROGRAMS += test-array_list
93 EXTRA_DIST += test-array_list.c macros.h
95 ## end gnulib module array-list-tests
97 ## begin gnulib module array-oset
99 libtests_a_SOURCES += gl_array_oset.h gl_array_oset.c
101 ## end gnulib module array-oset
103 ## begin gnulib module array-oset-tests
105 TESTS += test-array_oset
106 check_PROGRAMS += test-array_oset
107 test_array_oset_LDADD = $(LDADD) @LIBINTL@
109 EXTRA_DIST += test-array_oset.c macros.h
111 ## end gnulib module array-oset-tests
113 ## begin gnulib module avltree-oset-tests
115 TESTS += test-avltree_oset
116 check_PROGRAMS += test-avltree_oset
117 EXTRA_DIST += test-avltree_oset.c macros.h
119 ## end gnulib module avltree-oset-tests
121 ## begin gnulib module binary-io-tests
123 TESTS += test-binary-io.sh
124 check_PROGRAMS += test-binary-io
126 EXTRA_DIST += test-binary-io.sh test-binary-io.c macros.h
128 ## end gnulib module binary-io-tests
130 ## begin gnulib module btowc-tests
132 TESTS += test-btowc1.sh test-btowc2.sh
133 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
134 check_PROGRAMS += test-btowc
136 EXTRA_DIST += test-btowc1.sh test-btowc2.sh test-btowc.c signature.h macros.h
138 ## end gnulib module btowc-tests
140 ## begin gnulib module c++defs
142 # The BUILT_SOURCES created by this Makefile snippet are not used via #include
143 # statements but through direct file reference. Therefore this snippet must be
144 # present in all Makefile.am that need it. This is ensured by the applicability
145 # 'all' defined above.
147 BUILT_SOURCES += c++defs.h
148 # The c++defs.h that gets inserted into generated .h files is the same as
149 # build-aux/c++defs.h, except that it has the copyright header cut off.
150 c++defs.h: $(top_srcdir)/build-aux/c++defs.h
151 $(AM_V_GEN)rm -f $@-t $@ && \
152 sed -n -e '/_GL_CXXDEFS/,$$p' \
153 < $(top_srcdir)/build-aux/c++defs.h \
156 MOSTLYCLEANFILES += c++defs.h c++defs.h-t
160 EXTRA_DIST += $(top_srcdir)/build-aux/c++defs.h
162 ## end gnulib module c++defs
164 ## begin gnulib module c-ctype-tests
166 TESTS += test-c-ctype
167 check_PROGRAMS += test-c-ctype
169 EXTRA_DIST += test-c-ctype.c macros.h
171 ## end gnulib module c-ctype-tests
173 ## begin gnulib module c-stack-tests
175 TESTS += test-c-stack.sh test-c-stack2.sh
176 TESTS_ENVIRONMENT += LIBSIGSEGV='@LIBSIGSEGV@'
177 check_PROGRAMS += test-c-stack
178 test_c_stack_LDADD = $(LDADD) $(LIBCSTACK) @LIBINTL@
179 MOSTLYCLEANFILES += t-c-stack.tmp t-c-stack2.tmp
180 EXTRA_DIST += test-c-stack.c test-c-stack.sh test-c-stack2.sh macros.h
182 ## end gnulib module c-stack-tests
184 ## begin gnulib module c-strcase
186 libtests_a_SOURCES += c-strcase.h c-strcasecmp.c c-strncasecmp.c
188 ## end gnulib module c-strcase
190 ## begin gnulib module c-strcase-tests
192 TESTS += test-c-strcase.sh
193 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_TR_UTF8='@LOCALE_TR_UTF8@'
194 check_PROGRAMS += test-c-strcasecmp test-c-strncasecmp
195 EXTRA_DIST += test-c-strcase.sh test-c-strcasecmp.c test-c-strncasecmp.c macros.h
197 ## end gnulib module c-strcase-tests
199 ## begin gnulib module canonicalize-lgpl-tests
201 TESTS += test-canonicalize-lgpl
202 check_PROGRAMS += test-canonicalize-lgpl
203 EXTRA_DIST += test-canonicalize-lgpl.c signature.h macros.h
205 ## end gnulib module canonicalize-lgpl-tests
207 ## begin gnulib module cloexec-tests
209 TESTS += test-cloexec
210 check_PROGRAMS += test-cloexec
211 EXTRA_DIST += test-cloexec.c macros.h
213 ## end gnulib module cloexec-tests
215 ## begin gnulib module closein-tests
217 TESTS += test-closein.sh
218 check_PROGRAMS += test-closein
219 test_closein_LDADD = $(LDADD) @LIBINTL@
220 EXTRA_DIST += test-closein.sh test-closein.c
222 ## end gnulib module closein-tests
224 ## begin gnulib module dirname-tests
226 TESTS += test-dirname
227 check_PROGRAMS += test-dirname
228 test_dirname_LDADD = $(LDADD) @LIBINTL@
229 EXTRA_DIST += test-dirname.c
231 ## end gnulib module dirname-tests
233 ## begin gnulib module dup2-tests
236 check_PROGRAMS += test-dup2
237 EXTRA_DIST += test-dup2.c signature.h macros.h
239 ## end gnulib module dup2-tests
241 ## begin gnulib module environ-tests
243 TESTS += test-environ
244 check_PROGRAMS += test-environ
246 EXTRA_DIST += test-environ.c
248 ## end gnulib module environ-tests
250 ## begin gnulib module errno-tests
253 check_PROGRAMS += test-errno
255 EXTRA_DIST += test-errno.c
257 ## end gnulib module errno-tests
259 ## begin gnulib module fcntl-h-c++-tests
262 TESTS += test-fcntl-h-c++
263 check_PROGRAMS += test-fcntl-h-c++
264 test_fcntl_h_c___SOURCES = test-fcntl-h-c++.cc
265 test_fcntl_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET)
267 EXTRA_DIST += test-fcntl-h-c++.cc signature.h
269 ## end gnulib module fcntl-h-c++-tests
271 ## begin gnulib module fcntl-h-tests
273 TESTS += test-fcntl-h
274 check_PROGRAMS += test-fcntl-h
275 EXTRA_DIST += test-fcntl-h.c
277 ## end gnulib module fcntl-h-tests
279 ## begin gnulib module fcntl-tests
282 check_PROGRAMS += test-fcntl
283 EXTRA_DIST += test-fcntl.c signature.h macros.h
285 ## end gnulib module fcntl-tests
287 ## begin gnulib module fflush-tests
289 TESTS += test-fflush test-fflush2.sh
290 check_PROGRAMS += test-fflush test-fflush2
291 MOSTLYCLEANFILES += test-fflush.txt
292 EXTRA_DIST += test-fflush.c test-fflush2.sh test-fflush2.c signature.h macros.h
294 ## end gnulib module fflush-tests
296 ## begin gnulib module filenamecat-tests
298 TESTS += test-filenamecat
299 check_PROGRAMS += test-filenamecat
300 test_filenamecat_LDADD = $(LDADD) @LIBINTL@
301 EXTRA_DIST += test-filenamecat.c
303 ## end gnulib module filenamecat-tests
305 ## begin gnulib module fopen-safer-tests
307 TESTS += test-fopen-safer
308 check_PROGRAMS += test-fopen-safer
309 EXTRA_DIST += test-fopen.h test-fopen-safer.c macros.h
311 ## end gnulib module fopen-safer-tests
313 ## begin gnulib module fopen-tests
316 check_PROGRAMS += test-fopen
318 EXTRA_DIST += test-fopen.h test-fopen.c signature.h macros.h
320 ## end gnulib module fopen-tests
322 ## begin gnulib module fpending-tests
324 TESTS += test-fpending.sh
325 check_PROGRAMS += test-fpending
326 MOSTLYCLEANFILES += test-fpending.t
327 EXTRA_DIST += test-fpending.c test-fpending.sh macros.h
329 ## end gnulib module fpending-tests
331 ## begin gnulib module fpurge-tests
334 check_PROGRAMS += test-fpurge
335 MOSTLYCLEANFILES += t-fpurge.tmp
336 EXTRA_DIST += test-fpurge.c macros.h
338 ## end gnulib module fpurge-tests
340 ## begin gnulib module freadahead-tests
342 TESTS += test-freadahead.sh
343 check_PROGRAMS += test-freadahead
344 EXTRA_DIST += test-freadahead.c test-freadahead.sh macros.h
346 ## end gnulib module freadahead-tests
348 ## begin gnulib module freading-tests
350 TESTS += test-freading
351 check_PROGRAMS += test-freading
352 MOSTLYCLEANFILES += t-freading.tmp
353 EXTRA_DIST += test-freading.c macros.h
355 ## end gnulib module freading-tests
357 ## begin gnulib module frexp-nolibm-tests
359 TESTS += test-frexp-nolibm
360 check_PROGRAMS += test-frexp-nolibm
361 test_frexp_nolibm_SOURCES = test-frexp.c
362 EXTRA_DIST += test-frexp.c minus-zero.h nan.h signature.h macros.h
364 ## end gnulib module frexp-nolibm-tests
366 ## begin gnulib module frexpl-nolibm-tests
368 TESTS += test-frexpl-nolibm
369 check_PROGRAMS += test-frexpl-nolibm
370 test_frexpl_nolibm_SOURCES = test-frexpl.c
371 EXTRA_DIST += test-frexpl.c minus-zero.h nan.h signature.h macros.h
373 ## end gnulib module frexpl-nolibm-tests
375 ## begin gnulib module fseeko-tests
377 TESTS += test-fseeko.sh test-fseeko2.sh
378 check_PROGRAMS += test-fseeko
379 EXTRA_DIST += test-fseeko.c test-fseeko.sh test-fseeko2.sh signature.h macros.h
381 ## end gnulib module fseeko-tests
383 ## begin gnulib module ftell
386 EXTRA_DIST += ftell.c
388 EXTRA_libtests_a_SOURCES += ftell.c
390 ## end gnulib module ftell
392 ## begin gnulib module ftell-tests
394 TESTS += test-ftell.sh test-ftell2.sh test-ftell3
395 check_PROGRAMS += test-ftell test-ftell3
396 MOSTLYCLEANFILES += t-ftell3.tmp
397 EXTRA_DIST += test-ftell.c test-ftell.sh test-ftell2.sh test-ftell3.c signature.h macros.h
399 ## end gnulib module ftell-tests
401 ## begin gnulib module ftello-tests
403 TESTS += test-ftello.sh test-ftello2.sh test-ftello3
404 check_PROGRAMS += test-ftello test-ftello3
405 MOSTLYCLEANFILES += t-ftello3.tmp
406 EXTRA_DIST += test-ftello.c test-ftello.sh test-ftello2.sh test-ftello3.c signature.h macros.h
408 ## end gnulib module ftello-tests
410 ## begin gnulib module getdtablesize-tests
412 TESTS += test-getdtablesize
413 check_PROGRAMS += test-getdtablesize
414 EXTRA_DIST += test-getdtablesize.c signature.h macros.h
416 ## end gnulib module getdtablesize-tests
418 ## begin gnulib module getopt-posix-tests
421 check_PROGRAMS += test-getopt
422 test_getopt_LDADD = $(LDADD) $(LIBINTL)
423 EXTRA_DIST += macros.h signature.h test-getopt.c test-getopt.h test-getopt_long.h
425 ## end gnulib module getopt-posix-tests
427 ## begin gnulib module getpagesize
430 EXTRA_DIST += getpagesize.c
432 EXTRA_libtests_a_SOURCES += getpagesize.c
434 ## end gnulib module getpagesize
436 ## begin gnulib module gettimeofday-tests
438 TESTS += test-gettimeofday
439 check_PROGRAMS += test-gettimeofday
441 EXTRA_DIST += signature.h test-gettimeofday.c
443 ## end gnulib module gettimeofday-tests
445 ## begin gnulib module ignore-value-tests
447 TESTS += test-ignore-value
448 check_PROGRAMS += test-ignore-value
449 EXTRA_DIST += test-ignore-value.c
451 ## end gnulib module ignore-value-tests
453 ## begin gnulib module isnand-nolibm-tests
455 TESTS += test-isnand-nolibm
456 check_PROGRAMS += test-isnand-nolibm
458 EXTRA_DIST += test-isnand-nolibm.c test-isnand.h minus-zero.h nan.h macros.h
460 ## end gnulib module isnand-nolibm-tests
462 ## begin gnulib module isnanf-nolibm-tests
464 TESTS += test-isnanf-nolibm
465 check_PROGRAMS += test-isnanf-nolibm
467 EXTRA_DIST += test-isnanf-nolibm.c test-isnanf.h minus-zero.h nan.h macros.h
469 ## end gnulib module isnanf-nolibm-tests
471 ## begin gnulib module isnanl-nolibm-tests
473 TESTS += test-isnanl-nolibm
474 check_PROGRAMS += test-isnanl-nolibm
476 EXTRA_DIST += test-isnanl-nolibm.c test-isnanl.h minus-zero.h nan.h macros.h
478 ## end gnulib module isnanl-nolibm-tests
480 ## begin gnulib module langinfo-c++-tests
483 TESTS += test-langinfo-c++
484 check_PROGRAMS += test-langinfo-c++
485 test_langinfo_c___SOURCES = test-langinfo-c++.cc
487 EXTRA_DIST += test-langinfo-c++.cc signature.h
489 ## end gnulib module langinfo-c++-tests
491 ## begin gnulib module langinfo-tests
493 TESTS += test-langinfo
494 check_PROGRAMS += test-langinfo
495 EXTRA_DIST += test-langinfo.c
497 ## end gnulib module langinfo-tests
499 ## begin gnulib module link
504 EXTRA_libtests_a_SOURCES += link.c
506 ## end gnulib module link
508 ## begin gnulib module link-tests
511 check_PROGRAMS += test-link
512 EXTRA_DIST += test-link.h test-link.c signature.h macros.h
514 ## end gnulib module link-tests
516 ## begin gnulib module linkedhash-list-tests
518 TESTS += test-linkedhash_list
519 check_PROGRAMS += test-linkedhash_list
520 EXTRA_DIST += test-linkedhash_list.c macros.h
522 ## end gnulib module linkedhash-list-tests
524 ## begin gnulib module locale
526 BUILT_SOURCES += locale.h
528 # We need the following in order to create <locale.h> when the system
529 # doesn't have one that provides all definitions.
530 locale.h: locale.in.h $(CXXDEFS_H) $(ARG_NONNULL_H) $(WARN_ON_USE_H)
531 $(AM_V_GEN)rm -f $@-t $@ && \
532 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
533 sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
534 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
535 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
536 -e 's|@''NEXT_LOCALE_H''@|$(NEXT_LOCALE_H)|g' \
537 -e 's|@''GNULIB_SETLOCALE''@|$(GNULIB_SETLOCALE)|g' \
538 -e 's|@''GNULIB_DUPLOCALE''@|$(GNULIB_DUPLOCALE)|g' \
539 -e 's|@''HAVE_DUPLOCALE''@|$(HAVE_DUPLOCALE)|g' \
540 -e 's|@''HAVE_XLOCALE_H''@|$(HAVE_XLOCALE_H)|g' \
541 -e 's|@''REPLACE_SETLOCALE''@|$(REPLACE_SETLOCALE)|g' \
542 -e 's|@''REPLACE_DUPLOCALE''@|$(REPLACE_DUPLOCALE)|g' \
543 -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
544 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
545 -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
546 < $(srcdir)/locale.in.h; \
549 MOSTLYCLEANFILES += locale.h locale.h-t
551 EXTRA_DIST += locale.in.h
553 ## end gnulib module locale
555 ## begin gnulib module locale-c++-tests
558 TESTS += test-locale-c++
559 check_PROGRAMS += test-locale-c++
560 test_locale_c___SOURCES = test-locale-c++.cc test-locale-c++2.cc
562 EXTRA_DIST += test-locale-c++.cc test-locale-c++2.cc signature.h
564 ## end gnulib module locale-c++-tests
566 ## begin gnulib module locale-tests
569 check_PROGRAMS += test-locale
570 EXTRA_DIST += test-locale.c
572 ## end gnulib module locale-tests
574 ## begin gnulib module localename
576 libtests_a_SOURCES += localename.c
578 EXTRA_DIST += localename.h
580 ## end gnulib module localename
582 ## begin gnulib module localename-tests
584 TESTS += test-localename
585 check_PROGRAMS += test-localename
586 test_localename_LDADD = $(LDADD) @INTL_MACOSX_LIBS@
588 EXTRA_DIST += test-localename.c macros.h
590 ## end gnulib module localename-tests
592 ## begin gnulib module lseek-tests
594 TESTS += test-lseek.sh
595 check_PROGRAMS += test-lseek
596 EXTRA_DIST += test-lseek.c test-lseek.sh signature.h macros.h
598 ## end gnulib module lseek-tests
600 ## begin gnulib module lstat-tests
603 check_PROGRAMS += test-lstat
604 EXTRA_DIST += test-lstat.h test-lstat.c signature.h macros.h
606 ## end gnulib module lstat-tests
608 ## begin gnulib module malloc-gnu-tests
610 TESTS += test-malloc-gnu
611 check_PROGRAMS += test-malloc-gnu
612 EXTRA_DIST += test-malloc-gnu.c
614 ## end gnulib module malloc-gnu-tests
616 ## begin gnulib module malloca-tests
618 TESTS += test-malloca
619 check_PROGRAMS += test-malloca
621 EXTRA_DIST += test-malloca.c
623 ## end gnulib module malloca-tests
625 ## begin gnulib module math-c++-tests
628 TESTS += test-math-c++
629 check_PROGRAMS += test-math-c++
630 test_math_c___SOURCES = test-math-c++.cc test-math-c++2.cc
632 EXTRA_DIST += test-math-c++.cc test-math-c++2.cc signature.h
634 ## end gnulib module math-c++-tests
636 ## begin gnulib module math-tests
639 check_PROGRAMS += test-math
640 EXTRA_DIST += test-math.c
642 ## end gnulib module math-tests
644 ## begin gnulib module mbrtowc-tests
647 test-mbrtowc1.sh test-mbrtowc2.sh test-mbrtowc3.sh test-mbrtowc4.sh \
648 test-mbrtowc-w32-1.sh test-mbrtowc-w32-2.sh test-mbrtowc-w32-3.sh \
649 test-mbrtowc-w32-4.sh test-mbrtowc-w32-5.sh
650 TESTS_ENVIRONMENT += \
651 LOCALE_FR='@LOCALE_FR@' \
652 LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
653 LOCALE_JA='@LOCALE_JA@' \
654 LOCALE_ZH_CN='@LOCALE_ZH_CN@'
655 check_PROGRAMS += test-mbrtowc test-mbrtowc-w32
657 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
659 ## end gnulib module mbrtowc-tests
661 ## begin gnulib module mbsinit-tests
663 TESTS += test-mbsinit.sh
664 TESTS_ENVIRONMENT += LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
665 check_PROGRAMS += test-mbsinit
667 EXTRA_DIST += test-mbsinit.sh test-mbsinit.c signature.h macros.h
669 ## end gnulib module mbsinit-tests
671 ## begin gnulib module memchr-tests
674 check_PROGRAMS += test-memchr
675 EXTRA_DIST += test-memchr.c zerosize-ptr.h signature.h macros.h
677 ## end gnulib module memchr-tests
679 ## begin gnulib module memchr2-tests
681 TESTS += test-memchr2
682 check_PROGRAMS += test-memchr2
683 EXTRA_DIST += test-memchr2.c zerosize-ptr.h macros.h
685 ## end gnulib module memchr2-tests
687 ## begin gnulib module nl_langinfo-tests
689 TESTS += test-nl_langinfo.sh
690 TESTS_ENVIRONMENT += LOCALE_FR='@LOCALE_FR@' LOCALE_FR_UTF8='@LOCALE_FR_UTF8@'
691 check_PROGRAMS += test-nl_langinfo
692 EXTRA_DIST += test-nl_langinfo.sh test-nl_langinfo.c signature.h macros.h
694 ## end gnulib module nl_langinfo-tests
696 ## begin gnulib module open-tests
699 check_PROGRAMS += test-open
700 EXTRA_DIST += test-open.h test-open.c signature.h macros.h
702 ## end gnulib module open-tests
704 ## begin gnulib module pipe2-tests
707 check_PROGRAMS += test-pipe2
708 EXTRA_DIST += test-pipe2.c signature.h macros.h
710 ## end gnulib module pipe2-tests
712 ## begin gnulib module posix_spawnp-tests
714 if POSIX_SPAWN_PORTED
715 TESTS += test-posix_spawn1 test-posix_spawn2
716 check_PROGRAMS += test-posix_spawn1 test-posix_spawn2
718 BUILT_SOURCES += test-posix_spawn1.sh
719 test-posix_spawn1.sh: test-posix_spawn1.in.sh
720 $(AM_V_GEN)rm -f $@-t $@ && \
721 cp $(srcdir)/test-posix_spawn1.in.sh $@-t && \
723 MOSTLYCLEANFILES += test-posix_spawn1.sh test-posix_spawn1.sh-t
725 BUILT_SOURCES += test-posix_spawn2.sh
726 test-posix_spawn2.sh: test-posix_spawn2.in.sh
727 $(AM_V_GEN)rm -f $@-t $@ && \
728 cp $(srcdir)/test-posix_spawn2.in.sh $@-t && \
730 MOSTLYCLEANFILES += test-posix_spawn2.sh test-posix_spawn2.sh-t
732 EXTRA_DIST += test-posix_spawn1.c test-posix_spawn1.in.sh test-posix_spawn2.c test-posix_spawn2.in.sh signature.h
734 ## end gnulib module posix_spawnp-tests
736 ## begin gnulib module printf-frexp-tests
738 TESTS += test-printf-frexp
739 check_PROGRAMS += test-printf-frexp
740 EXTRA_DIST += test-printf-frexp.c macros.h
742 ## end gnulib module printf-frexp-tests
744 ## begin gnulib module printf-frexpl-tests
746 TESTS += test-printf-frexpl
747 check_PROGRAMS += test-printf-frexpl
748 EXTRA_DIST += test-printf-frexpl.c macros.h
750 ## end gnulib module printf-frexpl-tests
752 ## begin gnulib module putenv
755 EXTRA_DIST += putenv.c
757 EXTRA_libtests_a_SOURCES += putenv.c
759 ## end gnulib module putenv
761 ## begin gnulib module quotearg-simple-tests
763 TESTS += test-quotearg-simple
764 check_PROGRAMS += test-quotearg-simple
765 test_quotearg_simple_LDADD = $(LDADD) @LIBINTL@
766 EXTRA_DIST += test-quotearg-simple.c test-quotearg.h macros.h
768 ## end gnulib module quotearg-simple-tests
770 ## begin gnulib module rawmemchr-tests
772 TESTS += test-rawmemchr
773 check_PROGRAMS += test-rawmemchr
774 EXTRA_DIST += test-rawmemchr.c zerosize-ptr.h signature.h macros.h
776 ## end gnulib module rawmemchr-tests
778 ## begin gnulib module readlink-tests
780 TESTS += test-readlink
781 check_PROGRAMS += test-readlink
782 EXTRA_DIST += test-readlink.h test-readlink.c signature.h macros.h
784 ## end gnulib module readlink-tests
786 ## begin gnulib module rename-tests
789 check_PROGRAMS += test-rename
790 EXTRA_DIST += test-rename.h test-rename.c signature.h macros.h
792 ## end gnulib module rename-tests
794 ## begin gnulib module rmdir-tests
797 check_PROGRAMS += test-rmdir
798 EXTRA_DIST += test-rmdir.h test-rmdir.c signature.h macros.h
800 ## end gnulib module rmdir-tests
802 ## begin gnulib module sched-tests
805 check_PROGRAMS += test-sched
806 EXTRA_DIST += test-sched.c
808 ## end gnulib module sched-tests
810 ## begin gnulib module setenv
813 EXTRA_DIST += setenv.c
815 EXTRA_libtests_a_SOURCES += setenv.c
817 ## end gnulib module setenv
819 ## begin gnulib module setenv-tests
822 check_PROGRAMS += test-setenv
823 EXTRA_DIST += test-setenv.c signature.h macros.h
825 ## end gnulib module setenv-tests
827 ## begin gnulib module setlocale
830 EXTRA_DIST += setlocale.c
832 EXTRA_libtests_a_SOURCES += setlocale.c
834 ## end gnulib module setlocale
836 ## begin gnulib module setlocale-tests
838 TESTS += test-setlocale1.sh test-setlocale2.sh
839 TESTS_ENVIRONMENT += \
840 LOCALE_FR='@LOCALE_FR@' \
841 LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
842 LOCALE_JA='@LOCALE_JA@' \
843 LOCALE_ZH_CN='@LOCALE_ZH_CN@'
844 check_PROGRAMS += test-setlocale1 test-setlocale2
845 EXTRA_DIST += test-setlocale1.sh test-setlocale1.c test-setlocale2.sh test-setlocale2.c signature.h macros.h
847 ## end gnulib module setlocale-tests
849 ## begin gnulib module sigaction-tests
851 TESTS += test-sigaction
852 check_PROGRAMS += test-sigaction
853 EXTRA_DIST += test-sigaction.c signature.h macros.h
855 ## end gnulib module sigaction-tests
857 ## begin gnulib module signal-c++-tests
860 TESTS += test-signal-c++
861 check_PROGRAMS += test-signal-c++
862 test_signal_c___SOURCES = test-signal-c++.cc test-signal-c++2.cc
863 test_signal_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
865 EXTRA_DIST += test-signal-c++.cc test-signal-c++2.cc signature.h
867 ## end gnulib module signal-c++-tests
869 ## begin gnulib module signal-tests
872 check_PROGRAMS += test-signal
873 EXTRA_DIST += test-signal.c
875 ## end gnulib module signal-tests
877 ## begin gnulib module signbit-tests
879 TESTS += test-signbit
880 check_PROGRAMS += test-signbit
882 EXTRA_DIST += test-signbit.c minus-zero.h macros.h
884 ## end gnulib module signbit-tests
886 ## begin gnulib module snprintf-tests
888 TESTS += test-snprintf
889 check_PROGRAMS += test-snprintf
891 EXTRA_DIST += test-snprintf.c signature.h macros.h
893 ## end gnulib module snprintf-tests
895 ## begin gnulib module spawn-c++-tests
898 TESTS += test-spawn-c++
899 check_PROGRAMS += test-spawn-c++
900 test_spawn_c___SOURCES = test-spawn-c++.cc
901 test_spawn_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
903 EXTRA_DIST += test-spawn-c++.cc signature.h
905 ## end gnulib module spawn-c++-tests
907 ## begin gnulib module spawn-pipe-tests
909 TESTS += test-spawn-pipe.sh
910 check_PROGRAMS += test-spawn-pipe
911 test_spawn_pipe_LDADD = $(LDADD) @LIBINTL@
912 EXTRA_DIST += test-spawn-pipe.sh test-spawn-pipe.c macros.h
914 ## end gnulib module spawn-pipe-tests
916 ## begin gnulib module spawn-tests
919 check_PROGRAMS += test-spawn
920 EXTRA_DIST += test-spawn.c
922 ## end gnulib module spawn-tests
924 ## begin gnulib module stat-tests
927 check_PROGRAMS += test-stat
928 EXTRA_DIST += test-stat.h test-stat.c signature.h macros.h
930 ## end gnulib module stat-tests
932 ## begin gnulib module stdbool-tests
934 TESTS += test-stdbool
935 check_PROGRAMS += test-stdbool
936 EXTRA_DIST += test-stdbool.c
938 ## end gnulib module stdbool-tests
940 ## begin gnulib module stddef-tests
943 check_PROGRAMS += test-stddef
944 EXTRA_DIST += test-stddef.c
946 ## end gnulib module stddef-tests
948 ## begin gnulib module stdint-tests
951 check_PROGRAMS += test-stdint
952 EXTRA_DIST += test-stdint.c
954 ## end gnulib module stdint-tests
956 ## begin gnulib module stdio-c++-tests
959 TESTS += test-stdio-c++
960 check_PROGRAMS += test-stdio-c++
961 test_stdio_c___SOURCES = test-stdio-c++.cc test-stdio-c++2.cc
962 test_stdio_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS)
964 EXTRA_DIST += test-stdio-c++.cc test-stdio-c++2.cc signature.h
966 ## end gnulib module stdio-c++-tests
968 ## begin gnulib module stdio-tests
971 check_PROGRAMS += test-stdio
972 EXTRA_DIST += test-stdio.c
974 ## end gnulib module stdio-tests
976 ## begin gnulib module stdlib-c++-tests
979 TESTS += test-stdlib-c++
980 check_PROGRAMS += test-stdlib-c++
981 test_stdlib_c___SOURCES = test-stdlib-c++.cc test-stdlib-c++2.cc
982 test_stdlib_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)
984 EXTRA_DIST += test-stdlib-c++.cc test-stdlib-c++2.cc signature.h
986 ## end gnulib module stdlib-c++-tests
988 ## begin gnulib module stdlib-tests
991 check_PROGRAMS += test-stdlib
992 EXTRA_DIST += test-stdlib.c test-sys_wait.h
994 ## end gnulib module stdlib-tests
996 ## begin gnulib module strchrnul-tests
998 TESTS += test-strchrnul
999 check_PROGRAMS += test-strchrnul
1000 EXTRA_DIST += test-strchrnul.c signature.h macros.h
1002 ## end gnulib module strchrnul-tests
1004 ## begin gnulib module strdup-posix
1007 EXTRA_DIST += strdup.c
1009 EXTRA_libtests_a_SOURCES += strdup.c
1011 ## end gnulib module strdup-posix
1013 ## begin gnulib module strerror-tests
1015 TESTS += test-strerror
1016 check_PROGRAMS += test-strerror
1017 EXTRA_DIST += test-strerror.c signature.h macros.h
1019 ## end gnulib module strerror-tests
1021 ## begin gnulib module string-c++-tests
1024 TESTS += test-string-c++
1025 check_PROGRAMS += test-string-c++
1026 test_string_c___SOURCES = test-string-c++.cc test-string-c++2.cc
1027 test_string_c___LDADD = $(LDADD) $(LIBINTL)
1029 EXTRA_DIST += test-string-c++.cc test-string-c++2.cc signature.h
1031 ## end gnulib module string-c++-tests
1033 ## begin gnulib module string-tests
1035 TESTS += test-string
1036 check_PROGRAMS += test-string
1037 EXTRA_DIST += test-string.c
1039 ## end gnulib module string-tests
1041 ## begin gnulib module strnlen-tests
1043 TESTS += test-strnlen
1044 check_PROGRAMS += test-strnlen
1045 EXTRA_DIST += test-strnlen.c zerosize-ptr.h signature.h macros.h
1047 ## end gnulib module strnlen-tests
1049 ## begin gnulib module strsignal-tests
1051 TESTS += test-strsignal
1052 check_PROGRAMS += test-strsignal
1053 test_strsignal_LDADD = $(LDADD) @LIBINTL@ $(LIBTHREAD)
1054 EXTRA_DIST += test-strsignal.c signature.h macros.h
1056 ## end gnulib module strsignal-tests
1058 ## begin gnulib module strstr-tests
1060 TESTS += test-strstr
1061 check_PROGRAMS += test-strstr
1062 EXTRA_DIST += test-strstr.c zerosize-ptr.h signature.h macros.h
1064 ## end gnulib module strstr-tests
1066 ## begin gnulib module strtod-tests
1068 TESTS += test-strtod
1069 check_PROGRAMS += test-strtod
1070 EXTRA_DIST += test-strtod.c signature.h minus-zero.h macros.h
1072 ## end gnulib module strtod-tests
1074 ## begin gnulib module symlink
1077 EXTRA_DIST += symlink.c
1079 EXTRA_libtests_a_SOURCES += symlink.c
1081 ## end gnulib module symlink
1083 ## begin gnulib module symlink-tests
1085 TESTS += test-symlink
1086 check_PROGRAMS += test-symlink
1087 EXTRA_DIST += test-symlink.h test-symlink.c signature.h macros.h
1089 ## end gnulib module symlink-tests
1091 ## begin gnulib module sys_stat-c++-tests
1094 TESTS += test-sys_stat-c++
1095 check_PROGRAMS += test-sys_stat-c++
1096 test_sys_stat_c___SOURCES = test-sys_stat-c++.cc
1097 test_sys_stat_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME)
1099 EXTRA_DIST += test-sys_stat-c++.cc signature.h
1101 ## end gnulib module sys_stat-c++-tests
1103 ## begin gnulib module sys_stat-tests
1105 TESTS += test-sys_stat
1106 check_PROGRAMS += test-sys_stat
1107 EXTRA_DIST += test-sys_stat.c
1109 ## end gnulib module sys_stat-tests
1111 ## begin gnulib module sys_time-c++-tests
1114 TESTS += test-sys_time-c++
1115 check_PROGRAMS += test-sys_time-c++
1116 test_sys_time_c___SOURCES = test-sys_time-c++.cc
1117 test_sys_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
1119 EXTRA_DIST += test-sys_time-c++.cc signature.h
1121 ## end gnulib module sys_time-c++-tests
1123 ## begin gnulib module sys_time-tests
1125 TESTS += test-sys_time
1126 check_PROGRAMS += test-sys_time
1127 EXTRA_DIST += test-sys_time.c
1129 ## end gnulib module sys_time-tests
1131 ## begin gnulib module sys_wait-c++-tests
1134 TESTS += test-sys_wait-c++
1135 check_PROGRAMS += test-sys_wait-c++
1136 test_sys_wait_c___SOURCES = test-sys_wait-c++.cc
1138 EXTRA_DIST += test-sys_wait-c++.cc signature.h
1140 ## end gnulib module sys_wait-c++-tests
1142 ## begin gnulib module sys_wait-tests
1144 TESTS += test-sys_wait
1145 check_PROGRAMS += test-sys_wait
1146 EXTRA_DIST += test-sys_wait.c test-sys_wait.h
1148 ## end gnulib module sys_wait-tests
1150 ## begin gnulib module time-c++-tests
1153 TESTS += test-time-c++
1154 check_PROGRAMS += test-time-c++
1155 test_time_c___SOURCES = test-time-c++.cc test-time-c++2.cc
1156 test_time_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP)
1158 EXTRA_DIST += test-time-c++.cc test-time-c++2.cc signature.h
1160 ## end gnulib module time-c++-tests
1162 ## begin gnulib module time-tests
1165 check_PROGRAMS += test-time
1166 EXTRA_DIST += test-time.c
1168 ## end gnulib module time-tests
1170 ## begin gnulib module unistd-c++-tests
1173 TESTS += test-unistd-c++
1174 check_PROGRAMS += test-unistd-c++
1175 test_unistd_c___SOURCES = test-unistd-c++.cc
1176 test_unistd_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS) $(LIBSOCKET)
1178 EXTRA_DIST += test-unistd-c++.cc signature.h
1180 ## end gnulib module unistd-c++-tests
1182 ## begin gnulib module unistd-safer-tests
1184 TESTS += test-dup-safer
1185 check_PROGRAMS += test-dup-safer
1186 EXTRA_DIST += test-dup-safer.c macros.h
1188 ## end gnulib module unistd-safer-tests
1190 ## begin gnulib module unistd-tests
1192 TESTS += test-unistd
1193 check_PROGRAMS += test-unistd
1194 EXTRA_DIST += test-unistd.c
1196 ## end gnulib module unistd-tests
1198 ## begin gnulib module unsetenv
1201 EXTRA_DIST += unsetenv.c
1203 EXTRA_libtests_a_SOURCES += unsetenv.c
1205 ## end gnulib module unsetenv
1207 ## begin gnulib module unsetenv-tests
1209 TESTS += test-unsetenv
1210 check_PROGRAMS += test-unsetenv
1211 EXTRA_DIST += test-unsetenv.c signature.h macros.h
1213 ## end gnulib module unsetenv-tests
1215 ## begin gnulib module update-copyright-tests
1217 TESTS += test-update-copyright.sh
1218 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
1219 EXTRA_DIST += test-update-copyright.sh
1221 ## end gnulib module update-copyright-tests
1223 ## begin gnulib module vasnprintf-tests
1225 TESTS += test-vasnprintf
1226 check_PROGRAMS += test-vasnprintf
1228 EXTRA_DIST += test-vasnprintf.c macros.h
1230 ## end gnulib module vasnprintf-tests
1232 ## begin gnulib module vasprintf-posix-tests
1234 TESTS += test-vasprintf-posix
1235 check_PROGRAMS += test-vasprintf-posix
1237 EXTRA_DIST += test-vasprintf-posix.c minus-zero.h nan.h macros.h
1239 ## end gnulib module vasprintf-posix-tests
1241 ## begin gnulib module vasprintf-tests
1243 TESTS += test-vasprintf
1244 check_PROGRAMS += test-vasprintf
1246 EXTRA_DIST += test-vasprintf.c signature.h macros.h
1248 ## end gnulib module vasprintf-tests
1250 ## begin gnulib module vc-list-files-tests
1252 TESTS += test-vc-list-files-git.sh
1253 TESTS += test-vc-list-files-cvs.sh
1254 TESTS_ENVIRONMENT += abs_aux_dir='$(abs_aux_dir)'
1255 EXTRA_DIST += test-vc-list-files-git.sh test-vc-list-files-cvs.sh init.sh
1257 ## end gnulib module vc-list-files-tests
1259 ## begin gnulib module verify-tests
1261 TESTS_ENVIRONMENT += MAKE='$(MAKE)'
1262 TESTS += test-verify test-verify.sh
1263 check_PROGRAMS += test-verify
1264 EXTRA_DIST += test-verify.c test-verify.sh init.sh
1266 ## end gnulib module verify-tests
1268 ## begin gnulib module version-etc-tests
1270 TESTS += test-version-etc.sh
1271 check_PROGRAMS += test-version-etc
1272 test_version_etc_LDADD = $(LDADD) @LIBINTL@
1273 EXTRA_DIST += test-version-etc.c test-version-etc.sh
1275 ## end gnulib module version-etc-tests
1277 ## begin gnulib module warn-on-use
1279 BUILT_SOURCES += warn-on-use.h
1280 # The warn-on-use.h that gets inserted into generated .h files is the same as
1281 # build-aux/warn-on-use.h, except that it has the copyright header cut off.
1282 warn-on-use.h: $(top_srcdir)/build-aux/warn-on-use.h
1283 $(AM_V_GEN)rm -f $@-t $@ && \
1284 sed -n -e '/^.ifndef/,$$p' \
1285 < $(top_srcdir)/build-aux/warn-on-use.h \
1288 MOSTLYCLEANFILES += warn-on-use.h warn-on-use.h-t
1290 WARN_ON_USE_H=warn-on-use.h
1292 EXTRA_DIST += $(top_srcdir)/build-aux/warn-on-use.h
1294 ## end gnulib module warn-on-use
1296 ## begin gnulib module wchar-c++-tests
1299 TESTS += test-wchar-c++
1300 check_PROGRAMS += test-wchar-c++
1301 test_wchar_c___SOURCES = test-wchar-c++.cc
1302 test_wchar_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS)
1304 EXTRA_DIST += test-wchar-c++.cc signature.h
1306 ## end gnulib module wchar-c++-tests
1308 ## begin gnulib module wchar-tests
1311 check_PROGRAMS += test-wchar
1312 EXTRA_DIST += test-wchar.c
1314 ## end gnulib module wchar-tests
1316 ## begin gnulib module wcrtomb-tests
1320 test-wcrtomb-w32-1.sh test-wcrtomb-w32-2.sh test-wcrtomb-w32-3.sh \
1321 test-wcrtomb-w32-4.sh test-wcrtomb-w32-5.sh
1322 TESTS_ENVIRONMENT += \
1323 LOCALE_FR='@LOCALE_FR@' \
1324 LOCALE_FR_UTF8='@LOCALE_FR_UTF8@' \
1325 LOCALE_JA='@LOCALE_JA@' \
1326 LOCALE_ZH_CN='@LOCALE_ZH_CN@'
1327 check_PROGRAMS += test-wcrtomb test-wcrtomb-w32
1329 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
1331 ## end gnulib module wcrtomb-tests
1333 ## begin gnulib module wctob
1336 EXTRA_DIST += wctob.c
1338 EXTRA_libtests_a_SOURCES += wctob.c
1340 ## end gnulib module wctob
1342 ## begin gnulib module wctomb
1345 EXTRA_DIST += wctomb-impl.h wctomb.c
1347 EXTRA_libtests_a_SOURCES += wctomb.c
1349 ## end gnulib module wctomb
1351 ## begin gnulib module wctype-h-c++-tests
1354 TESTS += test-wctype-h-c++
1355 check_PROGRAMS += test-wctype-h-c++
1356 test_wctype_h_c___SOURCES = test-wctype-h-c++.cc
1357 test_wctype_h_c___LDADD = $(LDADD) $(LIBINTL) $(LIB_NANOSLEEP) $(LIB_EACCESS)
1359 EXTRA_DIST += test-wctype-h-c++.cc signature.h
1361 ## end gnulib module wctype-h-c++-tests
1363 ## begin gnulib module wctype-h-tests
1365 TESTS += test-wctype-h
1366 check_PROGRAMS += test-wctype-h
1367 EXTRA_DIST += test-wctype-h.c macros.h
1369 ## end gnulib module wctype-h-tests
1371 ## begin gnulib module xalloc-die-tests
1373 TESTS += test-xalloc-die.sh
1374 check_PROGRAMS += test-xalloc-die
1375 test_xalloc_die_LDADD = $(LDADD) @LIBINTL@
1376 EXTRA_DIST += test-xalloc-die.c test-xalloc-die.sh init.sh
1378 ## end gnulib module xalloc-die-tests
1380 ## begin gnulib module xvasprintf-tests
1382 TESTS += test-xvasprintf
1383 check_PROGRAMS += test-xvasprintf
1384 test_xvasprintf_LDADD = $(LDADD) @LIBINTL@
1386 EXTRA_DIST += test-xvasprintf.c macros.h
1388 ## end gnulib module xvasprintf-tests
1390 # Clean up after Solaris cc.
1394 mostlyclean-local: mostlyclean-generic
1395 @for dir in '' $(MOSTLYCLEANDIRS); do \
1396 if test -n "$$dir" && test -d $$dir; then \
1397 echo "rmdir $$dir"; rmdir $$dir; \