gnulib-comp.m4 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2004-2007 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.in, 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([AC_GNU_SOURCE])
  27. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  28. ])
  29. # This macro should be invoked from ./configure.in, 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. gl_source_base='gl'
  41. gl_FUNC_ALLOCA
  42. gl_HEADER_ARPA_INET
  43. AC_PROG_MKDIR_P
  44. gl_FUNC_BASE64
  45. gl_C_STRTOD
  46. gl_CLOEXEC
  47. gl_DIRNAME
  48. gl_DOUBLE_SLASH_ROOT
  49. gl_ERROR
  50. m4_ifdef([AM_XGETTEXT_OPTION],
  51. [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
  52. AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
  53. gl_EXITFAIL
  54. gl_FCNTL_SAFER
  55. gl_MODULE_INDICATOR([fcntl-safer])
  56. gl_FLOAT_H
  57. gl_FUNC_FLOORF
  58. gl_MATH_MODULE_INDICATOR([floorf])
  59. gl_FSUSAGE
  60. gl_GETADDRINFO
  61. gl_FUNC_GETHOSTNAME
  62. gl_GETLOADAVG([$gl_source_base])
  63. gl_GETOPT
  64. dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
  65. AM_GNU_GETTEXT_VERSION([0.17])
  66. AC_SUBST([LIBINTL])
  67. AC_SUBST([LTLIBINTL])
  68. gl_INET_NTOP
  69. gl_INLINE
  70. gl_LOCALCHARSET
  71. LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
  72. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  73. AC_FUNC_MALLOC
  74. AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
  75. gl_FUNC_MALLOC_POSIX
  76. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  77. gl_MATH_H
  78. gl_MOUNTLIST
  79. gl_HEADER_NETINET_IN
  80. AC_PROG_MKDIR_P
  81. gl_REGEX
  82. gl_SAFE_READ
  83. gl_SAFE_WRITE
  84. gl_SIZE_MAX
  85. gl_FUNC_SNPRINTF
  86. gl_STDIO_MODULE_INDICATOR([snprintf])
  87. gl_TYPE_SOCKLEN_T
  88. gt_TYPE_SSIZE_T
  89. AM_STDBOOL_H
  90. gl_STDINT_H
  91. gl_STDIO_H
  92. gl_STDLIB_H
  93. gl_FUNC_STRDUP
  94. gl_STRING_MODULE_INDICATOR([strdup])
  95. gl_FUNC_STRERROR
  96. gl_STRING_MODULE_INDICATOR([strerror])
  97. gl_HEADER_STRING_H
  98. gl_FUNC_STRNDUP
  99. gl_STRING_MODULE_INDICATOR([strndup])
  100. gl_FUNC_STRNLEN
  101. gl_STRING_MODULE_INDICATOR([strnlen])
  102. gl_HEADER_SYS_SOCKET
  103. AC_PROG_MKDIR_P
  104. gl_UNISTD_H
  105. gl_UNISTD_SAFER
  106. gl_FUNC_VASNPRINTF
  107. gl_FUNC_VASPRINTF
  108. gl_STDIO_MODULE_INDICATOR([vasprintf])
  109. m4_ifdef([AM_XGETTEXT_OPTION],
  110. [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format])
  111. AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
  112. gl_FUNC_VSNPRINTF
  113. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  114. gl_WCHAR_H
  115. gl_WCTYPE_H
  116. gl_XALLOC
  117. gl_XSIZE
  118. gl_XSTRNDUP
  119. m4_popdef([AC_LIBSOURCES])
  120. m4_popdef([AC_REPLACE_FUNCS])
  121. m4_popdef([AC_LIBOBJ])
  122. AC_CONFIG_COMMANDS_PRE([
  123. gl_libobjs=
  124. gl_ltlibobjs=
  125. if test -n "$gl_LIBOBJS"; then
  126. # Remove the extension.
  127. sed_drop_objext='s/\.o$//;s/\.obj$//'
  128. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  129. gl_libobjs="$gl_libobjs $i.$ac_objext"
  130. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  131. done
  132. fi
  133. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  134. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  135. ])
  136. gltests_libdeps=
  137. gltests_ltlibdeps=
  138. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  139. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  140. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  141. gl_source_base='tests'
  142. m4_popdef([AC_LIBSOURCES])
  143. m4_popdef([AC_REPLACE_FUNCS])
  144. m4_popdef([AC_LIBOBJ])
  145. AC_CONFIG_COMMANDS_PRE([
  146. gltests_libobjs=
  147. gltests_ltlibobjs=
  148. if test -n "$gltests_LIBOBJS"; then
  149. # Remove the extension.
  150. sed_drop_objext='s/\.o$//;s/\.obj$//'
  151. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  152. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  153. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  154. done
  155. fi
  156. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  157. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  158. ])
  159. LIBGNU_LIBDEPS="$gl_libdeps"
  160. AC_SUBST([LIBGNU_LIBDEPS])
  161. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  162. AC_SUBST([LIBGNU_LTLIBDEPS])
  163. ])
  164. # Like AC_LIBOBJ, except that the module name goes
  165. # into gl_LIBOBJS instead of into LIBOBJS.
  166. AC_DEFUN([gl_LIBOBJ], [
  167. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  168. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  169. ])
  170. # m4_foreach_w is provided by autoconf-2.59c and later.
  171. # This definition is to accommodate developers using versions
  172. # of autoconf older than that.
  173. m4_ifndef([m4_foreach_w],
  174. [m4_define([m4_foreach_w],
  175. [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
  176. # Like AC_REPLACE_FUNCS, except that the module name goes
  177. # into gl_LIBOBJS instead of into LIBOBJS.
  178. AC_DEFUN([gl_REPLACE_FUNCS], [
  179. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  180. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  181. ])
  182. # Like AC_LIBSOURCES, except the directory where the source file is
  183. # expected is derived from the gnulib-tool parametrization,
  184. # and alloca is special cased (for the alloca-opt module).
  185. # We could also entirely rely on EXTRA_lib..._SOURCES.
  186. AC_DEFUN([gl_LIBSOURCES], [
  187. m4_foreach([_gl_NAME], [$1], [
  188. m4_if(_gl_NAME, [alloca.c], [], [
  189. m4_syscmd([test -r gl/]_gl_NAME[ || test ! -d gl])dnl
  190. m4_if(m4_sysval, [0], [],
  191. [AC_FATAL([missing gl/]_gl_NAME)])
  192. ])
  193. ])
  194. ])
  195. # Like AC_LIBOBJ, except that the module name goes
  196. # into gltests_LIBOBJS instead of into LIBOBJS.
  197. AC_DEFUN([gltests_LIBOBJ], [
  198. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  199. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  200. ])
  201. # m4_foreach_w is provided by autoconf-2.59c and later.
  202. # This definition is to accommodate developers using versions
  203. # of autoconf older than that.
  204. m4_ifndef([m4_foreach_w],
  205. [m4_define([m4_foreach_w],
  206. [m4_foreach([$1], m4_split(m4_normalize([$2]), [ ]), [$3])])])
  207. # Like AC_REPLACE_FUNCS, except that the module name goes
  208. # into gltests_LIBOBJS instead of into LIBOBJS.
  209. AC_DEFUN([gltests_REPLACE_FUNCS], [
  210. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  211. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  212. ])
  213. # Like AC_LIBSOURCES, except the directory where the source file is
  214. # expected is derived from the gnulib-tool parametrization,
  215. # and alloca is special cased (for the alloca-opt module).
  216. # We could also entirely rely on EXTRA_lib..._SOURCES.
  217. AC_DEFUN([gltests_LIBSOURCES], [
  218. m4_foreach([_gl_NAME], [$1], [
  219. m4_if(_gl_NAME, [alloca.c], [], [
  220. m4_syscmd([test -r tests/]_gl_NAME[ || test ! -d tests])dnl
  221. m4_if(m4_sysval, [0], [],
  222. [AC_FATAL([missing tests/]_gl_NAME)])
  223. ])
  224. ])
  225. ])
  226. # This macro records the list of files which have been installed by
  227. # gnulib-tool and may be removed by future gnulib-tool invocations.
  228. AC_DEFUN([gl_FILE_LIST], [
  229. build-aux/config.rpath
  230. build-aux/link-warning.h
  231. lib/alloca.c
  232. lib/alloca.in.h
  233. lib/asnprintf.c
  234. lib/asprintf.c
  235. lib/base64.c
  236. lib/base64.h
  237. lib/basename.c
  238. lib/c-strtod.c
  239. lib/c-strtod.h
  240. lib/cloexec.c
  241. lib/cloexec.h
  242. lib/config.charset
  243. lib/creat-safer.c
  244. lib/dirname.c
  245. lib/dirname.h
  246. lib/dup-safer.c
  247. lib/error.c
  248. lib/error.h
  249. lib/exitfail.c
  250. lib/exitfail.h
  251. lib/fcntl--.h
  252. lib/fcntl-safer.h
  253. lib/fd-safer.c
  254. lib/float+.h
  255. lib/float.in.h
  256. lib/floor.c
  257. lib/floorf.c
  258. lib/fsusage.c
  259. lib/fsusage.h
  260. lib/full-read.c
  261. lib/full-read.h
  262. lib/full-write.c
  263. lib/full-write.h
  264. lib/gai_strerror.c
  265. lib/getaddrinfo.c
  266. lib/getaddrinfo.h
  267. lib/gethostname.c
  268. lib/getloadavg.c
  269. lib/getopt.c
  270. lib/getopt.in.h
  271. lib/getopt1.c
  272. lib/getopt_int.h
  273. lib/gettext.h
  274. lib/inet_ntop.c
  275. lib/inet_ntop.h
  276. lib/intprops.h
  277. lib/localcharset.c
  278. lib/localcharset.h
  279. lib/malloc.c
  280. lib/math.in.h
  281. lib/mountlist.c
  282. lib/mountlist.h
  283. lib/netinet_in.in.h
  284. lib/open-safer.c
  285. lib/pipe-safer.c
  286. lib/printf-args.c
  287. lib/printf-args.h
  288. lib/printf-parse.c
  289. lib/printf-parse.h
  290. lib/ref-add.sin
  291. lib/ref-del.sin
  292. lib/regcomp.c
  293. lib/regex.c
  294. lib/regex.h
  295. lib/regex_internal.c
  296. lib/regex_internal.h
  297. lib/regexec.c
  298. lib/safe-read.c
  299. lib/safe-read.h
  300. lib/safe-write.c
  301. lib/safe-write.h
  302. lib/size_max.h
  303. lib/snprintf.c
  304. lib/stdbool.in.h
  305. lib/stdint.in.h
  306. lib/stdio.in.h
  307. lib/stdlib.in.h
  308. lib/strdup.c
  309. lib/strerror.c
  310. lib/string.in.h
  311. lib/stripslash.c
  312. lib/strndup.c
  313. lib/strnlen.c
  314. lib/sys_socket.in.h
  315. lib/unistd--.h
  316. lib/unistd-safer.h
  317. lib/unistd.in.h
  318. lib/vasnprintf.c
  319. lib/vasnprintf.h
  320. lib/vasprintf.c
  321. lib/vsnprintf.c
  322. lib/wchar.in.h
  323. lib/wctype.in.h
  324. lib/xalloc-die.c
  325. lib/xalloc.h
  326. lib/xmalloc.c
  327. lib/xsize.h
  328. lib/xstrndup.c
  329. lib/xstrndup.h
  330. m4/absolute-header.m4
  331. m4/alloca.m4
  332. m4/arpa_inet_h.m4
  333. m4/base64.m4
  334. m4/c-strtod.m4
  335. m4/cloexec.m4
  336. m4/codeset.m4
  337. m4/dirname.m4
  338. m4/dos.m4
  339. m4/double-slash-root.m4
  340. m4/eoverflow.m4
  341. m4/error.m4
  342. m4/exitfail.m4
  343. m4/extensions.m4
  344. m4/fcntl-safer.m4
  345. m4/float_h.m4
  346. m4/floorf.m4
  347. m4/fstypename.m4
  348. m4/fsusage.m4
  349. m4/getaddrinfo.m4
  350. m4/gethostname.m4
  351. m4/getloadavg.m4
  352. m4/getopt.m4
  353. m4/gettext.m4
  354. m4/glibc2.m4
  355. m4/glibc21.m4
  356. m4/gnulib-common.m4
  357. m4/iconv.m4
  358. m4/include_next.m4
  359. m4/inet_ntop.m4
  360. m4/inline.m4
  361. m4/intdiv0.m4
  362. m4/intl.m4
  363. m4/intldir.m4
  364. m4/intlmacosx.m4
  365. m4/intmax.m4
  366. m4/intmax_t.m4
  367. m4/inttypes-pri.m4
  368. m4/inttypes_h.m4
  369. m4/lcmessage.m4
  370. m4/lib-ld.m4
  371. m4/lib-link.m4
  372. m4/lib-prefix.m4
  373. m4/localcharset.m4
  374. m4/lock.m4
  375. m4/longlong.m4
  376. m4/ls-mntd-fs.m4
  377. m4/malloc.m4
  378. m4/math_h.m4
  379. m4/mountlist.m4
  380. m4/netinet_in_h.m4
  381. m4/nls.m4
  382. m4/onceonly_2_57.m4
  383. m4/po.m4
  384. m4/printf-posix.m4
  385. m4/progtest.m4
  386. m4/regex.m4
  387. m4/safe-read.m4
  388. m4/safe-write.m4
  389. m4/size_max.m4
  390. m4/snprintf.m4
  391. m4/socklen.m4
  392. m4/sockpfaf.m4
  393. m4/ssize_t.m4
  394. m4/stdbool.m4
  395. m4/stdint.m4
  396. m4/stdint_h.m4
  397. m4/stdio_h.m4
  398. m4/stdlib_h.m4
  399. m4/strdup.m4
  400. m4/strerror.m4
  401. m4/string_h.m4
  402. m4/strndup.m4
  403. m4/strnlen.m4
  404. m4/sys_socket_h.m4
  405. m4/uintmax_t.m4
  406. m4/unistd-safer.m4
  407. m4/unistd_h.m4
  408. m4/vasnprintf.m4
  409. m4/vasprintf.m4
  410. m4/visibility.m4
  411. m4/vsnprintf.m4
  412. m4/wchar.m4
  413. m4/wchar_t.m4
  414. m4/wctype.m4
  415. m4/wint_t.m4
  416. m4/xalloc.m4
  417. m4/xsize.m4
  418. m4/xstrndup.m4
  419. ])