Commit | Line | Data |
---|---|---|
f6ea5628 | 1 | # DO NOT EDIT! GENERATED AUTOMATICALLY! |
4a626d0a | 2 | # Copyright (C) 2002-2015 Free Software Foundation, Inc. |
f6ea5628 | 3 | # |
770d76d7 PA |
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. | |
8 | # | |
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. | |
13 | # | |
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/>. | |
16 | # | |
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 | |
f6ea5628 DJ |
20 | # the same distribution terms as the rest of that program. |
21 | # | |
22 | # Generated by gnulib-tool. | |
23 | # | |
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. | |
770d76d7 PA |
27 | # In projects that use version control, this file can be treated like |
28 | # other built files. | |
f6ea5628 DJ |
29 | |
30 | ||
31 | # This macro should be invoked from ./configure.ac, 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], | |
35 | [ | |
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 | |
770d76d7 | 40 | AC_REQUIRE([gl_PROG_AR_RANLIB]) |
4a626d0a | 41 | # Code from module absolute-header: |
8690e634 JK |
42 | # Code from module alloca: |
43 | # Code from module alloca-opt: | |
98399780 | 44 | # Code from module canonicalize-lgpl: |
6a29c58e | 45 | # Code from module chdir: |
8690e634 | 46 | # Code from module configmake: |
e26b6bb0 | 47 | # Code from module dirent: |
18848e28 | 48 | # Code from module dirfd: |
6a29c58e | 49 | # Code from module dirname-lgpl: |
2196f55f | 50 | # Code from module dosname: |
6a29c58e | 51 | # Code from module double-slash-root: |
18848e28 | 52 | # Code from module errno: |
f434ba03 | 53 | # Code from module extensions: |
f6ea5628 | 54 | AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS]) |
a512b375 | 55 | # Code from module extern-inline: |
88b48903 | 56 | # Code from module float: |
8690e634 JK |
57 | # Code from module fnmatch: |
58 | # Code from module fnmatch-gnu: | |
88b48903 WN |
59 | # Code from module fpieee: |
60 | AC_REQUIRE([gl_FP_IEEE]) | |
61 | # Code from module fpucw: | |
62 | # Code from module frexp: | |
63 | # Code from module frexpl: | |
4a626d0a | 64 | # Code from module gettimeofday: |
f434ba03 | 65 | # Code from module include_next: |
55a8c076 | 66 | # Code from module inttypes: |
770d76d7 | 67 | # Code from module inttypes-incomplete: |
88b48903 WN |
68 | # Code from module isnand-nolibm: |
69 | # Code from module isnanl-nolibm: | |
2196f55f YQ |
70 | # Code from module largefile: |
71 | AC_REQUIRE([AC_SYS_LARGEFILE]) | |
8690e634 | 72 | # Code from module localcharset: |
f45c62c4 | 73 | # Code from module lstat: |
6a29c58e | 74 | # Code from module malloc-posix: |
98399780 | 75 | # Code from module malloca: |
88b48903 | 76 | # Code from module math: |
8690e634 JK |
77 | # Code from module mbrtowc: |
78 | # Code from module mbsinit: | |
79 | # Code from module mbsrtowcs: | |
f434ba03 PA |
80 | # Code from module memchr: |
81 | # Code from module memmem: | |
82 | # Code from module memmem-simple: | |
83 | # Code from module multiarch: | |
98399780 | 84 | # Code from module nocrash: |
38ec2207 | 85 | # Code from module pathmax: |
8424cc97 | 86 | # Code from module rawmemchr: |
2196f55f | 87 | # Code from module readlink: |
6a29c58e YQ |
88 | # Code from module rename: |
89 | # Code from module rmdir: | |
90 | # Code from module same-inode: | |
0750520d | 91 | # Code from module signal-h: |
98399780 | 92 | # Code from module snippet/_Noreturn: |
770d76d7 PA |
93 | # Code from module snippet/arg-nonnull: |
94 | # Code from module snippet/c++defs: | |
95 | # Code from module snippet/warn-on-use: | |
8839a007 | 96 | # Code from module ssize_t: |
2196f55f | 97 | # Code from module stat: |
8690e634 | 98 | # Code from module stdbool: |
f434ba03 PA |
99 | # Code from module stddef: |
100 | # Code from module stdint: | |
6a29c58e | 101 | # Code from module stdio: |
98399780 | 102 | # Code from module stdlib: |
8424cc97 | 103 | # Code from module strchrnul: |
8690e634 | 104 | # Code from module streq: |
f434ba03 | 105 | # Code from module string: |
8690e634 | 106 | # Code from module strnlen1: |
63ce7108 TT |
107 | # Code from module strstr: |
108 | # Code from module strstr-simple: | |
421693b0 | 109 | # Code from module strtok_r: |
09607c9e | 110 | # Code from module sys_stat: |
4a626d0a | 111 | # Code from module sys_time: |
8839a007 | 112 | # Code from module sys_types: |
09607c9e | 113 | # Code from module time: |
8839a007 | 114 | # Code from module unistd: |
174e088e | 115 | # Code from module update-copyright: |
8690e634 JK |
116 | # Code from module verify: |
117 | # Code from module wchar: | |
118 | # Code from module wctype-h: | |
f6ea5628 DJ |
119 | ]) |
120 | ||
121 | # This macro should be invoked from ./configure.ac, in the section | |
122 | # "Check for header files, types and library functions". | |
123 | AC_DEFUN([gl_INIT], | |
124 | [ | |
125 | AM_CONDITIONAL([GL_COND_LIBTOOL], [false]) | |
126 | gl_cond_libtool=false | |
127 | gl_libdeps= | |
128 | gl_ltlibdeps= | |
c971b7fa | 129 | gl_m4_base='import/m4' |
f6ea5628 DJ |
130 | m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ])) |
131 | m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS])) | |
132 | m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES])) | |
f434ba03 PA |
133 | m4_pushdef([gl_LIBSOURCES_LIST], []) |
134 | m4_pushdef([gl_LIBSOURCES_DIR], []) | |
135 | gl_COMMON | |
c971b7fa | 136 | gl_source_base='import' |
a512b375 | 137 | gl_FUNC_ALLOCA |
98399780 YQ |
138 | gl_CANONICALIZE_LGPL |
139 | if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then | |
140 | AC_LIBOBJ([canonicalize-lgpl]) | |
141 | fi | |
142 | gl_MODULE_INDICATOR([canonicalize-lgpl]) | |
143 | gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name]) | |
144 | gl_STDLIB_MODULE_INDICATOR([realpath]) | |
6a29c58e | 145 | gl_UNISTD_MODULE_INDICATOR([chdir]) |
a512b375 | 146 | gl_CONFIGMAKE_PREP |
e26b6bb0 | 147 | gl_DIRENT_H |
18848e28 GF |
148 | gl_FUNC_DIRFD |
149 | if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no; then | |
150 | AC_LIBOBJ([dirfd]) | |
151 | gl_PREREQ_DIRFD | |
152 | fi | |
153 | gl_DIRENT_MODULE_INDICATOR([dirfd]) | |
6a29c58e YQ |
154 | gl_DIRNAME_LGPL |
155 | gl_DOUBLE_SLASH_ROOT | |
18848e28 | 156 | gl_HEADER_ERRNO_H |
a512b375 | 157 | AC_REQUIRE([gl_EXTERN_INLINE]) |
88b48903 WN |
158 | gl_FLOAT_H |
159 | if test $REPLACE_FLOAT_LDBL = 1; then | |
160 | AC_LIBOBJ([float]) | |
161 | fi | |
162 | if test $REPLACE_ITOLD = 1; then | |
163 | AC_LIBOBJ([itold]) | |
164 | fi | |
a512b375 JB |
165 | gl_FUNC_FNMATCH_POSIX |
166 | if test -n "$FNMATCH_H"; then | |
167 | AC_LIBOBJ([fnmatch]) | |
168 | gl_PREREQ_FNMATCH | |
169 | fi | |
170 | gl_FUNC_FNMATCH_GNU | |
171 | if test -n "$FNMATCH_H"; then | |
172 | AC_LIBOBJ([fnmatch]) | |
173 | gl_PREREQ_FNMATCH | |
174 | fi | |
88b48903 WN |
175 | gl_FUNC_FREXP |
176 | if test $gl_func_frexp != yes; then | |
177 | AC_LIBOBJ([frexp]) | |
178 | fi | |
179 | gl_MATH_MODULE_INDICATOR([frexp]) | |
180 | gl_FUNC_FREXPL | |
181 | if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl = no; then | |
182 | AC_LIBOBJ([frexpl]) | |
183 | fi | |
184 | gl_MATH_MODULE_INDICATOR([frexpl]) | |
4a626d0a PA |
185 | gl_FUNC_GETTIMEOFDAY |
186 | if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then | |
187 | AC_LIBOBJ([gettimeofday]) | |
188 | gl_PREREQ_GETTIMEOFDAY | |
189 | fi | |
190 | gl_SYS_TIME_MODULE_INDICATOR([gettimeofday]) | |
a512b375 JB |
191 | gl_INTTYPES_H |
192 | gl_INTTYPES_INCOMPLETE | |
88b48903 WN |
193 | gl_FUNC_ISNAND_NO_LIBM |
194 | if test $gl_func_isnand_no_libm != yes; then | |
195 | AC_LIBOBJ([isnand]) | |
196 | gl_PREREQ_ISNAND | |
197 | fi | |
198 | gl_FUNC_ISNANL_NO_LIBM | |
199 | if test $gl_func_isnanl_no_libm != yes; then | |
200 | AC_LIBOBJ([isnanl]) | |
201 | gl_PREREQ_ISNANL | |
202 | fi | |
2196f55f | 203 | AC_REQUIRE([gl_LARGEFILE]) |
a512b375 JB |
204 | gl_LOCALCHARSET |
205 | LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\"" | |
206 | AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT]) | |
f45c62c4 YQ |
207 | gl_FUNC_LSTAT |
208 | if test $REPLACE_LSTAT = 1; then | |
209 | AC_LIBOBJ([lstat]) | |
210 | gl_PREREQ_LSTAT | |
211 | fi | |
212 | gl_SYS_STAT_MODULE_INDICATOR([lstat]) | |
6a29c58e YQ |
213 | gl_FUNC_MALLOC_POSIX |
214 | if test $REPLACE_MALLOC = 1; then | |
215 | AC_LIBOBJ([malloc]) | |
216 | fi | |
217 | gl_STDLIB_MODULE_INDICATOR([malloc-posix]) | |
98399780 | 218 | gl_MALLOCA |
88b48903 | 219 | gl_MATH_H |
a512b375 JB |
220 | gl_FUNC_MBRTOWC |
221 | if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then | |
222 | AC_LIBOBJ([mbrtowc]) | |
223 | gl_PREREQ_MBRTOWC | |
224 | fi | |
225 | gl_WCHAR_MODULE_INDICATOR([mbrtowc]) | |
226 | gl_FUNC_MBSINIT | |
227 | if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then | |
228 | AC_LIBOBJ([mbsinit]) | |
229 | gl_PREREQ_MBSINIT | |
230 | fi | |
231 | gl_WCHAR_MODULE_INDICATOR([mbsinit]) | |
232 | gl_FUNC_MBSRTOWCS | |
233 | if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then | |
234 | AC_LIBOBJ([mbsrtowcs]) | |
235 | AC_LIBOBJ([mbsrtowcs-state]) | |
236 | gl_PREREQ_MBSRTOWCS | |
237 | fi | |
238 | gl_WCHAR_MODULE_INDICATOR([mbsrtowcs]) | |
239 | gl_FUNC_MEMCHR | |
240 | if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then | |
241 | AC_LIBOBJ([memchr]) | |
242 | gl_PREREQ_MEMCHR | |
243 | fi | |
244 | gl_STRING_MODULE_INDICATOR([memchr]) | |
245 | gl_FUNC_MEMMEM | |
246 | if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then | |
247 | AC_LIBOBJ([memmem]) | |
248 | fi | |
249 | gl_FUNC_MEMMEM_SIMPLE | |
250 | if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then | |
251 | AC_LIBOBJ([memmem]) | |
252 | fi | |
253 | gl_STRING_MODULE_INDICATOR([memmem]) | |
254 | gl_MULTIARCH | |
38ec2207 | 255 | gl_PATHMAX |
8424cc97 SM |
256 | gl_FUNC_RAWMEMCHR |
257 | if test $HAVE_RAWMEMCHR = 0; then | |
258 | AC_LIBOBJ([rawmemchr]) | |
259 | gl_PREREQ_RAWMEMCHR | |
260 | fi | |
261 | gl_STRING_MODULE_INDICATOR([rawmemchr]) | |
2196f55f YQ |
262 | gl_FUNC_READLINK |
263 | if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then | |
264 | AC_LIBOBJ([readlink]) | |
265 | gl_PREREQ_READLINK | |
266 | fi | |
267 | gl_UNISTD_MODULE_INDICATOR([readlink]) | |
6a29c58e YQ |
268 | gl_FUNC_RENAME |
269 | if test $REPLACE_RENAME = 1; then | |
270 | AC_LIBOBJ([rename]) | |
271 | fi | |
272 | gl_STDIO_MODULE_INDICATOR([rename]) | |
273 | gl_FUNC_RMDIR | |
274 | if test $REPLACE_RMDIR = 1; then | |
275 | AC_LIBOBJ([rmdir]) | |
276 | fi | |
277 | gl_UNISTD_MODULE_INDICATOR([rmdir]) | |
0750520d | 278 | gl_SIGNAL_H |
8839a007 | 279 | gt_TYPE_SSIZE_T |
2196f55f YQ |
280 | gl_FUNC_STAT |
281 | if test $REPLACE_STAT = 1; then | |
282 | AC_LIBOBJ([stat]) | |
283 | gl_PREREQ_STAT | |
284 | fi | |
285 | gl_SYS_STAT_MODULE_INDICATOR([stat]) | |
a512b375 JB |
286 | AM_STDBOOL_H |
287 | gl_STDDEF_H | |
288 | gl_STDINT_H | |
6a29c58e | 289 | gl_STDIO_H |
98399780 | 290 | gl_STDLIB_H |
8424cc97 SM |
291 | gl_FUNC_STRCHRNUL |
292 | if test $HAVE_STRCHRNUL = 0 || test $REPLACE_STRCHRNUL = 1; then | |
293 | AC_LIBOBJ([strchrnul]) | |
294 | gl_PREREQ_STRCHRNUL | |
295 | fi | |
296 | gl_STRING_MODULE_INDICATOR([strchrnul]) | |
a512b375 | 297 | gl_HEADER_STRING_H |
63ce7108 TT |
298 | gl_FUNC_STRSTR |
299 | if test $REPLACE_STRSTR = 1; then | |
300 | AC_LIBOBJ([strstr]) | |
301 | fi | |
302 | gl_FUNC_STRSTR_SIMPLE | |
303 | if test $REPLACE_STRSTR = 1; then | |
304 | AC_LIBOBJ([strstr]) | |
305 | fi | |
306 | gl_STRING_MODULE_INDICATOR([strstr]) | |
421693b0 PA |
307 | gl_FUNC_STRTOK_R |
308 | if test $HAVE_STRTOK_R = 0 || test $REPLACE_STRTOK_R = 1; then | |
309 | AC_LIBOBJ([strtok_r]) | |
310 | gl_PREREQ_STRTOK_R | |
311 | fi | |
312 | gl_STRING_MODULE_INDICATOR([strtok_r]) | |
09607c9e TT |
313 | gl_HEADER_SYS_STAT_H |
314 | AC_PROG_MKDIR_P | |
4a626d0a PA |
315 | gl_HEADER_SYS_TIME_H |
316 | AC_PROG_MKDIR_P | |
8839a007 PA |
317 | gl_SYS_TYPES_H |
318 | AC_PROG_MKDIR_P | |
09607c9e | 319 | gl_HEADER_TIME_H |
8839a007 | 320 | gl_UNISTD_H |
a512b375 JB |
321 | gl_WCHAR_H |
322 | gl_WCTYPE_H | |
f434ba03 PA |
323 | # End of code from modules |
324 | m4_ifval(gl_LIBSOURCES_LIST, [ | |
325 | m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ || | |
326 | for gl_file in ]gl_LIBSOURCES_LIST[ ; do | |
327 | if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then | |
328 | echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2 | |
329 | exit 1 | |
330 | fi | |
331 | done])dnl | |
332 | m4_if(m4_sysval, [0], [], | |
333 | [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) | |
334 | ]) | |
335 | m4_popdef([gl_LIBSOURCES_DIR]) | |
336 | m4_popdef([gl_LIBSOURCES_LIST]) | |
f6ea5628 DJ |
337 | m4_popdef([AC_LIBSOURCES]) |
338 | m4_popdef([AC_REPLACE_FUNCS]) | |
339 | m4_popdef([AC_LIBOBJ]) | |
340 | AC_CONFIG_COMMANDS_PRE([ | |
341 | gl_libobjs= | |
342 | gl_ltlibobjs= | |
343 | if test -n "$gl_LIBOBJS"; then | |
344 | # Remove the extension. | |
345 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
f434ba03 | 346 | for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
f6ea5628 DJ |
347 | gl_libobjs="$gl_libobjs $i.$ac_objext" |
348 | gl_ltlibobjs="$gl_ltlibobjs $i.lo" | |
349 | done | |
350 | fi | |
351 | AC_SUBST([gl_LIBOBJS], [$gl_libobjs]) | |
352 | AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs]) | |
353 | ]) | |
354 | gltests_libdeps= | |
355 | gltests_ltlibdeps= | |
356 | m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ])) | |
357 | m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS])) | |
358 | m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES])) | |
f434ba03 PA |
359 | m4_pushdef([gltests_LIBSOURCES_LIST], []) |
360 | m4_pushdef([gltests_LIBSOURCES_DIR], []) | |
361 | gl_COMMON | |
f6ea5628 | 362 | gl_source_base='tests' |
f434ba03 PA |
363 | changequote(,)dnl |
364 | 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 | |
365 | changequote([, ])dnl | |
366 | AC_SUBST([gltests_WITNESS]) | |
367 | gl_module_indicator_condition=$gltests_WITNESS | |
368 | m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition]) | |
369 | m4_popdef([gl_MODULE_INDICATOR_CONDITION]) | |
370 | m4_ifval(gltests_LIBSOURCES_LIST, [ | |
371 | m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ || | |
372 | for gl_file in ]gltests_LIBSOURCES_LIST[ ; do | |
373 | if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then | |
374 | echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2 | |
375 | exit 1 | |
376 | fi | |
377 | done])dnl | |
378 | m4_if(m4_sysval, [0], [], | |
379 | [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])]) | |
380 | ]) | |
381 | m4_popdef([gltests_LIBSOURCES_DIR]) | |
382 | m4_popdef([gltests_LIBSOURCES_LIST]) | |
f6ea5628 DJ |
383 | m4_popdef([AC_LIBSOURCES]) |
384 | m4_popdef([AC_REPLACE_FUNCS]) | |
385 | m4_popdef([AC_LIBOBJ]) | |
386 | AC_CONFIG_COMMANDS_PRE([ | |
387 | gltests_libobjs= | |
388 | gltests_ltlibobjs= | |
389 | if test -n "$gltests_LIBOBJS"; then | |
390 | # Remove the extension. | |
391 | sed_drop_objext='s/\.o$//;s/\.obj$//' | |
f434ba03 | 392 | for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do |
f6ea5628 DJ |
393 | gltests_libobjs="$gltests_libobjs $i.$ac_objext" |
394 | gltests_ltlibobjs="$gltests_ltlibobjs $i.lo" | |
395 | done | |
396 | fi | |
397 | AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs]) | |
398 | AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs]) | |
399 | ]) | |
400 | LIBGNU_LIBDEPS="$gl_libdeps" | |
401 | AC_SUBST([LIBGNU_LIBDEPS]) | |
402 | LIBGNU_LTLIBDEPS="$gl_ltlibdeps" | |
403 | AC_SUBST([LIBGNU_LTLIBDEPS]) | |
404 | ]) | |
405 | ||
406 | # Like AC_LIBOBJ, except that the module name goes | |
407 | # into gl_LIBOBJS instead of into LIBOBJS. | |
408 | AC_DEFUN([gl_LIBOBJ], [ | |
409 | AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl | |
410 | gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext" | |
411 | ]) | |
412 | ||
f6ea5628 DJ |
413 | # Like AC_REPLACE_FUNCS, except that the module name goes |
414 | # into gl_LIBOBJS instead of into LIBOBJS. | |
415 | AC_DEFUN([gl_REPLACE_FUNCS], [ | |
416 | m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl | |
417 | AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)]) | |
418 | ]) | |
419 | ||
420 | # Like AC_LIBSOURCES, except the directory where the source file is | |
f434ba03 | 421 | # expected is derived from the gnulib-tool parameterization, |
f6ea5628 DJ |
422 | # and alloca is special cased (for the alloca-opt module). |
423 | # We could also entirely rely on EXTRA_lib..._SOURCES. | |
424 | AC_DEFUN([gl_LIBSOURCES], [ | |
425 | m4_foreach([_gl_NAME], [$1], [ | |
426 | m4_if(_gl_NAME, [alloca.c], [], [ | |
c971b7fa | 427 | m4_define([gl_LIBSOURCES_DIR], [import]) |
f434ba03 | 428 | m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ]) |
f6ea5628 DJ |
429 | ]) |
430 | ]) | |
431 | ]) | |
432 | ||
433 | # Like AC_LIBOBJ, except that the module name goes | |
434 | # into gltests_LIBOBJS instead of into LIBOBJS. | |
435 | AC_DEFUN([gltests_LIBOBJ], [ | |
436 | AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl | |
437 | gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext" | |
438 | ]) | |
439 | ||
f6ea5628 DJ |
440 | # Like AC_REPLACE_FUNCS, except that the module name goes |
441 | # into gltests_LIBOBJS instead of into LIBOBJS. | |
442 | AC_DEFUN([gltests_REPLACE_FUNCS], [ | |
443 | m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl | |
444 | AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)]) | |
445 | ]) | |
446 | ||
447 | # Like AC_LIBSOURCES, except the directory where the source file is | |
f434ba03 | 448 | # expected is derived from the gnulib-tool parameterization, |
f6ea5628 DJ |
449 | # and alloca is special cased (for the alloca-opt module). |
450 | # We could also entirely rely on EXTRA_lib..._SOURCES. | |
451 | AC_DEFUN([gltests_LIBSOURCES], [ | |
452 | m4_foreach([_gl_NAME], [$1], [ | |
453 | m4_if(_gl_NAME, [alloca.c], [], [ | |
f434ba03 PA |
454 | m4_define([gltests_LIBSOURCES_DIR], [tests]) |
455 | m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ]) | |
f6ea5628 DJ |
456 | ]) |
457 | ]) | |
458 | ]) | |
459 | ||
460 | # This macro records the list of files which have been installed by | |
461 | # gnulib-tool and may be removed by future gnulib-tool invocations. | |
462 | AC_DEFUN([gl_FILE_LIST], [ | |
98399780 | 463 | build-aux/snippet/_Noreturn.h |
770d76d7 PA |
464 | build-aux/snippet/arg-nonnull.h |
465 | build-aux/snippet/c++defs.h | |
466 | build-aux/snippet/warn-on-use.h | |
174e088e | 467 | build-aux/update-copyright |
8690e634 JK |
468 | lib/alloca.c |
469 | lib/alloca.in.h | |
6a29c58e | 470 | lib/basename-lgpl.c |
98399780 | 471 | lib/canonicalize-lgpl.c |
8690e634 | 472 | lib/config.charset |
e26b6bb0 | 473 | lib/dirent.in.h |
18848e28 | 474 | lib/dirfd.c |
6a29c58e YQ |
475 | lib/dirname-lgpl.c |
476 | lib/dirname.h | |
2196f55f | 477 | lib/dosname.h |
18848e28 | 478 | lib/errno.in.h |
88b48903 WN |
479 | lib/float+.h |
480 | lib/float.c | |
481 | lib/float.in.h | |
8690e634 JK |
482 | lib/fnmatch.c |
483 | lib/fnmatch.in.h | |
484 | lib/fnmatch_loop.c | |
88b48903 WN |
485 | lib/fpucw.h |
486 | lib/frexp.c | |
487 | lib/frexpl.c | |
4a626d0a | 488 | lib/gettimeofday.c |
55a8c076 | 489 | lib/inttypes.in.h |
88b48903 WN |
490 | lib/isnan.c |
491 | lib/isnand-nolibm.h | |
492 | lib/isnand.c | |
493 | lib/isnanl-nolibm.h | |
494 | lib/isnanl.c | |
495 | lib/itold.c | |
8690e634 JK |
496 | lib/localcharset.c |
497 | lib/localcharset.h | |
f45c62c4 | 498 | lib/lstat.c |
6a29c58e | 499 | lib/malloc.c |
98399780 YQ |
500 | lib/malloca.c |
501 | lib/malloca.h | |
502 | lib/malloca.valgrind | |
88b48903 WN |
503 | lib/math.c |
504 | lib/math.in.h | |
8690e634 JK |
505 | lib/mbrtowc.c |
506 | lib/mbsinit.c | |
507 | lib/mbsrtowcs-impl.h | |
508 | lib/mbsrtowcs-state.c | |
509 | lib/mbsrtowcs.c | |
f6ea5628 | 510 | lib/memchr.c |
f434ba03 | 511 | lib/memchr.valgrind |
f6ea5628 | 512 | lib/memmem.c |
38ec2207 | 513 | lib/pathmax.h |
8424cc97 SM |
514 | lib/rawmemchr.c |
515 | lib/rawmemchr.valgrind | |
2196f55f | 516 | lib/readlink.c |
8690e634 JK |
517 | lib/ref-add.sin |
518 | lib/ref-del.sin | |
6a29c58e YQ |
519 | lib/rename.c |
520 | lib/rmdir.c | |
521 | lib/same-inode.h | |
0750520d | 522 | lib/signal.in.h |
2196f55f | 523 | lib/stat.c |
8690e634 | 524 | lib/stdbool.in.h |
f434ba03 | 525 | lib/stddef.in.h |
f6ea5628 | 526 | lib/stdint.in.h |
6a29c58e | 527 | lib/stdio.in.h |
98399780 | 528 | lib/stdlib.in.h |
f6ea5628 | 529 | lib/str-two-way.h |
8424cc97 SM |
530 | lib/strchrnul.c |
531 | lib/strchrnul.valgrind | |
8690e634 | 532 | lib/streq.h |
f6ea5628 | 533 | lib/string.in.h |
6a29c58e | 534 | lib/stripslash.c |
8690e634 JK |
535 | lib/strnlen1.c |
536 | lib/strnlen1.h | |
63ce7108 | 537 | lib/strstr.c |
421693b0 | 538 | lib/strtok_r.c |
09607c9e | 539 | lib/sys_stat.in.h |
4a626d0a | 540 | lib/sys_time.in.h |
8839a007 | 541 | lib/sys_types.in.h |
09607c9e | 542 | lib/time.in.h |
8839a007 PA |
543 | lib/unistd.c |
544 | lib/unistd.in.h | |
8690e634 JK |
545 | lib/verify.h |
546 | lib/wchar.in.h | |
a512b375 | 547 | lib/wctype-h.c |
8690e634 | 548 | lib/wctype.in.h |
f434ba03 | 549 | m4/00gnulib.m4 |
4a626d0a | 550 | m4/absolute-header.m4 |
8690e634 | 551 | m4/alloca.m4 |
98399780 | 552 | m4/canonicalize.m4 |
8690e634 JK |
553 | m4/codeset.m4 |
554 | m4/configmake.m4 | |
e26b6bb0 | 555 | m4/dirent_h.m4 |
18848e28 | 556 | m4/dirfd.m4 |
6a29c58e | 557 | m4/dirname.m4 |
98399780 YQ |
558 | m4/double-slash-root.m4 |
559 | m4/eealloc.m4 | |
18848e28 | 560 | m4/errno_h.m4 |
88b48903 WN |
561 | m4/exponentd.m4 |
562 | m4/exponentl.m4 | |
f6ea5628 | 563 | m4/extensions.m4 |
a512b375 | 564 | m4/extern-inline.m4 |
8690e634 | 565 | m4/fcntl-o.m4 |
88b48903 | 566 | m4/float_h.m4 |
8690e634 | 567 | m4/fnmatch.m4 |
88b48903 WN |
568 | m4/fpieee.m4 |
569 | m4/frexp.m4 | |
570 | m4/frexpl.m4 | |
4a626d0a | 571 | m4/gettimeofday.m4 |
8690e634 | 572 | m4/glibc21.m4 |
f6ea5628 DJ |
573 | m4/gnulib-common.m4 |
574 | m4/include_next.m4 | |
55a8c076 YQ |
575 | m4/inttypes-pri.m4 |
576 | m4/inttypes.m4 | |
88b48903 WN |
577 | m4/isnand.m4 |
578 | m4/isnanl.m4 | |
2196f55f | 579 | m4/largefile.m4 |
8690e634 JK |
580 | m4/localcharset.m4 |
581 | m4/locale-fr.m4 | |
582 | m4/locale-ja.m4 | |
583 | m4/locale-zh.m4 | |
f6ea5628 | 584 | m4/longlong.m4 |
f45c62c4 | 585 | m4/lstat.m4 |
6a29c58e | 586 | m4/malloc.m4 |
98399780 | 587 | m4/malloca.m4 |
88b48903 | 588 | m4/math_h.m4 |
8690e634 JK |
589 | m4/mbrtowc.m4 |
590 | m4/mbsinit.m4 | |
591 | m4/mbsrtowcs.m4 | |
592 | m4/mbstate_t.m4 | |
f6ea5628 | 593 | m4/memchr.m4 |
f6ea5628 | 594 | m4/memmem.m4 |
f434ba03 PA |
595 | m4/mmap-anon.m4 |
596 | m4/multiarch.m4 | |
98399780 | 597 | m4/nocrash.m4 |
8839a007 | 598 | m4/off_t.m4 |
38ec2207 | 599 | m4/pathmax.m4 |
8424cc97 | 600 | m4/rawmemchr.m4 |
2196f55f | 601 | m4/readlink.m4 |
6a29c58e YQ |
602 | m4/rename.m4 |
603 | m4/rmdir.m4 | |
0750520d | 604 | m4/signal_h.m4 |
8839a007 | 605 | m4/ssize_t.m4 |
2196f55f | 606 | m4/stat.m4 |
8690e634 | 607 | m4/stdbool.m4 |
f434ba03 | 608 | m4/stddef_h.m4 |
f6ea5628 | 609 | m4/stdint.m4 |
6a29c58e | 610 | m4/stdio_h.m4 |
98399780 | 611 | m4/stdlib_h.m4 |
8424cc97 | 612 | m4/strchrnul.m4 |
f6ea5628 | 613 | m4/string_h.m4 |
63ce7108 | 614 | m4/strstr.m4 |
421693b0 | 615 | m4/strtok_r.m4 |
4a626d0a | 616 | m4/sys_socket_h.m4 |
09607c9e | 617 | m4/sys_stat_h.m4 |
4a626d0a | 618 | m4/sys_time_h.m4 |
8839a007 | 619 | m4/sys_types_h.m4 |
09607c9e | 620 | m4/time_h.m4 |
8839a007 | 621 | m4/unistd_h.m4 |
f434ba03 | 622 | m4/warn-on-use.m4 |
8690e634 | 623 | m4/wchar_h.m4 |
f434ba03 | 624 | m4/wchar_t.m4 |
8690e634 JK |
625 | m4/wctype_h.m4 |
626 | m4/wint_t.m4 | |
f6ea5628 | 627 | ]) |