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