gnulib-comp.m4 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  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.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([gl_USE_SYSTEM_EXTENSIONS])
  27. ])
  28. # This macro should be invoked from ./configure.in, in the section
  29. # "Check for header files, types and library functions".
  30. AC_DEFUN([gl_INIT],
  31. [
  32. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  33. gl_cond_libtool=false
  34. gl_libdeps=
  35. gl_ltlibdeps=
  36. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  37. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  38. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  39. m4_pushdef([gl_LIBSOURCES_LIST], [])
  40. m4_pushdef([gl_LIBSOURCES_DIR], [])
  41. gl_COMMON
  42. gl_source_base='gl'
  43. gl_FUNC_ALLOCA
  44. gl_HEADER_ARPA_INET
  45. AC_PROG_MKDIR_P
  46. gl_FUNC_BASE64
  47. gl_FUNC_BTOWC
  48. gl_WCHAR_MODULE_INDICATOR([btowc])
  49. gl_C_STRTOD
  50. gl_CLOEXEC
  51. gl_DIRNAME
  52. gl_DOUBLE_SLASH_ROOT
  53. gl_HEADER_ERRNO_H
  54. gl_ERROR
  55. m4_ifdef([AM_XGETTEXT_OPTION],
  56. [AM_XGETTEXT_OPTION([--flag=error:3:c-format])
  57. AM_XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
  58. gl_EXITFAIL
  59. gl_FCNTL_H
  60. gl_FCNTL_SAFER
  61. gl_MODULE_INDICATOR([fcntl-safer])
  62. gl_FLOAT_H
  63. gl_FUNC_FLOORF
  64. gl_MATH_MODULE_INDICATOR([floorf])
  65. gl_FSUSAGE
  66. gl_GETADDRINFO
  67. gl_NETDB_MODULE_INDICATOR([getaddrinfo])
  68. gl_FUNC_GETHOSTNAME
  69. gl_UNISTD_MODULE_INDICATOR([gethostname])
  70. gl_GETLOADAVG([$gl_source_base])
  71. gl_STDLIB_MODULE_INDICATOR([getloadavg])
  72. gl_GETOPT
  73. dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
  74. AM_GNU_GETTEXT_VERSION([0.17])
  75. AC_SUBST([LIBINTL])
  76. AC_SUBST([LTLIBINTL])
  77. gl_HOSTENT
  78. gl_INET_NTOP
  79. gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
  80. gl_INLINE
  81. gl_LOCALCHARSET
  82. LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
  83. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  84. AC_FUNC_MALLOC
  85. AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
  86. gl_FUNC_MALLOC_POSIX
  87. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  88. gl_MATH_H
  89. gl_FUNC_MBRTOWC
  90. gl_WCHAR_MODULE_INDICATOR([mbrtowc])
  91. gl_FUNC_MBSINIT
  92. gl_WCHAR_MODULE_INDICATOR([mbsinit])
  93. gl_FUNC_MKTIME
  94. gl_MOUNTLIST
  95. gl_MULTIARCH
  96. gl_HEADER_NETDB
  97. gl_HEADER_NETINET_IN
  98. AC_PROG_MKDIR_P
  99. gl_FUNC_OPEN
  100. gl_MODULE_INDICATOR([open])
  101. gl_FCNTL_MODULE_INDICATOR([open])
  102. gl_REGEX
  103. gl_SAFE_READ
  104. gl_SAFE_WRITE
  105. gl_SERVENT
  106. gl_SIZE_MAX
  107. gl_FUNC_SNPRINTF
  108. gl_STDIO_MODULE_INDICATOR([snprintf])
  109. gl_TYPE_SOCKLEN_T
  110. gt_TYPE_SSIZE_T
  111. AM_STDBOOL_H
  112. gl_STDINT_H
  113. gl_STDIO_H
  114. gl_STDLIB_H
  115. gl_FUNC_STRDUP_POSIX
  116. gl_STRING_MODULE_INDICATOR([strdup])
  117. gl_FUNC_STRERROR
  118. gl_STRING_MODULE_INDICATOR([strerror])
  119. gl_HEADER_STRING_H
  120. gl_FUNC_STRNDUP
  121. gl_STRING_MODULE_INDICATOR([strndup])
  122. gl_FUNC_STRNLEN
  123. gl_STRING_MODULE_INDICATOR([strnlen])
  124. gl_HEADER_SYS_SOCKET
  125. AC_PROG_MKDIR_P
  126. gl_HEADER_TIME_H
  127. gl_TIME_R
  128. gl_FUNC_TIMEGM
  129. gl_UNISTD_H
  130. gl_UNISTD_SAFER
  131. gl_FUNC_VASNPRINTF
  132. gl_FUNC_VASPRINTF
  133. gl_STDIO_MODULE_INDICATOR([vasprintf])
  134. m4_ifdef([AM_XGETTEXT_OPTION],
  135. [AM_XGETTEXT_OPTION([--flag=asprintf:2:c-format])
  136. AM_XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
  137. gl_FUNC_VSNPRINTF
  138. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  139. gl_WCHAR_H
  140. gl_FUNC_WCRTOMB
  141. gl_WCHAR_MODULE_INDICATOR([wcrtomb])
  142. gl_WCTYPE_H
  143. gl_FUNC_WRITE
  144. gl_UNISTD_MODULE_INDICATOR([write])
  145. gl_XALLOC
  146. gl_XSIZE
  147. gl_XSTRNDUP
  148. m4_ifval(gl_LIBSOURCES_LIST, [
  149. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  150. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  151. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  152. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  153. exit 1
  154. fi
  155. done])dnl
  156. m4_if(m4_sysval, [0], [],
  157. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  158. ])
  159. m4_popdef([gl_LIBSOURCES_DIR])
  160. m4_popdef([gl_LIBSOURCES_LIST])
  161. m4_popdef([AC_LIBSOURCES])
  162. m4_popdef([AC_REPLACE_FUNCS])
  163. m4_popdef([AC_LIBOBJ])
  164. AC_CONFIG_COMMANDS_PRE([
  165. gl_libobjs=
  166. gl_ltlibobjs=
  167. if test -n "$gl_LIBOBJS"; then
  168. # Remove the extension.
  169. sed_drop_objext='s/\.o$//;s/\.obj$//'
  170. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  171. gl_libobjs="$gl_libobjs $i.$ac_objext"
  172. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  173. done
  174. fi
  175. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  176. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  177. ])
  178. gltests_libdeps=
  179. gltests_ltlibdeps=
  180. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  181. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  182. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  183. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  184. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  185. gl_COMMON
  186. gl_source_base='tests'
  187. m4_ifval(gltests_LIBSOURCES_LIST, [
  188. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  189. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  190. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  191. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  192. exit 1
  193. fi
  194. done])dnl
  195. m4_if(m4_sysval, [0], [],
  196. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  197. ])
  198. m4_popdef([gltests_LIBSOURCES_DIR])
  199. m4_popdef([gltests_LIBSOURCES_LIST])
  200. m4_popdef([AC_LIBSOURCES])
  201. m4_popdef([AC_REPLACE_FUNCS])
  202. m4_popdef([AC_LIBOBJ])
  203. AC_CONFIG_COMMANDS_PRE([
  204. gltests_libobjs=
  205. gltests_ltlibobjs=
  206. if test -n "$gltests_LIBOBJS"; then
  207. # Remove the extension.
  208. sed_drop_objext='s/\.o$//;s/\.obj$//'
  209. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed "$sed_drop_objext" | sort | uniq`; do
  210. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  211. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  212. done
  213. fi
  214. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  215. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  216. ])
  217. LIBGNU_LIBDEPS="$gl_libdeps"
  218. AC_SUBST([LIBGNU_LIBDEPS])
  219. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  220. AC_SUBST([LIBGNU_LTLIBDEPS])
  221. ])
  222. # Like AC_LIBOBJ, except that the module name goes
  223. # into gl_LIBOBJS instead of into LIBOBJS.
  224. AC_DEFUN([gl_LIBOBJ], [
  225. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  226. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  227. ])
  228. # Like AC_REPLACE_FUNCS, except that the module name goes
  229. # into gl_LIBOBJS instead of into LIBOBJS.
  230. AC_DEFUN([gl_REPLACE_FUNCS], [
  231. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  232. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  233. ])
  234. # Like AC_LIBSOURCES, except the directory where the source file is
  235. # expected is derived from the gnulib-tool parameterization,
  236. # and alloca is special cased (for the alloca-opt module).
  237. # We could also entirely rely on EXTRA_lib..._SOURCES.
  238. AC_DEFUN([gl_LIBSOURCES], [
  239. m4_foreach([_gl_NAME], [$1], [
  240. m4_if(_gl_NAME, [alloca.c], [], [
  241. m4_define([gl_LIBSOURCES_DIR], [gl])
  242. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  243. ])
  244. ])
  245. ])
  246. # Like AC_LIBOBJ, except that the module name goes
  247. # into gltests_LIBOBJS instead of into LIBOBJS.
  248. AC_DEFUN([gltests_LIBOBJ], [
  249. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  250. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  251. ])
  252. # Like AC_REPLACE_FUNCS, except that the module name goes
  253. # into gltests_LIBOBJS instead of into LIBOBJS.
  254. AC_DEFUN([gltests_REPLACE_FUNCS], [
  255. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  256. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  257. ])
  258. # Like AC_LIBSOURCES, except the directory where the source file is
  259. # expected is derived from the gnulib-tool parameterization,
  260. # and alloca is special cased (for the alloca-opt module).
  261. # We could also entirely rely on EXTRA_lib..._SOURCES.
  262. AC_DEFUN([gltests_LIBSOURCES], [
  263. m4_foreach([_gl_NAME], [$1], [
  264. m4_if(_gl_NAME, [alloca.c], [], [
  265. m4_define([gltests_LIBSOURCES_DIR], [tests])
  266. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  267. ])
  268. ])
  269. ])
  270. # This macro records the list of files which have been installed by
  271. # gnulib-tool and may be removed by future gnulib-tool invocations.
  272. AC_DEFUN([gl_FILE_LIST], [
  273. build-aux/config.rpath
  274. build-aux/link-warning.h
  275. lib/alignof.h
  276. lib/alloca.c
  277. lib/alloca.in.h
  278. lib/arpa_inet.in.h
  279. lib/asnprintf.c
  280. lib/asprintf.c
  281. lib/base64.c
  282. lib/base64.h
  283. lib/basename.c
  284. lib/btowc.c
  285. lib/c-strtod.c
  286. lib/c-strtod.h
  287. lib/cloexec.c
  288. lib/cloexec.h
  289. lib/config.charset
  290. lib/creat-safer.c
  291. lib/dirname.c
  292. lib/dirname.h
  293. lib/dup-safer.c
  294. lib/errno.in.h
  295. lib/error.c
  296. lib/error.h
  297. lib/exitfail.c
  298. lib/exitfail.h
  299. lib/fcntl--.h
  300. lib/fcntl-safer.h
  301. lib/fcntl.in.h
  302. lib/fd-safer.c
  303. lib/float+.h
  304. lib/float.in.h
  305. lib/floor.c
  306. lib/floorf.c
  307. lib/fsusage.c
  308. lib/fsusage.h
  309. lib/full-read.c
  310. lib/full-read.h
  311. lib/full-write.c
  312. lib/full-write.h
  313. lib/gai_strerror.c
  314. lib/getaddrinfo.c
  315. lib/gethostname.c
  316. lib/getloadavg.c
  317. lib/getopt.c
  318. lib/getopt.in.h
  319. lib/getopt1.c
  320. lib/getopt_int.h
  321. lib/gettext.h
  322. lib/inet_ntop.c
  323. lib/intprops.h
  324. lib/localcharset.c
  325. lib/localcharset.h
  326. lib/malloc.c
  327. lib/math.in.h
  328. lib/mbrtowc.c
  329. lib/mbsinit.c
  330. lib/mktime.c
  331. lib/mountlist.c
  332. lib/mountlist.h
  333. lib/netdb.in.h
  334. lib/netinet_in.in.h
  335. lib/open-safer.c
  336. lib/open.c
  337. lib/pipe-safer.c
  338. lib/printf-args.c
  339. lib/printf-args.h
  340. lib/printf-parse.c
  341. lib/printf-parse.h
  342. lib/ref-add.sin
  343. lib/ref-del.sin
  344. lib/regcomp.c
  345. lib/regex.c
  346. lib/regex.h
  347. lib/regex_internal.c
  348. lib/regex_internal.h
  349. lib/regexec.c
  350. lib/safe-read.c
  351. lib/safe-read.h
  352. lib/safe-write.c
  353. lib/safe-write.h
  354. lib/size_max.h
  355. lib/snprintf.c
  356. lib/stdbool.in.h
  357. lib/stdint.in.h
  358. lib/stdio-write.c
  359. lib/stdio.in.h
  360. lib/stdlib.in.h
  361. lib/strdup.c
  362. lib/streq.h
  363. lib/strerror.c
  364. lib/string.in.h
  365. lib/stripslash.c
  366. lib/strndup.c
  367. lib/strnlen.c
  368. lib/sys_socket.in.h
  369. lib/time.in.h
  370. lib/time_r.c
  371. lib/timegm.c
  372. lib/unistd--.h
  373. lib/unistd-safer.h
  374. lib/unistd.in.h
  375. lib/vasnprintf.c
  376. lib/vasnprintf.h
  377. lib/vasprintf.c
  378. lib/verify.h
  379. lib/vsnprintf.c
  380. lib/wchar.in.h
  381. lib/wcrtomb.c
  382. lib/wctype.in.h
  383. lib/write.c
  384. lib/xalloc-die.c
  385. lib/xalloc.h
  386. lib/xmalloc.c
  387. lib/xsize.h
  388. lib/xstrndup.c
  389. lib/xstrndup.h
  390. m4/00gnulib.m4
  391. m4/alloca.m4
  392. m4/arpa_inet_h.m4
  393. m4/base64.m4
  394. m4/btowc.m4
  395. m4/c-strtod.m4
  396. m4/cloexec.m4
  397. m4/codeset.m4
  398. m4/dirname.m4
  399. m4/dos.m4
  400. m4/double-slash-root.m4
  401. m4/errno_h.m4
  402. m4/error.m4
  403. m4/exitfail.m4
  404. m4/extensions.m4
  405. m4/fcntl-safer.m4
  406. m4/fcntl_h.m4
  407. m4/float_h.m4
  408. m4/floorf.m4
  409. m4/fstypename.m4
  410. m4/fsusage.m4
  411. m4/getaddrinfo.m4
  412. m4/gethostname.m4
  413. m4/getloadavg.m4
  414. m4/getopt.m4
  415. m4/gettext.m4
  416. m4/glibc2.m4
  417. m4/glibc21.m4
  418. m4/gnulib-common.m4
  419. m4/hostent.m4
  420. m4/iconv.m4
  421. m4/include_next.m4
  422. m4/inet_ntop.m4
  423. m4/inline.m4
  424. m4/intdiv0.m4
  425. m4/intl.m4
  426. m4/intldir.m4
  427. m4/intlmacosx.m4
  428. m4/intmax.m4
  429. m4/intmax_t.m4
  430. m4/inttypes-pri.m4
  431. m4/inttypes_h.m4
  432. m4/lcmessage.m4
  433. m4/lib-ld.m4
  434. m4/lib-link.m4
  435. m4/lib-prefix.m4
  436. m4/localcharset.m4
  437. m4/locale-fr.m4
  438. m4/locale-ja.m4
  439. m4/locale-zh.m4
  440. m4/lock.m4
  441. m4/longlong.m4
  442. m4/ls-mntd-fs.m4
  443. m4/malloc.m4
  444. m4/math_h.m4
  445. m4/mbrtowc.m4
  446. m4/mbsinit.m4
  447. m4/mbstate_t.m4
  448. m4/mktime.m4
  449. m4/mountlist.m4
  450. m4/multiarch.m4
  451. m4/netdb_h.m4
  452. m4/netinet_in_h.m4
  453. m4/nls.m4
  454. m4/onceonly.m4
  455. m4/open.m4
  456. m4/po.m4
  457. m4/printf-posix.m4
  458. m4/printf.m4
  459. m4/progtest.m4
  460. m4/regex.m4
  461. m4/safe-read.m4
  462. m4/safe-write.m4
  463. m4/servent.m4
  464. m4/size_max.m4
  465. m4/snprintf.m4
  466. m4/socklen.m4
  467. m4/sockpfaf.m4
  468. m4/ssize_t.m4
  469. m4/stdbool.m4
  470. m4/stdint.m4
  471. m4/stdint_h.m4
  472. m4/stdio_h.m4
  473. m4/stdlib_h.m4
  474. m4/strdup.m4
  475. m4/strerror.m4
  476. m4/string_h.m4
  477. m4/strndup.m4
  478. m4/strnlen.m4
  479. m4/sys_socket_h.m4
  480. m4/threadlib.m4
  481. m4/time_h.m4
  482. m4/time_r.m4
  483. m4/timegm.m4
  484. m4/uintmax_t.m4
  485. m4/unistd-safer.m4
  486. m4/unistd_h.m4
  487. m4/vasnprintf.m4
  488. m4/vasprintf.m4
  489. m4/visibility.m4
  490. m4/vsnprintf.m4
  491. m4/wchar.m4
  492. m4/wchar_t.m4
  493. m4/wcrtomb.m4
  494. m4/wctype.m4
  495. m4/wint_t.m4
  496. m4/write.m4
  497. m4/xalloc.m4
  498. m4/xsize.m4
  499. m4/xstrndup.m4
  500. ])