1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2013 Free Software Foundation, Inc.
4 # This file is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This file is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this file. If not, see <http://www.gnu.org/licenses/>.
17 # As a special exception to the GNU General Public License,
18 # this file may be distributed as part of a program that
19 # contains a configuration script generated by Autoconf, under
20 # the same distribution terms as the rest of that program.
22 # Generated by gnulib-tool.
24 # This file represents the compiled summary of the specification in
25 # gnulib-cache.m4. It lists the computed macro invocations that need
26 # to be invoked from configure.ac.
27 # In projects that use version control, this file can be treated like
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.
36 m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
37 m4_pattern_allow([^gl_ES$])dnl a valid locale name
38 m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
39 m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
40 AC_REQUIRE([gl_PROG_AR_RANLIB])
41 # Code from module alloca-opt:
42 # Code from module allocator:
43 # Code from module at-internal:
44 # Code from module c-ctype:
45 # Code from module c-strcase:
46 # Code from module careadlinkat:
47 # Code from module clock-time:
48 # Code from module close-stream:
49 # Code from module crypto/md5:
50 # Code from module crypto/sha1:
51 # Code from module crypto/sha256:
52 # Code from module crypto/sha512:
53 # Code from module dirent:
54 # Code from module dosname:
55 # Code from module dtoastr:
56 # Code from module dtotimespec:
57 # Code from module dup2:
58 # Code from module environ:
59 # Code from module euidaccess:
60 # Code from module execinfo:
61 # Code from module extensions:
62 AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
63 # Code from module extern-inline:
64 # Code from module faccessat:
65 # Code from module fcntl-h:
66 # Code from module fdopendir:
67 # Code from module filemode:
68 # Code from module fpending:
69 # Code from module fstatat:
70 # Code from module getgroups:
71 # Code from module getloadavg:
72 # Code from module getopt-gnu:
73 # Code from module getopt-posix:
74 # Code from module gettext-h:
75 # Code from module gettime:
76 # Code from module gettimeofday:
77 # Code from module group-member:
78 # Code from module ignore-value:
79 # Code from module include_next:
80 # Code from module intprops:
81 # Code from module inttypes-incomplete:
82 # Code from module largefile:
83 AC_REQUIRE([AC_SYS_LARGEFILE])
84 # Code from module lstat:
85 # Code from module manywarnings:
86 # Code from module mktime:
87 # Code from module multiarch:
88 # Code from module nocrash:
89 # Code from module openat-h:
90 # Code from module pathmax:
91 # Code from module pselect:
92 # Code from module pthread_sigmask:
93 # Code from module putenv:
94 # Code from module readlink:
95 # Code from module readlinkat:
96 # Code from module root-uid:
97 # Code from module sig2str:
98 # Code from module signal-h:
99 # Code from module snippet/_Noreturn:
100 # Code from module snippet/arg-nonnull:
101 # Code from module snippet/c++defs:
102 # Code from module snippet/warn-on-use:
103 # Code from module socklen:
104 # Code from module ssize_t:
105 # Code from module stat:
106 # Code from module stat-time:
107 # Code from module stdalign:
108 # Code from module stdarg:
109 dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
110 dnl for the builtin va_copy to work. With Autoconf 2.60 or later,
111 dnl gl_PROG_CC_C99 arranges for this. With older Autoconf gl_PROG_CC_C99
112 dnl shouldn't hurt, though installers are on their own to set c99 mode.
114 # Code from module stdbool:
115 # Code from module stddef:
116 # Code from module stdint:
117 # Code from module stdio:
118 # Code from module stdlib:
119 # Code from module strftime:
120 # Code from module strtoimax:
121 # Code from module strtoll:
122 # Code from module strtoull:
123 # Code from module strtoumax:
124 # Code from module symlink:
125 # Code from module sys_select:
126 # Code from module sys_stat:
127 # Code from module sys_time:
128 # Code from module time:
129 # Code from module time_r:
130 # Code from module timer-time:
131 # Code from module timespec:
132 # Code from module timespec-add:
133 # Code from module timespec-sub:
134 # Code from module u64:
135 # Code from module unistd:
136 # Code from module unsetenv:
137 # Code from module utimens:
138 # Code from module verify:
139 # Code from module warnings:
140 # Code from module xalloc-oversized:
143 # This macro should be invoked from ./configure.ac, in the section
144 # "Check for header files, types and library functions".
147 AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
148 gl_cond_libtool=false
152 m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
153 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
154 m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
155 m4_pushdef([gl_LIBSOURCES_LIST], [])
156 m4_pushdef([gl_LIBSOURCES_DIR], [])
160 AC_CHECK_FUNCS_ONCE([readlinkat])
163 gl_MODULE_INDICATOR([close-stream])
169 AC_REQUIRE([gl_C99_STRTOLD])
171 if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
175 gl_UNISTD_MODULE_INDICATOR([dup2])
177 gl_UNISTD_MODULE_INDICATOR([environ])
179 AC_REQUIRE([gl_EXTERN_INLINE])
181 if test $HAVE_FACCESSAT = 0; then
182 AC_LIBOBJ([faccessat])
185 gl_MODULE_INDICATOR([faccessat])
186 gl_UNISTD_MODULE_INDICATOR([faccessat])
189 if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
190 AC_LIBOBJ([fdopendir])
192 gl_DIRENT_MODULE_INDICATOR([fdopendir])
193 gl_MODULE_INDICATOR([fdopendir])
196 if test $ac_cv_func___fpending = no; then
197 AC_LIBOBJ([fpending])
201 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
204 gl_SYS_STAT_MODULE_INDICATOR([fstatat])
206 if test $HAVE_GETLOADAVG = 0; then
207 AC_LIBOBJ([getloadavg])
210 gl_STDLIB_MODULE_INDICATOR([getloadavg])
212 if test $REPLACE_GETOPT = 1; then
216 dnl Arrange for unistd.h to include getopt.h.
217 GNULIB_GL_UNISTD_H_GETOPT=1
219 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
220 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
222 if test $REPLACE_GETOPT = 1; then
226 dnl Arrange for unistd.h to include getopt.h.
227 GNULIB_GL_UNISTD_H_GETOPT=1
229 AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
232 if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
233 AC_LIBOBJ([gettimeofday])
234 gl_PREREQ_GETTIMEOFDAY
236 gl_SYS_TIME_MODULE_INDICATOR([gettimeofday])
237 gl_INTTYPES_INCOMPLETE
238 AC_REQUIRE([gl_LARGEFILE])
240 if test $REPLACE_LSTAT = 1; then
244 gl_SYS_STAT_MODULE_INDICATOR([lstat])
246 if test $REPLACE_MKTIME = 1; then
250 gl_TIME_MODULE_INDICATOR([mktime])
253 if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then
256 gl_SYS_SELECT_MODULE_INDICATOR([pselect])
257 gl_FUNC_PTHREAD_SIGMASK
258 if test $HAVE_PTHREAD_SIGMASK = 0 || test $REPLACE_PTHREAD_SIGMASK = 1; then
259 AC_LIBOBJ([pthread_sigmask])
260 gl_PREREQ_PTHREAD_SIGMASK
262 gl_SIGNAL_MODULE_INDICATOR([pthread_sigmask])
264 if test $REPLACE_PUTENV = 1; then
267 gl_STDLIB_MODULE_INDICATOR([putenv])
269 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
270 AC_LIBOBJ([readlink])
273 gl_UNISTD_MODULE_INDICATOR([readlink])
275 if test $HAVE_READLINKAT = 0; then
276 AC_LIBOBJ([readlinkat])
278 gl_UNISTD_MODULE_INDICATOR([readlinkat])
280 if test $ac_cv_func_sig2str = no; then
298 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
299 AC_LIBOBJ([strtoimax])
302 gl_INTTYPES_MODULE_INDICATOR([strtoimax])
304 if test $ac_cv_func_strtoumax = no; then
305 AC_LIBOBJ([strtoumax])
308 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
310 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
313 gl_UNISTD_MODULE_INDICATOR([symlink])
322 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
326 gl_TIME_MODULE_INDICATOR([time_r])
331 if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
332 AC_LIBOBJ([unsetenv])
335 gl_STDLIB_MODULE_INDICATOR([unsetenv])
337 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=false
338 gl_gnulib_enabled_dosname=false
339 gl_gnulib_enabled_euidaccess=false
340 gl_gnulib_enabled_getgroups=false
341 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
342 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=false
343 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=false
344 gl_gnulib_enabled_pathmax=false
345 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=false
346 gl_gnulib_enabled_stat=false
347 gl_gnulib_enabled_strtoll=false
348 gl_gnulib_enabled_strtoull=false
349 gl_gnulib_enabled_verify=false
350 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=false
351 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b ()
353 if ! $gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b; then
354 AC_LIBOBJ([openat-proc])
355 gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b=true
358 func_gl_gnulib_m4code_dosname ()
360 if ! $gl_gnulib_enabled_dosname; then
361 gl_gnulib_enabled_dosname=true
364 func_gl_gnulib_m4code_euidaccess ()
366 if ! $gl_gnulib_enabled_euidaccess; then
368 if test $HAVE_EUIDACCESS = 0; then
369 AC_LIBOBJ([euidaccess])
372 gl_UNISTD_MODULE_INDICATOR([euidaccess])
373 gl_gnulib_enabled_euidaccess=true
374 if test $HAVE_EUIDACCESS = 0; then
375 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1
377 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c
378 if test $HAVE_EUIDACCESS = 0; then
379 func_gl_gnulib_m4code_stat
383 func_gl_gnulib_m4code_getgroups ()
385 if ! $gl_gnulib_enabled_getgroups; then
387 if test $HAVE_GETGROUPS = 0 || test $REPLACE_GETGROUPS = 1; then
388 AC_LIBOBJ([getgroups])
390 gl_UNISTD_MODULE_INDICATOR([getgroups])
391 gl_gnulib_enabled_getgroups=true
394 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
396 if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
398 AC_SUBST([LTLIBINTL])
399 gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
402 func_gl_gnulib_m4code_a9786850e999ae65a836a6041e8e5ed1 ()
404 if ! $gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1; then
406 if test $HAVE_GROUP_MEMBER = 0; then
407 AC_LIBOBJ([group-member])
408 gl_PREREQ_GROUP_MEMBER
410 gl_UNISTD_MODULE_INDICATOR([group-member])
411 gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1=true
412 if test $HAVE_GROUP_MEMBER = 0; then
413 func_gl_gnulib_m4code_getgroups
415 if test $HAVE_GROUP_MEMBER = 0; then
416 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec
420 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7 ()
422 if ! $gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7; then
423 gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7=true
426 func_gl_gnulib_m4code_pathmax ()
428 if ! $gl_gnulib_enabled_pathmax; then
430 gl_gnulib_enabled_pathmax=true
433 func_gl_gnulib_m4code_6099e9737f757db36c47fa9d9f02e88c ()
435 if ! $gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c; then
436 gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c=true
439 func_gl_gnulib_m4code_stat ()
441 if ! $gl_gnulib_enabled_stat; then
443 if test $REPLACE_STAT = 1; then
447 gl_SYS_STAT_MODULE_INDICATOR([stat])
448 gl_gnulib_enabled_stat=true
449 if test $REPLACE_STAT = 1; then
450 func_gl_gnulib_m4code_dosname
452 if test $REPLACE_STAT = 1; then
453 func_gl_gnulib_m4code_pathmax
455 if test $REPLACE_STAT = 1; then
456 func_gl_gnulib_m4code_verify
460 func_gl_gnulib_m4code_strtoll ()
462 if ! $gl_gnulib_enabled_strtoll; then
464 if test $HAVE_STRTOLL = 0; then
468 gl_STDLIB_MODULE_INDICATOR([strtoll])
469 gl_gnulib_enabled_strtoll=true
472 func_gl_gnulib_m4code_strtoull ()
474 if ! $gl_gnulib_enabled_strtoull; then
476 if test $HAVE_STRTOULL = 0; then
477 AC_LIBOBJ([strtoull])
480 gl_STDLIB_MODULE_INDICATOR([strtoull])
481 gl_gnulib_enabled_strtoull=true
484 func_gl_gnulib_m4code_verify ()
486 if ! $gl_gnulib_enabled_verify; then
487 gl_gnulib_enabled_verify=true
490 func_gl_gnulib_m4code_682e609604ccaac6be382e4ee3a4eaec ()
492 if ! $gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec; then
493 gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec=true
496 if test $HAVE_FACCESSAT = 0; then
497 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
499 if test $HAVE_FACCESSAT = 0; then
500 func_gl_gnulib_m4code_dosname
502 if test $HAVE_FACCESSAT = 0; then
503 func_gl_gnulib_m4code_euidaccess
505 if test $HAVE_FACCESSAT = 0; then
506 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
508 if test $HAVE_FDOPENDIR = 0; then
509 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
511 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
512 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
514 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
515 func_gl_gnulib_m4code_dosname
517 if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
518 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
520 if test $REPLACE_GETOPT = 1; then
521 func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
523 if test $REPLACE_LSTAT = 1; then
524 func_gl_gnulib_m4code_dosname
526 if test $REPLACE_LSTAT = 1; then
527 func_gl_gnulib_m4code_stat
529 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
530 func_gl_gnulib_m4code_stat
532 if test $HAVE_READLINKAT = 0; then
533 func_gl_gnulib_m4code_260941c0e5dc67ec9e87d1fb321c300b
535 if test $HAVE_READLINKAT = 0; then
536 func_gl_gnulib_m4code_dosname
538 if test $HAVE_READLINKAT = 0; then
539 func_gl_gnulib_m4code_03e0aaad4cb89ca757653bd367a6ccb7
541 if { test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; } && test $ac_cv_type_long_long_int = yes; then
542 func_gl_gnulib_m4code_strtoll
544 if test $HAVE_STRTOIMAX = 0 || test $REPLACE_STRTOIMAX = 1; then
545 func_gl_gnulib_m4code_verify
547 if test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
548 func_gl_gnulib_m4code_strtoull
550 if test $ac_cv_func_strtoumax = no; then
551 func_gl_gnulib_m4code_verify
553 m4_pattern_allow([^gl_GNULIB_ENABLED_])
554 AM_CONDITIONAL([gl_GNULIB_ENABLED_260941c0e5dc67ec9e87d1fb321c300b], [$gl_gnulib_enabled_260941c0e5dc67ec9e87d1fb321c300b])
555 AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname])
556 AM_CONDITIONAL([gl_GNULIB_ENABLED_euidaccess], [$gl_gnulib_enabled_euidaccess])
557 AM_CONDITIONAL([gl_GNULIB_ENABLED_getgroups], [$gl_gnulib_enabled_getgroups])
558 AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
559 AM_CONDITIONAL([gl_GNULIB_ENABLED_a9786850e999ae65a836a6041e8e5ed1], [$gl_gnulib_enabled_a9786850e999ae65a836a6041e8e5ed1])
560 AM_CONDITIONAL([gl_GNULIB_ENABLED_03e0aaad4cb89ca757653bd367a6ccb7], [$gl_gnulib_enabled_03e0aaad4cb89ca757653bd367a6ccb7])
561 AM_CONDITIONAL([gl_GNULIB_ENABLED_pathmax], [$gl_gnulib_enabled_pathmax])
562 AM_CONDITIONAL([gl_GNULIB_ENABLED_6099e9737f757db36c47fa9d9f02e88c], [$gl_gnulib_enabled_6099e9737f757db36c47fa9d9f02e88c])
563 AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
564 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoll], [$gl_gnulib_enabled_strtoll])
565 AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoull], [$gl_gnulib_enabled_strtoull])
566 AM_CONDITIONAL([gl_GNULIB_ENABLED_verify], [$gl_gnulib_enabled_verify])
567 AM_CONDITIONAL([gl_GNULIB_ENABLED_682e609604ccaac6be382e4ee3a4eaec], [$gl_gnulib_enabled_682e609604ccaac6be382e4ee3a4eaec])
568 # End of code from modules
569 m4_ifval(gl_LIBSOURCES_LIST, [
570 m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
571 for gl_file in ]gl_LIBSOURCES_LIST[ ; do
572 if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
573 echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
577 m4_if(m4_sysval, [0], [],
578 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
580 m4_popdef([gl_LIBSOURCES_DIR])
581 m4_popdef([gl_LIBSOURCES_LIST])
582 m4_popdef([AC_LIBSOURCES])
583 m4_popdef([AC_REPLACE_FUNCS])
584 m4_popdef([AC_LIBOBJ])
585 AC_CONFIG_COMMANDS_PRE([
588 if test -n "$gl_LIBOBJS"; then
589 # Remove the extension.
590 sed_drop_objext='s/\.o$//;s/\.obj$//'
591 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
592 gl_libobjs="$gl_libobjs $i.$ac_objext"
593 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
596 AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
597 AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
601 m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
602 m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
603 m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
604 m4_pushdef([gltests_LIBSOURCES_LIST], [])
605 m4_pushdef([gltests_LIBSOURCES_DIR], [])
607 gl_source_base='tests'
609 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
611 AC_SUBST([gltests_WITNESS])
612 gl_module_indicator_condition=$gltests_WITNESS
613 m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
614 m4_pattern_allow([^gl_GNULIB_ENABLED_])
615 m4_popdef([gl_MODULE_INDICATOR_CONDITION])
616 m4_ifval(gltests_LIBSOURCES_LIST, [
617 m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
618 for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
619 if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
620 echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
624 m4_if(m4_sysval, [0], [],
625 [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
627 m4_popdef([gltests_LIBSOURCES_DIR])
628 m4_popdef([gltests_LIBSOURCES_LIST])
629 m4_popdef([AC_LIBSOURCES])
630 m4_popdef([AC_REPLACE_FUNCS])
631 m4_popdef([AC_LIBOBJ])
632 AC_CONFIG_COMMANDS_PRE([
635 if test -n "$gltests_LIBOBJS"; then
636 # Remove the extension.
637 sed_drop_objext='s/\.o$//;s/\.obj$//'
638 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
639 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
640 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
643 AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
644 AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
646 LIBGNU_LIBDEPS="$gl_libdeps"
647 AC_SUBST([LIBGNU_LIBDEPS])
648 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
649 AC_SUBST([LIBGNU_LTLIBDEPS])
652 # Like AC_LIBOBJ, except that the module name goes
653 # into gl_LIBOBJS instead of into LIBOBJS.
654 AC_DEFUN([gl_LIBOBJ], [
655 AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
656 gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
659 # Like AC_REPLACE_FUNCS, except that the module name goes
660 # into gl_LIBOBJS instead of into LIBOBJS.
661 AC_DEFUN([gl_REPLACE_FUNCS], [
662 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
663 AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
666 # Like AC_LIBSOURCES, except the directory where the source file is
667 # expected is derived from the gnulib-tool parameterization,
668 # and alloca is special cased (for the alloca-opt module).
669 # We could also entirely rely on EXTRA_lib..._SOURCES.
670 AC_DEFUN([gl_LIBSOURCES], [
671 m4_foreach([_gl_NAME], [$1], [
672 m4_if(_gl_NAME, [alloca.c], [], [
673 m4_define([gl_LIBSOURCES_DIR], [lib])
674 m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
679 # Like AC_LIBOBJ, except that the module name goes
680 # into gltests_LIBOBJS instead of into LIBOBJS.
681 AC_DEFUN([gltests_LIBOBJ], [
682 AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
683 gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
686 # Like AC_REPLACE_FUNCS, except that the module name goes
687 # into gltests_LIBOBJS instead of into LIBOBJS.
688 AC_DEFUN([gltests_REPLACE_FUNCS], [
689 m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
690 AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
693 # Like AC_LIBSOURCES, except the directory where the source file is
694 # expected is derived from the gnulib-tool parameterization,
695 # and alloca is special cased (for the alloca-opt module).
696 # We could also entirely rely on EXTRA_lib..._SOURCES.
697 AC_DEFUN([gltests_LIBSOURCES], [
698 m4_foreach([_gl_NAME], [$1], [
699 m4_if(_gl_NAME, [alloca.c], [], [
700 m4_define([gltests_LIBSOURCES_DIR], [tests])
701 m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
706 # This macro records the list of files which have been installed by
707 # gnulib-tool and may be removed by future gnulib-tool invocations.
708 AC_DEFUN([gl_FILE_LIST], [
709 build-aux/snippet/_Noreturn.h
710 build-aux/snippet/arg-nonnull.h
711 build-aux/snippet/c++defs.h
712 build-aux/snippet/warn-on-use.h
760 lib/mktime-internal.h
767 lib/pthread_sigmask.c
817 lib/xalloc-oversized.h
857 m4/pthread_sigmask.m4