gnulib-comp.m4 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2009 Free Software Foundation, Inc.
  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. # This macro should be invoked from ./configure.ac, in the section
  17. # "Checks for programs", right after AC_PROG_CC, and certainly before
  18. # any checks for libraries, header files, types and library functions.
  19. AC_DEFUN([gl_EARLY],
  20. [
  21. m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
  22. m4_pattern_allow([^gl_ES$])dnl a valid locale name
  23. m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
  24. m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
  25. AC_REQUIRE([AC_PROG_RANLIB])
  26. AC_REQUIRE([AM_PROG_CC_C_O])
  27. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  28. ])
  29. # This macro should be invoked from ./configure.ac, in the section
  30. # "Check for header files, types and library functions".
  31. AC_DEFUN([gl_INIT],
  32. [
  33. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  34. gl_cond_libtool=false
  35. gl_libdeps=
  36. gl_ltlibdeps=
  37. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  38. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  39. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  40. m4_pushdef([gl_LIBSOURCES_LIST], [])
  41. m4_pushdef([gl_LIBSOURCES_DIR], [])
  42. gl_COMMON
  43. gl_source_base='srclib'
  44. gl_FUNC_ALLOCA
  45. gl_CANONICALIZE_LGPL
  46. gl_MODULE_INDICATOR([canonicalize-lgpl])
  47. gl_ENVIRON
  48. gl_UNISTD_MODULE_INDICATOR([environ])
  49. gl_HEADER_ERRNO_H
  50. gl_ERROR
  51. m4_ifdef([AM_XGETTEXT_OPTION],
  52. [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
  53. AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
  54. dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
  55. AM_GNU_GETTEXT_VERSION([0.17])
  56. AC_SUBST([LIBINTL])
  57. AC_SUBST([LTLIBINTL])
  58. gl_FUNC_MALLOC_POSIX
  59. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  60. gl_MALLOCA
  61. AC_TYPE_MBSTATE_T
  62. gl_FUNC_MEMMOVE
  63. gl_MULTIARCH
  64. gl_PATHMAX
  65. gl_FUNC_READLINK
  66. gl_UNISTD_MODULE_INDICATOR([readlink])
  67. gl_RELOCATABLE([$gl_source_base])
  68. gl_FUNC_READLINK_SEPARATE
  69. gl_CANONICALIZE_LGPL_SEPARATE
  70. gl_MALLOCA
  71. gl_RELOCATABLE_LIBRARY_SEPARATE
  72. gl_FUNC_SETENV_SEPARATE
  73. gl_FUNC_STRERROR_SEPARATE
  74. gl_SIGNAL_H
  75. gl_SIGNAL_SIGPIPE
  76. dnl Define the C macro GNULIB_SIGPIPE to 1.
  77. gl_MODULE_INDICATOR([sigpipe])
  78. dnl Define the substituted variable GNULIB_SIGNAL_H_SIGPIPE to 1.
  79. AC_REQUIRE([gl_SIGNAL_H_DEFAULTS])
  80. GNULIB_SIGNAL_H_SIGPIPE=1
  81. dnl Define the substituted variable GNULIB_STDIO_H_SIGPIPE to 1.
  82. AC_REQUIRE([gl_STDIO_H_DEFAULTS])
  83. GNULIB_STDIO_H_SIGPIPE=1
  84. dnl Define the substituted variable GNULIB_UNISTD_H_SIGPIPE to 1.
  85. AC_REQUIRE([gl_UNISTD_H_DEFAULTS])
  86. GNULIB_UNISTD_H_SIGPIPE=1
  87. gl_SIGNALBLOCKING
  88. gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
  89. gt_TYPE_SSIZE_T
  90. AM_STDBOOL_H
  91. gl_STDINT_H
  92. gl_STDIO_H
  93. gl_STDLIB_H
  94. gl_FUNC_STRERROR
  95. gl_STRING_MODULE_INDICATOR([strerror])
  96. gl_HEADER_STRING_H
  97. gl_UNISTD_H
  98. gl_FUNC_GLIBC_UNLOCKED_IO
  99. gl_WCHAR_H
  100. m4_ifval(gl_LIBSOURCES_LIST, [
  101. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  102. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  103. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  104. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  105. exit 1
  106. fi
  107. done])dnl
  108. m4_if(m4_sysval, [0], [],
  109. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  110. ])
  111. m4_popdef([gl_LIBSOURCES_DIR])
  112. m4_popdef([gl_LIBSOURCES_LIST])
  113. m4_popdef([AC_LIBSOURCES])
  114. m4_popdef([AC_REPLACE_FUNCS])
  115. m4_popdef([AC_LIBOBJ])
  116. AC_CONFIG_COMMANDS_PRE([
  117. gl_libobjs=
  118. gl_ltlibobjs=
  119. if test -n "$gl_LIBOBJS"; then
  120. # Remove the extension.
  121. sed_drop_objext='s/\.o$//;s/\.obj$//'
  122. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  123. gl_libobjs="$gl_libobjs $i.$ac_objext"
  124. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  125. done
  126. fi
  127. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  128. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  129. ])
  130. gltests_libdeps=
  131. gltests_ltlibdeps=
  132. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  133. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  134. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  135. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  136. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  137. gl_COMMON
  138. gl_source_base='tests'
  139. m4_ifval(gltests_LIBSOURCES_LIST, [
  140. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  141. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  142. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  143. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  144. exit 1
  145. fi
  146. done])dnl
  147. m4_if(m4_sysval, [0], [],
  148. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  149. ])
  150. m4_popdef([gltests_LIBSOURCES_DIR])
  151. m4_popdef([gltests_LIBSOURCES_LIST])
  152. m4_popdef([AC_LIBSOURCES])
  153. m4_popdef([AC_REPLACE_FUNCS])
  154. m4_popdef([AC_LIBOBJ])
  155. AC_CONFIG_COMMANDS_PRE([
  156. gltests_libobjs=
  157. gltests_ltlibobjs=
  158. if test -n "$gltests_LIBOBJS"; then
  159. # Remove the extension.
  160. sed_drop_objext='s/\.o$//;s/\.obj$//'
  161. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  162. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  163. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  164. done
  165. fi
  166. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  167. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  168. ])
  169. LIBICRT_LIBDEPS="$gl_libdeps"
  170. AC_SUBST([LIBICRT_LIBDEPS])
  171. LIBICRT_LTLIBDEPS="$gl_ltlibdeps"
  172. AC_SUBST([LIBICRT_LTLIBDEPS])
  173. ])
  174. # Like AC_LIBOBJ, except that the module name goes
  175. # into gl_LIBOBJS instead of into LIBOBJS.
  176. AC_DEFUN([gl_LIBOBJ], [
  177. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  178. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  179. ])
  180. # Like AC_REPLACE_FUNCS, except that the module name goes
  181. # into gl_LIBOBJS instead of into LIBOBJS.
  182. AC_DEFUN([gl_REPLACE_FUNCS], [
  183. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  184. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  185. ])
  186. # Like AC_LIBSOURCES, except the directory where the source file is
  187. # expected is derived from the gnulib-tool parameterization,
  188. # and alloca is special cased (for the alloca-opt module).
  189. # We could also entirely rely on EXTRA_lib..._SOURCES.
  190. AC_DEFUN([gl_LIBSOURCES], [
  191. m4_foreach([_gl_NAME], [$1], [
  192. m4_if(_gl_NAME, [alloca.c], [], [
  193. m4_define([gl_LIBSOURCES_DIR], [srclib])
  194. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  195. ])
  196. ])
  197. ])
  198. # Like AC_LIBOBJ, except that the module name goes
  199. # into gltests_LIBOBJS instead of into LIBOBJS.
  200. AC_DEFUN([gltests_LIBOBJ], [
  201. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  202. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  203. ])
  204. # Like AC_REPLACE_FUNCS, except that the module name goes
  205. # into gltests_LIBOBJS instead of into LIBOBJS.
  206. AC_DEFUN([gltests_REPLACE_FUNCS], [
  207. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  208. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  209. ])
  210. # Like AC_LIBSOURCES, except the directory where the source file is
  211. # expected is derived from the gnulib-tool parameterization,
  212. # and alloca is special cased (for the alloca-opt module).
  213. # We could also entirely rely on EXTRA_lib..._SOURCES.
  214. AC_DEFUN([gltests_LIBSOURCES], [
  215. m4_foreach([_gl_NAME], [$1], [
  216. m4_if(_gl_NAME, [alloca.c], [], [
  217. m4_define([gltests_LIBSOURCES_DIR], [tests])
  218. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  219. ])
  220. ])
  221. ])
  222. # This macro records the list of files which have been installed by
  223. # gnulib-tool and may be removed by future gnulib-tool invocations.
  224. AC_DEFUN([gl_FILE_LIST], [
  225. build-aux/config.libpath
  226. build-aux/config.rpath
  227. build-aux/install-reloc
  228. build-aux/link-warning.h
  229. build-aux/reloc-ldflags
  230. doc/relocatable.texi
  231. lib/alloca.in.h
  232. lib/areadlink.c
  233. lib/areadlink.h
  234. lib/binary-io.h
  235. lib/c-ctype.c
  236. lib/c-ctype.h
  237. lib/canonicalize-lgpl.c
  238. lib/canonicalize.h
  239. lib/errno.in.h
  240. lib/error.c
  241. lib/error.h
  242. lib/gettext.h
  243. lib/intprops.h
  244. lib/localcharset.h
  245. lib/malloc.c
  246. lib/malloca.c
  247. lib/malloca.h
  248. lib/malloca.valgrind
  249. lib/memmove.c
  250. lib/pathmax.h
  251. lib/progname.c
  252. lib/progname.h
  253. lib/progreloc.c
  254. lib/readlink.c
  255. lib/relocatable.c
  256. lib/relocatable.h
  257. lib/relocwrapper.c
  258. lib/setenv.c
  259. lib/signal.in.h
  260. lib/sigprocmask.c
  261. lib/stdbool.in.h
  262. lib/stdint.in.h
  263. lib/stdio-write.c
  264. lib/stdio.in.h
  265. lib/stdlib.in.h
  266. lib/streq.h
  267. lib/strerror.c
  268. lib/string.in.h
  269. lib/unistd.in.h
  270. lib/unitypes.h
  271. lib/uniwidth.h
  272. lib/uniwidth/cjk.h
  273. lib/uniwidth/width.c
  274. lib/unlocked-io.h
  275. lib/wchar.in.h
  276. lib/xalloc.h
  277. lib/xmalloc.c
  278. lib/xreadlink.c
  279. lib/xreadlink.h
  280. lib/xstrdup.c
  281. m4/00gnulib.m4
  282. m4/alloca.m4
  283. m4/canonicalize-lgpl.m4
  284. m4/codeset.m4
  285. m4/eealloc.m4
  286. m4/environ.m4
  287. m4/errno_h.m4
  288. m4/error.m4
  289. m4/extensions.m4
  290. m4/gettext.m4
  291. m4/glibc2.m4
  292. m4/glibc21.m4
  293. m4/gnulib-common.m4
  294. m4/iconv.m4
  295. m4/include_next.m4
  296. m4/intdiv0.m4
  297. m4/intl.m4
  298. m4/intldir.m4
  299. m4/intlmacosx.m4
  300. m4/intmax.m4
  301. m4/inttypes-pri.m4
  302. m4/inttypes_h.m4
  303. m4/lcmessage.m4
  304. m4/lib-ld.m4
  305. m4/lib-link.m4
  306. m4/lib-prefix.m4
  307. m4/lock.m4
  308. m4/longlong.m4
  309. m4/malloc.m4
  310. m4/malloca.m4
  311. m4/mbstate_t.m4
  312. m4/memmove.m4
  313. m4/multiarch.m4
  314. m4/nls.m4
  315. m4/pathmax.m4
  316. m4/po.m4
  317. m4/printf-posix.m4
  318. m4/progtest.m4
  319. m4/readlink.m4
  320. m4/relocatable-lib.m4
  321. m4/relocatable.m4
  322. m4/setenv.m4
  323. m4/signal_h.m4
  324. m4/signalblocking.m4
  325. m4/sigpipe.m4
  326. m4/size_max.m4
  327. m4/ssize_t.m4
  328. m4/stdbool.m4
  329. m4/stdint.m4
  330. m4/stdint_h.m4
  331. m4/stdio_h.m4
  332. m4/stdlib_h.m4
  333. m4/strerror.m4
  334. m4/string_h.m4
  335. m4/threadlib.m4
  336. m4/uintmax_t.m4
  337. m4/unistd_h.m4
  338. m4/unlocked-io.m4
  339. m4/visibility.m4
  340. m4/wchar.m4
  341. m4/wchar_t.m4
  342. m4/wint_t.m4
  343. m4/xsize.m4
  344. ])