gnulib-comp.m4 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2010 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. # Code from module alignof:
  27. # Code from module alloca-opt:
  28. # Code from module arg-nonnull:
  29. # Code from module arpa_inet:
  30. # Code from module base64:
  31. # Code from module btowc:
  32. # Code from module c++defs:
  33. # Code from module c-strtod:
  34. # Code from module cloexec:
  35. # Code from module close-hook:
  36. # Code from module configmake:
  37. # Code from module crypto/sha1:
  38. # Code from module dirname:
  39. # Code from module dirname-lgpl:
  40. # Code from module double-slash-root:
  41. # Code from module dup2:
  42. # Code from module environ:
  43. # Code from module errno:
  44. # Code from module error:
  45. # Code from module exitfail:
  46. # Code from module extensions:
  47. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  48. # Code from module fcntl:
  49. # Code from module fcntl-h:
  50. # Code from module fcntl-safer:
  51. # Code from module float:
  52. # Code from module floorf:
  53. # Code from module fsusage:
  54. # Code from module full-read:
  55. # Code from module full-write:
  56. # Code from module getaddrinfo:
  57. # Code from module getdtablesize:
  58. # Code from module gethostname:
  59. # Code from module getloadavg:
  60. # Code from module getopt:
  61. # Code from module getopt-gnu:
  62. # Code from module getopt-posix:
  63. # Code from module gettext:
  64. # Code from module gettext-h:
  65. # Code from module havelib:
  66. # Code from module hostent:
  67. # Code from module include_next:
  68. # Code from module inet_ntop:
  69. # Code from module inline:
  70. # Code from module intprops:
  71. # Code from module langinfo:
  72. # Code from module localcharset:
  73. # Code from module locale:
  74. # Code from module malloc:
  75. # Code from module malloc-posix:
  76. # Code from module malloca:
  77. # Code from module math:
  78. # Code from module mbrtowc:
  79. # Code from module mbsinit:
  80. # Code from module memchr:
  81. # Code from module mktime:
  82. # Code from module mountlist:
  83. # Code from module multiarch:
  84. # Code from module netdb:
  85. # Code from module netinet_in:
  86. # Code from module nl_langinfo:
  87. # Code from module open:
  88. # Code from module regex:
  89. # Code from module safe-read:
  90. # Code from module safe-write:
  91. # Code from module servent:
  92. # Code from module setenv:
  93. # Code from module size_max:
  94. # Code from module snprintf:
  95. # Code from module sockets:
  96. # Code from module socklen:
  97. # Code from module ssize_t:
  98. # Code from module stat:
  99. # Code from module stdbool:
  100. # Code from module stddef:
  101. # Code from module stdint:
  102. # Code from module stdio:
  103. # Code from module stdlib:
  104. # Code from module strdup-posix:
  105. # Code from module streq:
  106. # Code from module strerror:
  107. # Code from module string:
  108. # Code from module strndup:
  109. # Code from module strnlen:
  110. # Code from module strsep:
  111. # Code from module strstr-simple:
  112. # Code from module sys_socket:
  113. # Code from module sys_stat:
  114. # Code from module time:
  115. # Code from module time_r:
  116. # Code from module timegm:
  117. # Code from module unistd:
  118. # Code from module unistd-safer:
  119. # Code from module unsetenv:
  120. # Code from module vasnprintf:
  121. # Code from module vasprintf:
  122. # Code from module verify:
  123. # Code from module vsnprintf:
  124. # Code from module warn-on-use:
  125. # Code from module wchar:
  126. # Code from module wcrtomb:
  127. # Code from module wctype:
  128. # Code from module write:
  129. # Code from module xalloc:
  130. # Code from module xalloc-die:
  131. # Code from module xsize:
  132. # Code from module xstrndup:
  133. ])
  134. # This macro should be invoked from ./configure.in, in the section
  135. # "Check for header files, types and library functions".
  136. AC_DEFUN([gl_INIT],
  137. [
  138. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  139. gl_cond_libtool=false
  140. gl_libdeps=
  141. gl_ltlibdeps=
  142. gl_m4_base='gl/m4'
  143. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  144. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  145. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  146. m4_pushdef([gl_LIBSOURCES_LIST], [])
  147. m4_pushdef([gl_LIBSOURCES_DIR], [])
  148. gl_COMMON
  149. gl_source_base='gl'
  150. # Code from module alignof:
  151. # Code from module alloca-opt:
  152. gl_FUNC_ALLOCA
  153. # Code from module arg-nonnull:
  154. # Code from module arpa_inet:
  155. gl_HEADER_ARPA_INET
  156. AC_PROG_MKDIR_P
  157. # Code from module base64:
  158. gl_FUNC_BASE64
  159. # Code from module btowc:
  160. gl_FUNC_BTOWC
  161. gl_WCHAR_MODULE_INDICATOR([btowc])
  162. # Code from module c++defs:
  163. # Code from module c-strtod:
  164. gl_C_STRTOD
  165. # Code from module cloexec:
  166. gl_CLOEXEC
  167. gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
  168. # Code from module close-hook:
  169. # Code from module configmake:
  170. # Code from module crypto/sha1:
  171. gl_SHA1
  172. # Code from module dirname:
  173. gl_DIRNAME
  174. gl_MODULE_INDICATOR([dirname])
  175. # Code from module dirname-lgpl:
  176. gl_DIRNAME_LGPL
  177. # Code from module double-slash-root:
  178. gl_DOUBLE_SLASH_ROOT
  179. # Code from module dup2:
  180. gl_FUNC_DUP2
  181. gl_UNISTD_MODULE_INDICATOR([dup2])
  182. # Code from module environ:
  183. gl_ENVIRON
  184. gl_UNISTD_MODULE_INDICATOR([environ])
  185. # Code from module errno:
  186. gl_HEADER_ERRNO_H
  187. # Code from module error:
  188. gl_ERROR
  189. m4_ifdef([AM_XGETTEXT_OPTION],
  190. [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
  191. AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
  192. # Code from module exitfail:
  193. # Code from module extensions:
  194. # Code from module fcntl:
  195. gl_FUNC_FCNTL
  196. gl_FCNTL_MODULE_INDICATOR([fcntl])
  197. # Code from module fcntl-h:
  198. gl_FCNTL_H
  199. # Code from module fcntl-safer:
  200. gl_FCNTL_SAFER
  201. gl_MODULE_INDICATOR([fcntl-safer])
  202. # Code from module float:
  203. gl_FLOAT_H
  204. # Code from module floorf:
  205. gl_FUNC_FLOORF
  206. gl_MATH_MODULE_INDICATOR([floorf])
  207. # Code from module fsusage:
  208. gl_FSUSAGE
  209. # Code from module full-read:
  210. # Code from module full-write:
  211. # Code from module getaddrinfo:
  212. gl_GETADDRINFO
  213. gl_NETDB_MODULE_INDICATOR([getaddrinfo])
  214. # Code from module getdtablesize:
  215. gl_FUNC_GETDTABLESIZE
  216. gl_UNISTD_MODULE_INDICATOR([getdtablesize])
  217. # Code from module gethostname:
  218. gl_FUNC_GETHOSTNAME
  219. gl_UNISTD_MODULE_INDICATOR([gethostname])
  220. # Code from module getloadavg:
  221. gl_GETLOADAVG([$gl_source_base])
  222. gl_STDLIB_MODULE_INDICATOR([getloadavg])
  223. # Code from module getopt:
  224. # Code from module getopt-gnu:
  225. gl_FUNC_GETOPT_GNU
  226. gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
  227. # Code from module getopt-posix:
  228. gl_FUNC_GETOPT_POSIX
  229. # Code from module gettext:
  230. dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
  231. AM_GNU_GETTEXT_VERSION([0.18.1])
  232. # Code from module gettext-h:
  233. AC_SUBST([LIBINTL])
  234. AC_SUBST([LTLIBINTL])
  235. # Code from module havelib:
  236. # Code from module hostent:
  237. gl_HOSTENT
  238. # Code from module include_next:
  239. # Code from module inet_ntop:
  240. gl_FUNC_INET_NTOP
  241. gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
  242. # Code from module inline:
  243. gl_INLINE
  244. # Code from module intprops:
  245. # Code from module langinfo:
  246. gl_LANGINFO_H
  247. # Code from module localcharset:
  248. gl_LOCALCHARSET
  249. LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
  250. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  251. # Code from module locale:
  252. gl_LOCALE_H
  253. # Code from module malloc:
  254. gl_FUNC_MALLOC_GNU
  255. AC_DEFINE([GNULIB_MALLOC_GNU], 1, [Define to indicate the 'malloc' module.])
  256. # Code from module malloc-posix:
  257. gl_FUNC_MALLOC_POSIX
  258. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  259. # Code from module malloca:
  260. gl_MALLOCA
  261. # Code from module math:
  262. gl_MATH_H
  263. # Code from module mbrtowc:
  264. gl_FUNC_MBRTOWC
  265. gl_WCHAR_MODULE_INDICATOR([mbrtowc])
  266. # Code from module mbsinit:
  267. gl_FUNC_MBSINIT
  268. gl_WCHAR_MODULE_INDICATOR([mbsinit])
  269. # Code from module memchr:
  270. gl_FUNC_MEMCHR
  271. gl_STRING_MODULE_INDICATOR([memchr])
  272. # Code from module mktime:
  273. gl_FUNC_MKTIME
  274. gl_TIME_MODULE_INDICATOR([mktime])
  275. # Code from module mountlist:
  276. gl_MOUNTLIST
  277. # Code from module multiarch:
  278. gl_MULTIARCH
  279. # Code from module netdb:
  280. gl_HEADER_NETDB
  281. # Code from module netinet_in:
  282. gl_HEADER_NETINET_IN
  283. AC_PROG_MKDIR_P
  284. # Code from module nl_langinfo:
  285. gl_FUNC_NL_LANGINFO
  286. gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
  287. # Code from module open:
  288. gl_FUNC_OPEN
  289. gl_FCNTL_MODULE_INDICATOR([open])
  290. # Code from module regex:
  291. gl_REGEX
  292. # Code from module safe-read:
  293. gl_SAFE_READ
  294. # Code from module safe-write:
  295. gl_SAFE_WRITE
  296. # Code from module servent:
  297. gl_SERVENT
  298. # Code from module setenv:
  299. gl_FUNC_SETENV
  300. gl_STDLIB_MODULE_INDICATOR([setenv])
  301. # Code from module size_max:
  302. gl_SIZE_MAX
  303. # Code from module snprintf:
  304. gl_FUNC_SNPRINTF
  305. gl_STDIO_MODULE_INDICATOR([snprintf])
  306. # Code from module sockets:
  307. gl_SOCKETS
  308. # Code from module socklen:
  309. gl_TYPE_SOCKLEN_T
  310. # Code from module ssize_t:
  311. gt_TYPE_SSIZE_T
  312. # Code from module stat:
  313. gl_FUNC_STAT
  314. gl_SYS_STAT_MODULE_INDICATOR([stat])
  315. # Code from module stdbool:
  316. AM_STDBOOL_H
  317. # Code from module stddef:
  318. gl_STDDEF_H
  319. # Code from module stdint:
  320. gl_STDINT_H
  321. # Code from module stdio:
  322. gl_STDIO_H
  323. # Code from module stdlib:
  324. gl_STDLIB_H
  325. # Code from module strdup-posix:
  326. gl_FUNC_STRDUP_POSIX
  327. gl_STRING_MODULE_INDICATOR([strdup])
  328. # Code from module streq:
  329. # Code from module strerror:
  330. gl_FUNC_STRERROR
  331. gl_STRING_MODULE_INDICATOR([strerror])
  332. # Code from module string:
  333. gl_HEADER_STRING_H
  334. # Code from module strndup:
  335. gl_FUNC_STRNDUP
  336. gl_STRING_MODULE_INDICATOR([strndup])
  337. # Code from module strnlen:
  338. gl_FUNC_STRNLEN
  339. gl_STRING_MODULE_INDICATOR([strnlen])
  340. # Code from module strsep:
  341. gl_FUNC_STRSEP
  342. gl_STRING_MODULE_INDICATOR([strsep])
  343. # Code from module strstr-simple:
  344. gl_FUNC_STRSTR_SIMPLE
  345. gl_STRING_MODULE_INDICATOR([strstr])
  346. # Code from module sys_socket:
  347. gl_HEADER_SYS_SOCKET
  348. AC_PROG_MKDIR_P
  349. # Code from module sys_stat:
  350. gl_HEADER_SYS_STAT_H
  351. AC_PROG_MKDIR_P
  352. # Code from module time:
  353. gl_HEADER_TIME_H
  354. # Code from module time_r:
  355. gl_TIME_R
  356. gl_TIME_MODULE_INDICATOR([time_r])
  357. # Code from module timegm:
  358. gl_FUNC_TIMEGM
  359. gl_TIME_MODULE_INDICATOR([timegm])
  360. # Code from module unistd:
  361. gl_UNISTD_H
  362. # Code from module unistd-safer:
  363. gl_UNISTD_SAFER
  364. # Code from module unsetenv:
  365. gl_FUNC_UNSETENV
  366. gl_STDLIB_MODULE_INDICATOR([unsetenv])
  367. # Code from module vasnprintf:
  368. gl_FUNC_VASNPRINTF
  369. # Code from module vasprintf:
  370. gl_FUNC_VASPRINTF
  371. gl_STDIO_MODULE_INDICATOR([vasprintf])
  372. m4_ifdef([AM_XGETTEXT_OPTION],
  373. [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
  374. AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
  375. # Code from module verify:
  376. # Code from module vsnprintf:
  377. gl_FUNC_VSNPRINTF
  378. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  379. # Code from module warn-on-use:
  380. # Code from module wchar:
  381. gl_WCHAR_H
  382. # Code from module wcrtomb:
  383. gl_FUNC_WCRTOMB
  384. gl_WCHAR_MODULE_INDICATOR([wcrtomb])
  385. # Code from module wctype:
  386. gl_WCTYPE_H
  387. # Code from module write:
  388. gl_FUNC_WRITE
  389. gl_UNISTD_MODULE_INDICATOR([write])
  390. # Code from module xalloc:
  391. gl_XALLOC
  392. # Code from module xalloc-die:
  393. # Code from module xsize:
  394. gl_XSIZE
  395. # Code from module xstrndup:
  396. gl_XSTRNDUP
  397. # End of code from modules
  398. m4_ifval(gl_LIBSOURCES_LIST, [
  399. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  400. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  401. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  402. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  403. exit 1
  404. fi
  405. done])dnl
  406. m4_if(m4_sysval, [0], [],
  407. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  408. ])
  409. m4_popdef([gl_LIBSOURCES_DIR])
  410. m4_popdef([gl_LIBSOURCES_LIST])
  411. m4_popdef([AC_LIBSOURCES])
  412. m4_popdef([AC_REPLACE_FUNCS])
  413. m4_popdef([AC_LIBOBJ])
  414. AC_CONFIG_COMMANDS_PRE([
  415. gl_libobjs=
  416. gl_ltlibobjs=
  417. if test -n "$gl_LIBOBJS"; then
  418. # Remove the extension.
  419. sed_drop_objext='s/\.o$//;s/\.obj$//'
  420. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  421. gl_libobjs="$gl_libobjs $i.$ac_objext"
  422. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  423. done
  424. fi
  425. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  426. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  427. ])
  428. gltests_libdeps=
  429. gltests_ltlibdeps=
  430. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  431. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  432. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  433. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  434. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  435. gl_COMMON
  436. gl_source_base='tests'
  437. changequote(,)dnl
  438. 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
  439. changequote([, ])dnl
  440. AC_SUBST([gltests_WITNESS])
  441. gl_module_indicator_condition=$gltests_WITNESS
  442. m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
  443. m4_popdef([gl_MODULE_INDICATOR_CONDITION])
  444. m4_ifval(gltests_LIBSOURCES_LIST, [
  445. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  446. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  447. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  448. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  449. exit 1
  450. fi
  451. done])dnl
  452. m4_if(m4_sysval, [0], [],
  453. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  454. ])
  455. m4_popdef([gltests_LIBSOURCES_DIR])
  456. m4_popdef([gltests_LIBSOURCES_LIST])
  457. m4_popdef([AC_LIBSOURCES])
  458. m4_popdef([AC_REPLACE_FUNCS])
  459. m4_popdef([AC_LIBOBJ])
  460. AC_CONFIG_COMMANDS_PRE([
  461. gltests_libobjs=
  462. gltests_ltlibobjs=
  463. if test -n "$gltests_LIBOBJS"; then
  464. # Remove the extension.
  465. sed_drop_objext='s/\.o$//;s/\.obj$//'
  466. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  467. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  468. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  469. done
  470. fi
  471. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  472. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  473. ])
  474. LIBGNU_LIBDEPS="$gl_libdeps"
  475. AC_SUBST([LIBGNU_LIBDEPS])
  476. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  477. AC_SUBST([LIBGNU_LTLIBDEPS])
  478. ])
  479. # Like AC_LIBOBJ, except that the module name goes
  480. # into gl_LIBOBJS instead of into LIBOBJS.
  481. AC_DEFUN([gl_LIBOBJ], [
  482. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  483. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  484. ])
  485. # Like AC_REPLACE_FUNCS, except that the module name goes
  486. # into gl_LIBOBJS instead of into LIBOBJS.
  487. AC_DEFUN([gl_REPLACE_FUNCS], [
  488. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  489. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  490. ])
  491. # Like AC_LIBSOURCES, except the directory where the source file is
  492. # expected is derived from the gnulib-tool parameterization,
  493. # and alloca is special cased (for the alloca-opt module).
  494. # We could also entirely rely on EXTRA_lib..._SOURCES.
  495. AC_DEFUN([gl_LIBSOURCES], [
  496. m4_foreach([_gl_NAME], [$1], [
  497. m4_if(_gl_NAME, [alloca.c], [], [
  498. m4_define([gl_LIBSOURCES_DIR], [gl])
  499. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  500. ])
  501. ])
  502. ])
  503. # Like AC_LIBOBJ, except that the module name goes
  504. # into gltests_LIBOBJS instead of into LIBOBJS.
  505. AC_DEFUN([gltests_LIBOBJ], [
  506. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  507. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  508. ])
  509. # Like AC_REPLACE_FUNCS, except that the module name goes
  510. # into gltests_LIBOBJS instead of into LIBOBJS.
  511. AC_DEFUN([gltests_REPLACE_FUNCS], [
  512. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  513. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  514. ])
  515. # Like AC_LIBSOURCES, except the directory where the source file is
  516. # expected is derived from the gnulib-tool parameterization,
  517. # and alloca is special cased (for the alloca-opt module).
  518. # We could also entirely rely on EXTRA_lib..._SOURCES.
  519. AC_DEFUN([gltests_LIBSOURCES], [
  520. m4_foreach([_gl_NAME], [$1], [
  521. m4_if(_gl_NAME, [alloca.c], [], [
  522. m4_define([gltests_LIBSOURCES_DIR], [tests])
  523. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  524. ])
  525. ])
  526. ])
  527. # This macro records the list of files which have been installed by
  528. # gnulib-tool and may be removed by future gnulib-tool invocations.
  529. AC_DEFUN([gl_FILE_LIST], [
  530. build-aux/arg-nonnull.h
  531. build-aux/c++defs.h
  532. build-aux/config.rpath
  533. build-aux/warn-on-use.h
  534. lib/alignof.h
  535. lib/alloca.in.h
  536. lib/arpa_inet.in.h
  537. lib/asnprintf.c
  538. lib/asprintf.c
  539. lib/base64.c
  540. lib/base64.h
  541. lib/basename-lgpl.c
  542. lib/basename.c
  543. lib/btowc.c
  544. lib/c-strtod.c
  545. lib/c-strtod.h
  546. lib/cloexec.c
  547. lib/cloexec.h
  548. lib/close-hook.c
  549. lib/close-hook.h
  550. lib/config.charset
  551. lib/creat-safer.c
  552. lib/dirname-lgpl.c
  553. lib/dirname.c
  554. lib/dirname.h
  555. lib/dup-safer.c
  556. lib/dup2.c
  557. lib/errno.in.h
  558. lib/error.c
  559. lib/error.h
  560. lib/exitfail.c
  561. lib/exitfail.h
  562. lib/fcntl--.h
  563. lib/fcntl-safer.h
  564. lib/fcntl.c
  565. lib/fcntl.in.h
  566. lib/fd-safer.c
  567. lib/float+.h
  568. lib/float.in.h
  569. lib/floor.c
  570. lib/floorf.c
  571. lib/fsusage.c
  572. lib/fsusage.h
  573. lib/full-read.c
  574. lib/full-read.h
  575. lib/full-write.c
  576. lib/full-write.h
  577. lib/gai_strerror.c
  578. lib/getaddrinfo.c
  579. lib/getdtablesize.c
  580. lib/gethostname.c
  581. lib/getloadavg.c
  582. lib/getopt.c
  583. lib/getopt.in.h
  584. lib/getopt1.c
  585. lib/getopt_int.h
  586. lib/gettext.h
  587. lib/inet_ntop.c
  588. lib/intprops.h
  589. lib/langinfo.in.h
  590. lib/localcharset.c
  591. lib/localcharset.h
  592. lib/locale.in.h
  593. lib/malloc.c
  594. lib/malloca.c
  595. lib/malloca.h
  596. lib/malloca.valgrind
  597. lib/math.in.h
  598. lib/mbrtowc.c
  599. lib/mbsinit.c
  600. lib/memchr.c
  601. lib/memchr.valgrind
  602. lib/mktime-internal.h
  603. lib/mktime.c
  604. lib/mountlist.c
  605. lib/mountlist.h
  606. lib/netdb.in.h
  607. lib/netinet_in.in.h
  608. lib/nl_langinfo.c
  609. lib/open-safer.c
  610. lib/open.c
  611. lib/pipe-safer.c
  612. lib/printf-args.c
  613. lib/printf-args.h
  614. lib/printf-parse.c
  615. lib/printf-parse.h
  616. lib/ref-add.sin
  617. lib/ref-del.sin
  618. lib/regcomp.c
  619. lib/regex.c
  620. lib/regex.h
  621. lib/regex_internal.c
  622. lib/regex_internal.h
  623. lib/regexec.c
  624. lib/safe-read.c
  625. lib/safe-read.h
  626. lib/safe-write.c
  627. lib/safe-write.h
  628. lib/setenv.c
  629. lib/sha1.c
  630. lib/sha1.h
  631. lib/size_max.h
  632. lib/snprintf.c
  633. lib/sockets.c
  634. lib/sockets.h
  635. lib/stat.c
  636. lib/stdbool.in.h
  637. lib/stddef.in.h
  638. lib/stdint.in.h
  639. lib/stdio-write.c
  640. lib/stdio.in.h
  641. lib/stdlib.in.h
  642. lib/str-two-way.h
  643. lib/strdup.c
  644. lib/streq.h
  645. lib/strerror.c
  646. lib/string.in.h
  647. lib/stripslash.c
  648. lib/strndup.c
  649. lib/strnlen.c
  650. lib/strsep.c
  651. lib/strstr.c
  652. lib/sys_socket.in.h
  653. lib/sys_stat.in.h
  654. lib/time.in.h
  655. lib/time_r.c
  656. lib/timegm.c
  657. lib/unistd--.h
  658. lib/unistd-safer.h
  659. lib/unistd.in.h
  660. lib/unsetenv.c
  661. lib/vasnprintf.c
  662. lib/vasnprintf.h
  663. lib/vasprintf.c
  664. lib/verify.h
  665. lib/vsnprintf.c
  666. lib/w32sock.h
  667. lib/wchar.in.h
  668. lib/wcrtomb.c
  669. lib/wctype.in.h
  670. lib/write.c
  671. lib/xalloc-die.c
  672. lib/xalloc.h
  673. lib/xmalloc.c
  674. lib/xsize.h
  675. lib/xstrndup.c
  676. lib/xstrndup.h
  677. m4/00gnulib.m4
  678. m4/alloca.m4
  679. m4/arpa_inet_h.m4
  680. m4/asm-underscore.m4
  681. m4/base64.m4
  682. m4/btowc.m4
  683. m4/c-strtod.m4
  684. m4/cloexec.m4
  685. m4/codeset.m4
  686. m4/dirname.m4
  687. m4/dos.m4
  688. m4/double-slash-root.m4
  689. m4/dup2.m4
  690. m4/eealloc.m4
  691. m4/environ.m4
  692. m4/errno_h.m4
  693. m4/error.m4
  694. m4/extensions.m4
  695. m4/fcntl-o.m4
  696. m4/fcntl-safer.m4
  697. m4/fcntl.m4
  698. m4/fcntl_h.m4
  699. m4/float_h.m4
  700. m4/floorf.m4
  701. m4/fstypename.m4
  702. m4/fsusage.m4
  703. m4/getaddrinfo.m4
  704. m4/getdtablesize.m4
  705. m4/gethostname.m4
  706. m4/getloadavg.m4
  707. m4/getopt.m4
  708. m4/gettext.m4
  709. m4/glibc2.m4
  710. m4/glibc21.m4
  711. m4/gnulib-common.m4
  712. m4/hostent.m4
  713. m4/iconv.m4
  714. m4/include_next.m4
  715. m4/inet_ntop.m4
  716. m4/inline.m4
  717. m4/intdiv0.m4
  718. m4/intl.m4
  719. m4/intldir.m4
  720. m4/intlmacosx.m4
  721. m4/intmax.m4
  722. m4/intmax_t.m4
  723. m4/inttypes-pri.m4
  724. m4/inttypes_h.m4
  725. m4/langinfo_h.m4
  726. m4/lcmessage.m4
  727. m4/lib-ld.m4
  728. m4/lib-link.m4
  729. m4/lib-prefix.m4
  730. m4/localcharset.m4
  731. m4/locale-fr.m4
  732. m4/locale-ja.m4
  733. m4/locale-zh.m4
  734. m4/locale_h.m4
  735. m4/lock.m4
  736. m4/longlong.m4
  737. m4/ls-mntd-fs.m4
  738. m4/malloc.m4
  739. m4/malloca.m4
  740. m4/math_h.m4
  741. m4/mbrtowc.m4
  742. m4/mbsinit.m4
  743. m4/mbstate_t.m4
  744. m4/memchr.m4
  745. m4/mktime.m4
  746. m4/mmap-anon.m4
  747. m4/mode_t.m4
  748. m4/mountlist.m4
  749. m4/multiarch.m4
  750. m4/netdb_h.m4
  751. m4/netinet_in_h.m4
  752. m4/nl_langinfo.m4
  753. m4/nls.m4
  754. m4/onceonly.m4
  755. m4/open.m4
  756. m4/po.m4
  757. m4/printf-posix.m4
  758. m4/printf.m4
  759. m4/progtest.m4
  760. m4/regex.m4
  761. m4/safe-read.m4
  762. m4/safe-write.m4
  763. m4/servent.m4
  764. m4/setenv.m4
  765. m4/sha1.m4
  766. m4/size_max.m4
  767. m4/snprintf.m4
  768. m4/sockets.m4
  769. m4/socklen.m4
  770. m4/sockpfaf.m4
  771. m4/ssize_t.m4
  772. m4/stat.m4
  773. m4/stdbool.m4
  774. m4/stddef_h.m4
  775. m4/stdint.m4
  776. m4/stdint_h.m4
  777. m4/stdio_h.m4
  778. m4/stdlib_h.m4
  779. m4/strdup.m4
  780. m4/strerror.m4
  781. m4/string_h.m4
  782. m4/strndup.m4
  783. m4/strnlen.m4
  784. m4/strsep.m4
  785. m4/strstr.m4
  786. m4/sys_socket_h.m4
  787. m4/sys_stat_h.m4
  788. m4/threadlib.m4
  789. m4/time_h.m4
  790. m4/time_r.m4
  791. m4/timegm.m4
  792. m4/uintmax_t.m4
  793. m4/unistd-safer.m4
  794. m4/unistd_h.m4
  795. m4/vasnprintf.m4
  796. m4/vasprintf.m4
  797. m4/visibility.m4
  798. m4/vsnprintf.m4
  799. m4/warn-on-use.m4
  800. m4/wchar_h.m4
  801. m4/wchar_t.m4
  802. m4/wcrtomb.m4
  803. m4/wctype_h.m4
  804. m4/wint_t.m4
  805. m4/write.m4
  806. m4/xalloc.m4
  807. m4/xsize.m4
  808. m4/xstrndup.m4
  809. ])