gnulib-comp.m4 67 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2021 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 <https://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. # Pre-early section.
  39. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  40. AC_REQUIRE([gl_PROG_AR_RANLIB])
  41. AC_REQUIRE([AM_PROG_CC_C_O])
  42. # Code from module absolute-header:
  43. # Code from module accept:
  44. # Code from module accept4:
  45. # Code from module alignof:
  46. # Code from module alloca:
  47. # Code from module alloca-opt:
  48. # Code from module announce-gen:
  49. # Code from module arpa_inet:
  50. # Code from module assure:
  51. # Code from module attribute:
  52. # Code from module autobuild:
  53. AB_INIT
  54. # Code from module basename-lgpl:
  55. # Code from module binary-io:
  56. # Code from module bind:
  57. # Code from module btowc:
  58. # Code from module builtin-expect:
  59. # Code from module byteswap:
  60. # Code from module c-ctype:
  61. # Code from module c-strcase:
  62. # Code from module c-strcaseeq:
  63. # Code from module c99:
  64. # Code from module canonicalize-lgpl:
  65. # Code from module ceil:
  66. # Code from module chdir:
  67. # Code from module clock-time:
  68. # Code from module cloexec:
  69. # Code from module close:
  70. # Code from module connect:
  71. # Code from module copysign:
  72. # Code from module dirent:
  73. # Code from module dirfd:
  74. # Code from module dirname-lgpl:
  75. # Code from module double-slash-root:
  76. # Code from module dup2:
  77. # Code from module duplocale:
  78. # Code from module dynarray:
  79. # Code from module eloop-threshold:
  80. # Code from module environ:
  81. # Code from module errno:
  82. # Code from module extensions:
  83. # Code from module extern-inline:
  84. # Code from module fcntl:
  85. # Code from module fcntl-h:
  86. # Code from module fd-hook:
  87. # Code from module filename:
  88. # Code from module flexmember:
  89. # Code from module float:
  90. # Code from module flock:
  91. # Code from module floor:
  92. # Code from module fpieee:
  93. AC_REQUIRE([gl_FP_IEEE])
  94. # Code from module free-posix:
  95. # Code from module frexp:
  96. # Code from module fstat:
  97. # Code from module fsync:
  98. # Code from module full-read:
  99. # Code from module full-write:
  100. # Code from module func:
  101. # Code from module gendocs:
  102. # Code from module getaddrinfo:
  103. # Code from module getdtablesize:
  104. # Code from module gethostname:
  105. # Code from module getlogin:
  106. # Code from module getpeername:
  107. # Code from module getrandom:
  108. # Code from module getsockname:
  109. # Code from module getsockopt:
  110. # Code from module gettext-h:
  111. # Code from module git-version-gen:
  112. # Code from module gitlog-to-changelog:
  113. # Code from module gnu-web-doc-update:
  114. # Code from module gnumakefile:
  115. # Code from module gnupload:
  116. # Code from module gperf:
  117. # Code from module hard-locale:
  118. # Code from module havelib:
  119. # Code from module hostent:
  120. # Code from module iconv:
  121. # Code from module iconv-h:
  122. # Code from module iconv_open:
  123. # Code from module iconv_open-utf:
  124. # Code from module idx:
  125. # Code from module include_next:
  126. # Code from module inet_ntop:
  127. # Code from module inet_pton:
  128. # Code from module intprops:
  129. # Code from module inttypes-incomplete:
  130. # Code from module isfinite:
  131. # Code from module isinf:
  132. # Code from module isnan:
  133. # Code from module isnand:
  134. # Code from module isnand-nolibm:
  135. # Code from module isnanf:
  136. # Code from module isnanf-nolibm:
  137. # Code from module isnanl:
  138. # Code from module isnanl-nolibm:
  139. # Code from module langinfo:
  140. # Code from module largefile:
  141. AC_REQUIRE([AC_SYS_LARGEFILE])
  142. AC_REQUIRE([gl_YEAR2038_EARLY])
  143. # Code from module ldexp:
  144. # Code from module lib-symbol-versions:
  145. # Code from module lib-symbol-visibility:
  146. # Code from module libc-config:
  147. # Code from module libunistring:
  148. # Code from module limits-h:
  149. # Code from module link:
  150. # Code from module listen:
  151. # Code from module localcharset:
  152. # Code from module locale:
  153. # Code from module localeconv:
  154. # Code from module log:
  155. # Code from module log1p:
  156. # Code from module lstat:
  157. # Code from module maintainer-makefile:
  158. # Code from module malloc-gnu:
  159. # Code from module malloc-posix:
  160. # Code from module malloca:
  161. # Code from module math:
  162. # Code from module mbrtowc:
  163. # Code from module mbsinit:
  164. # Code from module mbtowc:
  165. # Code from module memchr:
  166. # Code from module mempcpy:
  167. # Code from module minmax:
  168. # Code from module mkdir:
  169. # Code from module mkostemp:
  170. # Code from module mktime:
  171. # Code from module mktime-internal:
  172. # Code from module msvc-inval:
  173. # Code from module msvc-nothrow:
  174. # Code from module multiarch:
  175. # Code from module netdb:
  176. # Code from module netinet_in:
  177. # Code from module nl_langinfo:
  178. # Code from module nocrash:
  179. # Code from module nproc:
  180. # Code from module nstrftime:
  181. # Code from module open:
  182. # Code from module pathmax:
  183. # Code from module pipe-posix:
  184. # Code from module pipe2:
  185. # Code from module poll:
  186. # Code from module poll-h:
  187. # Code from module putenv:
  188. # Code from module raise:
  189. # Code from module rawmemchr:
  190. # Code from module read:
  191. # Code from module readlink:
  192. # Code from module realloc-posix:
  193. # Code from module recv:
  194. # Code from module recvfrom:
  195. # Code from module regex:
  196. # Code from module rename:
  197. # Code from module rmdir:
  198. # Code from module round:
  199. # Code from module safe-read:
  200. # Code from module safe-write:
  201. # Code from module same-inode:
  202. # Code from module scratch_buffer:
  203. # Code from module select:
  204. # Code from module send:
  205. # Code from module sendto:
  206. # Code from module servent:
  207. # Code from module setenv:
  208. # Code from module setlocale-null:
  209. # Code from module setsockopt:
  210. # Code from module shutdown:
  211. # Code from module signal-h:
  212. # Code from module signbit:
  213. # Code from module size_max:
  214. # Code from module snippet/_Noreturn:
  215. # Code from module snippet/arg-nonnull:
  216. # Code from module snippet/c++defs:
  217. # Code from module snippet/warn-on-use:
  218. # Code from module snprintf:
  219. # Code from module socket:
  220. # Code from module socketlib:
  221. # Code from module sockets:
  222. # Code from module socklen:
  223. # Code from module ssize_t:
  224. # Code from module stat:
  225. # Code from module stat-time:
  226. # Code from module std-gnu11:
  227. # Code from module stdalign:
  228. # Code from module stdbool:
  229. # Code from module stddef:
  230. # Code from module stdint:
  231. # Code from module stdio:
  232. # Code from module stdlib:
  233. # Code from module strdup-posix:
  234. # Code from module streq:
  235. # Code from module striconveh:
  236. # Code from module string:
  237. # Code from module sys_file:
  238. # Code from module sys_random:
  239. # Code from module sys_select:
  240. # Code from module sys_socket:
  241. # Code from module sys_stat:
  242. # Code from module sys_time:
  243. # Code from module sys_times:
  244. # Code from module sys_types:
  245. # Code from module sys_uio:
  246. # Code from module tempname:
  247. # Code from module time:
  248. # Code from module time_r:
  249. # Code from module time_rz:
  250. # Code from module timegm:
  251. # Code from module times:
  252. # Code from module trunc:
  253. # Code from module tzset:
  254. # Code from module unistd:
  255. # Code from module unsetenv:
  256. # Code from module useless-if-before-free:
  257. # Code from module vasnprintf:
  258. # Code from module vc-list-files:
  259. # Code from module verify:
  260. # Code from module vsnprintf:
  261. # Code from module warnings:
  262. # Code from module wchar:
  263. # Code from module wcrtomb:
  264. # Code from module wctype-h:
  265. # Code from module write:
  266. # Code from module xalloc-oversized:
  267. # Code from module xsize:
  268. ])
  269. # This macro should be invoked from ./configure.ac, in the section
  270. # "Check for header files, types and library functions".
  271. AC_DEFUN([gl_INIT],
  272. [
  273. AM_CONDITIONAL([GL_COND_LIBTOOL], [true])
  274. gl_cond_libtool=true
  275. gl_m4_base='m4'
  276. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  277. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  278. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  279. m4_pushdef([gl_LIBSOURCES_LIST], [])
  280. m4_pushdef([gl_LIBSOURCES_DIR], [])
  281. m4_pushdef([GL_MACRO_PREFIX], [gl])
  282. m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
  283. gl_COMMON
  284. gl_source_base='lib'
  285. AC_REQUIRE([gl_SYS_SOCKET_H])
  286. if test "$ac_cv_header_winsock2_h" = yes; then
  287. AC_LIBOBJ([accept])
  288. fi
  289. gl_SYS_SOCKET_MODULE_INDICATOR([accept])
  290. gl_FUNC_ACCEPT4
  291. gl_SYS_SOCKET_MODULE_INDICATOR([accept4])
  292. gl_FUNC_ALLOCA
  293. gl_ARPA_INET_H
  294. gl_ARPA_INET_H_REQUIRE_DEFAULTS
  295. AC_PROG_MKDIR_P
  296. AC_REQUIRE([gl_SYS_SOCKET_H])
  297. if test "$ac_cv_header_winsock2_h" = yes; then
  298. AC_LIBOBJ([bind])
  299. fi
  300. gl_SYS_SOCKET_MODULE_INDICATOR([bind])
  301. gl_BYTESWAP
  302. gl_CANONICALIZE_LGPL
  303. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  304. AC_LIBOBJ([canonicalize-lgpl])
  305. fi
  306. gl_MODULE_INDICATOR([canonicalize-lgpl])
  307. gl_STDLIB_MODULE_INDICATOR([canonicalize_file_name])
  308. gl_STDLIB_MODULE_INDICATOR([realpath])
  309. gl_FUNC_CEIL
  310. if test $REPLACE_CEIL = 1; then
  311. AC_LIBOBJ([ceil])
  312. fi
  313. gl_MATH_MODULE_INDICATOR([ceil])
  314. gl_CLOCK_TIME
  315. gl_FUNC_CLOSE
  316. if test $REPLACE_CLOSE = 1; then
  317. AC_LIBOBJ([close])
  318. fi
  319. gl_UNISTD_MODULE_INDICATOR([close])
  320. AC_REQUIRE([gl_SYS_SOCKET_H])
  321. if test "$ac_cv_header_winsock2_h" = yes; then
  322. AC_LIBOBJ([connect])
  323. fi
  324. gl_SYS_SOCKET_MODULE_INDICATOR([connect])
  325. gl_FUNC_COPYSIGN
  326. if test $HAVE_COPYSIGN = 0; then
  327. AC_LIBOBJ([copysign])
  328. fi
  329. gl_MATH_MODULE_INDICATOR([copysign])
  330. gl_DIRENT_H
  331. gl_DIRENT_H_REQUIRE_DEFAULTS
  332. gl_FUNC_DIRFD
  333. if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
  334. || test $REPLACE_DIRFD = 1; then
  335. AC_LIBOBJ([dirfd])
  336. gl_PREREQ_DIRFD
  337. fi
  338. gl_DIRENT_MODULE_INDICATOR([dirfd])
  339. gl_DOUBLE_SLASH_ROOT
  340. gl_FUNC_DUPLOCALE
  341. if test $REPLACE_DUPLOCALE = 1; then
  342. AC_LIBOBJ([duplocale])
  343. gl_PREREQ_DUPLOCALE
  344. fi
  345. gl_LOCALE_MODULE_INDICATOR([duplocale])
  346. gl_ENVIRON
  347. gl_UNISTD_MODULE_INDICATOR([environ])
  348. gl_HEADER_ERRNO_H
  349. AC_REQUIRE([gl_EXTERN_INLINE])
  350. gl_FCNTL_H
  351. gl_FCNTL_H_REQUIRE_DEFAULTS
  352. AC_C_FLEXIBLE_ARRAY_MEMBER
  353. gl_FLOAT_H
  354. if test $REPLACE_FLOAT_LDBL = 1; then
  355. AC_LIBOBJ([float])
  356. fi
  357. if test $REPLACE_ITOLD = 1; then
  358. AC_LIBOBJ([itold])
  359. fi
  360. gl_FUNC_FLOCK
  361. if test $HAVE_FLOCK = 0; then
  362. AC_LIBOBJ([flock])
  363. gl_PREREQ_FLOCK
  364. fi
  365. gl_SYS_FILE_MODULE_INDICATOR([flock])
  366. AC_REQUIRE([gl_FUNC_FLOOR])
  367. if test $REPLACE_FLOOR = 1; then
  368. AC_LIBOBJ([floor])
  369. fi
  370. gl_MATH_MODULE_INDICATOR([floor])
  371. gl_FUNC_FREE
  372. if test $REPLACE_FREE = 1; then
  373. AC_LIBOBJ([free])
  374. gl_PREREQ_FREE
  375. fi
  376. gl_STDLIB_MODULE_INDICATOR([free-posix])
  377. AC_REQUIRE([gl_FUNC_FREXP])
  378. if test $gl_func_frexp != yes; then
  379. AC_LIBOBJ([frexp])
  380. fi
  381. gl_MATH_MODULE_INDICATOR([frexp])
  382. gl_FUNC_FSTAT
  383. if test $REPLACE_FSTAT = 1; then
  384. AC_LIBOBJ([fstat])
  385. case "$host_os" in
  386. mingw*)
  387. AC_LIBOBJ([stat-w32])
  388. ;;
  389. esac
  390. gl_PREREQ_FSTAT
  391. fi
  392. gl_SYS_STAT_MODULE_INDICATOR([fstat])
  393. gl_FUNC_FSYNC
  394. if test $HAVE_FSYNC = 0; then
  395. AC_LIBOBJ([fsync])
  396. gl_PREREQ_FSYNC
  397. fi
  398. gl_UNISTD_MODULE_INDICATOR([fsync])
  399. gl_FUNC
  400. gl_GETADDRINFO
  401. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
  402. AC_LIBOBJ([getaddrinfo])
  403. fi
  404. if test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
  405. AC_LIBOBJ([gai_strerror])
  406. fi
  407. gl_NETDB_MODULE_INDICATOR([getaddrinfo])
  408. gl_FUNC_GETHOSTNAME
  409. if test $HAVE_GETHOSTNAME = 0; then
  410. AC_LIBOBJ([gethostname])
  411. gl_PREREQ_GETHOSTNAME
  412. fi
  413. gl_UNISTD_MODULE_INDICATOR([gethostname])
  414. gl_FUNC_GETLOGIN
  415. if test $HAVE_GETLOGIN = 0; then
  416. AC_LIBOBJ([getlogin])
  417. fi
  418. gl_UNISTD_MODULE_INDICATOR([getlogin])
  419. AC_REQUIRE([gl_LIB_GETLOGIN])
  420. AC_REQUIRE([gl_SYS_SOCKET_H])
  421. if test "$ac_cv_header_winsock2_h" = yes; then
  422. AC_LIBOBJ([getpeername])
  423. fi
  424. gl_SYS_SOCKET_MODULE_INDICATOR([getpeername])
  425. AC_REQUIRE([gl_SYS_SOCKET_H])
  426. if test "$ac_cv_header_winsock2_h" = yes; then
  427. AC_LIBOBJ([getsockname])
  428. fi
  429. gl_SYS_SOCKET_MODULE_INDICATOR([getsockname])
  430. AC_REQUIRE([gl_SYS_SOCKET_H])
  431. if test "$ac_cv_header_winsock2_h" = yes; then
  432. AC_LIBOBJ([getsockopt])
  433. fi
  434. gl_SYS_SOCKET_MODULE_INDICATOR([getsockopt])
  435. # Autoconf 2.61a.99 and earlier don't support linking a file only
  436. # in VPATH builds. But since GNUmakefile is for maintainer use
  437. # only, it does not matter if we skip the link with older autoconf.
  438. # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
  439. # builds, so use a shell variable to bypass this.
  440. GNUmakefile=GNUmakefile
  441. m4_if(m4_version_compare([2.61a.100],
  442. m4_defn([m4_PACKAGE_VERSION])), [1], [],
  443. [AC_CONFIG_LINKS([$GNUmakefile:$GNUmakefile], [],
  444. [GNUmakefile=$GNUmakefile])])
  445. AC_DEFUN([gl_HAVE_MODULE_HAVELIB])
  446. AM_ICONV
  447. m4_ifdef([gl_ICONV_MODULE_INDICATOR],
  448. [gl_ICONV_MODULE_INDICATOR([iconv])])
  449. gl_ICONV_H
  450. gl_ICONV_H_REQUIRE_DEFAULTS
  451. gl_FUNC_ICONV_OPEN
  452. if test $REPLACE_ICONV_OPEN = 1; then
  453. AC_LIBOBJ([iconv_open])
  454. fi
  455. if test $REPLACE_ICONV = 1; then
  456. AC_LIBOBJ([iconv])
  457. AC_LIBOBJ([iconv_close])
  458. fi
  459. gl_FUNC_ICONV_OPEN_UTF
  460. gl_FUNC_INET_NTOP
  461. if test $HAVE_INET_NTOP = 0 || test $REPLACE_INET_NTOP = 1; then
  462. AC_LIBOBJ([inet_ntop])
  463. gl_PREREQ_INET_NTOP
  464. fi
  465. gl_ARPA_INET_MODULE_INDICATOR([inet_ntop])
  466. gl_FUNC_INET_PTON
  467. if test $HAVE_INET_PTON = 0 || test $REPLACE_INET_PTON = 1; then
  468. AC_LIBOBJ([inet_pton])
  469. gl_PREREQ_INET_PTON
  470. fi
  471. gl_ARPA_INET_MODULE_INDICATOR([inet_pton])
  472. gl_INTTYPES_INCOMPLETE
  473. gl_INTTYPES_H_REQUIRE_DEFAULTS
  474. gl_ISFINITE
  475. if test $REPLACE_ISFINITE = 1; then
  476. AC_LIBOBJ([isfinite])
  477. fi
  478. gl_MATH_MODULE_INDICATOR([isfinite])
  479. gl_ISINF
  480. if test $REPLACE_ISINF = 1; then
  481. AC_LIBOBJ([isinf])
  482. fi
  483. gl_MATH_MODULE_INDICATOR([isinf])
  484. gl_ISNAN
  485. gl_MATH_MODULE_INDICATOR([isnan])
  486. gl_FUNC_ISNAND
  487. m4_ifdef([gl_ISNAN], [
  488. AC_REQUIRE([gl_ISNAN])
  489. ])
  490. if test $HAVE_ISNAND = 0 || test $REPLACE_ISNAN = 1; then
  491. AC_LIBOBJ([isnand])
  492. gl_PREREQ_ISNAND
  493. fi
  494. gl_MATH_MODULE_INDICATOR([isnand])
  495. gl_FUNC_ISNANF
  496. m4_ifdef([gl_ISNAN], [
  497. AC_REQUIRE([gl_ISNAN])
  498. ])
  499. if test $HAVE_ISNANF = 0 || test $REPLACE_ISNAN = 1; then
  500. AC_LIBOBJ([isnanf])
  501. gl_PREREQ_ISNANF
  502. fi
  503. gl_MATH_MODULE_INDICATOR([isnanf])
  504. gl_FUNC_ISNANL
  505. m4_ifdef([gl_ISNAN], [
  506. AC_REQUIRE([gl_ISNAN])
  507. ])
  508. if test $HAVE_ISNANL = 0 || test $REPLACE_ISNAN = 1; then
  509. AC_LIBOBJ([isnanl])
  510. gl_PREREQ_ISNANL
  511. fi
  512. gl_MATH_MODULE_INDICATOR([isnanl])
  513. gl_LANGINFO_H
  514. gl_LANGINFO_H_REQUIRE_DEFAULTS
  515. AC_REQUIRE([gl_LARGEFILE])
  516. gl_FUNC_LDEXP
  517. gl_LD_VERSION_SCRIPT
  518. gl_VISIBILITY
  519. gl_LIBUNISTRING
  520. gl_LIMITS_H
  521. gl_FUNC_LINK
  522. if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
  523. AC_LIBOBJ([link])
  524. fi
  525. gl_UNISTD_MODULE_INDICATOR([link])
  526. AC_REQUIRE([gl_SYS_SOCKET_H])
  527. if test "$ac_cv_header_winsock2_h" = yes; then
  528. AC_LIBOBJ([listen])
  529. fi
  530. gl_SYS_SOCKET_MODULE_INDICATOR([listen])
  531. gl_LOCALCHARSET
  532. dnl For backward compatibility. Some packages still use this.
  533. LOCALCHARSET_TESTS_ENVIRONMENT=
  534. AC_SUBST([LOCALCHARSET_TESTS_ENVIRONMENT])
  535. gl_LOCALE_H
  536. gl_LOCALE_H_REQUIRE_DEFAULTS
  537. gl_FUNC_LOG1P
  538. if test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1; then
  539. AC_LIBOBJ([log1p])
  540. fi
  541. gl_MATH_MODULE_INDICATOR([log1p])
  542. gl_FUNC_LSTAT
  543. if test $REPLACE_LSTAT = 1; then
  544. AC_LIBOBJ([lstat])
  545. gl_PREREQ_LSTAT
  546. fi
  547. gl_SYS_STAT_MODULE_INDICATOR([lstat])
  548. AC_CONFIG_COMMANDS_PRE([m4_ifdef([AH_HEADER],
  549. [AC_SUBST([CONFIG_INCLUDE], m4_defn([AH_HEADER]))])])
  550. AC_REQUIRE([AC_PROG_SED])
  551. AC_REQUIRE([AC_PROG_GREP])
  552. gl_FUNC_MALLOC_GNU
  553. if test $REPLACE_MALLOC = 1; then
  554. AC_LIBOBJ([malloc])
  555. fi
  556. AC_REQUIRE([gl_FUNC_MALLOC_POSIX])
  557. if test $REPLACE_MALLOC = 1; then
  558. AC_LIBOBJ([malloc])
  559. fi
  560. gl_STDLIB_MODULE_INDICATOR([malloc-posix])
  561. gl_MALLOCA
  562. gl_MATH_H
  563. gl_MATH_H_REQUIRE_DEFAULTS
  564. gl_MINMAX
  565. gl_FUNC_MKDIR
  566. if test $REPLACE_MKDIR = 1; then
  567. AC_LIBOBJ([mkdir])
  568. fi
  569. gl_SYS_STAT_MODULE_INDICATOR([mkdir])
  570. gl_FUNC_MKOSTEMP
  571. if test $HAVE_MKOSTEMP = 0; then
  572. AC_LIBOBJ([mkostemp])
  573. gl_PREREQ_MKOSTEMP
  574. fi
  575. gl_MODULE_INDICATOR([mkostemp])
  576. gl_STDLIB_MODULE_INDICATOR([mkostemp])
  577. AC_REQUIRE([gl_MSVC_INVAL])
  578. if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  579. AC_LIBOBJ([msvc-inval])
  580. fi
  581. AC_REQUIRE([gl_MSVC_NOTHROW])
  582. if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
  583. AC_LIBOBJ([msvc-nothrow])
  584. fi
  585. gl_MODULE_INDICATOR([msvc-nothrow])
  586. gl_MULTIARCH
  587. gl_NETDB_H
  588. gl_NETDB_H_REQUIRE_DEFAULTS
  589. gl_HEADER_NETINET_IN
  590. AC_PROG_MKDIR_P
  591. gl_FUNC_NL_LANGINFO
  592. if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
  593. AC_LIBOBJ([nl_langinfo])
  594. fi
  595. if test $REPLACE_NL_LANGINFO = 1 && test $NL_LANGINFO_MTSAFE = 0; then
  596. AC_LIBOBJ([nl_langinfo-lock])
  597. gl_PREREQ_NL_LANGINFO_LOCK
  598. fi
  599. gl_LANGINFO_MODULE_INDICATOR([nl_langinfo])
  600. gl_NPROC
  601. gl_FUNC_GNU_STRFTIME
  602. gl_FUNC_OPEN
  603. if test $REPLACE_OPEN = 1; then
  604. AC_LIBOBJ([open])
  605. gl_PREREQ_OPEN
  606. fi
  607. gl_FCNTL_MODULE_INDICATOR([open])
  608. gl_FUNC_PIPE
  609. if test $HAVE_PIPE = 0; then
  610. AC_LIBOBJ([pipe])
  611. fi
  612. gl_UNISTD_MODULE_INDICATOR([pipe])
  613. gl_FUNC_PIPE2
  614. gl_UNISTD_MODULE_INDICATOR([pipe2])
  615. gl_FUNC_POLL
  616. if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
  617. AC_LIBOBJ([poll])
  618. gl_PREREQ_POLL
  619. fi
  620. gl_POLL_MODULE_INDICATOR([poll])
  621. gl_POLL_H
  622. gl_POLL_H_REQUIRE_DEFAULTS
  623. gl_FUNC_PUTENV
  624. if test $REPLACE_PUTENV = 1; then
  625. AC_LIBOBJ([putenv])
  626. gl_PREREQ_PUTENV
  627. fi
  628. gl_STDLIB_MODULE_INDICATOR([putenv])
  629. gl_FUNC_READ
  630. if test $REPLACE_READ = 1; then
  631. AC_LIBOBJ([read])
  632. gl_PREREQ_READ
  633. fi
  634. gl_UNISTD_MODULE_INDICATOR([read])
  635. gl_FUNC_READLINK
  636. if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
  637. AC_LIBOBJ([readlink])
  638. gl_PREREQ_READLINK
  639. fi
  640. gl_UNISTD_MODULE_INDICATOR([readlink])
  641. AC_REQUIRE([gl_SYS_SOCKET_H])
  642. if test "$ac_cv_header_winsock2_h" = yes; then
  643. AC_LIBOBJ([recv])
  644. fi
  645. gl_SYS_SOCKET_MODULE_INDICATOR([recv])
  646. AC_REQUIRE([gl_SYS_SOCKET_H])
  647. if test "$ac_cv_header_winsock2_h" = yes; then
  648. AC_LIBOBJ([recvfrom])
  649. fi
  650. gl_SYS_SOCKET_MODULE_INDICATOR([recvfrom])
  651. gl_REGEX
  652. if test $ac_use_included_regex = yes; then
  653. AC_LIBOBJ([regex])
  654. gl_PREREQ_REGEX
  655. fi
  656. gl_FUNC_RENAME
  657. if test $REPLACE_RENAME = 1; then
  658. AC_LIBOBJ([rename])
  659. fi
  660. gl_STDIO_MODULE_INDICATOR([rename])
  661. gl_FUNC_RMDIR
  662. if test $REPLACE_RMDIR = 1; then
  663. AC_LIBOBJ([rmdir])
  664. fi
  665. gl_UNISTD_MODULE_INDICATOR([rmdir])
  666. gl_PREREQ_SAFE_READ
  667. gl_PREREQ_SAFE_WRITE
  668. gl_FUNC_SELECT
  669. if test $REPLACE_SELECT = 1; then
  670. AC_LIBOBJ([select])
  671. fi
  672. gl_SYS_SELECT_MODULE_INDICATOR([select])
  673. AC_REQUIRE([gl_SYS_SOCKET_H])
  674. if test "$ac_cv_header_winsock2_h" = yes; then
  675. AC_LIBOBJ([send])
  676. fi
  677. gl_SYS_SOCKET_MODULE_INDICATOR([send])
  678. AC_REQUIRE([gl_SYS_SOCKET_H])
  679. if test "$ac_cv_header_winsock2_h" = yes; then
  680. AC_LIBOBJ([sendto])
  681. fi
  682. gl_SYS_SOCKET_MODULE_INDICATOR([sendto])
  683. gl_FUNC_SETENV
  684. if test $HAVE_SETENV = 0 || test $REPLACE_SETENV = 1; then
  685. AC_LIBOBJ([setenv])
  686. fi
  687. gl_STDLIB_MODULE_INDICATOR([setenv])
  688. AC_REQUIRE([gl_SYS_SOCKET_H])
  689. if test "$ac_cv_header_winsock2_h" = yes; then
  690. AC_LIBOBJ([setsockopt])
  691. fi
  692. gl_SYS_SOCKET_MODULE_INDICATOR([setsockopt])
  693. AC_REQUIRE([gl_SYS_SOCKET_H])
  694. if test "$ac_cv_header_winsock2_h" = yes; then
  695. AC_LIBOBJ([shutdown])
  696. fi
  697. gl_SYS_SOCKET_MODULE_INDICATOR([shutdown])
  698. gl_SIGNAL_H
  699. gl_SIGNAL_H_REQUIRE_DEFAULTS
  700. AC_REQUIRE([gl_SYS_SOCKET_H])
  701. if test "$ac_cv_header_winsock2_h" = yes; then
  702. AC_LIBOBJ([socket])
  703. fi
  704. # When this module is used, sockets may actually occur as file descriptors,
  705. # hence it is worth warning if the modules 'close' and 'ioctl' are not used.
  706. m4_ifdef([gl_UNISTD_H_DEFAULTS], [gl_UNISTD_H_REQUIRE_DEFAULTS])
  707. m4_ifdef([gl_SYS_IOCTL_H_DEFAULTS], [gl_SYS_IOCTL_H_REQUIRE_DEFAULTS])
  708. AC_REQUIRE([gl_PREREQ_SYS_H_WINSOCK2])
  709. if test "$ac_cv_header_winsock2_h" = yes; then
  710. UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
  711. SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=1
  712. fi
  713. gl_SYS_SOCKET_MODULE_INDICATOR([socket])
  714. AC_REQUIRE([gl_SOCKETLIB])
  715. gl_TYPE_SOCKLEN_T
  716. gt_TYPE_SSIZE_T
  717. gl_STAT_TIME
  718. gl_STAT_BIRTHTIME
  719. gl_STDALIGN_H
  720. AM_STDBOOL_H
  721. gl_STDDEF_H
  722. gl_STDDEF_H_REQUIRE_DEFAULTS
  723. gl_STDINT_H
  724. gl_STDIO_H
  725. gl_STDIO_H_REQUIRE_DEFAULTS
  726. dnl No need to create extra modules for these functions. Everyone who uses
  727. dnl <stdio.h> likely needs them.
  728. gl_STDIO_MODULE_INDICATOR([fscanf])
  729. gl_MODULE_INDICATOR([fscanf])
  730. gl_STDIO_MODULE_INDICATOR([scanf])
  731. gl_MODULE_INDICATOR([scanf])
  732. gl_STDIO_MODULE_INDICATOR([fgetc])
  733. gl_STDIO_MODULE_INDICATOR([getc])
  734. gl_STDIO_MODULE_INDICATOR([getchar])
  735. gl_STDIO_MODULE_INDICATOR([fgets])
  736. gl_STDIO_MODULE_INDICATOR([fread])
  737. dnl No need to create extra modules for these functions. Everyone who uses
  738. dnl <stdio.h> likely needs them.
  739. gl_STDIO_MODULE_INDICATOR([fprintf])
  740. gl_STDIO_MODULE_INDICATOR([printf])
  741. gl_STDIO_MODULE_INDICATOR([vfprintf])
  742. gl_STDIO_MODULE_INDICATOR([vprintf])
  743. gl_STDIO_MODULE_INDICATOR([fputc])
  744. gl_STDIO_MODULE_INDICATOR([putc])
  745. gl_STDIO_MODULE_INDICATOR([putchar])
  746. gl_STDIO_MODULE_INDICATOR([fputs])
  747. gl_STDIO_MODULE_INDICATOR([puts])
  748. gl_STDIO_MODULE_INDICATOR([fwrite])
  749. gl_STDLIB_H
  750. gl_STDLIB_H_REQUIRE_DEFAULTS
  751. if test $gl_cond_libtool = false; then
  752. gl_ltlibdeps="$gl_ltlibdeps $LTLIBICONV"
  753. gl_libdeps="$gl_libdeps $LIBICONV"
  754. fi
  755. gl_STRING_H
  756. gl_STRING_H_REQUIRE_DEFAULTS
  757. gl_SYS_FILE_H
  758. gl_SYS_FILE_H_REQUIRE_DEFAULTS
  759. AC_PROG_MKDIR_P
  760. gl_SYS_SELECT_H
  761. gl_SYS_SELECT_H_REQUIRE_DEFAULTS
  762. AC_PROG_MKDIR_P
  763. gl_SYS_SOCKET_H
  764. gl_SYS_SOCKET_H_REQUIRE_DEFAULTS
  765. AC_PROG_MKDIR_P
  766. gl_SYS_STAT_H
  767. gl_SYS_STAT_H_REQUIRE_DEFAULTS
  768. AC_PROG_MKDIR_P
  769. gl_SYS_TIME_H
  770. gl_SYS_TIME_H_REQUIRE_DEFAULTS
  771. AC_PROG_MKDIR_P
  772. gl_SYS_TIMES_H
  773. gl_SYS_TIMES_H_REQUIRE_DEFAULTS
  774. AC_PROG_MKDIR_P
  775. gl_SYS_TYPES_H
  776. gl_SYS_TYPES_H_REQUIRE_DEFAULTS
  777. AC_PROG_MKDIR_P
  778. gl_SYS_UIO_H
  779. gl_SYS_UIO_H_REQUIRE_DEFAULTS
  780. AC_PROG_MKDIR_P
  781. gl_TIME_H
  782. gl_TIME_H_REQUIRE_DEFAULTS
  783. gl_TIME_RZ
  784. if test $HAVE_TIMEZONE_T = 0; then
  785. AC_LIBOBJ([time_rz])
  786. fi
  787. gl_TIME_MODULE_INDICATOR([time_rz])
  788. gl_FUNC_TIMES
  789. if test $HAVE_TIMES = 0; then
  790. AC_LIBOBJ([times])
  791. fi
  792. gl_SYS_TIMES_MODULE_INDICATOR([times])
  793. gl_FUNC_TRUNC
  794. if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then
  795. AC_LIBOBJ([trunc])
  796. fi
  797. gl_MATH_MODULE_INDICATOR([trunc])
  798. gl_UNISTD_H
  799. gl_UNISTD_H_REQUIRE_DEFAULTS
  800. gl_FUNC_VSNPRINTF
  801. gl_STDIO_MODULE_INDICATOR([vsnprintf])
  802. gl_WCHAR_H
  803. gl_WCHAR_H_REQUIRE_DEFAULTS
  804. gl_FUNC_WRITE
  805. if test $REPLACE_WRITE = 1; then
  806. AC_LIBOBJ([write])
  807. gl_PREREQ_WRITE
  808. fi
  809. gl_UNISTD_MODULE_INDICATOR([write])
  810. gl_gnulib_enabled_alloca=false
  811. gl_gnulib_enabled_assure=false
  812. gl_gnulib_enabled_btowc=false
  813. gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547=false
  814. gl_gnulib_enabled_chdir=false
  815. gl_gnulib_enabled_cloexec=false
  816. gl_gnulib_enabled_dup2=false
  817. gl_gnulib_enabled_dynarray=false
  818. gl_gnulib_enabled_925677f0343de64b89a9f0c790b4104c=false
  819. gl_gnulib_enabled_fcntl=false
  820. gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239=false
  821. gl_gnulib_enabled_getdtablesize=false
  822. gl_gnulib_enabled_getrandom=false
  823. gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=false
  824. gl_gnulib_enabled_30838f5439487421042f2225bed3af76=false
  825. gl_gnulib_enabled_hostent=false
  826. gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21=false
  827. gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66=false
  828. gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f=false
  829. gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467=false
  830. gl_gnulib_enabled_localeconv=false
  831. gl_gnulib_enabled_log=false
  832. gl_gnulib_enabled_mbrtowc=false
  833. gl_gnulib_enabled_mbsinit=false
  834. gl_gnulib_enabled_mbtowc=false
  835. gl_gnulib_enabled_memchr=false
  836. gl_gnulib_enabled_mempcpy=false
  837. gl_gnulib_enabled_mktime=false
  838. gl_gnulib_enabled_5264294aa0a5557541b53c8c741f7f31=false
  839. gl_gnulib_enabled_pathmax=false
  840. gl_gnulib_enabled_raise=false
  841. gl_gnulib_enabled_rawmemchr=false
  842. gl_gnulib_enabled_61bcaca76b3e6f9ae55d57a1c3193bc4=false
  843. gl_gnulib_enabled_round=false
  844. gl_gnulib_enabled_9bc5f216d57e231e4834049d67d0db62=false
  845. gl_gnulib_enabled_scratch_buffer=false
  846. gl_gnulib_enabled_servent=false
  847. gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd=false
  848. gl_gnulib_enabled_signbit=false
  849. gl_gnulib_enabled_size_max=false
  850. gl_gnulib_enabled_snprintf=false
  851. gl_gnulib_enabled_sockets=false
  852. gl_gnulib_enabled_stat=false
  853. gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0=false
  854. gl_gnulib_enabled_streq=false
  855. gl_gnulib_enabled_sys_random=false
  856. gl_gnulib_enabled_tempname=false
  857. gl_gnulib_enabled_time_r=false
  858. gl_gnulib_enabled_timegm=false
  859. gl_gnulib_enabled_tzset=false
  860. gl_gnulib_enabled_unsetenv=false
  861. gl_gnulib_enabled_vasnprintf=false
  862. gl_gnulib_enabled_wcrtomb=false
  863. gl_gnulib_enabled_3dcce957eadc896e63ab5f137947b410=false
  864. gl_gnulib_enabled_xsize=false
  865. func_gl_gnulib_m4code_alloca ()
  866. {
  867. if ! $gl_gnulib_enabled_alloca; then
  868. changequote(,)dnl
  869. LTALLOCA=`echo "$ALLOCA" | sed -e 's/\.[^.]* /.lo /g;s/\.[^.]*$/.lo/'`
  870. changequote([, ])dnl
  871. AC_SUBST([LTALLOCA])
  872. gl_gnulib_enabled_alloca=true
  873. fi
  874. }
  875. func_gl_gnulib_m4code_assure ()
  876. {
  877. if ! $gl_gnulib_enabled_assure; then
  878. gl_gnulib_enabled_assure=true
  879. fi
  880. }
  881. func_gl_gnulib_m4code_btowc ()
  882. {
  883. if ! $gl_gnulib_enabled_btowc; then
  884. gl_FUNC_BTOWC
  885. if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
  886. AC_LIBOBJ([btowc])
  887. gl_PREREQ_BTOWC
  888. fi
  889. gl_WCHAR_MODULE_INDICATOR([btowc])
  890. gl_gnulib_enabled_btowc=true
  891. if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
  892. func_gl_gnulib_m4code_mbtowc
  893. fi
  894. fi
  895. }
  896. func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547 ()
  897. {
  898. if ! $gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547; then
  899. gl___BUILTIN_EXPECT
  900. gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547=true
  901. fi
  902. }
  903. func_gl_gnulib_m4code_chdir ()
  904. {
  905. if ! $gl_gnulib_enabled_chdir; then
  906. gl_UNISTD_MODULE_INDICATOR([chdir])
  907. gl_gnulib_enabled_chdir=true
  908. fi
  909. }
  910. func_gl_gnulib_m4code_cloexec ()
  911. {
  912. if ! $gl_gnulib_enabled_cloexec; then
  913. gl_MODULE_INDICATOR_FOR_TESTS([cloexec])
  914. gl_gnulib_enabled_cloexec=true
  915. func_gl_gnulib_m4code_dup2
  916. func_gl_gnulib_m4code_fcntl
  917. fi
  918. }
  919. func_gl_gnulib_m4code_dup2 ()
  920. {
  921. if ! $gl_gnulib_enabled_dup2; then
  922. gl_FUNC_DUP2
  923. if test $REPLACE_DUP2 = 1; then
  924. AC_LIBOBJ([dup2])
  925. gl_PREREQ_DUP2
  926. fi
  927. gl_UNISTD_MODULE_INDICATOR([dup2])
  928. gl_gnulib_enabled_dup2=true
  929. fi
  930. }
  931. func_gl_gnulib_m4code_dynarray ()
  932. {
  933. if ! $gl_gnulib_enabled_dynarray; then
  934. AC_PROG_MKDIR_P
  935. gl_gnulib_enabled_dynarray=true
  936. func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547
  937. func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467
  938. fi
  939. }
  940. func_gl_gnulib_m4code_925677f0343de64b89a9f0c790b4104c ()
  941. {
  942. if ! $gl_gnulib_enabled_925677f0343de64b89a9f0c790b4104c; then
  943. gl_gnulib_enabled_925677f0343de64b89a9f0c790b4104c=true
  944. fi
  945. }
  946. func_gl_gnulib_m4code_fcntl ()
  947. {
  948. if ! $gl_gnulib_enabled_fcntl; then
  949. gl_FUNC_FCNTL
  950. if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
  951. AC_LIBOBJ([fcntl])
  952. fi
  953. gl_FCNTL_MODULE_INDICATOR([fcntl])
  954. gl_gnulib_enabled_fcntl=true
  955. if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
  956. func_gl_gnulib_m4code_dup2
  957. fi
  958. if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
  959. func_gl_gnulib_m4code_getdtablesize
  960. fi
  961. fi
  962. }
  963. func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239 ()
  964. {
  965. if ! $gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239; then
  966. gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239=true
  967. fi
  968. }
  969. func_gl_gnulib_m4code_getdtablesize ()
  970. {
  971. if ! $gl_gnulib_enabled_getdtablesize; then
  972. gl_FUNC_GETDTABLESIZE
  973. if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
  974. AC_LIBOBJ([getdtablesize])
  975. gl_PREREQ_GETDTABLESIZE
  976. fi
  977. gl_UNISTD_MODULE_INDICATOR([getdtablesize])
  978. gl_gnulib_enabled_getdtablesize=true
  979. fi
  980. }
  981. func_gl_gnulib_m4code_getrandom ()
  982. {
  983. if ! $gl_gnulib_enabled_getrandom; then
  984. AC_REQUIRE([AC_CANONICAL_HOST])
  985. gl_FUNC_GETRANDOM
  986. if test $HAVE_GETRANDOM = 0 || test $REPLACE_GETRANDOM = 1; then
  987. AC_LIBOBJ([getrandom])
  988. fi
  989. gl_SYS_RANDOM_MODULE_INDICATOR([getrandom])
  990. gl_gnulib_enabled_getrandom=true
  991. func_gl_gnulib_m4code_sys_random
  992. fi
  993. }
  994. func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36 ()
  995. {
  996. if ! $gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36; then
  997. AC_SUBST([LIBINTL])
  998. AC_SUBST([LTLIBINTL])
  999. gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36=true
  1000. fi
  1001. }
  1002. func_gl_gnulib_m4code_30838f5439487421042f2225bed3af76 ()
  1003. {
  1004. if ! $gl_gnulib_enabled_30838f5439487421042f2225bed3af76; then
  1005. AC_REQUIRE([gl_FUNC_SETLOCALE_NULL])
  1006. LIB_HARD_LOCALE="$LIB_SETLOCALE_NULL"
  1007. AC_SUBST([LIB_HARD_LOCALE])
  1008. gl_gnulib_enabled_30838f5439487421042f2225bed3af76=true
  1009. func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd
  1010. fi
  1011. }
  1012. func_gl_gnulib_m4code_hostent ()
  1013. {
  1014. if ! $gl_gnulib_enabled_hostent; then
  1015. gl_HOSTENT
  1016. gl_gnulib_enabled_hostent=true
  1017. fi
  1018. }
  1019. func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21 ()
  1020. {
  1021. if ! $gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21; then
  1022. gl_FUNC_ISNAND_NO_LIBM
  1023. if test $gl_func_isnand_no_libm != yes; then
  1024. AC_LIBOBJ([isnand])
  1025. gl_PREREQ_ISNAND
  1026. fi
  1027. gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21=true
  1028. fi
  1029. }
  1030. func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66 ()
  1031. {
  1032. if ! $gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66; then
  1033. gl_FUNC_ISNANF_NO_LIBM
  1034. if test $gl_func_isnanf_no_libm != yes; then
  1035. AC_LIBOBJ([isnanf])
  1036. gl_PREREQ_ISNANF
  1037. fi
  1038. gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66=true
  1039. fi
  1040. }
  1041. func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f ()
  1042. {
  1043. if ! $gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f; then
  1044. gl_FUNC_ISNANL_NO_LIBM
  1045. if test $gl_func_isnanl_no_libm != yes; then
  1046. AC_LIBOBJ([isnanl])
  1047. gl_PREREQ_ISNANL
  1048. fi
  1049. gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f=true
  1050. fi
  1051. }
  1052. func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467 ()
  1053. {
  1054. if ! $gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467; then
  1055. gl___INLINE
  1056. gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467=true
  1057. fi
  1058. }
  1059. func_gl_gnulib_m4code_localeconv ()
  1060. {
  1061. if ! $gl_gnulib_enabled_localeconv; then
  1062. gl_FUNC_LOCALECONV
  1063. if test $REPLACE_LOCALECONV = 1; then
  1064. AC_LIBOBJ([localeconv])
  1065. gl_PREREQ_LOCALECONV
  1066. fi
  1067. gl_LOCALE_MODULE_INDICATOR([localeconv])
  1068. gl_gnulib_enabled_localeconv=true
  1069. fi
  1070. }
  1071. func_gl_gnulib_m4code_log ()
  1072. {
  1073. if ! $gl_gnulib_enabled_log; then
  1074. AC_REQUIRE([gl_FUNC_LOG])
  1075. if test $REPLACE_LOG = 1; then
  1076. AC_LIBOBJ([log])
  1077. fi
  1078. gl_MATH_MODULE_INDICATOR([log])
  1079. gl_gnulib_enabled_log=true
  1080. fi
  1081. }
  1082. func_gl_gnulib_m4code_mbrtowc ()
  1083. {
  1084. if ! $gl_gnulib_enabled_mbrtowc; then
  1085. gl_FUNC_MBRTOWC
  1086. if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
  1087. AC_LIBOBJ([mbrtowc])
  1088. if test $REPLACE_MBSTATE_T = 1; then
  1089. AC_LIBOBJ([lc-charset-dispatch])
  1090. AC_LIBOBJ([mbtowc-lock])
  1091. gl_PREREQ_MBTOWC_LOCK
  1092. fi
  1093. gl_PREREQ_MBRTOWC
  1094. fi
  1095. gl_WCHAR_MODULE_INDICATOR([mbrtowc])
  1096. gl_gnulib_enabled_mbrtowc=true
  1097. if { test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; } && test $REPLACE_MBSTATE_T = 0; then
  1098. func_gl_gnulib_m4code_30838f5439487421042f2225bed3af76
  1099. fi
  1100. if { test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; } && test $REPLACE_MBSTATE_T = 0; then
  1101. func_gl_gnulib_m4code_mbsinit
  1102. fi
  1103. if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
  1104. func_gl_gnulib_m4code_streq
  1105. fi
  1106. fi
  1107. }
  1108. func_gl_gnulib_m4code_mbsinit ()
  1109. {
  1110. if ! $gl_gnulib_enabled_mbsinit; then
  1111. gl_FUNC_MBSINIT
  1112. if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
  1113. AC_LIBOBJ([mbsinit])
  1114. gl_PREREQ_MBSINIT
  1115. fi
  1116. gl_WCHAR_MODULE_INDICATOR([mbsinit])
  1117. gl_gnulib_enabled_mbsinit=true
  1118. if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
  1119. func_gl_gnulib_m4code_mbrtowc
  1120. fi
  1121. fi
  1122. }
  1123. func_gl_gnulib_m4code_mbtowc ()
  1124. {
  1125. if ! $gl_gnulib_enabled_mbtowc; then
  1126. gl_FUNC_MBTOWC
  1127. if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
  1128. AC_LIBOBJ([mbtowc])
  1129. gl_PREREQ_MBTOWC
  1130. fi
  1131. gl_STDLIB_MODULE_INDICATOR([mbtowc])
  1132. gl_gnulib_enabled_mbtowc=true
  1133. if test $HAVE_MBTOWC = 0 || test $REPLACE_MBTOWC = 1; then
  1134. func_gl_gnulib_m4code_mbrtowc
  1135. fi
  1136. fi
  1137. }
  1138. func_gl_gnulib_m4code_memchr ()
  1139. {
  1140. if ! $gl_gnulib_enabled_memchr; then
  1141. gl_FUNC_MEMCHR
  1142. if test $REPLACE_MEMCHR = 1; then
  1143. AC_LIBOBJ([memchr])
  1144. gl_PREREQ_MEMCHR
  1145. fi
  1146. gl_STRING_MODULE_INDICATOR([memchr])
  1147. gl_gnulib_enabled_memchr=true
  1148. fi
  1149. }
  1150. func_gl_gnulib_m4code_mempcpy ()
  1151. {
  1152. if ! $gl_gnulib_enabled_mempcpy; then
  1153. gl_FUNC_MEMPCPY
  1154. if test $HAVE_MEMPCPY = 0; then
  1155. AC_LIBOBJ([mempcpy])
  1156. gl_PREREQ_MEMPCPY
  1157. fi
  1158. gl_STRING_MODULE_INDICATOR([mempcpy])
  1159. gl_gnulib_enabled_mempcpy=true
  1160. fi
  1161. }
  1162. func_gl_gnulib_m4code_mktime ()
  1163. {
  1164. if ! $gl_gnulib_enabled_mktime; then
  1165. gl_FUNC_MKTIME
  1166. if test $REPLACE_MKTIME = 1; then
  1167. AC_LIBOBJ([mktime])
  1168. gl_PREREQ_MKTIME
  1169. fi
  1170. gl_TIME_MODULE_INDICATOR([mktime])
  1171. gl_gnulib_enabled_mktime=true
  1172. if test $REPLACE_MKTIME = 1; then
  1173. func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467
  1174. fi
  1175. if test $REPLACE_MKTIME = 1; then
  1176. func_gl_gnulib_m4code_time_r
  1177. fi
  1178. fi
  1179. }
  1180. func_gl_gnulib_m4code_5264294aa0a5557541b53c8c741f7f31 ()
  1181. {
  1182. if ! $gl_gnulib_enabled_5264294aa0a5557541b53c8c741f7f31; then
  1183. gl_FUNC_MKTIME_INTERNAL
  1184. if test $WANT_MKTIME_INTERNAL = 1; then
  1185. AC_LIBOBJ([mktime])
  1186. gl_PREREQ_MKTIME
  1187. fi
  1188. gl_gnulib_enabled_5264294aa0a5557541b53c8c741f7f31=true
  1189. func_gl_gnulib_m4code_mktime
  1190. fi
  1191. }
  1192. func_gl_gnulib_m4code_pathmax ()
  1193. {
  1194. if ! $gl_gnulib_enabled_pathmax; then
  1195. gl_PATHMAX
  1196. gl_gnulib_enabled_pathmax=true
  1197. fi
  1198. }
  1199. func_gl_gnulib_m4code_raise ()
  1200. {
  1201. if ! $gl_gnulib_enabled_raise; then
  1202. gl_FUNC_RAISE
  1203. if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
  1204. AC_LIBOBJ([raise])
  1205. gl_PREREQ_RAISE
  1206. fi
  1207. gl_SIGNAL_MODULE_INDICATOR([raise])
  1208. gl_gnulib_enabled_raise=true
  1209. fi
  1210. }
  1211. func_gl_gnulib_m4code_rawmemchr ()
  1212. {
  1213. if ! $gl_gnulib_enabled_rawmemchr; then
  1214. gl_FUNC_RAWMEMCHR
  1215. if test $HAVE_RAWMEMCHR = 0; then
  1216. AC_LIBOBJ([rawmemchr])
  1217. gl_PREREQ_RAWMEMCHR
  1218. fi
  1219. gl_STRING_MODULE_INDICATOR([rawmemchr])
  1220. gl_gnulib_enabled_rawmemchr=true
  1221. fi
  1222. }
  1223. func_gl_gnulib_m4code_61bcaca76b3e6f9ae55d57a1c3193bc4 ()
  1224. {
  1225. if ! $gl_gnulib_enabled_61bcaca76b3e6f9ae55d57a1c3193bc4; then
  1226. gl_FUNC_REALLOC_POSIX
  1227. if test $REPLACE_REALLOC = 1; then
  1228. AC_LIBOBJ([realloc])
  1229. fi
  1230. gl_STDLIB_MODULE_INDICATOR([realloc-posix])
  1231. gl_gnulib_enabled_61bcaca76b3e6f9ae55d57a1c3193bc4=true
  1232. fi
  1233. }
  1234. func_gl_gnulib_m4code_round ()
  1235. {
  1236. if ! $gl_gnulib_enabled_round; then
  1237. gl_FUNC_ROUND
  1238. if test $HAVE_ROUND = 0 || test $REPLACE_ROUND = 1; then
  1239. AC_LIBOBJ([round])
  1240. fi
  1241. gl_MATH_MODULE_INDICATOR([round])
  1242. gl_gnulib_enabled_round=true
  1243. fi
  1244. }
  1245. func_gl_gnulib_m4code_9bc5f216d57e231e4834049d67d0db62 ()
  1246. {
  1247. if ! $gl_gnulib_enabled_9bc5f216d57e231e4834049d67d0db62; then
  1248. gl_gnulib_enabled_9bc5f216d57e231e4834049d67d0db62=true
  1249. fi
  1250. }
  1251. func_gl_gnulib_m4code_scratch_buffer ()
  1252. {
  1253. if ! $gl_gnulib_enabled_scratch_buffer; then
  1254. AC_PROG_MKDIR_P
  1255. gl_gnulib_enabled_scratch_buffer=true
  1256. func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547
  1257. func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467
  1258. func_gl_gnulib_m4code_61bcaca76b3e6f9ae55d57a1c3193bc4
  1259. fi
  1260. }
  1261. func_gl_gnulib_m4code_servent ()
  1262. {
  1263. if ! $gl_gnulib_enabled_servent; then
  1264. gl_SERVENT
  1265. gl_gnulib_enabled_servent=true
  1266. fi
  1267. }
  1268. func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd ()
  1269. {
  1270. if ! $gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd; then
  1271. gl_FUNC_SETLOCALE_NULL
  1272. if test $SETLOCALE_NULL_ALL_MTSAFE = 0 || test $SETLOCALE_NULL_ONE_MTSAFE = 0; then
  1273. AC_LIBOBJ([setlocale-lock])
  1274. gl_PREREQ_SETLOCALE_LOCK
  1275. fi
  1276. gl_LOCALE_MODULE_INDICATOR([setlocale_null])
  1277. gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd=true
  1278. fi
  1279. }
  1280. func_gl_gnulib_m4code_signbit ()
  1281. {
  1282. if ! $gl_gnulib_enabled_signbit; then
  1283. gl_SIGNBIT
  1284. if test $REPLACE_SIGNBIT = 1; then
  1285. AC_LIBOBJ([signbitf])
  1286. AC_LIBOBJ([signbitd])
  1287. AC_LIBOBJ([signbitl])
  1288. fi
  1289. gl_MATH_MODULE_INDICATOR([signbit])
  1290. gl_gnulib_enabled_signbit=true
  1291. if test $REPLACE_SIGNBIT = 1; then
  1292. func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21
  1293. fi
  1294. if test $REPLACE_SIGNBIT = 1; then
  1295. func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66
  1296. fi
  1297. if test $REPLACE_SIGNBIT = 1; then
  1298. func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f
  1299. fi
  1300. fi
  1301. }
  1302. func_gl_gnulib_m4code_size_max ()
  1303. {
  1304. if ! $gl_gnulib_enabled_size_max; then
  1305. gl_SIZE_MAX
  1306. gl_gnulib_enabled_size_max=true
  1307. fi
  1308. }
  1309. func_gl_gnulib_m4code_snprintf ()
  1310. {
  1311. if ! $gl_gnulib_enabled_snprintf; then
  1312. gl_FUNC_SNPRINTF
  1313. gl_STDIO_MODULE_INDICATOR([snprintf])
  1314. gl_MODULE_INDICATOR([snprintf])
  1315. gl_gnulib_enabled_snprintf=true
  1316. if test $ac_cv_func_snprintf = no || test $REPLACE_SNPRINTF = 1; then
  1317. func_gl_gnulib_m4code_vasnprintf
  1318. fi
  1319. fi
  1320. }
  1321. func_gl_gnulib_m4code_sockets ()
  1322. {
  1323. if ! $gl_gnulib_enabled_sockets; then
  1324. AC_REQUIRE([gl_SOCKETS])
  1325. gl_gnulib_enabled_sockets=true
  1326. func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239
  1327. fi
  1328. }
  1329. func_gl_gnulib_m4code_stat ()
  1330. {
  1331. if ! $gl_gnulib_enabled_stat; then
  1332. gl_FUNC_STAT
  1333. if test $REPLACE_STAT = 1; then
  1334. AC_LIBOBJ([stat])
  1335. case "$host_os" in
  1336. mingw*)
  1337. AC_LIBOBJ([stat-w32])
  1338. ;;
  1339. esac
  1340. gl_PREREQ_STAT
  1341. fi
  1342. gl_SYS_STAT_MODULE_INDICATOR([stat])
  1343. gl_gnulib_enabled_stat=true
  1344. if test $REPLACE_STAT = 1; then
  1345. func_gl_gnulib_m4code_pathmax
  1346. fi
  1347. fi
  1348. }
  1349. func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0 ()
  1350. {
  1351. if ! $gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0; then
  1352. gl_FUNC_STRDUP_POSIX
  1353. if test $REPLACE_STRDUP = 1; then
  1354. AC_LIBOBJ([strdup])
  1355. gl_PREREQ_STRDUP
  1356. fi
  1357. gl_STRING_MODULE_INDICATOR([strdup])
  1358. gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0=true
  1359. fi
  1360. }
  1361. func_gl_gnulib_m4code_streq ()
  1362. {
  1363. if ! $gl_gnulib_enabled_streq; then
  1364. gl_gnulib_enabled_streq=true
  1365. fi
  1366. }
  1367. func_gl_gnulib_m4code_sys_random ()
  1368. {
  1369. if ! $gl_gnulib_enabled_sys_random; then
  1370. gl_SYS_RANDOM_H
  1371. gl_SYS_RANDOM_H_REQUIRE_DEFAULTS
  1372. AC_PROG_MKDIR_P
  1373. gl_gnulib_enabled_sys_random=true
  1374. fi
  1375. }
  1376. func_gl_gnulib_m4code_tempname ()
  1377. {
  1378. if ! $gl_gnulib_enabled_tempname; then
  1379. gl_FUNC_GEN_TEMPNAME
  1380. gl_MODULE_INDICATOR([tempname])
  1381. gl_gnulib_enabled_tempname=true
  1382. func_gl_gnulib_m4code_getrandom
  1383. func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467
  1384. fi
  1385. }
  1386. func_gl_gnulib_m4code_time_r ()
  1387. {
  1388. if ! $gl_gnulib_enabled_time_r; then
  1389. gl_TIME_R
  1390. if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
  1391. AC_LIBOBJ([time_r])
  1392. gl_PREREQ_TIME_R
  1393. fi
  1394. gl_TIME_MODULE_INDICATOR([time_r])
  1395. gl_gnulib_enabled_time_r=true
  1396. fi
  1397. }
  1398. func_gl_gnulib_m4code_timegm ()
  1399. {
  1400. if ! $gl_gnulib_enabled_timegm; then
  1401. gl_FUNC_TIMEGM
  1402. if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
  1403. AC_LIBOBJ([timegm])
  1404. gl_PREREQ_TIMEGM
  1405. fi
  1406. gl_TIME_MODULE_INDICATOR([timegm])
  1407. gl_gnulib_enabled_timegm=true
  1408. if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
  1409. func_gl_gnulib_m4code_5264294aa0a5557541b53c8c741f7f31
  1410. fi
  1411. if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
  1412. func_gl_gnulib_m4code_time_r
  1413. fi
  1414. fi
  1415. }
  1416. func_gl_gnulib_m4code_tzset ()
  1417. {
  1418. if ! $gl_gnulib_enabled_tzset; then
  1419. gl_FUNC_TZSET
  1420. if test $REPLACE_TZSET = 1; then
  1421. AC_LIBOBJ([tzset])
  1422. fi
  1423. gl_TIME_MODULE_INDICATOR([tzset])
  1424. gl_gnulib_enabled_tzset=true
  1425. fi
  1426. }
  1427. func_gl_gnulib_m4code_unsetenv ()
  1428. {
  1429. if ! $gl_gnulib_enabled_unsetenv; then
  1430. gl_FUNC_UNSETENV
  1431. if test $HAVE_UNSETENV = 0 || test $REPLACE_UNSETENV = 1; then
  1432. AC_LIBOBJ([unsetenv])
  1433. gl_PREREQ_UNSETENV
  1434. fi
  1435. gl_STDLIB_MODULE_INDICATOR([unsetenv])
  1436. gl_gnulib_enabled_unsetenv=true
  1437. fi
  1438. }
  1439. func_gl_gnulib_m4code_vasnprintf ()
  1440. {
  1441. if ! $gl_gnulib_enabled_vasnprintf; then
  1442. AC_REQUIRE([AC_C_RESTRICT])
  1443. gl_FUNC_VASNPRINTF
  1444. gl_gnulib_enabled_vasnprintf=true
  1445. func_gl_gnulib_m4code_memchr
  1446. func_gl_gnulib_m4code_xsize
  1447. fi
  1448. }
  1449. func_gl_gnulib_m4code_wcrtomb ()
  1450. {
  1451. if ! $gl_gnulib_enabled_wcrtomb; then
  1452. gl_FUNC_WCRTOMB
  1453. if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
  1454. AC_LIBOBJ([wcrtomb])
  1455. gl_PREREQ_WCRTOMB
  1456. fi
  1457. gl_WCHAR_MODULE_INDICATOR([wcrtomb])
  1458. gl_gnulib_enabled_wcrtomb=true
  1459. if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
  1460. func_gl_gnulib_m4code_mbsinit
  1461. fi
  1462. fi
  1463. }
  1464. func_gl_gnulib_m4code_3dcce957eadc896e63ab5f137947b410 ()
  1465. {
  1466. if ! $gl_gnulib_enabled_3dcce957eadc896e63ab5f137947b410; then
  1467. gl_WCTYPE_H
  1468. gl_WCTYPE_H_REQUIRE_DEFAULTS
  1469. gl_gnulib_enabled_3dcce957eadc896e63ab5f137947b410=true
  1470. fi
  1471. }
  1472. func_gl_gnulib_m4code_xsize ()
  1473. {
  1474. if ! $gl_gnulib_enabled_xsize; then
  1475. gl_XSIZE
  1476. gl_gnulib_enabled_xsize=true
  1477. func_gl_gnulib_m4code_size_max
  1478. fi
  1479. }
  1480. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1481. func_gl_gnulib_m4code_925677f0343de64b89a9f0c790b4104c
  1482. fi
  1483. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1484. func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467
  1485. fi
  1486. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1487. func_gl_gnulib_m4code_mempcpy
  1488. fi
  1489. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1490. func_gl_gnulib_m4code_pathmax
  1491. fi
  1492. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1493. func_gl_gnulib_m4code_rawmemchr
  1494. fi
  1495. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1496. func_gl_gnulib_m4code_scratch_buffer
  1497. fi
  1498. if test $HAVE_CANONICALIZE_FILE_NAME = 0 || test $REPLACE_CANONICALIZE_FILE_NAME = 1; then
  1499. func_gl_gnulib_m4code_stat
  1500. fi
  1501. if test $REPLACE_CLOSE = 1; then
  1502. func_gl_gnulib_m4code_43fe87a341d9b4b93c47c3ad819a5239
  1503. fi
  1504. if test $HAVE_COPYSIGN = 0; then
  1505. func_gl_gnulib_m4code_signbit
  1506. fi
  1507. if test $REPLACE_DUPLOCALE = 1; then
  1508. func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd
  1509. fi
  1510. if test $gl_func_frexp != yes; then
  1511. func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21
  1512. fi
  1513. if test $REPLACE_FSTAT = 1; then
  1514. func_gl_gnulib_m4code_pathmax
  1515. fi
  1516. if test $REPLACE_FSTAT = 1; then
  1517. func_gl_gnulib_m4code_stat
  1518. fi
  1519. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1 || test $HAVE_DECL_GAI_STRERROR = 0 || test $REPLACE_GAI_STRERROR = 1; then
  1520. func_gl_gnulib_m4code_be453cec5eecf5731a274f2de7f2db36
  1521. fi
  1522. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
  1523. func_gl_gnulib_m4code_hostent
  1524. fi
  1525. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
  1526. func_gl_gnulib_m4code_servent
  1527. fi
  1528. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
  1529. func_gl_gnulib_m4code_snprintf
  1530. fi
  1531. if test $HAVE_GETADDRINFO = 0 || test $REPLACE_GETADDRINFO = 1; then
  1532. func_gl_gnulib_m4code_sockets
  1533. fi
  1534. if test $HAVE_GETHOSTNAME = 0; then
  1535. func_gl_gnulib_m4code_sockets
  1536. fi
  1537. if test $REPLACE_ISFINITE = 1; then
  1538. func_gl_gnulib_m4code_b1df7117b479d2da59d76deba468ee21
  1539. fi
  1540. if test $REPLACE_ISFINITE = 1; then
  1541. func_gl_gnulib_m4code_3f0e593033d1fc2c127581960f641b66
  1542. fi
  1543. if test $REPLACE_ISFINITE = 1; then
  1544. func_gl_gnulib_m4code_dbdf22868a5367f28bf18e0013ac6f8f
  1545. fi
  1546. if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
  1547. func_gl_gnulib_m4code_stat
  1548. fi
  1549. if test $HAVE_LINK = 0 || test $REPLACE_LINK = 1; then
  1550. func_gl_gnulib_m4code_f9850631dca91859e9cddac9359921c0
  1551. fi
  1552. if test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1; then
  1553. func_gl_gnulib_m4code_log
  1554. fi
  1555. if test $HAVE_LOG1P = 0 || test $REPLACE_LOG1P = 1; then
  1556. func_gl_gnulib_m4code_round
  1557. fi
  1558. if test $REPLACE_LSTAT = 1; then
  1559. func_gl_gnulib_m4code_stat
  1560. fi
  1561. if test $REPLACE_MKDIR = 1; then
  1562. func_gl_gnulib_m4code_stat
  1563. fi
  1564. if test $HAVE_MKOSTEMP = 0; then
  1565. func_gl_gnulib_m4code_tempname
  1566. fi
  1567. if test $HAVE_NL_LANGINFO = 0 || test $REPLACE_NL_LANGINFO = 1; then
  1568. func_gl_gnulib_m4code_localeconv
  1569. fi
  1570. if test $HAVE_NL_LANGINFO = 0 || test $HAVE_LANGINFO_CODESET = 0; then
  1571. func_gl_gnulib_m4code_e7e881d32ca02f1c997b13c737c64bbd
  1572. fi
  1573. if test $REPLACE_OPEN = 1; then
  1574. func_gl_gnulib_m4code_cloexec
  1575. fi
  1576. if test $REPLACE_OPEN = 1; then
  1577. func_gl_gnulib_m4code_stat
  1578. fi
  1579. if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
  1580. func_gl_gnulib_m4code_alloca
  1581. fi
  1582. if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
  1583. func_gl_gnulib_m4code_assure
  1584. fi
  1585. if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
  1586. func_gl_gnulib_m4code_sockets
  1587. fi
  1588. if test $HAVE_READLINK = 0 || test $REPLACE_READLINK = 1; then
  1589. func_gl_gnulib_m4code_stat
  1590. fi
  1591. if test $ac_use_included_regex = yes; then
  1592. func_gl_gnulib_m4code_btowc
  1593. fi
  1594. if test $ac_use_included_regex = yes; then
  1595. func_gl_gnulib_m4code_37f71b604aa9c54446783d80f42fe547
  1596. fi
  1597. if test $ac_use_included_regex = yes; then
  1598. func_gl_gnulib_m4code_dynarray
  1599. fi
  1600. if test $ac_use_included_regex = yes; then
  1601. func_gl_gnulib_m4code_21ee726a3540c09237a8e70c0baf7467
  1602. fi
  1603. if test $ac_use_included_regex = yes; then
  1604. func_gl_gnulib_m4code_mbrtowc
  1605. fi
  1606. if test $ac_use_included_regex = yes; then
  1607. func_gl_gnulib_m4code_mbsinit
  1608. fi
  1609. if test $ac_use_included_regex = yes; then
  1610. func_gl_gnulib_m4code_wcrtomb
  1611. fi
  1612. if test $ac_use_included_regex = yes; then
  1613. func_gl_gnulib_m4code_3dcce957eadc896e63ab5f137947b410
  1614. fi
  1615. if test $REPLACE_RENAME = 1; then
  1616. func_gl_gnulib_m4code_chdir
  1617. fi
  1618. if test $REPLACE_RENAME = 1; then
  1619. func_gl_gnulib_m4code_9bc5f216d57e231e4834049d67d0db62
  1620. fi
  1621. if test $REPLACE_RENAME = 1; then
  1622. func_gl_gnulib_m4code_stat
  1623. fi
  1624. if test $REPLACE_SELECT = 1; then
  1625. func_gl_gnulib_m4code_alloca
  1626. fi
  1627. if test $REPLACE_SELECT = 1; then
  1628. func_gl_gnulib_m4code_dup2
  1629. fi
  1630. if test $REPLACE_SELECT = 1; then
  1631. func_gl_gnulib_m4code_sockets
  1632. fi
  1633. if test "$ac_cv_header_winsock2_h" = yes; then
  1634. func_gl_gnulib_m4code_sockets
  1635. fi
  1636. if test $HAVE_TIMEZONE_T = 0; then
  1637. func_gl_gnulib_m4code_time_r
  1638. fi
  1639. if test $HAVE_TIMEZONE_T = 0; then
  1640. func_gl_gnulib_m4code_timegm
  1641. fi
  1642. if test $HAVE_TIMEZONE_T = 0; then
  1643. func_gl_gnulib_m4code_tzset
  1644. fi
  1645. if test $HAVE_TIMEZONE_T = 0; then
  1646. func_gl_gnulib_m4code_unsetenv
  1647. fi
  1648. if test $ac_cv_func_vsnprintf = no || test $REPLACE_VSNPRINTF = 1; then
  1649. func_gl_gnulib_m4code_vasnprintf
  1650. fi
  1651. if test $REPLACE_WRITE = 1; then
  1652. func_gl_gnulib_m4code_raise
  1653. fi
  1654. m4_pattern_allow([^gl_GNULIB_ENABLED_])
  1655. AM_CONDITIONAL([gl_GNULIB_ENABLED_alloca], [$gl_gnulib_enabled_alloca])
  1656. AM_CONDITIONAL([gl_GNULIB_ENABLED_assure], [$gl_gnulib_enabled_assure])
  1657. AM_CONDITIONAL([gl_GNULIB_ENABLED_btowc], [$gl_gnulib_enabled_btowc])
  1658. AM_CONDITIONAL([gl_GNULIB_ENABLED_37f71b604aa9c54446783d80f42fe547], [$gl_gnulib_enabled_37f71b604aa9c54446783d80f42fe547])
  1659. AM_CONDITIONAL([gl_GNULIB_ENABLED_chdir], [$gl_gnulib_enabled_chdir])
  1660. AM_CONDITIONAL([gl_GNULIB_ENABLED_cloexec], [$gl_gnulib_enabled_cloexec])
  1661. AM_CONDITIONAL([gl_GNULIB_ENABLED_dup2], [$gl_gnulib_enabled_dup2])
  1662. AM_CONDITIONAL([gl_GNULIB_ENABLED_dynarray], [$gl_gnulib_enabled_dynarray])
  1663. AM_CONDITIONAL([gl_GNULIB_ENABLED_925677f0343de64b89a9f0c790b4104c], [$gl_gnulib_enabled_925677f0343de64b89a9f0c790b4104c])
  1664. AM_CONDITIONAL([gl_GNULIB_ENABLED_fcntl], [$gl_gnulib_enabled_fcntl])
  1665. AM_CONDITIONAL([gl_GNULIB_ENABLED_43fe87a341d9b4b93c47c3ad819a5239], [$gl_gnulib_enabled_43fe87a341d9b4b93c47c3ad819a5239])
  1666. AM_CONDITIONAL([gl_GNULIB_ENABLED_getdtablesize], [$gl_gnulib_enabled_getdtablesize])
  1667. AM_CONDITIONAL([gl_GNULIB_ENABLED_getrandom], [$gl_gnulib_enabled_getrandom])
  1668. AM_CONDITIONAL([gl_GNULIB_ENABLED_be453cec5eecf5731a274f2de7f2db36], [$gl_gnulib_enabled_be453cec5eecf5731a274f2de7f2db36])
  1669. AM_CONDITIONAL([gl_GNULIB_ENABLED_30838f5439487421042f2225bed3af76], [$gl_gnulib_enabled_30838f5439487421042f2225bed3af76])
  1670. AM_CONDITIONAL([gl_GNULIB_ENABLED_hostent], [$gl_gnulib_enabled_hostent])
  1671. AM_CONDITIONAL([gl_GNULIB_ENABLED_b1df7117b479d2da59d76deba468ee21], [$gl_gnulib_enabled_b1df7117b479d2da59d76deba468ee21])
  1672. AM_CONDITIONAL([gl_GNULIB_ENABLED_3f0e593033d1fc2c127581960f641b66], [$gl_gnulib_enabled_3f0e593033d1fc2c127581960f641b66])
  1673. AM_CONDITIONAL([gl_GNULIB_ENABLED_dbdf22868a5367f28bf18e0013ac6f8f], [$gl_gnulib_enabled_dbdf22868a5367f28bf18e0013ac6f8f])
  1674. AM_CONDITIONAL([gl_GNULIB_ENABLED_21ee726a3540c09237a8e70c0baf7467], [$gl_gnulib_enabled_21ee726a3540c09237a8e70c0baf7467])
  1675. AM_CONDITIONAL([gl_GNULIB_ENABLED_localeconv], [$gl_gnulib_enabled_localeconv])
  1676. AM_CONDITIONAL([gl_GNULIB_ENABLED_log], [$gl_gnulib_enabled_log])
  1677. AM_CONDITIONAL([gl_GNULIB_ENABLED_mbrtowc], [$gl_gnulib_enabled_mbrtowc])
  1678. AM_CONDITIONAL([gl_GNULIB_ENABLED_mbsinit], [$gl_gnulib_enabled_mbsinit])
  1679. AM_CONDITIONAL([gl_GNULIB_ENABLED_mbtowc], [$gl_gnulib_enabled_mbtowc])
  1680. AM_CONDITIONAL([gl_GNULIB_ENABLED_memchr], [$gl_gnulib_enabled_memchr])
  1681. AM_CONDITIONAL([gl_GNULIB_ENABLED_mempcpy], [$gl_gnulib_enabled_mempcpy])
  1682. AM_CONDITIONAL([gl_GNULIB_ENABLED_mktime], [$gl_gnulib_enabled_mktime])
  1683. AM_CONDITIONAL([gl_GNULIB_ENABLED_5264294aa0a5557541b53c8c741f7f31], [$gl_gnulib_enabled_5264294aa0a5557541b53c8c741f7f31])
  1684. AM_CONDITIONAL([gl_GNULIB_ENABLED_pathmax], [$gl_gnulib_enabled_pathmax])
  1685. AM_CONDITIONAL([gl_GNULIB_ENABLED_raise], [$gl_gnulib_enabled_raise])
  1686. AM_CONDITIONAL([gl_GNULIB_ENABLED_rawmemchr], [$gl_gnulib_enabled_rawmemchr])
  1687. AM_CONDITIONAL([gl_GNULIB_ENABLED_61bcaca76b3e6f9ae55d57a1c3193bc4], [$gl_gnulib_enabled_61bcaca76b3e6f9ae55d57a1c3193bc4])
  1688. AM_CONDITIONAL([gl_GNULIB_ENABLED_round], [$gl_gnulib_enabled_round])
  1689. AM_CONDITIONAL([gl_GNULIB_ENABLED_9bc5f216d57e231e4834049d67d0db62], [$gl_gnulib_enabled_9bc5f216d57e231e4834049d67d0db62])
  1690. AM_CONDITIONAL([gl_GNULIB_ENABLED_scratch_buffer], [$gl_gnulib_enabled_scratch_buffer])
  1691. AM_CONDITIONAL([gl_GNULIB_ENABLED_servent], [$gl_gnulib_enabled_servent])
  1692. AM_CONDITIONAL([gl_GNULIB_ENABLED_e7e881d32ca02f1c997b13c737c64bbd], [$gl_gnulib_enabled_e7e881d32ca02f1c997b13c737c64bbd])
  1693. AM_CONDITIONAL([gl_GNULIB_ENABLED_signbit], [$gl_gnulib_enabled_signbit])
  1694. AM_CONDITIONAL([gl_GNULIB_ENABLED_size_max], [$gl_gnulib_enabled_size_max])
  1695. AM_CONDITIONAL([gl_GNULIB_ENABLED_snprintf], [$gl_gnulib_enabled_snprintf])
  1696. AM_CONDITIONAL([gl_GNULIB_ENABLED_sockets], [$gl_gnulib_enabled_sockets])
  1697. AM_CONDITIONAL([gl_GNULIB_ENABLED_stat], [$gl_gnulib_enabled_stat])
  1698. AM_CONDITIONAL([gl_GNULIB_ENABLED_f9850631dca91859e9cddac9359921c0], [$gl_gnulib_enabled_f9850631dca91859e9cddac9359921c0])
  1699. AM_CONDITIONAL([gl_GNULIB_ENABLED_streq], [$gl_gnulib_enabled_streq])
  1700. AM_CONDITIONAL([gl_GNULIB_ENABLED_sys_random], [$gl_gnulib_enabled_sys_random])
  1701. AM_CONDITIONAL([gl_GNULIB_ENABLED_tempname], [$gl_gnulib_enabled_tempname])
  1702. AM_CONDITIONAL([gl_GNULIB_ENABLED_time_r], [$gl_gnulib_enabled_time_r])
  1703. AM_CONDITIONAL([gl_GNULIB_ENABLED_timegm], [$gl_gnulib_enabled_timegm])
  1704. AM_CONDITIONAL([gl_GNULIB_ENABLED_tzset], [$gl_gnulib_enabled_tzset])
  1705. AM_CONDITIONAL([gl_GNULIB_ENABLED_unsetenv], [$gl_gnulib_enabled_unsetenv])
  1706. AM_CONDITIONAL([gl_GNULIB_ENABLED_vasnprintf], [$gl_gnulib_enabled_vasnprintf])
  1707. AM_CONDITIONAL([gl_GNULIB_ENABLED_wcrtomb], [$gl_gnulib_enabled_wcrtomb])
  1708. AM_CONDITIONAL([gl_GNULIB_ENABLED_3dcce957eadc896e63ab5f137947b410], [$gl_gnulib_enabled_3dcce957eadc896e63ab5f137947b410])
  1709. AM_CONDITIONAL([gl_GNULIB_ENABLED_xsize], [$gl_gnulib_enabled_xsize])
  1710. # End of code from modules
  1711. m4_ifval(gl_LIBSOURCES_LIST, [
  1712. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  1713. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  1714. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  1715. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  1716. exit 1
  1717. fi
  1718. done])dnl
  1719. m4_if(m4_sysval, [0], [],
  1720. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  1721. ])
  1722. m4_popdef([GL_MODULE_INDICATOR_PREFIX])
  1723. m4_popdef([GL_MACRO_PREFIX])
  1724. m4_popdef([gl_LIBSOURCES_DIR])
  1725. m4_popdef([gl_LIBSOURCES_LIST])
  1726. m4_popdef([AC_LIBSOURCES])
  1727. m4_popdef([AC_REPLACE_FUNCS])
  1728. m4_popdef([AC_LIBOBJ])
  1729. AC_CONFIG_COMMANDS_PRE([
  1730. gl_libobjs=
  1731. gl_ltlibobjs=
  1732. if test -n "$gl_LIBOBJS"; then
  1733. # Remove the extension.
  1734. sed_drop_objext='s/\.o$//;s/\.obj$//'
  1735. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  1736. gl_libobjs="$gl_libobjs $i.$ac_objext"
  1737. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  1738. done
  1739. fi
  1740. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  1741. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  1742. ])
  1743. gltests_libdeps=
  1744. gltests_ltlibdeps=
  1745. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  1746. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  1747. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  1748. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  1749. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  1750. m4_pushdef([GL_MACRO_PREFIX], [gltests])
  1751. m4_pushdef([GL_MODULE_INDICATOR_PREFIX], [GL])
  1752. gl_COMMON
  1753. gl_source_base='tests'
  1754. changequote(,)dnl
  1755. 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
  1756. changequote([, ])dnl
  1757. AC_SUBST([gltests_WITNESS])
  1758. gl_module_indicator_condition=$gltests_WITNESS
  1759. m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
  1760. m4_pattern_allow([^gl_GNULIB_ENABLED_])
  1761. m4_popdef([gl_MODULE_INDICATOR_CONDITION])
  1762. m4_ifval(gltests_LIBSOURCES_LIST, [
  1763. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  1764. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  1765. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  1766. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  1767. exit 1
  1768. fi
  1769. done])dnl
  1770. m4_if(m4_sysval, [0], [],
  1771. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  1772. ])
  1773. m4_popdef([GL_MODULE_INDICATOR_PREFIX])
  1774. m4_popdef([GL_MACRO_PREFIX])
  1775. m4_popdef([gltests_LIBSOURCES_DIR])
  1776. m4_popdef([gltests_LIBSOURCES_LIST])
  1777. m4_popdef([AC_LIBSOURCES])
  1778. m4_popdef([AC_REPLACE_FUNCS])
  1779. m4_popdef([AC_LIBOBJ])
  1780. AC_CONFIG_COMMANDS_PRE([
  1781. gltests_libobjs=
  1782. gltests_ltlibobjs=
  1783. if test -n "$gltests_LIBOBJS"; then
  1784. # Remove the extension.
  1785. sed_drop_objext='s/\.o$//;s/\.obj$//'
  1786. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  1787. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  1788. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  1789. done
  1790. fi
  1791. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  1792. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  1793. ])
  1794. ])
  1795. # Like AC_LIBOBJ, except that the module name goes
  1796. # into gl_LIBOBJS instead of into LIBOBJS.
  1797. AC_DEFUN([gl_LIBOBJ], [
  1798. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  1799. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  1800. ])
  1801. # Like AC_REPLACE_FUNCS, except that the module name goes
  1802. # into gl_LIBOBJS instead of into LIBOBJS.
  1803. AC_DEFUN([gl_REPLACE_FUNCS], [
  1804. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  1805. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  1806. ])
  1807. # Like AC_LIBSOURCES, except the directory where the source file is
  1808. # expected is derived from the gnulib-tool parameterization,
  1809. # and alloca is special cased (for the alloca-opt module).
  1810. # We could also entirely rely on EXTRA_lib..._SOURCES.
  1811. AC_DEFUN([gl_LIBSOURCES], [
  1812. m4_foreach([_gl_NAME], [$1], [
  1813. m4_if(_gl_NAME, [alloca.c], [], [
  1814. m4_define([gl_LIBSOURCES_DIR], [lib])
  1815. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  1816. ])
  1817. ])
  1818. ])
  1819. # Like AC_LIBOBJ, except that the module name goes
  1820. # into gltests_LIBOBJS instead of into LIBOBJS.
  1821. AC_DEFUN([gltests_LIBOBJ], [
  1822. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  1823. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  1824. ])
  1825. # Like AC_REPLACE_FUNCS, except that the module name goes
  1826. # into gltests_LIBOBJS instead of into LIBOBJS.
  1827. AC_DEFUN([gltests_REPLACE_FUNCS], [
  1828. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  1829. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  1830. ])
  1831. # Like AC_LIBSOURCES, except the directory where the source file is
  1832. # expected is derived from the gnulib-tool parameterization,
  1833. # and alloca is special cased (for the alloca-opt module).
  1834. # We could also entirely rely on EXTRA_lib..._SOURCES.
  1835. AC_DEFUN([gltests_LIBSOURCES], [
  1836. m4_foreach([_gl_NAME], [$1], [
  1837. m4_if(_gl_NAME, [alloca.c], [], [
  1838. m4_define([gltests_LIBSOURCES_DIR], [tests])
  1839. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  1840. ])
  1841. ])
  1842. ])
  1843. # This macro records the list of files which have been installed by
  1844. # gnulib-tool and may be removed by future gnulib-tool invocations.
  1845. AC_DEFUN([gl_FILE_LIST], [
  1846. build-aux/announce-gen
  1847. build-aux/config.rpath
  1848. build-aux/gendocs.sh
  1849. build-aux/git-version-gen
  1850. build-aux/gitlog-to-changelog
  1851. build-aux/gnu-web-doc-update
  1852. build-aux/gnupload
  1853. build-aux/useless-if-before-free
  1854. build-aux/vc-list-files
  1855. doc/gendocs_template
  1856. doc/gendocs_template_min
  1857. lib/_Noreturn.h
  1858. lib/accept.c
  1859. lib/accept4.c
  1860. lib/alignof.h
  1861. lib/alloca.c
  1862. lib/alloca.in.h
  1863. lib/arg-nonnull.h
  1864. lib/arpa_inet.in.h
  1865. lib/asnprintf.c
  1866. lib/assure.h
  1867. lib/attribute.h
  1868. lib/basename-lgpl.c
  1869. lib/basename-lgpl.h
  1870. lib/binary-io.c
  1871. lib/binary-io.h
  1872. lib/bind.c
  1873. lib/btowc.c
  1874. lib/byteswap.in.h
  1875. lib/c++defs.h
  1876. lib/c-ctype.c
  1877. lib/c-ctype.h
  1878. lib/c-strcase.h
  1879. lib/c-strcasecmp.c
  1880. lib/c-strcaseeq.h
  1881. lib/c-strncasecmp.c
  1882. lib/canonicalize-lgpl.c
  1883. lib/cdefs.h
  1884. lib/ceil.c
  1885. lib/cloexec.c
  1886. lib/cloexec.h
  1887. lib/close.c
  1888. lib/connect.c
  1889. lib/copysign.c
  1890. lib/dirent.in.h
  1891. lib/dirfd.c
  1892. lib/dirname-lgpl.c
  1893. lib/dirname.h
  1894. lib/dup2.c
  1895. lib/duplocale.c
  1896. lib/dynarray.h
  1897. lib/eloop-threshold.h
  1898. lib/errno.in.h
  1899. lib/fcntl.c
  1900. lib/fcntl.in.h
  1901. lib/fd-hook.c
  1902. lib/fd-hook.h
  1903. lib/filename.h
  1904. lib/flexmember.h
  1905. lib/float+.h
  1906. lib/float.c
  1907. lib/float.in.h
  1908. lib/flock.c
  1909. lib/floor.c
  1910. lib/free.c
  1911. lib/frexp.c
  1912. lib/fstat.c
  1913. lib/fsync.c
  1914. lib/full-read.c
  1915. lib/full-read.h
  1916. lib/full-write.c
  1917. lib/full-write.h
  1918. lib/gai_strerror.c
  1919. lib/getaddrinfo.c
  1920. lib/getdtablesize.c
  1921. lib/gethostname.c
  1922. lib/getlogin.c
  1923. lib/getpeername.c
  1924. lib/getrandom.c
  1925. lib/getsockname.c
  1926. lib/getsockopt.c
  1927. lib/gettext.h
  1928. lib/hard-locale.c
  1929. lib/hard-locale.h
  1930. lib/iconv.c
  1931. lib/iconv.in.h
  1932. lib/iconv_close.c
  1933. lib/iconv_open-aix.gperf
  1934. lib/iconv_open-hpux.gperf
  1935. lib/iconv_open-irix.gperf
  1936. lib/iconv_open-osf.gperf
  1937. lib/iconv_open-solaris.gperf
  1938. lib/iconv_open-zos.gperf
  1939. lib/iconv_open.c
  1940. lib/iconveh.h
  1941. lib/idx.h
  1942. lib/inet_ntop.c
  1943. lib/inet_pton.c
  1944. lib/intprops.h
  1945. lib/inttypes.in.h
  1946. lib/isfinite.c
  1947. lib/isinf.c
  1948. lib/isnan.c
  1949. lib/isnand-nolibm.h
  1950. lib/isnand.c
  1951. lib/isnanf-nolibm.h
  1952. lib/isnanf.c
  1953. lib/isnanl-nolibm.h
  1954. lib/isnanl.c
  1955. lib/itold.c
  1956. lib/langinfo.in.h
  1957. lib/lc-charset-dispatch.c
  1958. lib/lc-charset-dispatch.h
  1959. lib/libc-config.h
  1960. lib/libunistring.valgrind
  1961. lib/limits.in.h
  1962. lib/link.c
  1963. lib/listen.c
  1964. lib/localcharset.c
  1965. lib/localcharset.h
  1966. lib/locale.in.h
  1967. lib/localeconv.c
  1968. lib/log.c
  1969. lib/log1p.c
  1970. lib/lstat.c
  1971. lib/malloc.c
  1972. lib/malloc/dynarray-skeleton.c
  1973. lib/malloc/dynarray.h
  1974. lib/malloc/dynarray_at_failure.c
  1975. lib/malloc/dynarray_emplace_enlarge.c
  1976. lib/malloc/dynarray_finalize.c
  1977. lib/malloc/dynarray_resize.c
  1978. lib/malloc/dynarray_resize_clear.c
  1979. lib/malloc/scratch_buffer.h
  1980. lib/malloc/scratch_buffer_dupfree.c
  1981. lib/malloc/scratch_buffer_grow.c
  1982. lib/malloc/scratch_buffer_grow_preserve.c
  1983. lib/malloc/scratch_buffer_set_array_size.c
  1984. lib/malloca.c
  1985. lib/malloca.h
  1986. lib/math.c
  1987. lib/math.in.h
  1988. lib/mbrtowc-impl-utf8.h
  1989. lib/mbrtowc-impl.h
  1990. lib/mbrtowc.c
  1991. lib/mbsinit.c
  1992. lib/mbtowc-impl.h
  1993. lib/mbtowc-lock.c
  1994. lib/mbtowc-lock.h
  1995. lib/mbtowc.c
  1996. lib/memchr.c
  1997. lib/memchr.valgrind
  1998. lib/mempcpy.c
  1999. lib/minmax.h
  2000. lib/mkdir.c
  2001. lib/mkostemp.c
  2002. lib/mktime-internal.h
  2003. lib/mktime.c
  2004. lib/msvc-inval.c
  2005. lib/msvc-inval.h
  2006. lib/msvc-nothrow.c
  2007. lib/msvc-nothrow.h
  2008. lib/netdb.in.h
  2009. lib/netinet_in.in.h
  2010. lib/nl_langinfo-lock.c
  2011. lib/nl_langinfo.c
  2012. lib/nproc.c
  2013. lib/nproc.h
  2014. lib/nstrftime.c
  2015. lib/open.c
  2016. lib/pathmax.h
  2017. lib/pipe.c
  2018. lib/pipe2.c
  2019. lib/poll.c
  2020. lib/poll.in.h
  2021. lib/printf-args.c
  2022. lib/printf-args.h
  2023. lib/printf-parse.c
  2024. lib/printf-parse.h
  2025. lib/putenv.c
  2026. lib/raise.c
  2027. lib/rawmemchr.c
  2028. lib/rawmemchr.valgrind
  2029. lib/read.c
  2030. lib/readlink.c
  2031. lib/realloc.c
  2032. lib/recv.c
  2033. lib/recvfrom.c
  2034. lib/regcomp.c
  2035. lib/regex.c
  2036. lib/regex.h
  2037. lib/regex_internal.c
  2038. lib/regex_internal.h
  2039. lib/regexec.c
  2040. lib/rename.c
  2041. lib/rmdir.c
  2042. lib/round.c
  2043. lib/safe-read.c
  2044. lib/safe-read.h
  2045. lib/safe-write.c
  2046. lib/safe-write.h
  2047. lib/same-inode.h
  2048. lib/scratch_buffer.h
  2049. lib/select.c
  2050. lib/send.c
  2051. lib/sendto.c
  2052. lib/setenv.c
  2053. lib/setlocale-lock.c
  2054. lib/setlocale_null.c
  2055. lib/setlocale_null.h
  2056. lib/setsockopt.c
  2057. lib/shutdown.c
  2058. lib/signal.in.h
  2059. lib/signbitd.c
  2060. lib/signbitf.c
  2061. lib/signbitl.c
  2062. lib/size_max.h
  2063. lib/snprintf.c
  2064. lib/socket.c
  2065. lib/sockets.c
  2066. lib/sockets.h
  2067. lib/stat-time.c
  2068. lib/stat-time.h
  2069. lib/stat-w32.c
  2070. lib/stat-w32.h
  2071. lib/stat.c
  2072. lib/stdalign.in.h
  2073. lib/stdbool.in.h
  2074. lib/stddef.in.h
  2075. lib/stdint.in.h
  2076. lib/stdio.in.h
  2077. lib/stdlib.in.h
  2078. lib/strdup.c
  2079. lib/streq.h
  2080. lib/strftime.h
  2081. lib/striconveh.c
  2082. lib/striconveh.h
  2083. lib/string.in.h
  2084. lib/stripslash.c
  2085. lib/sys-limits.h
  2086. lib/sys_file.in.h
  2087. lib/sys_random.in.h
  2088. lib/sys_select.in.h
  2089. lib/sys_socket.c
  2090. lib/sys_socket.in.h
  2091. lib/sys_stat.in.h
  2092. lib/sys_time.in.h
  2093. lib/sys_times.in.h
  2094. lib/sys_types.in.h
  2095. lib/sys_uio.in.h
  2096. lib/tempname.c
  2097. lib/tempname.h
  2098. lib/time-internal.h
  2099. lib/time.in.h
  2100. lib/time_r.c
  2101. lib/time_rz.c
  2102. lib/timegm.c
  2103. lib/times.c
  2104. lib/trunc.c
  2105. lib/tzset.c
  2106. lib/unistd.c
  2107. lib/unistd.in.h
  2108. lib/unsetenv.c
  2109. lib/vasnprintf.c
  2110. lib/vasnprintf.h
  2111. lib/verify.h
  2112. lib/vsnprintf.c
  2113. lib/w32sock.h
  2114. lib/warn-on-use.h
  2115. lib/wchar.in.h
  2116. lib/wcrtomb.c
  2117. lib/wctype-h.c
  2118. lib/wctype.in.h
  2119. lib/windows-initguard.h
  2120. lib/write.c
  2121. lib/xalloc-oversized.h
  2122. lib/xsize.c
  2123. lib/xsize.h
  2124. m4/00gnulib.m4
  2125. m4/__inline.m4
  2126. m4/absolute-header.m4
  2127. m4/accept4.m4
  2128. m4/alloca.m4
  2129. m4/arpa_inet_h.m4
  2130. m4/autobuild.m4
  2131. m4/btowc.m4
  2132. m4/builtin-expect.m4
  2133. m4/byteswap.m4
  2134. m4/canonicalize.m4
  2135. m4/ceil.m4
  2136. m4/check-math-lib.m4
  2137. m4/clock_time.m4
  2138. m4/close.m4
  2139. m4/codeset.m4
  2140. m4/copysign.m4
  2141. m4/dirent_h.m4
  2142. m4/dirfd.m4
  2143. m4/double-slash-root.m4
  2144. m4/dup2.m4
  2145. m4/duplocale.m4
  2146. m4/eealloc.m4
  2147. m4/environ.m4
  2148. m4/errno_h.m4
  2149. m4/exponentd.m4
  2150. m4/exponentf.m4
  2151. m4/exponentl.m4
  2152. m4/extensions.m4
  2153. m4/extern-inline.m4
  2154. m4/fcntl-o.m4
  2155. m4/fcntl.m4
  2156. m4/fcntl_h.m4
  2157. m4/flexmember.m4
  2158. m4/float_h.m4
  2159. m4/flock.m4
  2160. m4/floor.m4
  2161. m4/fpieee.m4
  2162. m4/free.m4
  2163. m4/frexp.m4
  2164. m4/fstat.m4
  2165. m4/fsync.m4
  2166. m4/func.m4
  2167. m4/getaddrinfo.m4
  2168. m4/getdtablesize.m4
  2169. m4/gethostname.m4
  2170. m4/getlogin.m4
  2171. m4/getrandom.m4
  2172. m4/gnulib-common.m4
  2173. m4/host-cpu-c-abi.m4
  2174. m4/hostent.m4
  2175. m4/iconv.m4
  2176. m4/iconv_h.m4
  2177. m4/iconv_open-utf.m4
  2178. m4/iconv_open.m4
  2179. m4/include_next.m4
  2180. m4/inet_ntop.m4
  2181. m4/inet_pton.m4
  2182. m4/intmax_t.m4
  2183. m4/inttypes.m4
  2184. m4/inttypes_h.m4
  2185. m4/isfinite.m4
  2186. m4/isinf.m4
  2187. m4/isnan.m4
  2188. m4/isnand.m4
  2189. m4/isnanf.m4
  2190. m4/isnanl.m4
  2191. m4/langinfo_h.m4
  2192. m4/largefile.m4
  2193. m4/ld-version-script.m4
  2194. m4/ldexp.m4
  2195. m4/lib-ld.m4
  2196. m4/lib-link.m4
  2197. m4/lib-prefix.m4
  2198. m4/libunistring.m4
  2199. m4/limits-h.m4
  2200. m4/link.m4
  2201. m4/localcharset.m4
  2202. m4/locale-fr.m4
  2203. m4/locale-ja.m4
  2204. m4/locale-zh.m4
  2205. m4/locale_h.m4
  2206. m4/localeconv.m4
  2207. m4/log.m4
  2208. m4/log1p.m4
  2209. m4/lstat.m4
  2210. m4/malloc.m4
  2211. m4/malloca.m4
  2212. m4/math_h.m4
  2213. m4/mathfunc.m4
  2214. m4/mbrtowc.m4
  2215. m4/mbsinit.m4
  2216. m4/mbstate_t.m4
  2217. m4/mbtowc.m4
  2218. m4/memchr.m4
  2219. m4/mempcpy.m4
  2220. m4/minmax.m4
  2221. m4/mkdir.m4
  2222. m4/mkostemp.m4
  2223. m4/mktime.m4
  2224. m4/mmap-anon.m4
  2225. m4/mode_t.m4
  2226. m4/msvc-inval.m4
  2227. m4/msvc-nothrow.m4
  2228. m4/multiarch.m4
  2229. m4/netdb_h.m4
  2230. m4/netinet_in_h.m4
  2231. m4/nl_langinfo.m4
  2232. m4/nocrash.m4
  2233. m4/nproc.m4
  2234. m4/nstrftime.m4
  2235. m4/off_t.m4
  2236. m4/open-cloexec.m4
  2237. m4/open-slash.m4
  2238. m4/open.m4
  2239. m4/pathmax.m4
  2240. m4/pid_t.m4
  2241. m4/pipe.m4
  2242. m4/pipe2.m4
  2243. m4/poll.m4
  2244. m4/poll_h.m4
  2245. m4/printf.m4
  2246. m4/putenv.m4
  2247. m4/raise.m4
  2248. m4/rawmemchr.m4
  2249. m4/read.m4
  2250. m4/readlink.m4
  2251. m4/realloc.m4
  2252. m4/regex.m4
  2253. m4/rename.m4
  2254. m4/rmdir.m4
  2255. m4/round.m4
  2256. m4/safe-read.m4
  2257. m4/safe-write.m4
  2258. m4/select.m4
  2259. m4/servent.m4
  2260. m4/setenv.m4
  2261. m4/setlocale_null.m4
  2262. m4/signal_h.m4
  2263. m4/signbit.m4
  2264. m4/size_max.m4
  2265. m4/snprintf.m4
  2266. m4/socketlib.m4
  2267. m4/sockets.m4
  2268. m4/socklen.m4
  2269. m4/sockpfaf.m4
  2270. m4/ssize_t.m4
  2271. m4/stat-time.m4
  2272. m4/stat.m4
  2273. m4/std-gnu11.m4
  2274. m4/stdalign.m4
  2275. m4/stdbool.m4
  2276. m4/stddef_h.m4
  2277. m4/stdint.m4
  2278. m4/stdint_h.m4
  2279. m4/stdio_h.m4
  2280. m4/stdlib_h.m4
  2281. m4/strdup.m4
  2282. m4/string_h.m4
  2283. m4/sys_file_h.m4
  2284. m4/sys_random_h.m4
  2285. m4/sys_select_h.m4
  2286. m4/sys_socket_h.m4
  2287. m4/sys_stat_h.m4
  2288. m4/sys_time_h.m4
  2289. m4/sys_times_h.m4
  2290. m4/sys_types_h.m4
  2291. m4/sys_uio_h.m4
  2292. m4/tempname.m4
  2293. m4/threadlib.m4
  2294. m4/time_h.m4
  2295. m4/time_r.m4
  2296. m4/time_rz.m4
  2297. m4/timegm.m4
  2298. m4/times.m4
  2299. m4/tm_gmtoff.m4
  2300. m4/trunc.m4
  2301. m4/tzset.m4
  2302. m4/unistd_h.m4
  2303. m4/vasnprintf.m4
  2304. m4/visibility.m4
  2305. m4/vsnprintf.m4
  2306. m4/warn-on-use.m4
  2307. m4/warnings.m4
  2308. m4/wchar_h.m4
  2309. m4/wchar_t.m4
  2310. m4/wcrtomb.m4
  2311. m4/wctype_h.m4
  2312. m4/wint_t.m4
  2313. m4/write.m4
  2314. m4/xsize.m4
  2315. m4/year2038.m4
  2316. m4/zzgnulib.m4
  2317. top/GNUmakefile
  2318. top/maint.mk
  2319. ])