NEWS: Mention "contrib" removal
[monitoring-plugins.git] / gl / m4 / gnulib-comp.m4
blobf23f7698f4230841f3ee0f500e5c788ebd2dab4e
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this file.  If not, see <http://www.gnu.org/licenses/>.
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
22 # Generated by gnulib-tool.
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
28 # other built files.
31 # This macro should be invoked from ./configure.in, in the section
32 # "Checks for programs", right after AC_PROG_CC, and certainly before
33 # any checks for libraries, header files, types and library functions.
34 AC_DEFUN([gl_EARLY],
36   m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37   m4_pattern_allow([^gl_ES$])dnl a valid locale name
38   m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39   m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40   AC_REQUIRE([gl_PROG_AR_RANLIB])
41   AC_REQUIRE([AM_PROG_CC_C_O])
42   # Code from module alloca-opt:
43   # Code from module arpa_inet:
44   # Code from module base64:
45   # Code from module btowc:
46   # Code from module configmake:
47   # Code from module crypto/sha1:
48   # Code from module dirname:
49   # Code from module dirname-lgpl:
50   # Code from module dosname:
51   # Code from module double-slash-root:
52   # Code from module environ:
53   # Code from module errno:
54   # Code from module error:
55   # Code from module exitfail:
56   # Code from module extensions:
57   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
58   # Code from module extern-inline:
59   # Code from module fd-hook:
60   # Code from module float:
61   # Code from module floorf:
62   # Code from module fsusage:
63   # Code from module full-read:
64   # Code from module getaddrinfo:
65   # Code from module gethostname:
66   # Code from module getloadavg:
67   # Code from module getopt-gnu:
68   # Code from module getopt-posix:
69   # Code from module gettext:
70   # Code from module gettext-h:
71   # Code from module havelib:
72   # Code from module hostent:
73   # Code from module include_next:
74   # Code from module inet_ntop:
75   # Code from module intprops:
76   # Code from module langinfo:
77   # Code from module largefile:
78   AC_REQUIRE([AC_SYS_LARGEFILE])
79   # Code from module localcharset:
80   # Code from module locale:
81   # Code from module localeconv:
82   # Code from module lock:
83   # Code from module malloc-gnu:
84   # Code from module malloc-posix:
85   # Code from module malloca:
86   # Code from module math:
87   # Code from module mbrtowc:
88   # Code from module mbsinit:
89   # Code from module mbtowc:
90   # Code from module memchr:
91   # Code from module mktime:
92   # Code from module mktime-internal:
93   # Code from module mountlist:
94   # Code from module msvc-inval:
95   # Code from module msvc-nothrow:
96   # Code from module multiarch:
97   # Code from module netdb:
98   # Code from module netinet_in:
99   # Code from module nl_langinfo:
100   # Code from module nocrash:
101   # Code from module read:
102   # Code from module regex:
103   # Code from module safe-read:
104   # Code from module servent:
105   # Code from module setenv:
106   # Code from module size_max:
107   # Code from module snippet/_Noreturn:
108   # Code from module snippet/arg-nonnull:
109   # Code from module snippet/c++defs:
110   # Code from module snippet/warn-on-use:
111   # Code from module snprintf:
112   # Code from module socketlib:
113   # Code from module sockets:
114   # Code from module socklen:
115   # Code from module ssize_t:
116   # Code from module stdalign:
117   # Code from module stdbool:
118   # Code from module stddef:
119   # Code from module stdint:
120   # Code from module stdio:
121   # Code from module stdlib:
122   # Code from module streq:
123   # Code from module strerror:
124   # Code from module strerror-override:
125   # Code from module string:
126   # Code from module strndup:
127   # Code from module strnlen:
128   # Code from module strsep:
129   # Code from module strstr-simple:
130   # Code from module sys_socket:
131   # Code from module sys_types:
132   # Code from module sys_uio:
133   # Code from module threadlib:
134   gl_THREADLIB_EARLY
135   # Code from module time:
136   # Code from module time_r:
137   # Code from module timegm:
138   # Code from module unistd:
139   # Code from module unsetenv:
140   # Code from module vasnprintf:
141   # Code from module vasprintf:
142   # Code from module verify:
143   # Code from module vsnprintf:
144   # Code from module wchar:
145   # Code from module wcrtomb:
146   # Code from module wctype-h:
147   # Code from module xalloc:
148   # Code from module xalloc-die:
149   # Code from module xalloc-oversized:
150   # Code from module xsize:
151   # Code from module xstrndup:
154 # This macro should be invoked from ./configure.in, in the section
155 # "Check for header files, types and library functions".
156 AC_DEFUN([gl_INIT],
158   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
159   gl_cond_libtool=false
160   gl_libdeps=
161   gl_ltlibdeps=
162   gl_m4_base='gl/m4'
163   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
164   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
165   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
166   m4_pushdef([gl_LIBSOURCES_LIST], [])
167   m4_pushdef([gl_LIBSOURCES_DIR], [])
168   gl_COMMON
169   gl_source_base='gl'
170   gl_FUNC_ALLOCA
171   gl_HEADER_ARPA_INET
172   AC_PROG_MKDIR_P
173   gl_FUNC_BASE64
174   gl_FUNC_BTOWC
175   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
176     AC_LIBOBJ([btowc])
177     gl_PREREQ_BTOWC
178   fi
179   gl_WCHAR_MODULE_INDICATOR([btowc])
180   gl_CONFIGMAKE_PREP
181   gl_SHA1
182   gl_DIRNAME
183   gl_MODULE_INDICATOR([dirname])
184   gl_DIRNAME_LGPL
185   gl_DOUBLE_SLASH_ROOT
186   gl_ENVIRON
187   gl_UNISTD_MODULE_INDICATOR([environ])
188   gl_HEADER_ERRNO_H
189   gl_ERROR
190   if test $ac_cv_lib_error_at_line = no; then
191     AC_LIBOBJ([error])
192     gl_PREREQ_ERROR
193   fi
194   m4_ifdef([AM_XGETTEXT_OPTION],
195     [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
196      AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
197   AC_REQUIRE([gl_EXTERN_INLINE])
198   gl_FLOAT_H
199   if test $REPLACE_FLOAT_LDBL = 1; then
200     AC_LIBOBJ([float])
201   fi
202   if test $REPLACE_ITOLD = 1; then
203     AC_LIBOBJ([itold])
204   fi
205   gl_FUNC_FLOORF
206   if test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1; then
207     AC_LIBOBJ([floorf])
208   fi
209   gl_MATH_MODULE_INDICATOR([floorf])
210   gl_FSUSAGE
211   if test $gl_cv_fs_space = yes; then
212     AC_LIBOBJ([fsusage])
213     gl_PREREQ_FSUSAGE_EXTRA
214   fi
215   gl_GETADDRINFO
216   if test $HAVE_GETADDRINFO = 0; then
217     AC_LIBOBJ([getaddrinfo])
218   fi
219   if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
220     AC_LIBOBJ([gai_strerror])
221   fi
222   gl_NETDB_MODULE_INDICATOR([getaddrinfo])
223   gl_FUNC_GETHOSTNAME
224   if test $HAVE_GETHOSTNAME = 0; then
225     AC_LIBOBJ([gethostname])
226     gl_PREREQ_GETHOSTNAME
227   fi
228   gl_UNISTD_MODULE_INDICATOR([gethostname])
229   gl_GETLOADAVG
230   if test $HAVE_GETLOADAVG = 0; then
231     AC_LIBOBJ([getloadavg])
232     gl_PREREQ_GETLOADAVG
233   fi
234   gl_STDLIB_MODULE_INDICATOR([getloadavg])
235   gl_FUNC_GETOPT_GNU
236   if test $REPLACE_GETOPT = 1; then
237     AC_LIBOBJ([getopt])
238     AC_LIBOBJ([getopt1])
239     gl_PREREQ_GETOPT
240     dnl Arrange for unistd.h to include getopt.h.
241     GNULIB_GL_UNISTD_H_GETOPT=1
242   fi
243   AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
244   gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
245   gl_FUNC_GETOPT_POSIX
246   if test $REPLACE_GETOPT = 1; then
247     AC_LIBOBJ([getopt])
248     AC_LIBOBJ([getopt1])
249     gl_PREREQ_GETOPT
250     dnl Arrange for unistd.h to include getopt.h.
251     GNULIB_GL_UNISTD_H_GETOPT=1
252   fi
253   AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
254   dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
255   AM_GNU_GETTEXT_VERSION([0.18.1])
256   AC_SUBST([LIBINTL])
257   AC_SUBST([LTLIBINTL])
258   gl_HOSTENT
259   gl_FUNC_INET_NTOP
260   if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
261     AC_LIBOBJ([inet_ntop])
262     gl_PREREQ_INET_NTOP
263   fi
264   gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
265   gl_LANGINFO_H
266   AC_REQUIRE([gl_LARGEFILE])
267   gl_LOCALCHARSET
268   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
269   AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
270   gl_LOCALE_H
271   gl_FUNC_LOCALECONV
272   if test $REPLACE_LOCALECONV = 1; then
273     AC_LIBOBJ([localeconv])
274     gl_PREREQ_LOCALECONV
275   fi
276   gl_LOCALE_MODULE_INDICATOR([localeconv])
277   gl_LOCK
278   gl_MODULE_INDICATOR([lock])
279   gl_FUNC_MALLOC_GNU
280   if test $REPLACE_MALLOC = 1; then
281     AC_LIBOBJ([malloc])
282   fi
283   gl_MODULE_INDICATOR([malloc-gnu])
284   gl_FUNC_MALLOC_POSIX
285   if test $REPLACE_MALLOC = 1; then
286     AC_LIBOBJ([malloc])
287   fi
288   gl_STDLIB_MODULE_INDICATOR([malloc-posix])
289   gl_MALLOCA
290   gl_MATH_H
291   gl_FUNC_MBRTOWC
292   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
293     AC_LIBOBJ([mbrtowc])
294     gl_PREREQ_MBRTOWC
295   fi
296   gl_WCHAR_MODULE_INDICATOR([mbrtowc])
297   gl_FUNC_MBSINIT
298   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
299     AC_LIBOBJ([mbsinit])
300     gl_PREREQ_MBSINIT
301   fi
302   gl_WCHAR_MODULE_INDICATOR([mbsinit])
303   gl_FUNC_MBTOWC
304   if test $REPLACE_MBTOWC = 1; then
305     AC_LIBOBJ([mbtowc])
306     gl_PREREQ_MBTOWC
307   fi
308   gl_STDLIB_MODULE_INDICATOR([mbtowc])
309   gl_FUNC_MEMCHR
310   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
311     AC_LIBOBJ([memchr])
312     gl_PREREQ_MEMCHR
313   fi
314   gl_STRING_MODULE_INDICATOR([memchr])
315   gl_FUNC_MKTIME
316   if test $REPLACE_MKTIME = 1; then
317     AC_LIBOBJ([mktime])
318     gl_PREREQ_MKTIME
319   fi
320   gl_TIME_MODULE_INDICATOR([mktime])
321   gl_FUNC_MKTIME_INTERNAL
322   if test $REPLACE_MKTIME = 1; then
323     AC_LIBOBJ([mktime])
324     gl_PREREQ_MKTIME
325   fi
326   gl_MOUNTLIST
327   if test $gl_cv_list_mounted_fs = yes; then
328     AC_LIBOBJ([mountlist])
329     gl_PREREQ_MOUNTLIST_EXTRA
330   fi
331   gl_MSVC_INVAL
332   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
333     AC_LIBOBJ([msvc-inval])
334   fi
335   gl_MSVC_NOTHROW
336   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
337     AC_LIBOBJ([msvc-nothrow])
338   fi
339   gl_MULTIARCH
340   gl_HEADER_NETDB
341   gl_HEADER_NETINET_IN
342   AC_PROG_MKDIR_P
343   gl_FUNC_NL_LANGINFO
344   if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
345     AC_LIBOBJ([nl_langinfo])
346   fi
347   gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
348   gl_FUNC_READ
349   if test $REPLACE_READ = 1; then
350     AC_LIBOBJ([read])
351     gl_PREREQ_READ
352   fi
353   gl_UNISTD_MODULE_INDICATOR([read])
354   gl_REGEX
355   if test $ac_use_included_regex = yes; then
356     AC_LIBOBJ([regex])
357     gl_PREREQ_REGEX
358   fi
359   gl_PREREQ_SAFE_READ
360   gl_SERVENT
361   gl_FUNC_SETENV
362   if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
363     AC_LIBOBJ([setenv])
364   fi
365   gl_STDLIB_MODULE_INDICATOR([setenv])
366   gl_SIZE_MAX
367   gl_FUNC_SNPRINTF
368   gl_STDIO_MODULE_INDICATOR([snprintf])
369   gl_MODULE_INDICATOR([snprintf])
370   gl_SOCKETLIB
371   gl_SOCKETS
372   gl_TYPE_SOCKLEN_T
373   gt_TYPE_SSIZE_T
374   gl_STDALIGN_H
375   AM_STDBOOL_H
376   gl_STDDEF_H
377   gl_STDINT_H
378   gl_STDIO_H
379   gl_STDLIB_H
380   gl_FUNC_STRERROR
381   if test $REPLACE_STRERROR = 1; then
382     AC_LIBOBJ([strerror])
383   fi
384   gl_MODULE_INDICATOR([strerror])
385   gl_STRING_MODULE_INDICATOR([strerror])
386   AC_REQUIRE([gl_HEADER_ERRNO_H])
387   AC_REQUIRE([gl_FUNC_STRERROR_0])
388   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
389     AC_LIBOBJ([strerror-override])
390     gl_PREREQ_SYS_H_WINSOCK2
391   fi
392   gl_HEADER_STRING_H
393   gl_FUNC_STRNDUP
394   if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
395     AC_LIBOBJ([strndup])
396   fi
397   gl_STRING_MODULE_INDICATOR([strndup])
398   gl_FUNC_STRNLEN
399   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
400     AC_LIBOBJ([strnlen])
401     gl_PREREQ_STRNLEN
402   fi
403   gl_STRING_MODULE_INDICATOR([strnlen])
404   gl_FUNC_STRSEP
405   if test $HAVE_STRSEP = 0; then
406     AC_LIBOBJ([strsep])
407     gl_PREREQ_STRSEP
408   fi
409   gl_STRING_MODULE_INDICATOR([strsep])
410   gl_FUNC_STRSTR_SIMPLE
411   if test $REPLACE_STRSTR = 1; then
412     AC_LIBOBJ([strstr])
413   fi
414   gl_STRING_MODULE_INDICATOR([strstr])
415   gl_HEADER_SYS_SOCKET
416   AC_PROG_MKDIR_P
417   gl_SYS_TYPES_H
418   AC_PROG_MKDIR_P
419   gl_HEADER_SYS_UIO
420   AC_PROG_MKDIR_P
421   gl_THREADLIB
422   gl_HEADER_TIME_H
423   gl_TIME_R
424   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
425     AC_LIBOBJ([time_r])
426     gl_PREREQ_TIME_R
427   fi
428   gl_TIME_MODULE_INDICATOR([time_r])
429   gl_FUNC_TIMEGM
430   if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
431     AC_LIBOBJ([timegm])
432     gl_PREREQ_TIMEGM
433   fi
434   gl_TIME_MODULE_INDICATOR([timegm])
435   gl_UNISTD_H
436   gl_FUNC_UNSETENV
437   if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
438     AC_LIBOBJ([unsetenv])
439     gl_PREREQ_UNSETENV
440   fi
441   gl_STDLIB_MODULE_INDICATOR([unsetenv])
442   gl_FUNC_VASNPRINTF
443   gl_FUNC_VASPRINTF
444   gl_STDIO_MODULE_INDICATOR([vasprintf])
445   m4_ifdef([AM_XGETTEXT_OPTION],
446     [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
447      AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
448   gl_FUNC_VSNPRINTF
449   gl_STDIO_MODULE_INDICATOR([vsnprintf])
450   gl_WCHAR_H
451   gl_FUNC_WCRTOMB
452   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
453     AC_LIBOBJ([wcrtomb])
454     gl_PREREQ_WCRTOMB
455   fi
456   gl_WCHAR_MODULE_INDICATOR([wcrtomb])
457   gl_WCTYPE_H
458   gl_XALLOC
459   gl_XSIZE
460   gl_XSTRNDUP
461   # End of code from modules
462   m4_ifval(gl_LIBSOURCES_LIST, [
463     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
464       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
465         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
466           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
467           exit 1
468         fi
469       done])dnl
470       m4_if(m4_sysval, [0], [],
471         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
472   ])
473   m4_popdef([gl_LIBSOURCES_DIR])
474   m4_popdef([gl_LIBSOURCES_LIST])
475   m4_popdef([AC_LIBSOURCES])
476   m4_popdef([AC_REPLACE_FUNCS])
477   m4_popdef([AC_LIBOBJ])
478   AC_CONFIG_COMMANDS_PRE([
479     gl_libobjs=
480     gl_ltlibobjs=
481     if test -n "$gl_LIBOBJS"; then
482       # Remove the extension.
483       sed_drop_objext='s/\.o$//;s/\.obj$//'
484       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
485         gl_libobjs="$gl_libobjs $i.$ac_objext"
486         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
487       done
488     fi
489     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
490     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
491   ])
492   gltests_libdeps=
493   gltests_ltlibdeps=
494   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
495   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
496   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
497   m4_pushdef([gltests_LIBSOURCES_LIST], [])
498   m4_pushdef([gltests_LIBSOURCES_DIR], [])
499   gl_COMMON
500   gl_source_base='tests'
501 changequote(,)dnl
502   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
503 changequote([, ])dnl
504   AC_SUBST([gltests_WITNESS])
505   gl_module_indicator_condition=$gltests_WITNESS
506   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
507   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
508   m4_ifval(gltests_LIBSOURCES_LIST, [
509     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
510       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
511         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
512           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
513           exit 1
514         fi
515       done])dnl
516       m4_if(m4_sysval, [0], [],
517         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
518   ])
519   m4_popdef([gltests_LIBSOURCES_DIR])
520   m4_popdef([gltests_LIBSOURCES_LIST])
521   m4_popdef([AC_LIBSOURCES])
522   m4_popdef([AC_REPLACE_FUNCS])
523   m4_popdef([AC_LIBOBJ])
524   AC_CONFIG_COMMANDS_PRE([
525     gltests_libobjs=
526     gltests_ltlibobjs=
527     if test -n "$gltests_LIBOBJS"; then
528       # Remove the extension.
529       sed_drop_objext='s/\.o$//;s/\.obj$//'
530       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
531         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
532         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
533       done
534     fi
535     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
536     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
537   ])
538   LIBGNU_LIBDEPS="$gl_libdeps"
539   AC_SUBST([LIBGNU_LIBDEPS])
540   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
541   AC_SUBST([LIBGNU_LTLIBDEPS])
544 # Like AC_LIBOBJ, except that the module name goes
545 # into gl_LIBOBJS instead of into LIBOBJS.
546 AC_DEFUN([gl_LIBOBJ], [
547   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
548   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
551 # Like AC_REPLACE_FUNCS, except that the module name goes
552 # into gl_LIBOBJS instead of into LIBOBJS.
553 AC_DEFUN([gl_REPLACE_FUNCS], [
554   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
555   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
558 # Like AC_LIBSOURCES, except the directory where the source file is
559 # expected is derived from the gnulib-tool parameterization,
560 # and alloca is special cased (for the alloca-opt module).
561 # We could also entirely rely on EXTRA_lib..._SOURCES.
562 AC_DEFUN([gl_LIBSOURCES], [
563   m4_foreach([_gl_NAME], [$1], [
564     m4_if(_gl_NAME, [alloca.c], [], [
565       m4_define([gl_LIBSOURCES_DIR], [gl])
566       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
567     ])
568   ])
571 # Like AC_LIBOBJ, except that the module name goes
572 # into gltests_LIBOBJS instead of into LIBOBJS.
573 AC_DEFUN([gltests_LIBOBJ], [
574   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
575   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
578 # Like AC_REPLACE_FUNCS, except that the module name goes
579 # into gltests_LIBOBJS instead of into LIBOBJS.
580 AC_DEFUN([gltests_REPLACE_FUNCS], [
581   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
582   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
585 # Like AC_LIBSOURCES, except the directory where the source file is
586 # expected is derived from the gnulib-tool parameterization,
587 # and alloca is special cased (for the alloca-opt module).
588 # We could also entirely rely on EXTRA_lib..._SOURCES.
589 AC_DEFUN([gltests_LIBSOURCES], [
590   m4_foreach([_gl_NAME], [$1], [
591     m4_if(_gl_NAME, [alloca.c], [], [
592       m4_define([gltests_LIBSOURCES_DIR], [tests])
593       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
594     ])
595   ])
598 # This macro records the list of files which have been installed by
599 # gnulib-tool and may be removed by future gnulib-tool invocations.
600 AC_DEFUN([gl_FILE_LIST], [
601   build-aux/config.rpath
602   build-aux/snippet/_Noreturn.h
603   build-aux/snippet/arg-nonnull.h
604   build-aux/snippet/c++defs.h
605   build-aux/snippet/warn-on-use.h
606   lib/alloca.in.h
607   lib/arpa_inet.in.h
608   lib/asnprintf.c
609   lib/asprintf.c
610   lib/base64.c
611   lib/base64.h
612   lib/basename-lgpl.c
613   lib/basename.c
614   lib/btowc.c
615   lib/config.charset
616   lib/dirname-lgpl.c
617   lib/dirname.c
618   lib/dirname.h
619   lib/dosname.h
620   lib/errno.in.h
621   lib/error.c
622   lib/error.h
623   lib/exitfail.c
624   lib/exitfail.h
625   lib/fd-hook.c
626   lib/fd-hook.h
627   lib/float+.h
628   lib/float.c
629   lib/float.in.h
630   lib/floor.c
631   lib/floorf.c
632   lib/fsusage.c
633   lib/fsusage.h
634   lib/full-read.c
635   lib/full-read.h
636   lib/full-write.c
637   lib/gai_strerror.c
638   lib/getaddrinfo.c
639   lib/gethostname.c
640   lib/getloadavg.c
641   lib/getopt.c
642   lib/getopt.in.h
643   lib/getopt1.c
644   lib/getopt_int.h
645   lib/gettext.h
646   lib/glthread/lock.c
647   lib/glthread/lock.h
648   lib/glthread/threadlib.c
649   lib/inet_ntop.c
650   lib/intprops.h
651   lib/itold.c
652   lib/langinfo.in.h
653   lib/localcharset.c
654   lib/localcharset.h
655   lib/locale.in.h
656   lib/localeconv.c
657   lib/malloc.c
658   lib/malloca.c
659   lib/malloca.h
660   lib/malloca.valgrind
661   lib/math.c
662   lib/math.in.h
663   lib/mbrtowc.c
664   lib/mbsinit.c
665   lib/mbtowc-impl.h
666   lib/mbtowc.c
667   lib/memchr.c
668   lib/memchr.valgrind
669   lib/mktime-internal.h
670   lib/mktime.c
671   lib/mountlist.c
672   lib/mountlist.h
673   lib/msvc-inval.c
674   lib/msvc-inval.h
675   lib/msvc-nothrow.c
676   lib/msvc-nothrow.h
677   lib/netdb.in.h
678   lib/netinet_in.in.h
679   lib/nl_langinfo.c
680   lib/printf-args.c
681   lib/printf-args.h
682   lib/printf-parse.c
683   lib/printf-parse.h
684   lib/read.c
685   lib/ref-add.sin
686   lib/ref-del.sin
687   lib/regcomp.c
688   lib/regex.c
689   lib/regex.h
690   lib/regex_internal.c
691   lib/regex_internal.h
692   lib/regexec.c
693   lib/safe-read.c
694   lib/safe-read.h
695   lib/setenv.c
696   lib/sha1.c
697   lib/sha1.h
698   lib/size_max.h
699   lib/snprintf.c
700   lib/sockets.c
701   lib/sockets.h
702   lib/stdalign.in.h
703   lib/stdbool.in.h
704   lib/stddef.in.h
705   lib/stdint.in.h
706   lib/stdio.in.h
707   lib/stdlib.in.h
708   lib/str-two-way.h
709   lib/streq.h
710   lib/strerror-override.c
711   lib/strerror-override.h
712   lib/strerror.c
713   lib/string.in.h
714   lib/stripslash.c
715   lib/strndup.c
716   lib/strnlen.c
717   lib/strsep.c
718   lib/strstr.c
719   lib/sys_socket.c
720   lib/sys_socket.in.h
721   lib/sys_types.in.h
722   lib/sys_uio.in.h
723   lib/time.in.h
724   lib/time_r.c
725   lib/timegm.c
726   lib/unistd.c
727   lib/unistd.in.h
728   lib/unsetenv.c
729   lib/vasnprintf.c
730   lib/vasnprintf.h
731   lib/vasprintf.c
732   lib/verify.h
733   lib/vsnprintf.c
734   lib/w32sock.h
735   lib/wchar.in.h
736   lib/wcrtomb.c
737   lib/wctype-h.c
738   lib/wctype.in.h
739   lib/xalloc-die.c
740   lib/xalloc-oversized.h
741   lib/xalloc.h
742   lib/xmalloc.c
743   lib/xsize.c
744   lib/xsize.h
745   lib/xstrndup.c
746   lib/xstrndup.h
747   m4/00gnulib.m4
748   m4/alloca.m4
749   m4/arpa_inet_h.m4
750   m4/base64.m4
751   m4/btowc.m4
752   m4/codeset.m4
753   m4/configmake.m4
754   m4/dirname.m4
755   m4/double-slash-root.m4
756   m4/eealloc.m4
757   m4/environ.m4
758   m4/errno_h.m4
759   m4/error.m4
760   m4/exponentd.m4
761   m4/extensions.m4
762   m4/extern-inline.m4
763   m4/fcntl-o.m4
764   m4/float_h.m4
765   m4/floorf.m4
766   m4/fstypename.m4
767   m4/fsusage.m4
768   m4/getaddrinfo.m4
769   m4/gethostname.m4
770   m4/getloadavg.m4
771   m4/getopt.m4
772   m4/gettext.m4
773   m4/glibc2.m4
774   m4/glibc21.m4
775   m4/gnulib-common.m4
776   m4/hostent.m4
777   m4/iconv.m4
778   m4/include_next.m4
779   m4/inet_ntop.m4
780   m4/intdiv0.m4
781   m4/intl.m4
782   m4/intldir.m4
783   m4/intlmacosx.m4
784   m4/intmax.m4
785   m4/intmax_t.m4
786   m4/inttypes-pri.m4
787   m4/inttypes_h.m4
788   m4/langinfo_h.m4
789   m4/largefile.m4
790   m4/lcmessage.m4
791   m4/lib-ld.m4
792   m4/lib-link.m4
793   m4/lib-prefix.m4
794   m4/localcharset.m4
795   m4/locale-fr.m4
796   m4/locale-ja.m4
797   m4/locale-zh.m4
798   m4/locale_h.m4
799   m4/localeconv.m4
800   m4/lock.m4
801   m4/longlong.m4
802   m4/ls-mntd-fs.m4
803   m4/malloc.m4
804   m4/malloca.m4
805   m4/math_h.m4
806   m4/mbrtowc.m4
807   m4/mbsinit.m4
808   m4/mbstate_t.m4
809   m4/mbtowc.m4
810   m4/memchr.m4
811   m4/mktime.m4
812   m4/mmap-anon.m4
813   m4/mountlist.m4
814   m4/msvc-inval.m4
815   m4/msvc-nothrow.m4
816   m4/multiarch.m4
817   m4/netdb_h.m4
818   m4/netinet_in_h.m4
819   m4/nl_langinfo.m4
820   m4/nls.m4
821   m4/nocrash.m4
822   m4/off_t.m4
823   m4/onceonly.m4
824   m4/po.m4
825   m4/printf-posix.m4
826   m4/printf.m4
827   m4/progtest.m4
828   m4/read.m4
829   m4/regex.m4
830   m4/safe-read.m4
831   m4/servent.m4
832   m4/setenv.m4
833   m4/sha1.m4
834   m4/size_max.m4
835   m4/snprintf.m4
836   m4/socketlib.m4
837   m4/sockets.m4
838   m4/socklen.m4
839   m4/sockpfaf.m4
840   m4/ssize_t.m4
841   m4/stdalign.m4
842   m4/stdbool.m4
843   m4/stddef_h.m4
844   m4/stdint.m4
845   m4/stdint_h.m4
846   m4/stdio_h.m4
847   m4/stdlib_h.m4
848   m4/strerror.m4
849   m4/string_h.m4
850   m4/strndup.m4
851   m4/strnlen.m4
852   m4/strsep.m4
853   m4/strstr.m4
854   m4/sys_socket_h.m4
855   m4/sys_types_h.m4
856   m4/sys_uio_h.m4
857   m4/threadlib.m4
858   m4/time_h.m4
859   m4/time_r.m4
860   m4/timegm.m4
861   m4/uintmax_t.m4
862   m4/unistd_h.m4
863   m4/vasnprintf.m4
864   m4/vasprintf.m4
865   m4/visibility.m4
866   m4/vsnprintf.m4
867   m4/warn-on-use.m4
868   m4/wchar_h.m4
869   m4/wchar_t.m4
870   m4/wcrtomb.m4
871   m4/wctype_h.m4
872   m4/wint_t.m4
873   m4/xalloc.m4
874   m4/xsize.m4
875   m4/xstrndup.m4