lisp/progmodes/verilog-mode.el (verilog-mode): Fix test for bound variable.
[emacs.git] / m4 / gl-comp.m4
blob84b3a0962ef081b39437deb441627225ced95aa3
1 # DO NOT EDIT! GENERATED AUTOMATICALLY!
2 # Copyright (C) 2002-2011 Free Software Foundation, Inc.
4 # This file is free software, distributed under the terms of the GNU
5 # General Public License.  As a special exception to the GNU General
6 # Public License, this file may be distributed as part of a program
7 # that contains a configuration script generated by Autoconf, under
8 # the same distribution terms as the rest of that program.
10 # Generated by gnulib-tool.
12 # This file represents the compiled summary of the specification in
13 # gnulib-cache.m4. It lists the computed macro invocations that need
14 # to be invoked from configure.ac.
15 # In projects that use version control, this file can be treated like
16 # other built files.
19 # This macro should be invoked from ./configure.in, in the section
20 # "Checks for programs", right after AC_PROG_CC, and certainly before
21 # any checks for libraries, header files, types and library functions.
22 AC_DEFUN([gl_EARLY],
24   m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
25   m4_pattern_allow([^gl_ES$])dnl a valid locale name
26   m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
27   m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
28   AC_REQUIRE([AC_PROG_RANLIB])
29   # Code from module alloca-opt:
30   # Code from module allocator:
31   # Code from module arg-nonnull:
32   # Code from module c++defs:
33   # Code from module careadlinkat:
34   # Code from module crypto/md5:
35   # Code from module crypto/sha1:
36   # Code from module crypto/sha256:
37   # Code from module crypto/sha512:
38   # Code from module dosname:
39   # Code from module dtoastr:
40   # Code from module extensions:
41   AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
42   # Code from module filemode:
43   # Code from module getloadavg:
44   # Code from module getopt-gnu:
45   # Code from module getopt-posix:
46   # Code from module gettext-h:
47   # Code from module ignore-value:
48   # Code from module include_next:
49   # Code from module intprops:
50   # Code from module inttypes-incomplete:
51   # Code from module lstat:
52   # Code from module mktime:
53   # Code from module multiarch:
54   # Code from module readlink:
55   # Code from module socklen:
56   # Code from module ssize_t:
57   # Code from module stat:
58   # Code from module stdarg:
59   dnl Some compilers (e.g., AIX 5.3 cc) need to be in c99 mode
60   dnl for the builtin va_copy to work.  With Autoconf 2.60 or later,
61   dnl AC_PROG_CC_STDC arranges for this.  With older Autoconf AC_PROG_CC_STDC
62   dnl shouldn't hurt, though installers are on their own to set c99 mode.
63   AC_REQUIRE([AC_PROG_CC_STDC])
64   # Code from module stdbool:
65   # Code from module stddef:
66   # Code from module stdint:
67   # Code from module stdio:
68   # Code from module stdlib:
69   # Code from module strftime:
70   # Code from module strtoull:
71   # Code from module strtoumax:
72   # Code from module symlink:
73   # Code from module sys_stat:
74   # Code from module time:
75   # Code from module time_r:
76   # Code from module u64:
77   # Code from module unistd:
78   # Code from module verify:
79   # Code from module warn-on-use:
82 # This macro should be invoked from ./configure.in, in the section
83 # "Check for header files, types and library functions".
84 AC_DEFUN([gl_INIT],
86   AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
87   gl_cond_libtool=false
88   gl_libdeps=
89   gl_ltlibdeps=
90   gl_m4_base='m4'
91   m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
92   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
93   m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
94   m4_pushdef([gl_LIBSOURCES_LIST], [])
95   m4_pushdef([gl_LIBSOURCES_DIR], [])
96   gl_COMMON
97   gl_source_base='lib'
98 gl_FUNC_ALLOCA
99 AC_CHECK_FUNCS_ONCE([readlinkat])
100 gl_MD5
101 gl_SHA1
102 gl_SHA256
103 gl_SHA512
104 AC_REQUIRE([gl_C99_STRTOLD])
105 gl_FILEMODE
106 gl_GETLOADAVG
107 if test $HAVE_GETLOADAVG = 0; then
108   AC_LIBOBJ([getloadavg])
109   gl_PREREQ_GETLOADAVG
111 gl_STDLIB_MODULE_INDICATOR([getloadavg])
112 gl_FUNC_GETOPT_GNU
113 if test $REPLACE_GETOPT = 1; then
114   AC_LIBOBJ([getopt])
115   AC_LIBOBJ([getopt1])
116   gl_PREREQ_GETOPT
118 gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
119 gl_FUNC_GETOPT_POSIX
120 if test $REPLACE_GETOPT = 1; then
121   AC_LIBOBJ([getopt])
122   AC_LIBOBJ([getopt1])
123   gl_PREREQ_GETOPT
125 AC_REQUIRE([AC_C_INLINE])
126 gl_INTTYPES_INCOMPLETE
127 gl_FUNC_LSTAT
128 if test $REPLACE_LSTAT = 1; then
129   AC_LIBOBJ([lstat])
130   gl_PREREQ_LSTAT
132 gl_SYS_STAT_MODULE_INDICATOR([lstat])
133 gl_FUNC_MKTIME
134 if test $REPLACE_MKTIME = 1; then
135   AC_LIBOBJ([mktime])
136   gl_PREREQ_MKTIME
138 gl_TIME_MODULE_INDICATOR([mktime])
139 gl_MULTIARCH
140 gl_FUNC_READLINK
141 if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
142   AC_LIBOBJ([readlink])
143   gl_PREREQ_READLINK
145 gl_UNISTD_MODULE_INDICATOR([readlink])
146 gl_TYPE_SOCKLEN_T
147 gt_TYPE_SSIZE_T
148 gl_STDARG_H
149 AM_STDBOOL_H
150 gl_STDDEF_H
151 gl_STDINT_H
152 gl_STDIO_H
153 gl_STDLIB_H
154 gl_FUNC_GNU_STRFTIME
155 gl_FUNC_STRTOUMAX
156 if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
157   AC_LIBOBJ([strtoumax])
158   gl_PREREQ_STRTOUMAX
160 gl_INTTYPES_MODULE_INDICATOR([strtoumax])
161 gl_FUNC_SYMLINK
162 if test $HAVE_SYMLINK = 0 || test $REPLACE_SYMLINK = 1; then
163   AC_LIBOBJ([symlink])
165 gl_UNISTD_MODULE_INDICATOR([symlink])
166 gl_HEADER_SYS_STAT_H
167 AC_PROG_MKDIR_P
168 gl_HEADER_TIME_H
169 gl_TIME_R
170 if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
171   AC_LIBOBJ([time_r])
172   gl_PREREQ_TIME_R
174 gl_TIME_MODULE_INDICATOR([time_r])
175 AC_REQUIRE([AC_C_INLINE])
176 gl_UNISTD_H
177   gl_gnulib_enabled_dosname=false
178   gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
179   gl_gnulib_enabled_stat=false
180   gl_gnulib_enabled_strtoull=false
181   gl_gnulib_enabled_verify=false
182   func_gl_gnulib_m4code_dosname ()
183   {
184     if ! $gl_gnulib_enabled_dosname; then
185       gl_gnulib_enabled_dosname=true
186     fi
187   }
188   func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
189   {
190     if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
191 AC_SUBST([LIBINTL])
192 AC_SUBST([LTLIBINTL])
193       gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
194     fi
195   }
196   func_gl_gnulib_m4code_stat ()
197   {
198     if ! $gl_gnulib_enabled_stat; then
199 gl_FUNC_STAT
200 if test $REPLACE_STAT = 1; then
201   AC_LIBOBJ([stat])
202   gl_PREREQ_STAT
204 gl_SYS_STAT_MODULE_INDICATOR([stat])
205       gl_gnulib_enabled_stat=true
206       if $condition; then
207         func_gl_gnulib_m4code_dosname
208       fi
209       if $condition; then
210         func_gl_gnulib_m4code_verify
211       fi
212     fi
213   }
214   func_gl_gnulib_m4code_strtoull ()
215   {
216     if ! $gl_gnulib_enabled_strtoull; then
217 gl_FUNC_STRTOULL
218 if test $HAVE_STRTOULL = 0; then
219   AC_LIBOBJ([strtoull])
220   gl_PREREQ_STRTOULL
222 gl_STDLIB_MODULE_INDICATOR([strtoull])
223       gl_gnulib_enabled_strtoull=true
224     fi
225   }
226   func_gl_gnulib_m4code_verify ()
227   {
228     if ! $gl_gnulib_enabled_verify; then
229       gl_gnulib_enabled_verify=true
230     fi
231   }
232   if test $REPLACE_GETOPT = 1; then
233     func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
234   fi
235   if test $REPLACE_LSTAT = 1; then
236     func_gl_gnulib_m4code_dosname
237   fi
238   if test $REPLACE_LSTAT = 1; then
239     func_gl_gnulib_m4code_stat
240   fi
241   if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
242     func_gl_gnulib_m4code_stat
243   fi
244   if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no; then
245     func_gl_gnulib_m4code_verify
246   fi
247   if test "$ac_cv_have_decl_strtoumax" != yes && test $ac_cv_func_strtoumax = no && test $ac_cv_type_unsigned_long_long_int = yes; then
248     func_gl_gnulib_m4code_strtoull
249   fi
250   m4_pattern_allow([^gl_GNULIB_ENABLED_])
251   AM_CONDITIONAL([gl_GNULIB_ENABLED_dosname], [$gl_gnulib_enabled_dosname])
252   AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
253   AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
254   AM_CONDITIONAL([gl_GNULIB_ENABLED_strtoull], [$gl_gnulib_enabled_strtoull])
255   AM_CONDITIONAL([gl_GNULIB_ENABLED_verify], [$gl_gnulib_enabled_verify])
256   # End of code from modules
257   m4_ifval(gl_LIBSOURCES_LIST, [
258     m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
259       for gl_file in ]gl_LIBSOURCES_LIST[ ; do
260         if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
261           echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
262           exit 1
263         fi
264       done])dnl
265       m4_if(m4_sysval, [0], [],
266         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
267   ])
268   m4_popdef([gl_LIBSOURCES_DIR])
269   m4_popdef([gl_LIBSOURCES_LIST])
270   m4_popdef([AC_LIBSOURCES])
271   m4_popdef([AC_REPLACE_FUNCS])
272   m4_popdef([AC_LIBOBJ])
273   AC_CONFIG_COMMANDS_PRE([
274     gl_libobjs=
275     gl_ltlibobjs=
276     if test -n "$gl_LIBOBJS"; then
277       # Remove the extension.
278       sed_drop_objext='s/\.o$//;s/\.obj$//'
279       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
280         gl_libobjs="$gl_libobjs $i.$ac_objext"
281         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
282       done
283     fi
284     AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
285     AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
286   ])
287   gltests_libdeps=
288   gltests_ltlibdeps=
289   m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
290   m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
291   m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
292   m4_pushdef([gltests_LIBSOURCES_LIST], [])
293   m4_pushdef([gltests_LIBSOURCES_DIR], [])
294   gl_COMMON
295   gl_source_base='tests'
296 changequote(,)dnl
297   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
298 changequote([, ])dnl
299   AC_SUBST([gltests_WITNESS])
300   gl_module_indicator_condition=$gltests_WITNESS
301   m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
302   m4_pattern_allow([^gl_GNULIB_ENABLED_])
303   m4_popdef([gl_MODULE_INDICATOR_CONDITION])
304   m4_ifval(gltests_LIBSOURCES_LIST, [
305     m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
306       for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
307         if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
308           echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
309           exit 1
310         fi
311       done])dnl
312       m4_if(m4_sysval, [0], [],
313         [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
314   ])
315   m4_popdef([gltests_LIBSOURCES_DIR])
316   m4_popdef([gltests_LIBSOURCES_LIST])
317   m4_popdef([AC_LIBSOURCES])
318   m4_popdef([AC_REPLACE_FUNCS])
319   m4_popdef([AC_LIBOBJ])
320   AC_CONFIG_COMMANDS_PRE([
321     gltests_libobjs=
322     gltests_ltlibobjs=
323     if test -n "$gltests_LIBOBJS"; then
324       # Remove the extension.
325       sed_drop_objext='s/\.o$//;s/\.obj$//'
326       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
327         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
328         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
329       done
330     fi
331     AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
332     AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
333   ])
334   LIBGNU_LIBDEPS="$gl_libdeps"
335   AC_SUBST([LIBGNU_LIBDEPS])
336   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
337   AC_SUBST([LIBGNU_LTLIBDEPS])
340 # Like AC_LIBOBJ, except that the module name goes
341 # into gl_LIBOBJS instead of into LIBOBJS.
342 AC_DEFUN([gl_LIBOBJ], [
343   AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
344   gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
347 # Like AC_REPLACE_FUNCS, except that the module name goes
348 # into gl_LIBOBJS instead of into LIBOBJS.
349 AC_DEFUN([gl_REPLACE_FUNCS], [
350   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
351   AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
354 # Like AC_LIBSOURCES, except the directory where the source file is
355 # expected is derived from the gnulib-tool parameterization,
356 # and alloca is special cased (for the alloca-opt module).
357 # We could also entirely rely on EXTRA_lib..._SOURCES.
358 AC_DEFUN([gl_LIBSOURCES], [
359   m4_foreach([_gl_NAME], [$1], [
360     m4_if(_gl_NAME, [alloca.c], [], [
361       m4_define([gl_LIBSOURCES_DIR], [lib])
362       m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
363     ])
364   ])
367 # Like AC_LIBOBJ, except that the module name goes
368 # into gltests_LIBOBJS instead of into LIBOBJS.
369 AC_DEFUN([gltests_LIBOBJ], [
370   AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
371   gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
374 # Like AC_REPLACE_FUNCS, except that the module name goes
375 # into gltests_LIBOBJS instead of into LIBOBJS.
376 AC_DEFUN([gltests_REPLACE_FUNCS], [
377   m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
378   AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
381 # Like AC_LIBSOURCES, except the directory where the source file is
382 # expected is derived from the gnulib-tool parameterization,
383 # and alloca is special cased (for the alloca-opt module).
384 # We could also entirely rely on EXTRA_lib..._SOURCES.
385 AC_DEFUN([gltests_LIBSOURCES], [
386   m4_foreach([_gl_NAME], [$1], [
387     m4_if(_gl_NAME, [alloca.c], [], [
388       m4_define([gltests_LIBSOURCES_DIR], [tests])
389       m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
390     ])
391   ])
394 # This macro records the list of files which have been installed by
395 # gnulib-tool and may be removed by future gnulib-tool invocations.
396 AC_DEFUN([gl_FILE_LIST], [
397   build-aux/arg-nonnull.h
398   build-aux/c++defs.h
399   build-aux/warn-on-use.h
400   lib/alloca.in.h
401   lib/allocator.c
402   lib/allocator.h
403   lib/careadlinkat.c
404   lib/careadlinkat.h
405   lib/dosname.h
406   lib/dtoastr.c
407   lib/filemode.c
408   lib/filemode.h
409   lib/ftoastr.c
410   lib/ftoastr.h
411   lib/getloadavg.c
412   lib/getopt.c
413   lib/getopt.in.h
414   lib/getopt1.c
415   lib/getopt_int.h
416   lib/gettext.h
417   lib/ignore-value.h
418   lib/intprops.h
419   lib/inttypes.in.h
420   lib/lstat.c
421   lib/md5.c
422   lib/md5.h
423   lib/mktime-internal.h
424   lib/mktime.c
425   lib/readlink.c
426   lib/sha1.c
427   lib/sha1.h
428   lib/sha256.c
429   lib/sha256.h
430   lib/sha512.c
431   lib/sha512.h
432   lib/stat.c
433   lib/stdarg.in.h
434   lib/stdbool.in.h
435   lib/stddef.in.h
436   lib/stdint.in.h
437   lib/stdio.in.h
438   lib/stdlib.in.h
439   lib/strftime.c
440   lib/strftime.h
441   lib/strtoimax.c
442   lib/strtol.c
443   lib/strtoul.c
444   lib/strtoull.c
445   lib/strtoumax.c
446   lib/symlink.c
447   lib/sys_stat.in.h
448   lib/time.in.h
449   lib/time_r.c
450   lib/u64.h
451   lib/unistd.in.h
452   lib/verify.h
453   m4/00gnulib.m4
454   m4/alloca.m4
455   m4/c-strtod.m4
456   m4/extensions.m4
457   m4/filemode.m4
458   m4/getloadavg.m4
459   m4/getopt.m4
460   m4/gnulib-common.m4
461   m4/include_next.m4
462   m4/inttypes.m4
463   m4/longlong.m4
464   m4/lstat.m4
465   m4/md5.m4
466   m4/mktime.m4
467   m4/multiarch.m4
468   m4/readlink.m4
469   m4/sha1.m4
470   m4/sha256.m4
471   m4/sha512.m4
472   m4/socklen.m4
473   m4/ssize_t.m4
474   m4/st_dm_mode.m4
475   m4/stat.m4
476   m4/stdarg.m4
477   m4/stdbool.m4
478   m4/stddef_h.m4
479   m4/stdint.m4
480   m4/stdio_h.m4
481   m4/stdlib_h.m4
482   m4/strftime.m4
483   m4/strtoull.m4
484   m4/strtoumax.m4
485   m4/symlink.m4
486   m4/sys_stat_h.m4
487   m4/time_h.m4
488   m4/time_r.m4
489   m4/tm_gmtoff.m4
490   m4/unistd_h.m4
491   m4/warn-on-use.m4
492   m4/wchar_t.m4