Update gnulib files.
[gnutls.git] / gl / m4 / gnulib-comp.m4
blob387c5df1c88160b5b04edceb705bd8ede6b3845b
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2010 Free Software Foundation, Inc.
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.
10 # Generated by gnulib-tool.
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.
18 # This macro should be invoked from ./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([gl_EARLY],
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   # Code from module accept:
29   # Code from module alignof:
30   # Code from module alignof-tests:
31   # Code from module alloca:
32   # Code from module alloca-opt:
33   # Code from module alloca-opt-tests:
34   # Code from module arg-nonnull:
35   # Code from module arpa_inet:
36   # Code from module arpa_inet-tests:
37   # Code from module autobuild:
38   AB_INIT
39   # Code from module bind:
40   # Code from module c++defs:
41   # Code from module c-ctype:
42   # Code from module c-ctype-tests:
43   # Code from module clock-time:
44   # Code from module close:
45   # Code from module close-hook:
46   # Code from module connect:
47   # Code from module errno:
48   # Code from module errno-tests:
49   # Code from module error:
50   # Code from module extensions:
51   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
52   # Code from module fclose:
53   # Code from module fdl-1.3:
54   # Code from module float:
55   # Code from module fseeko:
56   AC_REQUIRE([AC_FUNC_FSEEKO])
57   # Code from module fseeko-tests:
58   # Code from module gendocs:
59   # Code from module getaddrinfo:
60   # Code from module getaddrinfo-tests:
61   # Code from module getdelim:
62   # Code from module getdelim-tests:
63   # Code from module getline:
64   # Code from module getline-tests:
65   # Code from module getpass-gnu:
66   # Code from module gettext-h:
67   # Code from module gettime:
68   # Code from module gettimeofday:
69   # Code from module gettimeofday-tests:
70   # Code from module gnumakefile:
71   # Code from module gnupload:
72   # Code from module gpl-3.0:
73   # Code from module havelib:
74   # Code from module hostent:
75   # Code from module include_next:
76   # Code from module inet_ntop:
77   # Code from module inet_ntop-tests:
78   # Code from module inet_pton:
79   # Code from module inet_pton-tests:
80   # Code from module intprops:
81   # Code from module ioctl:
82   # Code from module lgpl-2.1:
83   # Code from module listen:
84   # Code from module lseek:
85   # Code from module lseek-tests:
86   # Code from module maintainer-makefile:
87   # Code from module manywarnings:
88   # Code from module memchr:
89   # Code from module memchr-tests:
90   # Code from module minmax:
91   # Code from module multiarch:
92   # Code from module netdb:
93   # Code from module netdb-tests:
94   # Code from module netinet_in:
95   # Code from module netinet_in-tests:
96   # Code from module perror:
97   # Code from module perror-tests:
98   # Code from module pmccabe2html:
99   # Code from module progname:
100   # Code from module read-file:
101   # Code from module read-file-tests:
102   # Code from module readline:
103   # Code from module realloc-posix:
104   # Code from module recv:
105   # Code from module select:
106   # Code from module select-tests:
107   # Code from module send:
108   # Code from module servent:
109   # Code from module setsockopt:
110   # Code from module shutdown:
111   # Code from module size_max:
112   # Code from module snprintf:
113   # Code from module snprintf-tests:
114   # Code from module socket:
115   # Code from module sockets:
116   # Code from module sockets-tests:
117   # Code from module socklen:
118   # Code from module stdarg:
119   dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
120   dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
121   dnl AC_PROG_CC_STDC arranges for this.  With older Autoconf AC_PROG_CC_STDC
122   dnl shouldn't hurt, though installers are on their own to set c99 mode.
123   AC_REQUIRE([AC_PROG_CC_STDC])
124   # Code from module stdbool:
125   # Code from module stdbool-tests:
126   # Code from module stddef:
127   # Code from module stddef-tests:
128   # Code from module stdint:
129   # Code from module stdint-tests:
130   # Code from module stdio:
131   # Code from module stdio-tests:
132   # Code from module stdlib:
133   # Code from module stdlib-tests:
134   # Code from module strerror:
135   # Code from module strerror-tests:
136   # Code from module string:
137   # Code from module string-tests:
138   # Code from module sys_ioctl:
139   # Code from module sys_ioctl-tests:
140   # Code from module sys_select:
141   # Code from module sys_select-tests:
142   # Code from module sys_socket:
143   # Code from module sys_socket-tests:
144   # Code from module sys_stat:
145   # Code from module sys_stat-tests:
146   # Code from module sys_time:
147   # Code from module sys_time-tests:
148   # Code from module time:
149   # Code from module time-tests:
150   # Code from module timespec:
151   # Code from module unistd:
152   # Code from module unistd-tests:
153   # Code from module update-copyright:
154   # Code from module update-copyright-tests:
155   # Code from module useless-if-before-free:
156   # Code from module vasnprintf:
157   # Code from module vasnprintf-tests:
158   # Code from module vc-list-files:
159   # Code from module vc-list-files-tests:
160   # Code from module verify:
161   # Code from module version-etc:
162   # Code from module version-etc-fsf:
163   # Code from module version-etc-tests:
164   # Code from module warn-on-use:
165   # Code from module warnings:
166   # Code from module wchar:
167   # Code from module wchar-tests:
168   # Code from module xsize:
171 # This macro should be invoked from ./configure.ac, in the section
172 # "Check for header files, types and library functions".
173 AC_DEFUN([gl_INIT],
175   AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
176   gl_cond_libtool=true
177   gl_m4_base='gl/m4'
178   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
179   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
180   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
181   m4_pushdef([gl_LIBSOURCES_LIST], [])
182   m4_pushdef([gl_LIBSOURCES_DIR], [])
183   gl_COMMON
184   gl_source_base='gl'
185   # Code from module accept:
186   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
187   if test "$ac_cv_header_winsock2_h" = yes; then
188     AC_LIBOBJ([accept])
189   fi
190   gl_SYS_SOCKET_MODULE_INDICATOR([accept])
191   # Code from module alignof:
192   # Code from module alloca:
193 changequote(,)dnl
194 LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
195 changequote([, ])dnl
196 AC_SUBST([LTALLOCA])
197   # Code from module alloca-opt:
198   gl_FUNC_ALLOCA
199   # Code from module arg-nonnull:
200   # Code from module arpa_inet:
201   gl_HEADER_ARPA_INET
202   AC_PROG_MKDIR_P
203   # Code from module autobuild:
204   # Code from module bind:
205   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
206   if test "$ac_cv_header_winsock2_h" = yes; then
207     AC_LIBOBJ([bind])
208   fi
209   gl_SYS_SOCKET_MODULE_INDICATOR([bind])
210   # Code from module c++defs:
211   # Code from module c-ctype:
212   # Code from module clock-time:
213   gl_CLOCK_TIME
214   # Code from module close:
215   gl_FUNC_CLOSE
216   gl_UNISTD_MODULE_INDICATOR([close])
217   # Code from module close-hook:
218   # Code from module connect:
219   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
220   if test "$ac_cv_header_winsock2_h" = yes; then
221     AC_LIBOBJ([connect])
222   fi
223   gl_SYS_SOCKET_MODULE_INDICATOR([connect])
224   # Code from module errno:
225   gl_HEADER_ERRNO_H
226   # Code from module error:
227   gl_ERROR
228   m4_ifdef([AM_XGETTEXT_OPTION],
229     [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
230      AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
231   # Code from module extensions:
232   # Code from module fclose:
233   gl_FUNC_FCLOSE
234   gl_STDIO_MODULE_INDICATOR([fclose])
235   # Code from module fdl-1.3:
236   # Code from module float:
237   gl_FLOAT_H
238   # Code from module fseeko:
239   gl_FUNC_FSEEKO
240   gl_STDIO_MODULE_INDICATOR([fseeko])
241   # Code from module gendocs:
242   # Code from module getaddrinfo:
243   gl_GETADDRINFO
244   gl_NETDB_MODULE_INDICATOR([getaddrinfo])
245   # Code from module getdelim:
246   gl_FUNC_GETDELIM
247   gl_STDIO_MODULE_INDICATOR([getdelim])
248   # Code from module getline:
249   gl_FUNC_GETLINE
250   gl_STDIO_MODULE_INDICATOR([getline])
251   # Code from module getpass-gnu:
252   gl_FUNC_GETPASS_GNU
253   # Code from module gettext-h:
254   AC_SUBST([LIBINTL])
255   AC_SUBST([LTLIBINTL])
256   # Code from module gettime:
257   gl_GETTIME
258   # Code from module gettimeofday:
259   gl_FUNC_GETTIMEOFDAY
260   gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
261   # Code from module gnumakefile:
262   # Autoconf 2.61a.99 and earlier don't support linking a file only
263   # in VPATH builds.  But since GNUmakefile is for maintainer use
264   # only, it does not matter if we skip the link with older autoconf.
265   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
266   # builds, so use a shell variable to bypass this.
267   GNUmakefile=GNUmakefile
268   m4_if(m4_version_compare([2.61a.100],
269         m4_defn([m4_PACKAGE_VERSION])), [1], [],
270         [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
271         [GNUmakefile=$GNUmakefile])])
272   # Code from module gnupload:
273   # Code from module gpl-3.0:
274   # Code from module havelib:
275   # Code from module hostent:
276   gl_HOSTENT
277   # Code from module include_next:
278   # Code from module inet_ntop:
279   gl_FUNC_INET_NTOP
280   gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
281   # Code from module inet_pton:
282   gl_FUNC_INET_PTON
283   gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
284   # Code from module intprops:
285   # Code from module lgpl-2.1:
286   # Code from module listen:
287   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
288   if test "$ac_cv_header_winsock2_h" = yes; then
289     AC_LIBOBJ([listen])
290   fi
291   gl_SYS_SOCKET_MODULE_INDICATOR([listen])
292   # Code from module lseek:
293   gl_FUNC_LSEEK
294   gl_UNISTD_MODULE_INDICATOR([lseek])
295   # Code from module maintainer-makefile:
296   AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
297     [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
298   # Code from module manywarnings:
299   # Code from module memchr:
300   gl_FUNC_MEMCHR
301   gl_STRING_MODULE_INDICATOR([memchr])
302   # Code from module minmax:
303   gl_MINMAX
304   # Code from module multiarch:
305   gl_MULTIARCH
306   # Code from module netdb:
307   gl_HEADER_NETDB
308   # Code from module netinet_in:
309   gl_HEADER_NETINET_IN
310   AC_PROG_MKDIR_P
311   # Code from module perror:
312   gl_FUNC_PERROR
313   gl_STRING_MODULE_INDICATOR([perror])
314   # Code from module pmccabe2html:
315   AC_PATH_PROG([PMCCABE], [pmccabe], [false])
316   # Code from module progname:
317   AC_CHECK_DECLS([program_invocation_name], [], [], [#include <errno.h>])
318   AC_CHECK_DECLS([program_invocation_short_name], [], [], [#include <errno.h>])
319   # Code from module read-file:
320   gl_FUNC_READ_FILE
321   # Code from module readline:
322   gl_FUNC_READLINE
323   # Code from module realloc-posix:
324   gl_FUNC_REALLOC_POSIX
325   gl_STDLIB_MODULE_INDICATOR([realloc-posix])
326   # Code from module recv:
327   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
328   if test "$ac_cv_header_winsock2_h" = yes; then
329     AC_LIBOBJ([recv])
330   fi
331   gl_SYS_SOCKET_MODULE_INDICATOR([recv])
332   # Code from module select:
333   gl_FUNC_SELECT
334   gl_SYS_SELECT_MODULE_INDICATOR([select])
335   # Code from module send:
336   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
337   if test "$ac_cv_header_winsock2_h" = yes; then
338     AC_LIBOBJ([send])
339   fi
340   gl_SYS_SOCKET_MODULE_INDICATOR([send])
341   # Code from module servent:
342   gl_SERVENT
343   # Code from module setsockopt:
344   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
345   if test "$ac_cv_header_winsock2_h" = yes; then
346     AC_LIBOBJ([setsockopt])
347   fi
348   gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
349   # Code from module shutdown:
350   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
351   if test "$ac_cv_header_winsock2_h" = yes; then
352     AC_LIBOBJ([shutdown])
353   fi
354   gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
355   # Code from module size_max:
356   gl_SIZE_MAX
357   # Code from module snprintf:
358   gl_FUNC_SNPRINTF
359   gl_STDIO_MODULE_INDICATOR([snprintf])
360   # Code from module socket:
361   AC_REQUIRE([gl_HEADER_SYS_SOCKET])
362   if test "$ac_cv_header_winsock2_h" = yes; then
363     AC_LIBOBJ([socket])
364   fi
365   # When this module is used, sockets may actually occur as file descriptors,
366   # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
367   m4_ifdef([gl_UNISTD_H_DEFAULTS], [AC_REQUIRE([gl_UNISTD_H_DEFAULTS])])
368   m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [AC_REQUIRE([gl_SYS_IOCTL_H_DEFAULTS])])
369   AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
370   if test "$ac_cv_header_winsock2_h" = yes; then
371     UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
372     SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
373   fi
374   gl_SYS_SOCKET_MODULE_INDICATOR([socket])
375   # Code from module sockets:
376   gl_SOCKETS
377   # Code from module socklen:
378   gl_TYPE_SOCKLEN_T
379   # Code from module stdarg:
380   gl_STDARG_H
381   # Code from module stdbool:
382   AM_STDBOOL_H
383   # Code from module stddef:
384   gl_STDDEF_H
385   # Code from module stdint:
386   gl_STDINT_H
387   # Code from module stdio:
388   gl_STDIO_H
389   # Code from module stdlib:
390   gl_STDLIB_H
391   # Code from module strerror:
392   gl_FUNC_STRERROR
393   gl_STRING_MODULE_INDICATOR([strerror])
394   # Code from module string:
395   gl_HEADER_STRING_H
396   # Code from module sys_select:
397   gl_HEADER_SYS_SELECT
398   AC_PROG_MKDIR_P
399   # Code from module sys_socket:
400   gl_HEADER_SYS_SOCKET
401   AC_PROG_MKDIR_P
402   # Code from module sys_stat:
403   gl_HEADER_SYS_STAT_H
404   AC_PROG_MKDIR_P
405   # Code from module sys_time:
406   gl_HEADER_SYS_TIME_H
407   AC_PROG_MKDIR_P
408   # Code from module time:
409   gl_HEADER_TIME_H
410   # Code from module timespec:
411   gl_TIMESPEC
412   # Code from module unistd:
413   gl_UNISTD_H
414   # Code from module update-copyright:
415   # Code from module useless-if-before-free:
416   # Code from module vasnprintf:
417   gl_FUNC_VASNPRINTF
418   # Code from module vc-list-files:
419   # Code from module version-etc:
420   gl_VERSION_ETC
421   # Code from module version-etc-fsf:
422   # Code from module warn-on-use:
423   # Code from module warnings:
424   AC_SUBST([WARN_CFLAGS])
425   # Code from module wchar:
426   gl_WCHAR_H
427   # Code from module xsize:
428   gl_XSIZE
429   # End of code from modules
430   m4_ifval(gl_LIBSOURCES_LIST, [
431     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
432       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
433         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
434           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
435           exit 1
436         fi
437       done])dnl
438       m4_if(m4_sysval, [0], [],
439         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
440   ])
441   m4_popdef([gl_LIBSOURCES_DIR])
442   m4_popdef([gl_LIBSOURCES_LIST])
443   m4_popdef([AC_LIBSOURCES])
444   m4_popdef([AC_REPLACE_FUNCS])
445   m4_popdef([AC_LIBOBJ])
446   AC_CONFIG_COMMANDS_PRE([
447     gl_libobjs=
448     gl_ltlibobjs=
449     if test -n "$gl_LIBOBJS"; then
450       # Remove the extension.
451       sed_drop_objext='s/\.o$//;s/\.obj$//'
452       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
453         gl_libobjs="$gl_libobjs $i.$ac_objext"
454         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
455       done
456     fi
457     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
458     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
459   ])
460   gltests_libdeps=
461   gltests_ltlibdeps=
462   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
463   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
464   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
465   m4_pushdef([gltests_LIBSOURCES_LIST], [])
466   m4_pushdef([gltests_LIBSOURCES_DIR], [])
467   gl_COMMON
468   gl_source_base='gl/tests'
469 changequote(,)dnl
470   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
471 changequote([, ])dnl
472   AC_SUBST([gltests_WITNESS])
473   gl_module_indicator_condition=$gltests_WITNESS
474   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
475   gl_FUNC_UNGETC_WORKS
476   AC_C_BIGENDIAN
477   AC_C_BIGENDIAN
478   gl_FUNC_IOCTL
479   gl_SYS_IOCTL_MODULE_INDICATOR([ioctl])
480   AC_CHECK_HEADERS_ONCE([unistd.h sys/wait.h])
481   gt_TYPE_WCHAR_T
482   gt_TYPE_WINT_T
483   gl_SYS_IOCTL_H
484   AC_PROG_MKDIR_P
485   AC_CHECK_FUNCS_ONCE([shutdown])
486   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
487   AC_SUBST([abs_aux_dir])
488   abs_aux_dir=`cd "$ac_aux_dir"; pwd`
489   AC_SUBST([abs_aux_dir])
490   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
491   m4_ifval(gltests_LIBSOURCES_LIST, [
492     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
493       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
494         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
495           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
496           exit 1
497         fi
498       done])dnl
499       m4_if(m4_sysval, [0], [],
500         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
501   ])
502   m4_popdef([gltests_LIBSOURCES_DIR])
503   m4_popdef([gltests_LIBSOURCES_LIST])
504   m4_popdef([AC_LIBSOURCES])
505   m4_popdef([AC_REPLACE_FUNCS])
506   m4_popdef([AC_LIBOBJ])
507   AC_CONFIG_COMMANDS_PRE([
508     gltests_libobjs=
509     gltests_ltlibobjs=
510     if test -n "$gltests_LIBOBJS"; then
511       # Remove the extension.
512       sed_drop_objext='s/\.o$//;s/\.obj$//'
513       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
514         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
515         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
516       done
517     fi
518     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
519     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
520   ])
521   LIBTESTS_LIBDEPS="$gltests_libdeps"
522   AC_SUBST([LIBTESTS_LIBDEPS])
525 # Like AC_LIBOBJ, except that the module name goes
526 # into gl_LIBOBJS instead of into LIBOBJS.
527 AC_DEFUN([gl_LIBOBJ], [
528   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
529   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
532 # Like AC_REPLACE_FUNCS, except that the module name goes
533 # into gl_LIBOBJS instead of into LIBOBJS.
534 AC_DEFUN([gl_REPLACE_FUNCS], [
535   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
536   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
539 # Like AC_LIBSOURCES, except the directory where the source file is
540 # expected is derived from the gnulib-tool parameterization,
541 # and alloca is special cased (for the alloca-opt module).
542 # We could also entirely rely on EXTRA_lib..._SOURCES.
543 AC_DEFUN([gl_LIBSOURCES], [
544   m4_foreach([_gl_NAME], [$1], [
545     m4_if(_gl_NAME, [alloca.c], [], [
546       m4_define([gl_LIBSOURCES_DIR], [gl])
547       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
548     ])
549   ])
552 # Like AC_LIBOBJ, except that the module name goes
553 # into gltests_LIBOBJS instead of into LIBOBJS.
554 AC_DEFUN([gltests_LIBOBJ], [
555   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
556   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
559 # Like AC_REPLACE_FUNCS, except that the module name goes
560 # into gltests_LIBOBJS instead of into LIBOBJS.
561 AC_DEFUN([gltests_REPLACE_FUNCS], [
562   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
563   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
566 # Like AC_LIBSOURCES, except the directory where the source file is
567 # expected is derived from the gnulib-tool parameterization,
568 # and alloca is special cased (for the alloca-opt module).
569 # We could also entirely rely on EXTRA_lib..._SOURCES.
570 AC_DEFUN([gltests_LIBSOURCES], [
571   m4_foreach([_gl_NAME], [$1], [
572     m4_if(_gl_NAME, [alloca.c], [], [
573       m4_define([gltests_LIBSOURCES_DIR], [gl/tests])
574       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
575     ])
576   ])
579 # This macro records the list of files which have been installed by
580 # gnulib-tool and may be removed by future gnulib-tool invocations.
581 AC_DEFUN([gl_FILE_LIST], [
582   build-aux/arg-nonnull.h
583   build-aux/c++defs.h
584   build-aux/config.rpath
585   build-aux/gendocs.sh
586   build-aux/gnupload
587   build-aux/pmccabe.css
588   build-aux/pmccabe2html
589   build-aux/update-copyright
590   build-aux/useless-if-before-free
591   build-aux/vc-list-files
592   build-aux/warn-on-use.h
593   doc/fdl-1.3.texi
594   doc/gendocs_template
595   doc/gpl-3.0.texi
596   doc/lgpl-2.1.texi
597   lib/accept.c
598   lib/alignof.h
599   lib/alloca.c
600   lib/alloca.in.h
601   lib/arpa_inet.in.h
602   lib/asnprintf.c
603   lib/bind.c
604   lib/c-ctype.c
605   lib/c-ctype.h
606   lib/close-hook.c
607   lib/close-hook.h
608   lib/close.c
609   lib/connect.c
610   lib/errno.in.h
611   lib/error.c
612   lib/error.h
613   lib/fclose.c
614   lib/float+.h
615   lib/float.in.h
616   lib/fseeko.c
617   lib/gai_strerror.c
618   lib/getaddrinfo.c
619   lib/getdelim.c
620   lib/getline.c
621   lib/getpass.c
622   lib/getpass.h
623   lib/gettext.h
624   lib/gettime.c
625   lib/gettimeofday.c
626   lib/inet_ntop.c
627   lib/inet_pton.c
628   lib/intprops.h
629   lib/listen.c
630   lib/lseek.c
631   lib/memchr.c
632   lib/memchr.valgrind
633   lib/minmax.h
634   lib/netdb.in.h
635   lib/netinet_in.in.h
636   lib/perror.c
637   lib/printf-args.c
638   lib/printf-args.h
639   lib/printf-parse.c
640   lib/printf-parse.h
641   lib/progname.c
642   lib/progname.h
643   lib/read-file.c
644   lib/read-file.h
645   lib/readline.c
646   lib/readline.h
647   lib/realloc.c
648   lib/recv.c
649   lib/select.c
650   lib/send.c
651   lib/setsockopt.c
652   lib/shutdown.c
653   lib/size_max.h
654   lib/snprintf.c
655   lib/socket.c
656   lib/sockets.c
657   lib/sockets.h
658   lib/stdarg.in.h
659   lib/stdbool.in.h
660   lib/stddef.in.h
661   lib/stdint.in.h
662   lib/stdio-impl.h
663   lib/stdio-write.c
664   lib/stdio.in.h
665   lib/stdlib.in.h
666   lib/strerror.c
667   lib/string.in.h
668   lib/sys_select.in.h
669   lib/sys_socket.in.h
670   lib/sys_stat.in.h
671   lib/sys_time.in.h
672   lib/time.in.h
673   lib/timespec.h
674   lib/unistd.in.h
675   lib/vasnprintf.c
676   lib/vasnprintf.h
677   lib/version-etc-fsf.c
678   lib/version-etc.c
679   lib/version-etc.h
680   lib/w32sock.h
681   lib/wchar.in.h
682   lib/xsize.h
683   m4/00gnulib.m4
684   m4/alloca.m4
685   m4/arpa_inet_h.m4
686   m4/autobuild.m4
687   m4/clock_time.m4
688   m4/close.m4
689   m4/errno_h.m4
690   m4/error.m4
691   m4/extensions.m4
692   m4/fclose.m4
693   m4/float_h.m4
694   m4/fseeko.m4
695   m4/getaddrinfo.m4
696   m4/getdelim.m4
697   m4/getline.m4
698   m4/getpass.m4
699   m4/gettime.m4
700   m4/gettimeofday.m4
701   m4/gnulib-common.m4
702   m4/hostent.m4
703   m4/include_next.m4
704   m4/inet_ntop.m4
705   m4/inet_pton.m4
706   m4/intmax_t.m4
707   m4/inttypes_h.m4
708   m4/ioctl.m4
709   m4/lib-ld.m4
710   m4/lib-link.m4
711   m4/lib-prefix.m4
712   m4/longlong.m4
713   m4/lseek.m4
714   m4/malloc.m4
715   m4/manywarnings.m4
716   m4/memchr.m4
717   m4/minmax.m4
718   m4/mmap-anon.m4
719   m4/multiarch.m4
720   m4/netdb_h.m4
721   m4/netinet_in_h.m4
722   m4/perror.m4
723   m4/printf.m4
724   m4/read-file.m4
725   m4/readline.m4
726   m4/realloc.m4
727   m4/select.m4
728   m4/servent.m4
729   m4/size_max.m4
730   m4/snprintf.m4
731   m4/sockets.m4
732   m4/socklen.m4
733   m4/sockpfaf.m4
734   m4/stdarg.m4
735   m4/stdbool.m4
736   m4/stddef_h.m4
737   m4/stdint.m4
738   m4/stdint_h.m4
739   m4/stdio_h.m4
740   m4/stdlib_h.m4
741   m4/strerror.m4
742   m4/string_h.m4
743   m4/sys_ioctl_h.m4
744   m4/sys_select_h.m4
745   m4/sys_socket_h.m4
746   m4/sys_stat_h.m4
747   m4/sys_time_h.m4
748   m4/time_h.m4
749   m4/timespec.m4
750   m4/ungetc.m4
751   m4/unistd_h.m4
752   m4/vasnprintf.m4
753   m4/version-etc.m4
754   m4/warn-on-use.m4
755   m4/warnings.m4
756   m4/wchar_h.m4
757   m4/wchar_t.m4
758   m4/wint_t.m4
759   m4/xsize.m4
760   tests/macros.h
761   tests/signature.h
762   tests/test-alignof.c
763   tests/test-alloca-opt.c
764   tests/test-arpa_inet.c
765   tests/test-c-ctype.c
766   tests/test-errno.c
767   tests/test-fseeko.c
768   tests/test-fseeko.sh
769   tests/test-fseeko2.sh
770   tests/test-getaddrinfo.c
771   tests/test-getdelim.c
772   tests/test-getline.c
773   tests/test-gettimeofday.c
774   tests/test-inet_ntop.c
775   tests/test-inet_pton.c
776   tests/test-lseek.c
777   tests/test-lseek.sh
778   tests/test-memchr.c
779   tests/test-netdb.c
780   tests/test-netinet_in.c
781   tests/test-perror.c
782   tests/test-perror.sh
783   tests/test-read-file.c
784   tests/test-select-fd.c
785   tests/test-select-in.sh
786   tests/test-select-out.sh
787   tests/test-select-stdin.c
788   tests/test-select.c
789   tests/test-snprintf.c
790   tests/test-sockets.c
791   tests/test-stdbool.c
792   tests/test-stddef.c
793   tests/test-stdint.c
794   tests/test-stdio.c
795   tests/test-stdlib.c
796   tests/test-strerror.c
797   tests/test-string.c
798   tests/test-sys_ioctl.c
799   tests/test-sys_select.c
800   tests/test-sys_socket.c
801   tests/test-sys_stat.c
802   tests/test-sys_time.c
803   tests/test-time.c
804   tests/test-unistd.c
805   tests/test-update-copyright.sh
806   tests/test-vasnprintf.c
807   tests/test-vc-list-files-cvs.sh
808   tests/test-vc-list-files-git.sh
809   tests/test-version-etc.c
810   tests/test-version-etc.sh
811   tests/test-wchar.c
812   tests/zerosize-ptr.h
813   tests=lib/dummy.c
814   tests=lib/ioctl.c
815   tests=lib/sys_ioctl.in.h
816   tests=lib/verify.h
817   tests=lib/w32sock.h
818   top/GNUmakefile
819   top/maint.mk