gnulib-comp.m4 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2013 Free Software Foundation, Inc.
  3. #
  4. # This file is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This file is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this file. If not, see <http://www.gnu.org/licenses/>.
  16. #
  17. # As a special exception to the GNU General Public License,
  18. # this file may be distributed as part of a program that
  19. # contains a configuration script generated by Autoconf, under
  20. # the same distribution terms as the rest of that program.
  21. #
  22. # Generated by gnulib-tool.
  23. #
  24. # This file represents the compiled summary of the specification in
  25. # gnulib-cache.m4. It lists the computed macro invocations that need
  26. # to be invoked from configure.ac.
  27. # In projects that use version control, this file can be treated like
  28. # other built files.
  29. # This macro should be invoked from ./configure.ac, in the section
  30. # "Checks for programs", right after AC_PROG_CC, and certainly before
  31. # any checks for libraries, header files, types and library functions.
  32. AC_DEFUN([gl_EARLY],
  33. [
  34. m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
  35. m4_pattern_allow([^gl_ES$])dnl a valid locale name
  36. m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
  37. m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
  38. AC_REQUIRE([gl_PROG_AR_RANLIB])
  39. AC_REQUIRE([AM_PROG_CC_C_O])
  40. # Code from module alloca-opt:
  41. # Code from module arpa_inet:
  42. # Code from module base64:
  43. # Code from module btowc:
  44. # Code from module configmake:
  45. # Code from module crypto/sha1:
  46. # Code from module dirname:
  47. # Code from module dirname-lgpl:
  48. # Code from module dosname:
  49. # Code from module double-slash-root:
  50. # Code from module environ:
  51. # Code from module errno:
  52. # Code from module error:
  53. # Code from module exitfail:
  54. # Code from module extensions:
  55. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  56. # Code from module extern-inline:
  57. # Code from module fd-hook:
  58. # Code from module float:
  59. # Code from module floorf:
  60. # Code from module fsusage:
  61. # Code from module full-read:
  62. # Code from module getaddrinfo:
  63. # Code from module gethostname:
  64. # Code from module getloadavg:
  65. # Code from module getopt-gnu:
  66. # Code from module getopt-posix:
  67. # Code from module gettext:
  68. # Code from module gettext-h:
  69. # Code from module havelib:
  70. # Code from module hostent:
  71. # Code from module idpriv-droptemp:
  72. # Code from module include_next:
  73. # Code from module inet_ntop:
  74. # Code from module intprops:
  75. # Code from module langinfo:
  76. # Code from module largefile:
  77. AC_REQUIRE([AC_SYS_LARGEFILE])
  78. # Code from module localcharset:
  79. # Code from module locale:
  80. # Code from module localeconv:
  81. # Code from module lock:
  82. # Code from module malloc-gnu:
  83. # Code from module malloc-posix:
  84. # Code from module malloca:
  85. # Code from module math:
  86. # Code from module mbrtowc:
  87. # Code from module mbsinit:
  88. # Code from module mbtowc:
  89. # Code from module memchr:
  90. # Code from module mktime:
  91. # Code from module mktime-internal:
  92. # Code from module mountlist:
  93. # Code from module msvc-inval:
  94. # Code from module msvc-nothrow:
  95. # Code from module multiarch:
  96. # Code from module netdb:
  97. # Code from module netinet_in:
  98. # Code from module nl_langinfo:
  99. # Code from module nocrash:
  100. # Code from module read:
  101. # Code from module regex:
  102. # Code from module safe-read:
  103. # Code from module servent:
  104. # Code from module setenv:
  105. # Code from module size_max:
  106. # Code from module snippet/_Noreturn:
  107. # Code from module snippet/arg-nonnull:
  108. # Code from module snippet/c++defs:
  109. # Code from module snippet/warn-on-use:
  110. # Code from module snprintf:
  111. # Code from module socketlib:
  112. # Code from module sockets:
  113. # Code from module socklen:
  114. # Code from module ssize_t:
  115. # Code from module stdalign:
  116. # Code from module stdbool:
  117. # Code from module stddef:
  118. # Code from module stdint:
  119. # Code from module stdio:
  120. # Code from module stdlib:
  121. # Code from module strcase:
  122. # Code from module strcasestr:
  123. # Code from module strcasestr-simple:
  124. # Code from module streq:
  125. # Code from module strerror:
  126. # Code from module strerror-override:
  127. # Code from module string:
  128. # Code from module strings:
  129. # Code from module strndup:
  130. # Code from module strnlen:
  131. # Code from module strsep:
  132. # Code from module strstr-simple:
  133. # Code from module sys_socket:
  134. # Code from module sys_types:
  135. # Code from module sys_uio:
  136. # Code from module threadlib:
  137. gl_THREADLIB_EARLY
  138. # Code from module time:
  139. # Code from module time_r:
  140. # Code from module timegm:
  141. # Code from module unistd:
  142. # Code from module unsetenv:
  143. # Code from module vasnprintf:
  144. # Code from module vasprintf:
  145. # Code from module verify:
  146. # Code from module vsnprintf:
  147. # Code from module wchar:
  148. # Code from module wcrtomb:
  149. # Code from module wctype-h:
  150. # Code from module xalloc:
  151. # Code from module xalloc-die:
  152. # Code from module xalloc-oversized:
  153. # Code from module xsize:
  154. # Code from module xstrndup:
  155. ])
  156. # This macro should be invoked from ./configure.ac, in the section
  157. # "Check for header files, types and library functions".
  158. AC_DEFUN([gl_INIT],
  159. [
  160. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  161. gl_cond_libtool=false
  162. gl_libdeps=
  163. gl_ltlibdeps=
  164. gl_m4_base='gl/m4'
  165. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  166. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  167. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  168. m4_pushdef([gl_LIBSOURCES_LIST], [])
  169. m4_pushdef([gl_LIBSOURCES_DIR], [])
  170. gl_COMMON
  171. gl_source_base='gl'
  172. gl_FUNC_ALLOCA
  173. gl_HEADER_ARPA_INET
  174. AC_PROG_MKDIR_P
  175. gl_FUNC_BASE64
  176. gl_FUNC_BTOWC
  177. if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
  178. AC_LIBOBJ([btowc])
  179. gl_PREREQ_BTOWC
  180. fi
  181. gl_WCHAR_MODULE_INDICATOR([btowc])
  182. gl_CONFIGMAKE_PREP
  183. gl_SHA1
  184. gl_DIRNAME
  185. gl_MODULE_INDICATOR([dirname])
  186. gl_DIRNAME_LGPL
  187. gl_DOUBLE_SLASH_ROOT
  188. gl_ENVIRON
  189. gl_UNISTD_MODULE_INDICATOR([environ])
  190. gl_HEADER_ERRNO_H
  191. gl_ERROR
  192. if test $ac_cv_lib_error_at_line = no; then
  193. AC_LIBOBJ([error])
  194. gl_PREREQ_ERROR
  195. fi
  196. m4_ifdef([AM_XGETTEXT_OPTION],
  197. [AM_][XGETTEXT_OPTION([--flag=error:3:c-format])
  198. AM_][XGETTEXT_OPTION([--flag=error_at_line:5:c-format])])
  199. AC_REQUIRE([gl_EXTERN_INLINE])
  200. gl_FLOAT_H
  201. if test $REPLACE_FLOAT_LDBL = 1; then
  202. AC_LIBOBJ([float])
  203. fi
  204. if test $REPLACE_ITOLD = 1; then
  205. AC_LIBOBJ([itold])
  206. fi
  207. gl_FUNC_FLOORF
  208. if test $HAVE_DECL_FLOORF = 0 || test $REPLACE_FLOORF = 1; then
  209. AC_LIBOBJ([floorf])
  210. fi
  211. gl_MATH_MODULE_INDICATOR([floorf])
  212. gl_FSUSAGE
  213. if test $gl_cv_fs_space = yes; then
  214. AC_LIBOBJ([fsusage])
  215. gl_PREREQ_FSUSAGE_EXTRA
  216. fi
  217. gl_GETADDRINFO
  218. if test $HAVE_GETADDRINFO = 0; then
  219. AC_LIBOBJ([getaddrinfo])
  220. fi
  221. if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
  222. AC_LIBOBJ([gai_strerror])
  223. fi
  224. gl_NETDB_MODULE_INDICATOR([getaddrinfo])
  225. gl_FUNC_GETHOSTNAME
  226. if test $HAVE_GETHOSTNAME = 0; then
  227. AC_LIBOBJ([gethostname])
  228. gl_PREREQ_GETHOSTNAME
  229. fi
  230. gl_UNISTD_MODULE_INDICATOR([gethostname])
  231. gl_GETLOADAVG
  232. if test $HAVE_GETLOADAVG = 0; then
  233. AC_LIBOBJ([getloadavg])
  234. gl_PREREQ_GETLOADAVG
  235. fi
  236. gl_STDLIB_MODULE_INDICATOR([getloadavg])
  237. gl_FUNC_GETOPT_GNU
  238. if test $REPLACE_GETOPT = 1; then
  239. AC_LIBOBJ([getopt])
  240. AC_LIBOBJ([getopt1])
  241. gl_PREREQ_GETOPT
  242. dnl Arrange for unistd.h to include getopt.h.
  243. GNULIB_GL_UNISTD_H_GETOPT=1
  244. fi
  245. AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
  246. gl_MODULE_INDICATOR_FOR_TESTS([getopt-gnu])
  247. gl_FUNC_GETOPT_POSIX
  248. if test $REPLACE_GETOPT = 1; then
  249. AC_LIBOBJ([getopt])
  250. AC_LIBOBJ([getopt1])
  251. gl_PREREQ_GETOPT
  252. dnl Arrange for unistd.h to include getopt.h.
  253. GNULIB_GL_UNISTD_H_GETOPT=1
  254. fi
  255. AC_SUBST([GNULIB_GL_UNISTD_H_GETOPT])
  256. dnl you must add AM_GNU_GETTEXT([external]) or similar to configure.ac.
  257. AM_GNU_GETTEXT_VERSION([0.18.1])
  258. AC_SUBST([LIBINTL])
  259. AC_SUBST([LTLIBINTL])
  260. gl_HOSTENT
  261. gl_IDPRIV
  262. gl_FUNC_INET_NTOP
  263. if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
  264. AC_LIBOBJ([inet_ntop])
  265. gl_PREREQ_INET_NTOP
  266. fi
  267. gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
  268. gl_LANGINFO_H
  269. AC_REQUIRE([gl_LARGEFILE])
  270. gl_LOCALCHARSET
  271. LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(abs_top_builddir)/$gl_source_base\""
  272. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  273. gl_LOCALE_H
  274. gl_FUNC_LOCALECONV
  275. if test $REPLACE_LOCALECONV = 1; then
  276. AC_LIBOBJ([localeconv])
  277. gl_PREREQ_LOCALECONV
  278. fi
  279. gl_LOCALE_MODULE_INDICATOR([localeconv])
  280. gl_LOCK
  281. gl_MODULE_INDICATOR([lock])
  282. gl_FUNC_MALLOC_GNU
  283. if test $REPLACE_MALLOC = 1; then
  284. AC_LIBOBJ([malloc])
  285. fi
  286. gl_MODULE_INDICATOR([malloc-gnu])
  287. gl_FUNC_MALLOC_POSIX
  288. if test $REPLACE_MALLOC = 1; then
  289. AC_LIBOBJ([malloc])
  290. fi
  291. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  292. gl_MALLOCA
  293. gl_MATH_H
  294. gl_FUNC_MBRTOWC
  295. if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
  296. AC_LIBOBJ([mbrtowc])
  297. gl_PREREQ_MBRTOWC
  298. fi
  299. gl_WCHAR_MODULE_INDICATOR([mbrtowc])
  300. gl_FUNC_MBSINIT
  301. if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
  302. AC_LIBOBJ([mbsinit])
  303. gl_PREREQ_MBSINIT
  304. fi
  305. gl_WCHAR_MODULE_INDICATOR([mbsinit])
  306. gl_FUNC_MBTOWC
  307. if test $REPLACE_MBTOWC = 1; then
  308. AC_LIBOBJ([mbtowc])
  309. gl_PREREQ_MBTOWC
  310. fi
  311. gl_STDLIB_MODULE_INDICATOR([mbtowc])
  312. gl_FUNC_MEMCHR
  313. if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  314. AC_LIBOBJ([memchr])
  315. gl_PREREQ_MEMCHR
  316. fi
  317. gl_STRING_MODULE_INDICATOR([memchr])
  318. gl_FUNC_MKTIME
  319. if test $REPLACE_MKTIME = 1; then
  320. AC_LIBOBJ([mktime])
  321. gl_PREREQ_MKTIME
  322. fi
  323. gl_TIME_MODULE_INDICATOR([mktime])
  324. gl_FUNC_MKTIME_INTERNAL
  325. if test $REPLACE_MKTIME = 1; then
  326. AC_LIBOBJ([mktime])
  327. gl_PREREQ_MKTIME
  328. fi
  329. gl_MOUNTLIST
  330. if test $gl_cv_list_mounted_fs = yes; then
  331. AC_LIBOBJ([mountlist])
  332. gl_PREREQ_MOUNTLIST_EXTRA
  333. fi
  334. gl_MSVC_INVAL
  335. if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  336. AC_LIBOBJ([msvc-inval])
  337. fi
  338. gl_MSVC_NOTHROW
  339. if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  340. AC_LIBOBJ([msvc-nothrow])
  341. fi
  342. gl_MULTIARCH
  343. gl_HEADER_NETDB
  344. gl_HEADER_NETINET_IN
  345. AC_PROG_MKDIR_P
  346. gl_FUNC_NL_LANGINFO
  347. if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
  348. AC_LIBOBJ([nl_langinfo])
  349. fi
  350. gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
  351. gl_FUNC_READ
  352. if test $REPLACE_READ = 1; then
  353. AC_LIBOBJ([read])
  354. gl_PREREQ_READ
  355. fi
  356. gl_UNISTD_MODULE_INDICATOR([read])
  357. gl_REGEX
  358. if test $ac_use_included_regex = yes; then
  359. AC_LIBOBJ([regex])
  360. gl_PREREQ_REGEX
  361. fi
  362. gl_PREREQ_SAFE_READ
  363. gl_SERVENT
  364. gl_FUNC_SETENV
  365. if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
  366. AC_LIBOBJ([setenv])
  367. fi
  368. gl_STDLIB_MODULE_INDICATOR([setenv])
  369. gl_SIZE_MAX
  370. gl_FUNC_SNPRINTF
  371. gl_STDIO_MODULE_INDICATOR([snprintf])
  372. gl_MODULE_INDICATOR([snprintf])
  373. gl_SOCKETLIB
  374. gl_SOCKETS
  375. gl_TYPE_SOCKLEN_T
  376. gt_TYPE_SSIZE_T
  377. gl_STDALIGN_H
  378. AM_STDBOOL_H
  379. gl_STDDEF_H
  380. gl_STDINT_H
  381. gl_STDIO_H
  382. gl_STDLIB_H
  383. gl_STRCASE
  384. if test $HAVE_STRCASECMP = 0; then
  385. AC_LIBOBJ([strcasecmp])
  386. gl_PREREQ_STRCASECMP
  387. fi
  388. if test $HAVE_STRNCASECMP = 0; then
  389. AC_LIBOBJ([strncasecmp])
  390. gl_PREREQ_STRNCASECMP
  391. fi
  392. gl_FUNC_STRCASESTR
  393. if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
  394. AC_LIBOBJ([strcasestr])
  395. gl_PREREQ_STRCASESTR
  396. fi
  397. gl_FUNC_STRCASESTR_SIMPLE
  398. if test $HAVE_STRCASESTR = 0 || test $REPLACE_STRCASESTR = 1; then
  399. AC_LIBOBJ([strcasestr])
  400. gl_PREREQ_STRCASESTR
  401. fi
  402. gl_STRING_MODULE_INDICATOR([strcasestr])
  403. gl_FUNC_STRERROR
  404. if test $REPLACE_STRERROR = 1; then
  405. AC_LIBOBJ([strerror])
  406. fi
  407. gl_MODULE_INDICATOR([strerror])
  408. gl_STRING_MODULE_INDICATOR([strerror])
  409. AC_REQUIRE([gl_HEADER_ERRNO_H])
  410. AC_REQUIRE([gl_FUNC_STRERROR_0])
  411. if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
  412. AC_LIBOBJ([strerror-override])
  413. gl_PREREQ_SYS_H_WINSOCK2
  414. fi
  415. gl_HEADER_STRING_H
  416. gl_HEADER_STRINGS_H
  417. gl_FUNC_STRNDUP
  418. if test $HAVE_STRNDUP = 0 || test $REPLACE_STRNDUP = 1; then
  419. AC_LIBOBJ([strndup])
  420. fi
  421. gl_STRING_MODULE_INDICATOR([strndup])
  422. gl_FUNC_STRNLEN
  423. if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
  424. AC_LIBOBJ([strnlen])
  425. gl_PREREQ_STRNLEN
  426. fi
  427. gl_STRING_MODULE_INDICATOR([strnlen])
  428. gl_FUNC_STRSEP
  429. if test $HAVE_STRSEP = 0; then
  430. AC_LIBOBJ([strsep])
  431. gl_PREREQ_STRSEP
  432. fi
  433. gl_STRING_MODULE_INDICATOR([strsep])
  434. gl_FUNC_STRSTR_SIMPLE
  435. if test $REPLACE_STRSTR = 1; then
  436. AC_LIBOBJ([strstr])
  437. fi
  438. gl_STRING_MODULE_INDICATOR([strstr])
  439. gl_HEADER_SYS_SOCKET
  440. AC_PROG_MKDIR_P
  441. gl_SYS_TYPES_H
  442. AC_PROG_MKDIR_P
  443. gl_HEADER_SYS_UIO
  444. AC_PROG_MKDIR_P
  445. gl_THREADLIB
  446. gl_HEADER_TIME_H
  447. gl_TIME_R
  448. if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
  449. AC_LIBOBJ([time_r])
  450. gl_PREREQ_TIME_R
  451. fi
  452. gl_TIME_MODULE_INDICATOR([time_r])
  453. gl_FUNC_TIMEGM
  454. if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
  455. AC_LIBOBJ([timegm])
  456. gl_PREREQ_TIMEGM
  457. fi
  458. gl_TIME_MODULE_INDICATOR([timegm])
  459. gl_UNISTD_H
  460. gl_FUNC_UNSETENV
  461. if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
  462. AC_LIBOBJ([unsetenv])
  463. gl_PREREQ_UNSETENV
  464. fi
  465. gl_STDLIB_MODULE_INDICATOR([unsetenv])
  466. gl_FUNC_VASNPRINTF
  467. gl_FUNC_VASPRINTF
  468. gl_STDIO_MODULE_INDICATOR([vasprintf])
  469. m4_ifdef([AM_XGETTEXT_OPTION],
  470. [AM_][XGETTEXT_OPTION([--flag=asprintf:2:c-format])
  471. AM_][XGETTEXT_OPTION([--flag=vasprintf:2:c-format])])
  472. gl_FUNC_VSNPRINTF
  473. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  474. gl_WCHAR_H
  475. gl_FUNC_WCRTOMB
  476. if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
  477. AC_LIBOBJ([wcrtomb])
  478. gl_PREREQ_WCRTOMB
  479. fi
  480. gl_WCHAR_MODULE_INDICATOR([wcrtomb])
  481. gl_WCTYPE_H
  482. gl_XALLOC
  483. gl_XSIZE
  484. gl_XSTRNDUP
  485. # End of code from modules
  486. m4_ifval(gl_LIBSOURCES_LIST, [
  487. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  488. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  489. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  490. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  491. exit 1
  492. fi
  493. done])dnl
  494. m4_if(m4_sysval, [0], [],
  495. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  496. ])
  497. m4_popdef([gl_LIBSOURCES_DIR])
  498. m4_popdef([gl_LIBSOURCES_LIST])
  499. m4_popdef([AC_LIBSOURCES])
  500. m4_popdef([AC_REPLACE_FUNCS])
  501. m4_popdef([AC_LIBOBJ])
  502. AC_CONFIG_COMMANDS_PRE([
  503. gl_libobjs=
  504. gl_ltlibobjs=
  505. if test -n "$gl_LIBOBJS"; then
  506. # Remove the extension.
  507. sed_drop_objext='s/\.o$//;s/\.obj$//'
  508. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  509. gl_libobjs="$gl_libobjs $i.$ac_objext"
  510. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  511. done
  512. fi
  513. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  514. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  515. ])
  516. gltests_libdeps=
  517. gltests_ltlibdeps=
  518. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  519. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  520. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  521. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  522. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  523. gl_COMMON
  524. gl_source_base='tests'
  525. changequote(,)dnl
  526. 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
  527. changequote([, ])dnl
  528. AC_SUBST([gltests_WITNESS])
  529. gl_module_indicator_condition=$gltests_WITNESS
  530. m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
  531. m4_popdef([gl_MODULE_INDICATOR_CONDITION])
  532. m4_ifval(gltests_LIBSOURCES_LIST, [
  533. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  534. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  535. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  536. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  537. exit 1
  538. fi
  539. done])dnl
  540. m4_if(m4_sysval, [0], [],
  541. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  542. ])
  543. m4_popdef([gltests_LIBSOURCES_DIR])
  544. m4_popdef([gltests_LIBSOURCES_LIST])
  545. m4_popdef([AC_LIBSOURCES])
  546. m4_popdef([AC_REPLACE_FUNCS])
  547. m4_popdef([AC_LIBOBJ])
  548. AC_CONFIG_COMMANDS_PRE([
  549. gltests_libobjs=
  550. gltests_ltlibobjs=
  551. if test -n "$gltests_LIBOBJS"; then
  552. # Remove the extension.
  553. sed_drop_objext='s/\.o$//;s/\.obj$//'
  554. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  555. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  556. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  557. done
  558. fi
  559. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  560. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  561. ])
  562. LIBGNU_LIBDEPS="$gl_libdeps"
  563. AC_SUBST([LIBGNU_LIBDEPS])
  564. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  565. AC_SUBST([LIBGNU_LTLIBDEPS])
  566. ])
  567. # Like AC_LIBOBJ, except that the module name goes
  568. # into gl_LIBOBJS instead of into LIBOBJS.
  569. AC_DEFUN([gl_LIBOBJ], [
  570. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  571. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  572. ])
  573. # Like AC_REPLACE_FUNCS, except that the module name goes
  574. # into gl_LIBOBJS instead of into LIBOBJS.
  575. AC_DEFUN([gl_REPLACE_FUNCS], [
  576. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  577. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  578. ])
  579. # Like AC_LIBSOURCES, except the directory where the source file is
  580. # expected is derived from the gnulib-tool parameterization,
  581. # and alloca is special cased (for the alloca-opt module).
  582. # We could also entirely rely on EXTRA_lib..._SOURCES.
  583. AC_DEFUN([gl_LIBSOURCES], [
  584. m4_foreach([_gl_NAME], [$1], [
  585. m4_if(_gl_NAME, [alloca.c], [], [
  586. m4_define([gl_LIBSOURCES_DIR], [gl])
  587. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  588. ])
  589. ])
  590. ])
  591. # Like AC_LIBOBJ, except that the module name goes
  592. # into gltests_LIBOBJS instead of into LIBOBJS.
  593. AC_DEFUN([gltests_LIBOBJ], [
  594. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  595. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  596. ])
  597. # Like AC_REPLACE_FUNCS, except that the module name goes
  598. # into gltests_LIBOBJS instead of into LIBOBJS.
  599. AC_DEFUN([gltests_REPLACE_FUNCS], [
  600. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  601. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  602. ])
  603. # Like AC_LIBSOURCES, except the directory where the source file is
  604. # expected is derived from the gnulib-tool parameterization,
  605. # and alloca is special cased (for the alloca-opt module).
  606. # We could also entirely rely on EXTRA_lib..._SOURCES.
  607. AC_DEFUN([gltests_LIBSOURCES], [
  608. m4_foreach([_gl_NAME], [$1], [
  609. m4_if(_gl_NAME, [alloca.c], [], [
  610. m4_define([gltests_LIBSOURCES_DIR], [tests])
  611. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  612. ])
  613. ])
  614. ])
  615. # This macro records the list of files which have been installed by
  616. # gnulib-tool and may be removed by future gnulib-tool invocations.
  617. AC_DEFUN([gl_FILE_LIST], [
  618. build-aux/config.rpath
  619. build-aux/snippet/_Noreturn.h
  620. build-aux/snippet/arg-nonnull.h
  621. build-aux/snippet/c++defs.h
  622. build-aux/snippet/warn-on-use.h
  623. lib/alloca.in.h
  624. lib/arpa_inet.in.h
  625. lib/asnprintf.c
  626. lib/asprintf.c
  627. lib/base64.c
  628. lib/base64.h
  629. lib/basename-lgpl.c
  630. lib/basename.c
  631. lib/btowc.c
  632. lib/config.charset
  633. lib/dirname-lgpl.c
  634. lib/dirname.c
  635. lib/dirname.h
  636. lib/dosname.h
  637. lib/errno.in.h
  638. lib/error.c
  639. lib/error.h
  640. lib/exitfail.c
  641. lib/exitfail.h
  642. lib/fd-hook.c
  643. lib/fd-hook.h
  644. lib/float+.h
  645. lib/float.c
  646. lib/float.in.h
  647. lib/floor.c
  648. lib/floorf.c
  649. lib/fsusage.c
  650. lib/fsusage.h
  651. lib/full-read.c
  652. lib/full-read.h
  653. lib/full-write.c
  654. lib/gai_strerror.c
  655. lib/getaddrinfo.c
  656. lib/gethostname.c
  657. lib/getloadavg.c
  658. lib/getopt.c
  659. lib/getopt.in.h
  660. lib/getopt1.c
  661. lib/getopt_int.h
  662. lib/gettext.h
  663. lib/glthread/lock.c
  664. lib/glthread/lock.h
  665. lib/glthread/threadlib.c
  666. lib/idpriv-droptemp.c
  667. lib/idpriv.h
  668. lib/inet_ntop.c
  669. lib/intprops.h
  670. lib/itold.c
  671. lib/langinfo.in.h
  672. lib/localcharset.c
  673. lib/localcharset.h
  674. lib/locale.in.h
  675. lib/localeconv.c
  676. lib/malloc.c
  677. lib/malloca.c
  678. lib/malloca.h
  679. lib/malloca.valgrind
  680. lib/math.c
  681. lib/math.in.h
  682. lib/mbrtowc.c
  683. lib/mbsinit.c
  684. lib/mbtowc-impl.h
  685. lib/mbtowc.c
  686. lib/memchr.c
  687. lib/memchr.valgrind
  688. lib/mktime-internal.h
  689. lib/mktime.c
  690. lib/mountlist.c
  691. lib/mountlist.h
  692. lib/msvc-inval.c
  693. lib/msvc-inval.h
  694. lib/msvc-nothrow.c
  695. lib/msvc-nothrow.h
  696. lib/netdb.in.h
  697. lib/netinet_in.in.h
  698. lib/nl_langinfo.c
  699. lib/printf-args.c
  700. lib/printf-args.h
  701. lib/printf-parse.c
  702. lib/printf-parse.h
  703. lib/read.c
  704. lib/ref-add.sin
  705. lib/ref-del.sin
  706. lib/regcomp.c
  707. lib/regex.c
  708. lib/regex.h
  709. lib/regex_internal.c
  710. lib/regex_internal.h
  711. lib/regexec.c
  712. lib/safe-read.c
  713. lib/safe-read.h
  714. lib/setenv.c
  715. lib/sha1.c
  716. lib/sha1.h
  717. lib/size_max.h
  718. lib/snprintf.c
  719. lib/sockets.c
  720. lib/sockets.h
  721. lib/stdalign.in.h
  722. lib/stdbool.in.h
  723. lib/stddef.in.h
  724. lib/stdint.in.h
  725. lib/stdio.in.h
  726. lib/stdlib.in.h
  727. lib/str-two-way.h
  728. lib/strcasecmp.c
  729. lib/strcasestr.c
  730. lib/streq.h
  731. lib/strerror-override.c
  732. lib/strerror-override.h
  733. lib/strerror.c
  734. lib/string.in.h
  735. lib/strings.in.h
  736. lib/stripslash.c
  737. lib/strncasecmp.c
  738. lib/strndup.c
  739. lib/strnlen.c
  740. lib/strsep.c
  741. lib/strstr.c
  742. lib/sys_socket.c
  743. lib/sys_socket.in.h
  744. lib/sys_types.in.h
  745. lib/sys_uio.in.h
  746. lib/time.in.h
  747. lib/time_r.c
  748. lib/timegm.c
  749. lib/unistd.c
  750. lib/unistd.in.h
  751. lib/unsetenv.c
  752. lib/vasnprintf.c
  753. lib/vasnprintf.h
  754. lib/vasprintf.c
  755. lib/verify.h
  756. lib/vsnprintf.c
  757. lib/w32sock.h
  758. lib/wchar.in.h
  759. lib/wcrtomb.c
  760. lib/wctype-h.c
  761. lib/wctype.in.h
  762. lib/xalloc-die.c
  763. lib/xalloc-oversized.h
  764. lib/xalloc.h
  765. lib/xmalloc.c
  766. lib/xsize.c
  767. lib/xsize.h
  768. lib/xstrndup.c
  769. lib/xstrndup.h
  770. m4/00gnulib.m4
  771. m4/alloca.m4
  772. m4/arpa_inet_h.m4
  773. m4/base64.m4
  774. m4/btowc.m4
  775. m4/codeset.m4
  776. m4/configmake.m4
  777. m4/dirname.m4
  778. m4/double-slash-root.m4
  779. m4/eealloc.m4
  780. m4/environ.m4
  781. m4/errno_h.m4
  782. m4/error.m4
  783. m4/exponentd.m4
  784. m4/extensions.m4
  785. m4/extern-inline.m4
  786. m4/fcntl-o.m4
  787. m4/float_h.m4
  788. m4/floorf.m4
  789. m4/fstypename.m4
  790. m4/fsusage.m4
  791. m4/getaddrinfo.m4
  792. m4/gethostname.m4
  793. m4/getloadavg.m4
  794. m4/getopt.m4
  795. m4/gettext.m4
  796. m4/glibc2.m4
  797. m4/glibc21.m4
  798. m4/gnulib-common.m4
  799. m4/hostent.m4
  800. m4/iconv.m4
  801. m4/idpriv.m4
  802. m4/include_next.m4
  803. m4/inet_ntop.m4
  804. m4/intdiv0.m4
  805. m4/intl.m4
  806. m4/intldir.m4
  807. m4/intlmacosx.m4
  808. m4/intmax.m4
  809. m4/intmax_t.m4
  810. m4/inttypes-pri.m4
  811. m4/inttypes_h.m4
  812. m4/langinfo_h.m4
  813. m4/largefile.m4
  814. m4/lcmessage.m4
  815. m4/lib-ld.m4
  816. m4/lib-link.m4
  817. m4/lib-prefix.m4
  818. m4/localcharset.m4
  819. m4/locale-fr.m4
  820. m4/locale-ja.m4
  821. m4/locale-zh.m4
  822. m4/locale_h.m4
  823. m4/localeconv.m4
  824. m4/lock.m4
  825. m4/longlong.m4
  826. m4/ls-mntd-fs.m4
  827. m4/malloc.m4
  828. m4/malloca.m4
  829. m4/math_h.m4
  830. m4/mbrtowc.m4
  831. m4/mbsinit.m4
  832. m4/mbstate_t.m4
  833. m4/mbtowc.m4
  834. m4/memchr.m4
  835. m4/mktime.m4
  836. m4/mmap-anon.m4
  837. m4/mountlist.m4
  838. m4/msvc-inval.m4
  839. m4/msvc-nothrow.m4
  840. m4/multiarch.m4
  841. m4/netdb_h.m4
  842. m4/netinet_in_h.m4
  843. m4/nl_langinfo.m4
  844. m4/nls.m4
  845. m4/nocrash.m4
  846. m4/off_t.m4
  847. m4/onceonly.m4
  848. m4/po.m4
  849. m4/printf-posix.m4
  850. m4/printf.m4
  851. m4/progtest.m4
  852. m4/read.m4
  853. m4/regex.m4
  854. m4/safe-read.m4
  855. m4/servent.m4
  856. m4/setenv.m4
  857. m4/sha1.m4
  858. m4/size_max.m4
  859. m4/snprintf.m4
  860. m4/socketlib.m4
  861. m4/sockets.m4
  862. m4/socklen.m4
  863. m4/sockpfaf.m4
  864. m4/ssize_t.m4
  865. m4/stdalign.m4
  866. m4/stdbool.m4
  867. m4/stddef_h.m4
  868. m4/stdint.m4
  869. m4/stdint_h.m4
  870. m4/stdio_h.m4
  871. m4/stdlib_h.m4
  872. m4/strcase.m4
  873. m4/strcasestr.m4
  874. m4/strerror.m4
  875. m4/string_h.m4
  876. m4/strings_h.m4
  877. m4/strndup.m4
  878. m4/strnlen.m4
  879. m4/strsep.m4
  880. m4/strstr.m4
  881. m4/sys_socket_h.m4
  882. m4/sys_types_h.m4
  883. m4/sys_uio_h.m4
  884. m4/threadlib.m4
  885. m4/time_h.m4
  886. m4/time_r.m4
  887. m4/timegm.m4
  888. m4/uintmax_t.m4
  889. m4/unistd_h.m4
  890. m4/vasnprintf.m4
  891. m4/vasprintf.m4
  892. m4/visibility.m4
  893. m4/vsnprintf.m4
  894. m4/warn-on-use.m4
  895. m4/wchar_h.m4
  896. m4/wchar_t.m4
  897. m4/wcrtomb.m4
  898. m4/wctype_h.m4
  899. m4/wint_t.m4
  900. m4/xalloc.m4
  901. m4/xsize.m4
  902. m4/xstrndup.m4
  903. ])