Imported Upstream version 0.18.1.1
[platform/upstream/gettext.git] / gettext-tools / libgettextpo / gnulib-m4 / gnulib-comp.m4
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2010 Free Software Foundation, Inc.
3 #
4 # This file is free software, distributed under the terms of the GNU
5 # General Public License.  As a special exception to the GNU General
6 # Public License, this file may be distributed as part of a program
7 # that contains a configuration script generated by Autoconf, under
8 # the same distribution terms as the rest of that program.
9 #
10 # Generated by gnulib-tool.
11 #
12 # This file represents the compiled summary of the specification in
13 # gnulib-cache.m4. It lists the computed macro invocations that need
14 # to be invoked from configure.ac.
15 # In projects using CVS, this file can be treated like other built files.
16
17
18 # This macro should be invoked from gettext-tools/configure.ac, in the section
19 # "Checks for programs", right after AC_PROG_CC, and certainly before
20 # any checks for libraries, header files, types and library functions.
21 AC_DEFUN([gtpo_EARLY],
22 [
23   m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
24   m4_pattern_allow([^gl_ES$])dnl a valid locale name
25   m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
26   m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
27   AC_REQUIRE([AC_PROG_RANLIB])
28   AC_REQUIRE([AM_PROG_CC_C_O])
29   # Code from module alloca-opt:
30   # Code from module arg-nonnull:
31   # Code from module basename:
32   # Code from module c++defs:
33   # Code from module c-ctype:
34   # Code from module c-strcase:
35   # Code from module c-strcaseeq:
36   # Code from module c-strstr:
37   # Code from module concat-filename:
38   # Code from module configmake:
39   # Code from module diffseq:
40   # Code from module errno:
41   # Code from module error:
42   # Code from module error-progname:
43   # Code from module exitfail:
44   # Code from module extensions:
45   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
46   # Code from module fcntl-h:
47   # Code from module file-ostream:
48   # Code from module filename:
49   # Code from module float:
50   # Code from module fopen:
51   # Code from module fstrcmp:
52   # Code from module fwriteerror:
53   # Code from module gcd:
54   # Code from module getdelim:
55   # Code from module getline:
56   # Code from module gettext-h:
57   # Code from module gperf:
58   # Code from module hash:
59   # Code from module havelib:
60   # Code from module iconv:
61   # Code from module iconv-h:
62   # Code from module iconv_open:
63   # Code from module include_next:
64   # Code from module inline:
65   # Code from module intprops:
66   # Code from module libunistring-optional:
67   # Code from module localcharset:
68   # Code from module lock:
69   # Code from module malloc-posix:
70   # Code from module malloca:
71   # Code from module mbrtowc:
72   # Code from module mbsinit:
73   # Code from module mbswidth:
74   # Code from module memchr:
75   # Code from module minmax:
76   # Code from module moo:
77   # Code from module multiarch:
78   # Code from module obstack:
79   # Code from module open:
80   # Code from module ostream:
81   # Code from module progname:
82   # Code from module realloc-posix:
83   # Code from module relocatable-lib:
84   # Code from module signal:
85   # Code from module sigpipe:
86   # Code from module sigprocmask:
87   # Code from module size_max:
88   # Code from module stat:
89   # Code from module stdarg:
90   dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
91   dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
92   dnl AC_PROG_CC_STDC arranges for this.  With older Autoconf AC_PROG_CC_STDC
93   dnl shouldn't hurt, though installers are on their own to set c99 mode.
94   AC_REQUIRE([AC_PROG_CC_STDC])
95   # Code from module stdbool:
96   # Code from module stddef:
97   # Code from module stdint:
98   # Code from module stdio:
99   # Code from module stdlib:
100   # Code from module stpcpy:
101   # Code from module streq:
102   # Code from module strerror:
103   # Code from module striconv:
104   # Code from module striconveh:
105   # Code from module striconveha:
106   # Code from module string:
107   # Code from module strstr:
108   # Code from module strstr-simple:
109   # Code from module sys_stat:
110   # Code from module threadlib:
111   gl_THREADLIB_EARLY
112   # Code from module time:
113   # Code from module tls:
114   # Code from module uniconv/base:
115   # Code from module uniconv/u8-conv-from-enc:
116   # Code from module unilbrk/base:
117   # Code from module unilbrk/tables:
118   # Code from module unilbrk/u8-possible-linebreaks:
119   # Code from module unilbrk/u8-width-linebreaks:
120   # Code from module unilbrk/ulc-common:
121   # Code from module unilbrk/ulc-width-linebreaks:
122   # Code from module unistd:
123   # Code from module unistr/base:
124   # Code from module unistr/u16-mbtouc:
125   # Code from module unistr/u8-check:
126   # Code from module unistr/u8-mblen:
127   # Code from module unistr/u8-mbtouc:
128   # Code from module unistr/u8-mbtouc-unsafe:
129   # Code from module unistr/u8-mbtoucr:
130   # Code from module unistr/u8-prev:
131   # Code from module unistr/u8-uctomb:
132   # Code from module unitypes:
133   # Code from module uniwidth/base:
134   # Code from module uniwidth/width:
135   # Code from module unlocked-io:
136   # Code from module unused-parameter:
137   # Code from module vasnprintf:
138   # Code from module vasprintf:
139   # Code from module verify:
140   # Code from module warn-on-use:
141   # Code from module wchar:
142   # Code from module wctype:
143   # Code from module wcwidth:
144   # Code from module xalloc:
145   # Code from module xalloc-die:
146   # Code from module xconcat-filename:
147   # Code from module xerror:
148   # Code from module xmalloca:
149   # Code from module xsize:
150   # Code from module xstriconv:
151   # Code from module xvasprintf:
152 ])
153
154 # This macro should be invoked from gettext-tools/configure.ac, in the section
155 # "Check for header files, types and library functions".
156 AC_DEFUN([gtpo_INIT],
157 [
158   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
159   gl_cond_libtool=true
160   gl_m4_base='libgettextpo/gnulib-m4'
161   m4_pushdef([AC_LIBOBJ], m4_defn([gtpo_LIBOBJ]))
162   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gtpo_REPLACE_FUNCS]))
163   m4_pushdef([AC_LIBSOURCES], m4_defn([gtpo_LIBSOURCES]))
164   m4_pushdef([gtpo_LIBSOURCES_LIST], [])
165   m4_pushdef([gtpo_LIBSOURCES_DIR], [])
166   gl_COMMON
167   gl_source_base='libgettextpo'
168   # Code from module alloca-opt:
169   gl_FUNC_ALLOCA
170   # Code from module arg-nonnull:
171   # Code from module basename:
172   # Code from module c++defs:
173   # Code from module c-ctype:
174   # Code from module c-strcase:
175   # Code from module c-strcaseeq:
176   # Code from module c-strstr:
177   # Code from module concat-filename:
178   # Code from module configmake:
179   # Code from module diffseq:
180   # Code from module errno:
181   gl_HEADER_ERRNO_H
182   # Code from module error:
183   gl_ERROR
184   m4_ifdef([AM_XGETTEXT_OPTION],
185     [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
186      AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
187   # Code from module error-progname:
188   # Code from module exitfail:
189   # Code from module extensions:
190   # Code from module fcntl-h:
191   gl_FCNTL_H
192   # Code from module file-ostream:
193   # Code from module filename:
194   # Code from module float:
195   gl_FLOAT_H
196   # Code from module fopen:
197   gl_FUNC_FOPEN
198   gl_STDIO_MODULE_INDICATOR([fopen])
199   # Code from module fstrcmp:
200   # Code from module fwriteerror:
201   gl_MODULE_INDICATOR([fwriteerror])
202   # Code from module gcd:
203   # Code from module getdelim:
204   gl_FUNC_GETDELIM
205   gl_STDIO_MODULE_INDICATOR([getdelim])
206   # Code from module getline:
207   gl_FUNC_GETLINE
208   gl_STDIO_MODULE_INDICATOR([getline])
209   # Code from module gettext-h:
210   AC_SUBST([LIBINTL])
211   AC_SUBST([LTLIBINTL])
212   # Code from module gperf:
213   # Code from module hash:
214   # Code from module havelib:
215   # Code from module iconv:
216   AM_ICONV
217   # Code from module iconv-h:
218   gl_ICONV_H
219   # Code from module iconv_open:
220   gl_FUNC_ICONV_OPEN
221   # Code from module include_next:
222   # Code from module inline:
223   gl_INLINE
224   # Code from module intprops:
225   # Code from module libunistring-optional:
226   gl_LIBUNISTRING_OPTIONAL
227   # Code from module localcharset:
228   gl_LOCALCHARSET
229   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
230   AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
231   # Code from module lock:
232   gl_LOCK
233   # Code from module malloc-posix:
234   gl_FUNC_MALLOC_POSIX
235   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
236   # Code from module malloca:
237   gl_MALLOCA
238   # Code from module mbrtowc:
239   gl_FUNC_MBRTOWC
240   gl_WCHAR_MODULE_INDICATOR([mbrtowc])
241   # Code from module mbsinit:
242   gl_FUNC_MBSINIT
243   gl_WCHAR_MODULE_INDICATOR([mbsinit])
244   # Code from module mbswidth:
245   gl_MBSWIDTH
246   # Code from module memchr:
247   gl_FUNC_MEMCHR
248   gl_STRING_MODULE_INDICATOR([memchr])
249   # Code from module minmax:
250   gl_MINMAX
251   # Code from module moo:
252   gl_MOO
253   # Code from module multiarch:
254   gl_MULTIARCH
255   # Code from module obstack:
256   AC_FUNC_OBSTACK
257   dnl Note: AC_FUNC_OBSTACK does AC_LIBSOURCES([obstack.h, obstack.c]).
258   # Code from module open:
259   gl_FUNC_OPEN
260   gl_FCNTL_MODULE_INDICATOR([open])
261   # Code from module ostream:
262   # Code from module progname:
263   AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
264   AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
265   # Code from module realloc-posix:
266   gl_FUNC_REALLOC_POSIX
267   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
268   # Code from module relocatable-lib:
269   gl_RELOCATABLE_LIBRARY
270   # Code from module signal:
271   gl_SIGNAL_H
272   # Code from module sigpipe:
273   gl_SIGNAL_SIGPIPE
274   dnl Define the C macro GNULIB_SIGPIPE to 1.
275   gl_MODULE_INDICATOR([sigpipe])
276   dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1.
277   AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
278   GNULIB_SIGNAL_H_SIGPIPE=1
279   dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1.
280   AC_REQUIRE([gl_STDIO_H_DEFAULTS])
281   GNULIB_STDIO_H_SIGPIPE=1
282   dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1.
283   AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
284   GNULIB_UNISTD_H_SIGPIPE=1
285   # Code from module sigprocmask:
286   gl_SIGNALBLOCKING
287   gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
288   # Code from module size_max:
289   gl_SIZE_MAX
290   # Code from module stat:
291   gl_FUNC_STAT
292   gl_SYS_STAT_MODULE_INDICATOR([stat])
293   # Code from module stdarg:
294   gl_STDARG_H
295   # Code from module stdbool:
296   AM_STDBOOL_H
297   # Code from module stddef:
298   gl_STDDEF_H
299   # Code from module stdint:
300   gl_STDINT_H
301   # Code from module stdio:
302   gl_STDIO_H
303   # Code from module stdlib:
304   gl_STDLIB_H
305   # Code from module stpcpy:
306   gl_FUNC_STPCPY
307   gl_STRING_MODULE_INDICATOR([stpcpy])
308   # Code from module streq:
309   # Code from module strerror:
310   gl_FUNC_STRERROR
311   gl_STRING_MODULE_INDICATOR([strerror])
312   # Code from module striconv:
313   if test $gl_cond_libtool = false; then
314     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
315     gl_libdeps="$gl_libdeps $LIBICONV"
316   fi
317   # Code from module striconveh:
318   if test $gl_cond_libtool = false; then
319     gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
320     gl_libdeps="$gl_libdeps $LIBICONV"
321   fi
322   # Code from module striconveha:
323   # Code from module string:
324   gl_HEADER_STRING_H
325   # Code from module strstr:
326   gl_FUNC_STRSTR
327   # Code from module strstr-simple:
328   gl_FUNC_STRSTR_SIMPLE
329   gl_STRING_MODULE_INDICATOR([strstr])
330   # Code from module sys_stat:
331   gl_HEADER_SYS_STAT_H
332   AC_PROG_MKDIR_P
333   # Code from module threadlib:
334   gl_THREADLIB
335   # Code from module time:
336   gl_HEADER_TIME_H
337   # Code from module tls:
338   gl_TLS
339   # Code from module uniconv/base:
340   gl_LIBUNISTRING_LIBHEADER([0.9], [uniconv.h])
341   # Code from module uniconv/u8-conv-from-enc:
342   gl_LIBUNISTRING_MODULE([0.9], [uniconv/u8-conv-from-enc])
343   # Code from module unilbrk/base:
344   gl_LIBUNISTRING_LIBHEADER([0.9], [unilbrk.h])
345   # Code from module unilbrk/tables:
346   AC_REQUIRE([AC_C_INLINE])
347   # Code from module unilbrk/u8-possible-linebreaks:
348   gl_LIBUNISTRING_MODULE([0.9], [unilbrk/u8-possible-linebreaks])
349   # Code from module unilbrk/u8-width-linebreaks:
350   gl_LIBUNISTRING_MODULE([0.9], [unilbrk/u8-width-linebreaks])
351   # Code from module unilbrk/ulc-common:
352   # Code from module unilbrk/ulc-width-linebreaks:
353   gl_LIBUNISTRING_MODULE([0.9], [unilbrk/ulc-width-linebreaks])
354   # Code from module unistd:
355   gl_UNISTD_H
356   # Code from module unistr/base:
357   gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
358   # Code from module unistr/u16-mbtouc:
359   gl_MODULE_INDICATOR([unistr/u16-mbtouc])
360   gl_LIBUNISTRING_MODULE([0.9], [unistr/u16-mbtouc])
361   # Code from module unistr/u8-check:
362   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-check])
363   # Code from module unistr/u8-mblen:
364   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mblen])
365   # Code from module unistr/u8-mbtouc:
366   gl_MODULE_INDICATOR([unistr/u8-mbtouc])
367   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc])
368   # Code from module unistr/u8-mbtouc-unsafe:
369   gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
370   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc-unsafe])
371   # Code from module unistr/u8-mbtoucr:
372   gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
373   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
374   # Code from module unistr/u8-prev:
375   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev])
376   # Code from module unistr/u8-uctomb:
377   gl_MODULE_INDICATOR([unistr/u8-uctomb])
378   gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
379   # Code from module unitypes:
380   gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
381   # Code from module uniwidth/base:
382   gl_LIBUNISTRING_LIBHEADER([0.9], [uniwidth.h])
383   # Code from module uniwidth/width:
384   gl_LIBUNISTRING_MODULE([0.9], [uniwidth/width])
385   # Code from module unlocked-io:
386   gl_FUNC_GLIBC_UNLOCKED_IO
387   # Code from module unused-parameter:
388   # Code from module vasnprintf:
389   gl_FUNC_VASNPRINTF
390   # Code from module vasprintf:
391   gl_FUNC_VASPRINTF
392   gl_STDIO_MODULE_INDICATOR([vasprintf])
393   m4_ifdef([AM_XGETTEXT_OPTION],
394     [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
395      AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
396   # Code from module verify:
397   # Code from module warn-on-use:
398   # Code from module wchar:
399   gl_WCHAR_H
400   # Code from module wctype:
401   gl_WCTYPE_H
402   # Code from module wcwidth:
403   gl_FUNC_WCWIDTH
404   gl_WCHAR_MODULE_INDICATOR([wcwidth])
405   # Code from module xalloc:
406   # Code from module xalloc-die:
407   # Code from module xconcat-filename:
408   # Code from module xerror:
409   # Code from module xmalloca:
410   # Code from module xsize:
411   gl_XSIZE
412   # Code from module xstriconv:
413   # Code from module xvasprintf:
414   gl_XVASPRINTF
415   m4_ifdef([AM_XGETTEXT_OPTION],
416     [AM_][XGETTEXT_OPTION([--flag=xasprintf:1:c-format])])
417   # End of code from modules
418   m4_ifval(gtpo_LIBSOURCES_LIST, [
419     m4_syscmd([test ! -d ]m4_defn([gtpo_LIBSOURCES_DIR])[ ||
420       for gl_file in ]gtpo_LIBSOURCES_LIST[ ; do
421         if test ! -r ]m4_defn([gtpo_LIBSOURCES_DIR])[/$gl_file ; then
422           echo "missing file ]m4_defn([gtpo_LIBSOURCES_DIR])[/$gl_file" >&2
423           exit 1
424         fi
425       done])dnl
426       m4_if(m4_sysval, [0], [],
427         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
428   ])
429   m4_popdef([gtpo_LIBSOURCES_DIR])
430   m4_popdef([gtpo_LIBSOURCES_LIST])
431   m4_popdef([AC_LIBSOURCES])
432   m4_popdef([AC_REPLACE_FUNCS])
433   m4_popdef([AC_LIBOBJ])
434   AC_CONFIG_COMMANDS_PRE([
435     gtpo_libobjs=
436     gtpo_ltlibobjs=
437     if test -n "$gtpo_LIBOBJS"; then
438       # Remove the extension.
439       sed_drop_objext='s/\.o$//;s/\.obj$//'
440       for i in `for i in $gtpo_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
441         gtpo_libobjs="$gtpo_libobjs $i.$ac_objext"
442         gtpo_ltlibobjs="$gtpo_ltlibobjs $i.lo"
443       done
444     fi
445     AC_SUBST([gtpo_LIBOBJS], [$gtpo_libobjs])
446     AC_SUBST([gtpo_LTLIBOBJS], [$gtpo_ltlibobjs])
447   ])
448   gltests_libdeps=
449   gltests_ltlibdeps=
450   m4_pushdef([AC_LIBOBJ], m4_defn([gtpotests_LIBOBJ]))
451   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gtpotests_REPLACE_FUNCS]))
452   m4_pushdef([AC_LIBSOURCES], m4_defn([gtpotests_LIBSOURCES]))
453   m4_pushdef([gtpotests_LIBSOURCES_LIST], [])
454   m4_pushdef([gtpotests_LIBSOURCES_DIR], [])
455   gl_COMMON
456   gl_source_base='tests'
457 changequote(,)dnl
458   gtpotests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
459 changequote([, ])dnl
460   AC_SUBST([gtpotests_WITNESS])
461   gl_module_indicator_condition=$gtpotests_WITNESS
462   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
463   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
464   m4_ifval(gtpotests_LIBSOURCES_LIST, [
465     m4_syscmd([test ! -d ]m4_defn([gtpotests_LIBSOURCES_DIR])[ ||
466       for gl_file in ]gtpotests_LIBSOURCES_LIST[ ; do
467         if test ! -r ]m4_defn([gtpotests_LIBSOURCES_DIR])[/$gl_file ; then
468           echo "missing file ]m4_defn([gtpotests_LIBSOURCES_DIR])[/$gl_file" >&2
469           exit 1
470         fi
471       done])dnl
472       m4_if(m4_sysval, [0], [],
473         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
474   ])
475   m4_popdef([gtpotests_LIBSOURCES_DIR])
476   m4_popdef([gtpotests_LIBSOURCES_LIST])
477   m4_popdef([AC_LIBSOURCES])
478   m4_popdef([AC_REPLACE_FUNCS])
479   m4_popdef([AC_LIBOBJ])
480   AC_CONFIG_COMMANDS_PRE([
481     gtpotests_libobjs=
482     gtpotests_ltlibobjs=
483     if test -n "$gtpotests_LIBOBJS"; then
484       # Remove the extension.
485       sed_drop_objext='s/\.o$//;s/\.obj$//'
486       for i in `for i in $gtpotests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
487         gtpotests_libobjs="$gtpotests_libobjs $i.$ac_objext"
488         gtpotests_ltlibobjs="$gtpotests_ltlibobjs $i.lo"
489       done
490     fi
491     AC_SUBST([gtpotests_LIBOBJS], [$gtpotests_libobjs])
492     AC_SUBST([gtpotests_LTLIBOBJS], [$gtpotests_ltlibobjs])
493   ])
494 ])
495
496 # Like AC_LIBOBJ, except that the module name goes
497 # into gtpo_LIBOBJS instead of into LIBOBJS.
498 AC_DEFUN([gtpo_LIBOBJ], [
499   AS_LITERAL_IF([$1], [gtpo_LIBSOURCES([$1.c])])dnl
500   gtpo_LIBOBJS="$gtpo_LIBOBJS $1.$ac_objext"
501 ])
502
503 # Like AC_REPLACE_FUNCS, except that the module name goes
504 # into gtpo_LIBOBJS instead of into LIBOBJS.
505 AC_DEFUN([gtpo_REPLACE_FUNCS], [
506   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
507   AC_CHECK_FUNCS([$1], , [gtpo_LIBOBJ($ac_func)])
508 ])
509
510 # Like AC_LIBSOURCES, except the directory where the source file is
511 # expected is derived from the gnulib-tool parameterization,
512 # and alloca is special cased (for the alloca-opt module).
513 # We could also entirely rely on EXTRA_lib..._SOURCES.
514 AC_DEFUN([gtpo_LIBSOURCES], [
515   m4_foreach([_gl_NAME], [$1], [
516     m4_if(_gl_NAME, [alloca.c], [], [
517       m4_define([gtpo_LIBSOURCES_DIR], [libgettextpo])
518       m4_append([gtpo_LIBSOURCES_LIST], _gl_NAME, [ ])
519     ])
520   ])
521 ])
522
523 # Like AC_LIBOBJ, except that the module name goes
524 # into gtpotests_LIBOBJS instead of into LIBOBJS.
525 AC_DEFUN([gtpotests_LIBOBJ], [
526   AS_LITERAL_IF([$1], [gtpotests_LIBSOURCES([$1.c])])dnl
527   gtpotests_LIBOBJS="$gtpotests_LIBOBJS $1.$ac_objext"
528 ])
529
530 # Like AC_REPLACE_FUNCS, except that the module name goes
531 # into gtpotests_LIBOBJS instead of into LIBOBJS.
532 AC_DEFUN([gtpotests_REPLACE_FUNCS], [
533   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
534   AC_CHECK_FUNCS([$1], , [gtpotests_LIBOBJ($ac_func)])
535 ])
536
537 # Like AC_LIBSOURCES, except the directory where the source file is
538 # expected is derived from the gnulib-tool parameterization,
539 # and alloca is special cased (for the alloca-opt module).
540 # We could also entirely rely on EXTRA_lib..._SOURCES.
541 AC_DEFUN([gtpotests_LIBSOURCES], [
542   m4_foreach([_gl_NAME], [$1], [
543     m4_if(_gl_NAME, [alloca.c], [], [
544       m4_define([gtpotests_LIBSOURCES_DIR], [tests])
545       m4_append([gtpotests_LIBSOURCES_LIST], _gl_NAME, [ ])
546     ])
547   ])
548 ])
549
550 # This macro records the list of files which have been installed by
551 # gnulib-tool and may be removed by future gnulib-tool invocations.
552 AC_DEFUN([gtpo_FILE_LIST], [
553   build-aux/arg-nonnull.h
554   build-aux/c++defs.h
555   build-aux/config.rpath
556   build-aux/moopp
557   build-aux/unused-parameter.h
558   build-aux/warn-on-use.h
559   doc/relocatable.texi
560   lib/alloca.in.h
561   lib/asnprintf.c
562   lib/asprintf.c
563   lib/basename.c
564   lib/basename.h
565   lib/c-ctype.c
566   lib/c-ctype.h
567   lib/c-strcase.h
568   lib/c-strcasecmp.c
569   lib/c-strcaseeq.h
570   lib/c-strncasecmp.c
571   lib/c-strstr.c
572   lib/c-strstr.h
573   lib/concat-filename.c
574   lib/concat-filename.h
575   lib/config.charset
576   lib/diffseq.h
577   lib/errno.in.h
578   lib/error-progname.c
579   lib/error-progname.h
580   lib/error.c
581   lib/error.h
582   lib/exitfail.c
583   lib/exitfail.h
584   lib/fcntl.in.h
585   lib/file-ostream.oo.c
586   lib/file-ostream.oo.h
587   lib/filename.h
588   lib/float+.h
589   lib/float.in.h
590   lib/fopen.c
591   lib/fstrcmp.c
592   lib/fstrcmp.h
593   lib/fwriteerror.c
594   lib/fwriteerror.h
595   lib/gcd.c
596   lib/gcd.h
597   lib/getdelim.c
598   lib/getline.c
599   lib/gettext.h
600   lib/glthread/lock.c
601   lib/glthread/lock.h
602   lib/glthread/threadlib.c
603   lib/glthread/tls.c
604   lib/glthread/tls.h
605   lib/hash.c
606   lib/hash.h
607   lib/iconv.in.h
608   lib/iconv_open-aix.gperf
609   lib/iconv_open-hpux.gperf
610   lib/iconv_open-irix.gperf
611   lib/iconv_open-osf.gperf
612   lib/iconv_open-solaris.gperf
613   lib/iconv_open.c
614   lib/iconveh.h
615   lib/intprops.h
616   lib/libunistring.valgrind
617   lib/localcharset.c
618   lib/localcharset.h
619   lib/malloc.c
620   lib/malloca.c
621   lib/malloca.h
622   lib/malloca.valgrind
623   lib/mbrtowc.c
624   lib/mbsinit.c
625   lib/mbswidth.c
626   lib/mbswidth.h
627   lib/memchr.c
628   lib/memchr.valgrind
629   lib/minmax.h
630   lib/moo.h
631   lib/obstack.c
632   lib/obstack.h
633   lib/open.c
634   lib/ostream.oo.c
635   lib/ostream.oo.h
636   lib/printf-args.c
637   lib/printf-args.h
638   lib/printf-parse.c
639   lib/printf-parse.h
640   lib/progname.c
641   lib/progname.h
642   lib/realloc.c
643   lib/ref-add.sin
644   lib/ref-del.sin
645   lib/relocatable.c
646   lib/relocatable.h
647   lib/signal.in.h
648   lib/sigprocmask.c
649   lib/size_max.h
650   lib/stat.c
651   lib/stdarg.in.h
652   lib/stdbool.in.h
653   lib/stddef.in.h
654   lib/stdint.in.h
655   lib/stdio-write.c
656   lib/stdio.in.h
657   lib/stdlib.in.h
658   lib/stpcpy.c
659   lib/str-two-way.h
660   lib/streq.h
661   lib/strerror.c
662   lib/striconv.c
663   lib/striconv.h
664   lib/striconveh.c
665   lib/striconveh.h
666   lib/striconveha.c
667   lib/striconveha.h
668   lib/string.in.h
669   lib/strstr.c
670   lib/sys_stat.in.h
671   lib/time.in.h
672   lib/uniconv.in.h
673   lib/uniconv/u8-conv-from-enc.c
674   lib/unilbrk.in.h
675   lib/unilbrk/lbrkprop1.h
676   lib/unilbrk/lbrkprop2.h
677   lib/unilbrk/lbrktables.c
678   lib/unilbrk/lbrktables.h
679   lib/unilbrk/u8-possible-linebreaks.c
680   lib/unilbrk/u8-width-linebreaks.c
681   lib/unilbrk/ulc-common.c
682   lib/unilbrk/ulc-common.h
683   lib/unilbrk/ulc-width-linebreaks.c
684   lib/unistd.in.h
685   lib/unistr.in.h
686   lib/unistr/u16-mbtouc-aux.c
687   lib/unistr/u16-mbtouc.c
688   lib/unistr/u8-check.c
689   lib/unistr/u8-mblen.c
690   lib/unistr/u8-mbtouc-aux.c
691   lib/unistr/u8-mbtouc-unsafe-aux.c
692   lib/unistr/u8-mbtouc-unsafe.c
693   lib/unistr/u8-mbtouc.c
694   lib/unistr/u8-mbtoucr.c
695   lib/unistr/u8-prev.c
696   lib/unistr/u8-uctomb-aux.c
697   lib/unistr/u8-uctomb.c
698   lib/unitypes.in.h
699   lib/uniwidth.in.h
700   lib/uniwidth/cjk.h
701   lib/uniwidth/width.c
702   lib/unlocked-io.h
703   lib/vasnprintf.c
704   lib/vasnprintf.h
705   lib/vasprintf.c
706   lib/verify.h
707   lib/wchar.in.h
708   lib/wctype.in.h
709   lib/wcwidth.c
710   lib/xalloc.h
711   lib/xasprintf.c
712   lib/xconcat-filename.c
713   lib/xerror.c
714   lib/xerror.h
715   lib/xmalloc.c
716   lib/xmalloca.c
717   lib/xmalloca.h
718   lib/xsize.h
719   lib/xstrdup.c
720   lib/xstriconv.c
721   lib/xstriconv.h
722   lib/xvasprintf.c
723   lib/xvasprintf.h
724   m4/00gnulib.m4
725   m4/absolute-header.m4
726   m4/alloca.m4
727   m4/asm-underscore.m4
728   m4/codeset.m4
729   m4/dos.m4
730   m4/eealloc.m4
731   m4/errno_h.m4
732   m4/error.m4
733   m4/extensions.m4
734   m4/fcntl-o.m4
735   m4/fcntl_h.m4
736   m4/float_h.m4
737   m4/fopen.m4
738   m4/getdelim.m4
739   m4/getline.m4
740   m4/glibc21.m4
741   m4/gnulib-common.m4
742   m4/iconv.m4
743   m4/iconv_h.m4
744   m4/iconv_open.m4
745   m4/include_next.m4
746   m4/inline.m4
747   m4/intmax_t.m4
748   m4/inttypes_h.m4
749   m4/lib-ld.m4
750   m4/lib-link.m4
751   m4/lib-prefix.m4
752   m4/libunistring-base.m4
753   m4/libunistring-optional.m4
754   m4/libunistring.m4
755   m4/localcharset.m4
756   m4/locale-fr.m4
757   m4/locale-ja.m4
758   m4/locale-zh.m4
759   m4/lock.m4
760   m4/longlong.m4
761   m4/malloc.m4
762   m4/malloca.m4
763   m4/mbrtowc.m4
764   m4/mbsinit.m4
765   m4/mbstate_t.m4
766   m4/mbswidth.m4
767   m4/memchr.m4
768   m4/minmax.m4
769   m4/mmap-anon.m4
770   m4/mode_t.m4
771   m4/moo.m4
772   m4/multiarch.m4
773   m4/onceonly.m4
774   m4/open.m4
775   m4/printf.m4
776   m4/realloc.m4
777   m4/relocatable-lib.m4
778   m4/signal_h.m4
779   m4/signalblocking.m4
780   m4/sigpipe.m4
781   m4/size_max.m4
782   m4/stat.m4
783   m4/stdarg.m4
784   m4/stdbool.m4
785   m4/stddef_h.m4
786   m4/stdint.m4
787   m4/stdint_h.m4
788   m4/stdio_h.m4
789   m4/stdlib_h.m4
790   m4/stpcpy.m4
791   m4/strerror.m4
792   m4/string_h.m4
793   m4/strstr.m4
794   m4/sys_stat_h.m4
795   m4/threadlib.m4
796   m4/time_h.m4
797   m4/tls.m4
798   m4/unistd_h.m4
799   m4/unlocked-io.m4
800   m4/vasnprintf.m4
801   m4/vasprintf.m4
802   m4/warn-on-use.m4
803   m4/wchar_h.m4
804   m4/wchar_t.m4
805   m4/wctype_h.m4
806   m4/wcwidth.m4
807   m4/wint_t.m4
808   m4/xsize.m4
809   m4/xvasprintf.m4
810 ])