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