Use Gnulib's `stat-time' module; update Gnulib.
[bpt/guile.git] / m4 / gnulib-comp.m4
CommitLineData
103dc4d4 1# DO NOT EDIT! GENERATED AUTOMATICALLY!
61cd9dc9 2# Copyright (C) 2002-2010 Free Software Foundation, Inc.
103dc4d4
LC
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
25361e4b 18# This macro should be invoked from ./configure.ac, in the section
103dc4d4
LC
19# "Checks for programs", right after AC_PROG_CC, and certainly before
20# any checks for libraries, header files, types and library functions.
21AC_DEFUN([gl_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])
24d56127 28 AC_REQUIRE([AM_PROG_CC_C_O])
f4c79b3c
LC
29 # Code from module alignof:
30 # Code from module alloca-opt:
31 # Code from module announce-gen:
32 # Code from module arg-nonnull:
33 # Code from module arpa_inet:
34 # Code from module autobuild:
ac47b09a 35 AB_INIT
f4c79b3c
LC
36 # Code from module byteswap:
37 # Code from module c++defs:
38 # Code from module c-ctype:
39 # Code from module c-strcase:
40 # Code from module c-strcaseeq:
41 # Code from module canonicalize-lgpl:
42 # Code from module configmake:
43 # Code from module duplocale:
44 # Code from module environ:
45 # Code from module errno:
46 # Code from module extensions:
103dc4d4 47 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
f4c79b3c
LC
48 # Code from module float:
49 # Code from module flock:
50 # Code from module fpieee:
f240aacb 51 AC_REQUIRE([gl_FP_IEEE])
f4c79b3c
LC
52 # Code from module full-read:
53 # Code from module full-write:
54 # Code from module func:
55 # Code from module gendocs:
56 # Code from module getaddrinfo:
57 # Code from module gettext-h:
5ad8e59f 58 # Code from module git-version-gen:
f4c79b3c
LC
59 # Code from module gitlog-to-changelog:
60 # Code from module gnu-web-doc-update:
61 # Code from module gnumakefile:
62 # Code from module gnupload:
63 # Code from module gperf:
64 # Code from module havelib:
65 # Code from module hostent:
66 # Code from module iconv:
67 # Code from module iconv-h:
68 # Code from module iconv_open:
69 # Code from module iconv_open-utf:
70 # Code from module include_next:
71 # Code from module inet_ntop:
72 # Code from module inet_pton:
73 # Code from module inline:
74 # Code from module lib-symbol-versions:
75 # Code from module lib-symbol-visibility:
76 # Code from module libunistring:
77 # Code from module localcharset:
78 # Code from module locale:
79 # Code from module lstat:
80 # Code from module maintainer-makefile:
81 # Code from module malloc-posix:
82 # Code from module malloca:
83 # Code from module mbrlen:
84 # Code from module mbrtowc:
85 # Code from module mbsinit:
86 # Code from module memchr:
87 # Code from module multiarch:
88 # Code from module netdb:
89 # Code from module netinet_in:
90 # Code from module pathmax:
91 # Code from module putenv:
92 # Code from module readlink:
93 # Code from module safe-read:
94 # Code from module safe-write:
95 # Code from module servent:
96 # Code from module size_max:
97 # Code from module snprintf:
98 # Code from module socklen:
99 # Code from module ssize_t:
100 # Code from module stat:
9157d901 101 # Code from module stat-time:
f4c79b3c 102 # Code from module stdarg:
4f02b98d
LC
103 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
104 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
105 dnl AC_PROG_CC_STDC arranges for this. With older Autoconf AC_PROG_CC_STDC
106 dnl shouldn't hurt, though installers are on their own to set c99 mode.
107 AC_REQUIRE([AC_PROG_CC_STDC])
f4c79b3c
LC
108 # Code from module stdbool:
109 # Code from module stddef:
110 # Code from module stdint:
111 # Code from module stdio:
112 # Code from module stdlib:
113 # Code from module strcase:
114 # Code from module streq:
115 # Code from module strftime:
116 # Code from module striconveh:
117 # Code from module string:
118 # Code from module strings:
119 # Code from module sys_file:
120 # Code from module sys_socket:
121 # Code from module sys_stat:
122 # Code from module time:
123 # Code from module time_r:
124 # Code from module unistd:
125 # Code from module unistr/base:
126 # Code from module unistr/u8-mbtouc:
127 # Code from module unistr/u8-mbtouc-unsafe:
128 # Code from module unistr/u8-mbtoucr:
129 # Code from module unistr/u8-prev:
130 # Code from module unistr/u8-uctomb:
131 # Code from module unitypes:
132 # Code from module unused-parameter:
133 # Code from module useless-if-before-free:
134 # Code from module vasnprintf:
135 # Code from module vc-list-files:
136 # Code from module verify:
137 # Code from module version-etc:
138 # Code from module version-etc-fsf:
139 # Code from module vsnprintf:
140 # Code from module warn-on-use:
141 # Code from module warnings:
142 # Code from module wchar:
143 # Code from module write:
144 # Code from module xsize:
103dc4d4
LC
145])
146
25361e4b 147# This macro should be invoked from ./configure.ac, in the section
103dc4d4
LC
148# "Check for header files, types and library functions".
149AC_DEFUN([gl_INIT],
150[
151 AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
152 gl_cond_libtool=true
a927b6c1 153 gl_m4_base='m4'
103dc4d4
LC
154 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
155 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
156 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
157 m4_pushdef([gl_LIBSOURCES_LIST], [])
158 m4_pushdef([gl_LIBSOURCES_DIR], [])
159 gl_COMMON
160 gl_source_base='lib'
f4c79b3c
LC
161 # Code from module alignof:
162 # Code from module alloca-opt:
103dc4d4 163 gl_FUNC_ALLOCA
f4c79b3c
LC
164 # Code from module announce-gen:
165 # Code from module arg-nonnull:
166 # Code from module arpa_inet:
8912421c
LC
167 gl_HEADER_ARPA_INET
168 AC_PROG_MKDIR_P
f4c79b3c
LC
169 # Code from module autobuild:
170 # Code from module byteswap:
24d56127 171 gl_BYTESWAP
f4c79b3c
LC
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 canonicalize-lgpl:
ffca4c22
AW
177 gl_CANONICALIZE_LGPL
178 gl_MODULE_INDICATOR([canonicalize-lgpl])
8912421c
LC
179 gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
180 gl_STDLIB_MODULE_INDICATOR([realpath])
f4c79b3c
LC
181 # Code from module configmake:
182 # Code from module duplocale:
c3b16a5d
LC
183 gl_FUNC_DUPLOCALE
184 gl_LOCALE_MODULE_INDICATOR([duplocale])
f4c79b3c 185 # Code from module environ:
b579617b
AW
186 gl_ENVIRON
187 gl_UNISTD_MODULE_INDICATOR([environ])
f4c79b3c 188 # Code from module errno:
c4b681fd 189 gl_HEADER_ERRNO_H
f4c79b3c
LC
190 # Code from module extensions:
191 # Code from module float:
c4b681fd 192 gl_FLOAT_H
f4c79b3c 193 # Code from module flock:
f240aacb
LC
194 gl_FUNC_FLOCK
195 gl_HEADER_SYS_FILE_MODULE_INDICATOR([flock])
f4c79b3c
LC
196 # Code from module fpieee:
197 # Code from module full-read:
198 # Code from module full-write:
199 # Code from module func:
200 gl_FUNC
201 # Code from module gendocs:
202 # Code from module getaddrinfo:
61cd9dc9
LC
203 gl_GETADDRINFO
204 gl_NETDB_MODULE_INDICATOR([getaddrinfo])
f4c79b3c 205 # Code from module gettext-h:
4f02b98d
LC
206 AC_SUBST([LIBINTL])
207 AC_SUBST([LTLIBINTL])
5ad8e59f 208 # Code from module git-version-gen:
f4c79b3c
LC
209 # Code from module gitlog-to-changelog:
210 # Code from module gnu-web-doc-update:
211 # Code from module gnumakefile:
c84bdaf6
LC
212 # Autoconf 2.61a.99 and earlier don't support linking a file only
213 # in VPATH builds. But since GNUmakefile is for maintainer use
214 # only, it does not matter if we skip the link with older autoconf.
215 # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
216 # builds, so use a shell variable to bypass this.
217 GNUmakefile=GNUmakefile
218 m4_if(m4_version_compare([2.61a.100],
219 m4_defn([m4_PACKAGE_VERSION])), [1], [],
220 [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
221 [GNUmakefile=$GNUmakefile])])
f4c79b3c
LC
222 # Code from module gnupload:
223 # Code from module gperf:
224 # Code from module havelib:
225 # Code from module hostent:
61cd9dc9 226 gl_HOSTENT
f4c79b3c 227 # Code from module iconv:
24d56127 228 AM_ICONV
f4c79b3c 229 # Code from module iconv-h:
24d56127 230 gl_ICONV_H
f4c79b3c 231 # Code from module iconv_open:
24d56127 232 gl_FUNC_ICONV_OPEN
f4c79b3c 233 # Code from module iconv_open-utf:
24d56127 234 gl_FUNC_ICONV_OPEN_UTF
f4c79b3c
LC
235 # Code from module include_next:
236 # Code from module inet_ntop:
a927b6c1 237 gl_FUNC_INET_NTOP
8912421c 238 gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
f4c79b3c 239 # Code from module inet_pton:
a927b6c1 240 gl_FUNC_INET_PTON
8912421c 241 gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
f4c79b3c 242 # Code from module inline:
d7014610 243 gl_INLINE
f4c79b3c 244 # Code from module lib-symbol-versions:
25361e4b 245 gl_LD_VERSION_SCRIPT
f4c79b3c 246 # Code from module lib-symbol-visibility:
d9a9e182 247 gl_VISIBILITY
f4c79b3c 248 # Code from module libunistring:
24d56127 249 gl_LIBUNISTRING
f4c79b3c 250 # Code from module localcharset:
4a462e35
NJ
251 gl_LOCALCHARSET
252 LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
253 AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
f4c79b3c 254 # Code from module locale:
414e4441 255 gl_LOCALE_H
f4c79b3c 256 # Code from module lstat:
8912421c
LC
257 gl_FUNC_LSTAT
258 gl_SYS_STAT_MODULE_INDICATOR([lstat])
f4c79b3c 259 # Code from module maintainer-makefile:
61cd9dc9
LC
260 AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
261 [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
f4c79b3c 262 # Code from module malloc-posix:
f240aacb
LC
263 gl_FUNC_MALLOC_POSIX
264 gl_STDLIB_MODULE_INDICATOR([malloc-posix])
f4c79b3c 265 # Code from module malloca:
ffca4c22 266 gl_MALLOCA
f4c79b3c 267 # Code from module mbrlen:
4a462e35
NJ
268 gl_FUNC_MBRLEN
269 gl_WCHAR_MODULE_INDICATOR([mbrlen])
f4c79b3c 270 # Code from module mbrtowc:
4a462e35
NJ
271 gl_FUNC_MBRTOWC
272 gl_WCHAR_MODULE_INDICATOR([mbrtowc])
f4c79b3c 273 # Code from module mbsinit:
4a462e35
NJ
274 gl_FUNC_MBSINIT
275 gl_WCHAR_MODULE_INDICATOR([mbsinit])
f4c79b3c 276 # Code from module memchr:
c4b681fd
LC
277 gl_FUNC_MEMCHR
278 gl_STRING_MODULE_INDICATOR([memchr])
f4c79b3c 279 # Code from module multiarch:
f240aacb 280 gl_MULTIARCH
f4c79b3c 281 # Code from module netdb:
61cd9dc9 282 gl_HEADER_NETDB
f4c79b3c 283 # Code from module netinet_in:
8912421c
LC
284 gl_HEADER_NETINET_IN
285 AC_PROG_MKDIR_P
f4c79b3c 286 # Code from module pathmax:
ffca4c22 287 gl_PATHMAX
f4c79b3c 288 # Code from module putenv:
f240aacb
LC
289 gl_FUNC_PUTENV
290 gl_STDLIB_MODULE_INDICATOR([putenv])
f4c79b3c 291 # Code from module readlink:
ffca4c22
AW
292 gl_FUNC_READLINK
293 gl_UNISTD_MODULE_INDICATOR([readlink])
f4c79b3c 294 # Code from module safe-read:
9b36a80c 295 gl_SAFE_READ
f4c79b3c 296 # Code from module safe-write:
9b36a80c 297 gl_SAFE_WRITE
f4c79b3c 298 # Code from module servent:
61cd9dc9 299 gl_SERVENT
f4c79b3c 300 # Code from module size_max:
c4b681fd 301 gl_SIZE_MAX
f4c79b3c 302 # Code from module snprintf:
61cd9dc9
LC
303 gl_FUNC_SNPRINTF
304 gl_STDIO_MODULE_INDICATOR([snprintf])
f4c79b3c 305 # Code from module socklen:
8912421c 306 gl_TYPE_SOCKLEN_T
f4c79b3c 307 # Code from module ssize_t:
9b36a80c 308 gt_TYPE_SSIZE_T
f4c79b3c 309 # Code from module stat:
8912421c
LC
310 gl_FUNC_STAT
311 gl_SYS_STAT_MODULE_INDICATOR([stat])
9157d901
LC
312 # Code from module stat-time:
313 gl_STAT_TIME
314 gl_STAT_BIRTHTIME
f4c79b3c 315 # Code from module stdarg:
4f02b98d 316 gl_STDARG_H
f4c79b3c 317 # Code from module stdbool:
e65fc94b 318 AM_STDBOOL_H
f4c79b3c 319 # Code from module stddef:
8912421c 320 gl_STDDEF_H
f4c79b3c 321 # Code from module stdint:
f240aacb 322 gl_STDINT_H
f4c79b3c 323 # Code from module stdio:
c4b681fd 324 gl_STDIO_H
f4c79b3c 325 # Code from module stdlib:
f240aacb 326 gl_STDLIB_H
f4c79b3c 327 # Code from module strcase:
103dc4d4 328 gl_STRCASE
f4c79b3c
LC
329 # Code from module streq:
330 # Code from module strftime:
e65fc94b 331 gl_FUNC_GNU_STRFTIME
f4c79b3c 332 # Code from module striconveh:
24d56127
LC
333 if test $gl_cond_libtool = false; then
334 gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
335 gl_libdeps="$gl_libdeps $LIBICONV"
336 fi
f4c79b3c 337 # Code from module string:
24d56127 338 gl_HEADER_STRING_H
f4c79b3c 339 # Code from module strings:
103dc4d4 340 gl_HEADER_STRINGS_H
f4c79b3c 341 # Code from module sys_file:
f240aacb
LC
342 gl_HEADER_SYS_FILE_H
343 AC_PROG_MKDIR_P
f4c79b3c 344 # Code from module sys_socket:
8912421c
LC
345 gl_HEADER_SYS_SOCKET
346 AC_PROG_MKDIR_P
f4c79b3c 347 # Code from module sys_stat:
8912421c
LC
348 gl_HEADER_SYS_STAT_H
349 AC_PROG_MKDIR_P
f4c79b3c 350 # Code from module time:
e65fc94b 351 gl_HEADER_TIME_H
f4c79b3c 352 # Code from module time_r:
e65fc94b 353 gl_TIME_R
f4c79b3c
LC
354 gl_TIME_MODULE_INDICATOR([time_r])
355 # Code from module unistd:
9b36a80c 356 gl_UNISTD_H
f4c79b3c 357 # Code from module unistr/base:
a927b6c1 358 gl_LIBUNISTRING_LIBHEADER([0.9.2], [unistr.h])
f4c79b3c 359 # Code from module unistr/u8-mbtouc:
24d56127 360 gl_MODULE_INDICATOR([unistr/u8-mbtouc])
6f32e5c7 361 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc])
f4c79b3c 362 # Code from module unistr/u8-mbtouc-unsafe:
24d56127 363 gl_MODULE_INDICATOR([unistr/u8-mbtouc-unsafe])
6f32e5c7 364 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtouc-unsafe])
f4c79b3c 365 # Code from module unistr/u8-mbtoucr:
24d56127 366 gl_MODULE_INDICATOR([unistr/u8-mbtoucr])
6f32e5c7 367 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-mbtoucr])
f4c79b3c 368 # Code from module unistr/u8-prev:
6f32e5c7 369 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-prev])
f4c79b3c 370 # Code from module unistr/u8-uctomb:
24d56127 371 gl_MODULE_INDICATOR([unistr/u8-uctomb])
6f32e5c7 372 gl_LIBUNISTRING_MODULE([0.9], [unistr/u8-uctomb])
f4c79b3c 373 # Code from module unitypes:
a927b6c1 374 gl_LIBUNISTRING_LIBHEADER([0.9], [unitypes.h])
f4c79b3c
LC
375 # Code from module unused-parameter:
376 # Code from module useless-if-before-free:
377 # Code from module vasnprintf:
c4b681fd 378 gl_FUNC_VASNPRINTF
f4c79b3c
LC
379 # Code from module vc-list-files:
380 # Code from module verify:
381 # Code from module version-etc:
4f02b98d 382 gl_VERSION_ETC
f4c79b3c
LC
383 # Code from module version-etc-fsf:
384 # Code from module vsnprintf:
c4b681fd
LC
385 gl_FUNC_VSNPRINTF
386 gl_STDIO_MODULE_INDICATOR([vsnprintf])
f4c79b3c
LC
387 # Code from module warn-on-use:
388 # Code from module warnings:
f29ded4b 389 AC_SUBST([WARN_CFLAGS])
f4c79b3c 390 # Code from module wchar:
e65fc94b 391 gl_WCHAR_H
f4c79b3c 392 # Code from module write:
9b36a80c
LC
393 gl_FUNC_WRITE
394 gl_UNISTD_MODULE_INDICATOR([write])
f4c79b3c 395 # Code from module xsize:
c4b681fd 396 gl_XSIZE
f4c79b3c 397 # End of code from modules
103dc4d4
LC
398 m4_ifval(gl_LIBSOURCES_LIST, [
399 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
400 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
401 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
402 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
403 exit 1
404 fi
405 done])dnl
406 m4_if(m4_sysval, [0], [],
407 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
408 ])
409 m4_popdef([gl_LIBSOURCES_DIR])
410 m4_popdef([gl_LIBSOURCES_LIST])
411 m4_popdef([AC_LIBSOURCES])
412 m4_popdef([AC_REPLACE_FUNCS])
413 m4_popdef([AC_LIBOBJ])
414 AC_CONFIG_COMMANDS_PRE([
415 gl_libobjs=
416 gl_ltlibobjs=
417 if test -n "$gl_LIBOBJS"; then
418 # Remove the extension.
419 sed_drop_objext='s/\.o$//;s/\.obj$//'
1cd4fffc 420 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
103dc4d4
LC
421 gl_libobjs="$gl_libobjs $i.$ac_objext"
422 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
423 done
424 fi
425 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
426 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
427 ])
428 gltests_libdeps=
429 gltests_ltlibdeps=
430 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
431 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
432 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
433 m4_pushdef([gltests_LIBSOURCES_LIST], [])
434 m4_pushdef([gltests_LIBSOURCES_DIR], [])
435 gl_COMMON
436 gl_source_base='tests'
a927b6c1
LC
437changequote(,)dnl
438 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
439changequote([, ])dnl
440 AC_SUBST([gltests_WITNESS])
441 gl_module_indicator_condition=$gltests_WITNESS
442 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
443 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
103dc4d4
LC
444 m4_ifval(gltests_LIBSOURCES_LIST, [
445 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
446 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
447 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
448 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
449 exit 1
450 fi
451 done])dnl
452 m4_if(m4_sysval, [0], [],
453 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
454 ])
455 m4_popdef([gltests_LIBSOURCES_DIR])
456 m4_popdef([gltests_LIBSOURCES_LIST])
457 m4_popdef([AC_LIBSOURCES])
458 m4_popdef([AC_REPLACE_FUNCS])
459 m4_popdef([AC_LIBOBJ])
460 AC_CONFIG_COMMANDS_PRE([
461 gltests_libobjs=
462 gltests_ltlibobjs=
463 if test -n "$gltests_LIBOBJS"; then
464 # Remove the extension.
465 sed_drop_objext='s/\.o$//;s/\.obj$//'
1cd4fffc 466 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
103dc4d4
LC
467 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
468 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
469 done
470 fi
471 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
472 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
473 ])
474])
475
476# Like AC_LIBOBJ, except that the module name goes
477# into gl_LIBOBJS instead of into LIBOBJS.
478AC_DEFUN([gl_LIBOBJ], [
479 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
480 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
481])
482
483# Like AC_REPLACE_FUNCS, except that the module name goes
484# into gl_LIBOBJS instead of into LIBOBJS.
485AC_DEFUN([gl_REPLACE_FUNCS], [
486 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
487 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
488])
489
490# Like AC_LIBSOURCES, except the directory where the source file is
491# expected is derived from the gnulib-tool parameterization,
492# and alloca is special cased (for the alloca-opt module).
493# We could also entirely rely on EXTRA_lib..._SOURCES.
494AC_DEFUN([gl_LIBSOURCES], [
495 m4_foreach([_gl_NAME], [$1], [
496 m4_if(_gl_NAME, [alloca.c], [], [
497 m4_define([gl_LIBSOURCES_DIR], [lib])
498 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
499 ])
500 ])
501])
502
503# Like AC_LIBOBJ, except that the module name goes
504# into gltests_LIBOBJS instead of into LIBOBJS.
505AC_DEFUN([gltests_LIBOBJ], [
506 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
507 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
508])
509
510# Like AC_REPLACE_FUNCS, except that the module name goes
511# into gltests_LIBOBJS instead of into LIBOBJS.
512AC_DEFUN([gltests_REPLACE_FUNCS], [
513 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
514 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
515])
516
517# Like AC_LIBSOURCES, except the directory where the source file is
518# expected is derived from the gnulib-tool parameterization,
519# and alloca is special cased (for the alloca-opt module).
520# We could also entirely rely on EXTRA_lib..._SOURCES.
521AC_DEFUN([gltests_LIBSOURCES], [
522 m4_foreach([_gl_NAME], [$1], [
523 m4_if(_gl_NAME, [alloca.c], [], [
524 m4_define([gltests_LIBSOURCES_DIR], [tests])
525 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
526 ])
527 ])
528])
529
530# This macro records the list of files which have been installed by
531# gnulib-tool and may be removed by future gnulib-tool invocations.
532AC_DEFUN([gl_FILE_LIST], [
c84bdaf6 533 build-aux/announce-gen
1cd4fffc 534 build-aux/arg-nonnull.h
f4c79b3c 535 build-aux/c++defs.h
24d56127 536 build-aux/config.rpath
c84bdaf6 537 build-aux/gendocs.sh
5ad8e59f 538 build-aux/git-version-gen
c84bdaf6
LC
539 build-aux/gitlog-to-changelog
540 build-aux/gnu-web-doc-update
541 build-aux/gnupload
61cd9dc9 542 build-aux/unused-parameter.h
c84bdaf6
LC
543 build-aux/useless-if-before-free
544 build-aux/vc-list-files
61cd9dc9 545 build-aux/warn-on-use.h
c84bdaf6 546 doc/gendocs_template
8912421c 547 lib/alignof.h
103dc4d4 548 lib/alloca.in.h
8912421c 549 lib/arpa_inet.in.h
c4b681fd 550 lib/asnprintf.c
24d56127
LC
551 lib/byteswap.in.h
552 lib/c-ctype.c
553 lib/c-ctype.h
554 lib/c-strcase.h
555 lib/c-strcasecmp.c
556 lib/c-strcaseeq.h
557 lib/c-strncasecmp.c
ffca4c22 558 lib/canonicalize-lgpl.c
4a462e35 559 lib/config.charset
c3b16a5d 560 lib/duplocale.c
c4b681fd
LC
561 lib/errno.in.h
562 lib/float+.h
563 lib/float.in.h
f240aacb 564 lib/flock.c
9b36a80c
LC
565 lib/full-read.c
566 lib/full-read.h
567 lib/full-write.c
568 lib/full-write.h
61cd9dc9
LC
569 lib/gai_strerror.c
570 lib/getaddrinfo.c
4f02b98d 571 lib/gettext.h
24d56127
LC
572 lib/iconv.c
573 lib/iconv.in.h
574 lib/iconv_close.c
575 lib/iconv_open-aix.gperf
576 lib/iconv_open-hpux.gperf
577 lib/iconv_open-irix.gperf
578 lib/iconv_open-osf.gperf
8912421c 579 lib/iconv_open-solaris.gperf
24d56127
LC
580 lib/iconv_open.c
581 lib/iconveh.h
8912421c
LC
582 lib/inet_ntop.c
583 lib/inet_pton.c
a927b6c1 584 lib/libunistring.valgrind
4a462e35
NJ
585 lib/localcharset.c
586 lib/localcharset.h
414e4441 587 lib/locale.in.h
8912421c 588 lib/lstat.c
f240aacb 589 lib/malloc.c
ffca4c22
AW
590 lib/malloca.c
591 lib/malloca.h
592 lib/malloca.valgrind
4a462e35
NJ
593 lib/mbrlen.c
594 lib/mbrtowc.c
595 lib/mbsinit.c
c4b681fd
LC
596 lib/memchr.c
597 lib/memchr.valgrind
61cd9dc9 598 lib/netdb.in.h
8912421c 599 lib/netinet_in.in.h
ffca4c22 600 lib/pathmax.h
c4b681fd
LC
601 lib/printf-args.c
602 lib/printf-args.h
603 lib/printf-parse.c
604 lib/printf-parse.h
f240aacb 605 lib/putenv.c
ffca4c22 606 lib/readlink.c
4a462e35
NJ
607 lib/ref-add.sin
608 lib/ref-del.sin
9b36a80c
LC
609 lib/safe-read.c
610 lib/safe-read.h
611 lib/safe-write.c
612 lib/safe-write.h
c4b681fd 613 lib/size_max.h
61cd9dc9 614 lib/snprintf.c
9157d901 615 lib/stat-time.h
8912421c 616 lib/stat.c
4f02b98d 617 lib/stdarg.in.h
e65fc94b 618 lib/stdbool.in.h
8912421c 619 lib/stddef.in.h
f240aacb 620 lib/stdint.in.h
c4b681fd
LC
621 lib/stdio-write.c
622 lib/stdio.in.h
f240aacb 623 lib/stdlib.in.h
103dc4d4 624 lib/strcasecmp.c
4a462e35 625 lib/streq.h
e65fc94b
LC
626 lib/strftime.c
627 lib/strftime.h
24d56127
LC
628 lib/striconveh.c
629 lib/striconveh.h
630 lib/string.in.h
103dc4d4
LC
631 lib/strings.in.h
632 lib/strncasecmp.c
f240aacb 633 lib/sys_file.in.h
8912421c
LC
634 lib/sys_socket.in.h
635 lib/sys_stat.in.h
e65fc94b
LC
636 lib/time.in.h
637 lib/time_r.c
9b36a80c 638 lib/unistd.in.h
a927b6c1 639 lib/unistr.in.h
24d56127
LC
640 lib/unistr/u8-mbtouc-aux.c
641 lib/unistr/u8-mbtouc-unsafe-aux.c
642 lib/unistr/u8-mbtouc-unsafe.c
643 lib/unistr/u8-mbtouc.c
644 lib/unistr/u8-mbtoucr.c
645 lib/unistr/u8-prev.c
646 lib/unistr/u8-uctomb-aux.c
647 lib/unistr/u8-uctomb.c
a927b6c1 648 lib/unitypes.in.h
c4b681fd
LC
649 lib/vasnprintf.c
650 lib/vasnprintf.h
d7014610 651 lib/verify.h
4f02b98d
LC
652 lib/version-etc-fsf.c
653 lib/version-etc.c
654 lib/version-etc.h
c4b681fd 655 lib/vsnprintf.c
e65fc94b 656 lib/wchar.in.h
9b36a80c 657 lib/write.c
c4b681fd 658 lib/xsize.h
f240aacb 659 m4/00gnulib.m4
a927b6c1 660 m4/absolute-header.m4
103dc4d4 661 m4/alloca.m4
8912421c 662 m4/arpa_inet_h.m4
a927b6c1 663 m4/asm-underscore.m4
ac47b09a 664 m4/autobuild.m4
24d56127 665 m4/byteswap.m4
8912421c 666 m4/canonicalize.m4
4a462e35 667 m4/codeset.m4
8912421c
LC
668 m4/dos.m4
669 m4/double-slash-root.m4
c3b16a5d 670 m4/duplocale.m4
ffca4c22 671 m4/eealloc.m4
b579617b 672 m4/environ.m4
c4b681fd 673 m4/errno_h.m4
103dc4d4 674 m4/extensions.m4
61cd9dc9 675 m4/fcntl-o.m4
c4b681fd 676 m4/float_h.m4
f240aacb
LC
677 m4/flock.m4
678 m4/fpieee.m4
f4c79b3c 679 m4/func.m4
61cd9dc9 680 m4/getaddrinfo.m4
4a462e35 681 m4/glibc21.m4
103dc4d4 682 m4/gnulib-common.m4
61cd9dc9 683 m4/hostent.m4
24d56127
LC
684 m4/iconv.m4
685 m4/iconv_h.m4
686 m4/iconv_open.m4
103dc4d4 687 m4/include_next.m4
8912421c
LC
688 m4/inet_ntop.m4
689 m4/inet_pton.m4
d7014610 690 m4/inline.m4
c4b681fd
LC
691 m4/intmax_t.m4
692 m4/inttypes_h.m4
25361e4b 693 m4/ld-version-script.m4
24d56127
LC
694 m4/lib-ld.m4
695 m4/lib-link.m4
696 m4/lib-prefix.m4
a927b6c1 697 m4/libunistring-base.m4
24d56127 698 m4/libunistring.m4
4a462e35
NJ
699 m4/localcharset.m4
700 m4/locale-fr.m4
701 m4/locale-ja.m4
702 m4/locale-zh.m4
414e4441 703 m4/locale_h.m4
f240aacb 704 m4/longlong.m4
8912421c 705 m4/lstat.m4
f240aacb 706 m4/malloc.m4
ffca4c22 707 m4/malloca.m4
4a462e35
NJ
708 m4/mbrlen.m4
709 m4/mbrtowc.m4
710 m4/mbsinit.m4
e65fc94b 711 m4/mbstate_t.m4
c4b681fd
LC
712 m4/memchr.m4
713 m4/mmap-anon.m4
f240aacb 714 m4/multiarch.m4
61cd9dc9 715 m4/netdb_h.m4
8912421c 716 m4/netinet_in_h.m4
ffca4c22 717 m4/pathmax.m4
c4b681fd 718 m4/printf.m4
f240aacb 719 m4/putenv.m4
ffca4c22 720 m4/readlink.m4
9b36a80c
LC
721 m4/safe-read.m4
722 m4/safe-write.m4
61cd9dc9 723 m4/servent.m4
c4b681fd 724 m4/size_max.m4
61cd9dc9 725 m4/snprintf.m4
8912421c
LC
726 m4/socklen.m4
727 m4/sockpfaf.m4
9b36a80c 728 m4/ssize_t.m4
9157d901 729 m4/stat-time.m4
8912421c 730 m4/stat.m4
4f02b98d 731 m4/stdarg.m4
e65fc94b 732 m4/stdbool.m4
8912421c 733 m4/stddef_h.m4
f240aacb 734 m4/stdint.m4
c4b681fd
LC
735 m4/stdint_h.m4
736 m4/stdio_h.m4
f240aacb 737 m4/stdlib_h.m4
103dc4d4 738 m4/strcase.m4
e65fc94b 739 m4/strftime.m4
24d56127 740 m4/string_h.m4
103dc4d4 741 m4/strings_h.m4
f240aacb 742 m4/sys_file_h.m4
8912421c
LC
743 m4/sys_socket_h.m4
744 m4/sys_stat_h.m4
e65fc94b
LC
745 m4/time_h.m4
746 m4/time_r.m4
747 m4/tm_gmtoff.m4
9b36a80c 748 m4/unistd_h.m4
c4b681fd 749 m4/vasnprintf.m4
4f02b98d 750 m4/version-etc.m4
d9a9e182 751 m4/visibility.m4
c4b681fd 752 m4/vsnprintf.m4
61cd9dc9 753 m4/warn-on-use.m4
f29ded4b 754 m4/warnings.m4
f4c79b3c 755 m4/wchar_h.m4
c4b681fd 756 m4/wchar_t.m4
aa7a939c 757 m4/wint_t.m4
9b36a80c 758 m4/write.m4
c4b681fd 759 m4/xsize.m4
c84bdaf6
LC
760 top/GNUmakefile
761 top/maint.mk
103dc4d4 762])