Makefile.am 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303
  1. ## DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. ## Process this file with automake to produce Makefile.in.
  3. # Copyright (C) 2002-2009 Free Software Foundation, Inc.
  4. #
  5. # This file is free software, distributed under the terms of the GNU
  6. # General Public License. As a special exception to the GNU General
  7. # Public License, this file may be distributed as part of a program
  8. # that contains a configuration script generated by Autoconf, under
  9. # the same distribution terms as the rest of that program.
  10. #
  11. # Generated by gnulib-tool.
  12. # Reproduce by: gnulib-tool --import --dir=. --lib=libgnu --source-base=gl --m4-base=gl/m4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --no-libtool --macro-prefix=gl base64 dirname floorf fsusage getaddrinfo gethostname getloadavg getopt gettext mountlist regex vasprintf vsnprintf
  13. AUTOMAKE_OPTIONS = 1.5 gnits
  14. SUBDIRS =
  15. noinst_HEADERS =
  16. noinst_LIBRARIES =
  17. noinst_LTLIBRARIES =
  18. EXTRA_DIST =
  19. BUILT_SOURCES =
  20. SUFFIXES =
  21. MOSTLYCLEANFILES = core *.stackdump
  22. MOSTLYCLEANDIRS =
  23. CLEANFILES =
  24. DISTCLEANFILES =
  25. MAINTAINERCLEANFILES =
  26. EXTRA_DIST += m4/gnulib-cache.m4
  27. AM_CPPFLAGS =
  28. noinst_LIBRARIES += libgnu.a
  29. libgnu_a_SOURCES =
  30. libgnu_a_LIBADD = $(gl_LIBOBJS)
  31. libgnu_a_DEPENDENCIES = $(gl_LIBOBJS)
  32. EXTRA_libgnu_a_SOURCES =
  33. ## begin gnulib module alloca
  34. EXTRA_DIST += alloca.c
  35. EXTRA_libgnu_a_SOURCES += alloca.c
  36. libgnu_a_LIBADD += @ALLOCA@
  37. libgnu_a_DEPENDENCIES += @ALLOCA@
  38. ## end gnulib module alloca
  39. ## begin gnulib module alloca-opt
  40. BUILT_SOURCES += $(ALLOCA_H)
  41. # We need the following in order to create <alloca.h> when the system
  42. # doesn't have one that works with the given compiler.
  43. alloca.h: alloca.in.h
  44. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  45. cat $(srcdir)/alloca.in.h; \
  46. } > $@-t
  47. mv -f $@-t $@
  48. MOSTLYCLEANFILES += alloca.h alloca.h-t
  49. EXTRA_DIST += alloca.in.h
  50. ## end gnulib module alloca-opt
  51. ## begin gnulib module arpa_inet
  52. BUILT_SOURCES += $(ARPA_INET_H)
  53. # We need the following in order to create <arpa/inet.h> when the system
  54. # doesn't have one.
  55. arpa/inet.h:
  56. @MKDIR_P@ arpa
  57. rm -f $@-t $@
  58. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  59. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  60. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  61. -e 's|@''NEXT_ARPA_INET_H''@|$(NEXT_ARPA_INET_H)|g' \
  62. -e 's|@''HAVE_ARPA_INET_H''@|$(HAVE_ARPA_INET_H)|g' \
  63. -e 's|@''GNULIB_INET_NTOP''@|$(GNULIB_INET_NTOP)|g' \
  64. -e 's|@''GNULIB_INET_PTON''@|$(GNULIB_INET_PTON)|g' \
  65. -e 's|@''HAVE_DECL_INET_NTOP''@|$(HAVE_DECL_INET_NTOP)|g' \
  66. -e 's|@''HAVE_DECL_INET_PTON''@|$(HAVE_DECL_INET_PTON)|g' \
  67. -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
  68. < $(srcdir)/arpa_inet.in.h; \
  69. } > $@-t
  70. mv $@-t $@
  71. MOSTLYCLEANFILES += arpa/inet.h arpa/inet.h-t
  72. MOSTLYCLEANDIRS += arpa
  73. EXTRA_DIST += arpa_inet.in.h
  74. ## end gnulib module arpa_inet
  75. ## begin gnulib module base64
  76. libgnu_a_SOURCES += base64.h base64.c
  77. ## end gnulib module base64
  78. ## begin gnulib module btowc
  79. EXTRA_DIST += btowc.c
  80. EXTRA_libgnu_a_SOURCES += btowc.c
  81. ## end gnulib module btowc
  82. ## begin gnulib module c-strtod
  83. EXTRA_DIST += c-strtod.c c-strtod.h
  84. EXTRA_libgnu_a_SOURCES += c-strtod.c
  85. ## end gnulib module c-strtod
  86. ## begin gnulib module cloexec
  87. EXTRA_DIST += cloexec.c cloexec.h
  88. EXTRA_libgnu_a_SOURCES += cloexec.c
  89. ## end gnulib module cloexec
  90. ## begin gnulib module configmake
  91. # Retrieve values of the variables through 'configure' followed by
  92. # 'make', not directly through 'configure', so that a user who
  93. # sets some of these variables consistently on the 'make' command
  94. # line gets correct results.
  95. #
  96. # One advantage of this approach, compared to the classical
  97. # approach of adding -DLIBDIR=\"$(libdir)\" etc. to AM_CPPFLAGS,
  98. # is that it protects against the use of undefined variables.
  99. # If, say, $(libdir) is not set in the Makefile, LIBDIR is not
  100. # defined by this module, and code using LIBDIR gives a
  101. # compilation error.
  102. #
  103. # Another advantage is that 'make' output is shorter.
  104. #
  105. # Listed in the same order as the GNU makefile conventions.
  106. # The Automake-defined pkg* macros are appended, in the order
  107. # listed in the Automake 1.10a+ documentation.
  108. configmake.h: Makefile
  109. rm -f $@-t $@
  110. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  111. echo '#define PREFIX "$(prefix)"'; \
  112. echo '#define EXEC_PREFIX "$(exec_prefix)"'; \
  113. echo '#define BINDIR "$(bindir)"'; \
  114. echo '#define SBINDIR "$(sbindir)"'; \
  115. echo '#define LIBEXECDIR "$(libexecdir)"'; \
  116. echo '#define DATAROOTDIR "$(datarootdir)"'; \
  117. echo '#define DATADIR "$(datadir)"'; \
  118. echo '#define SYSCONFDIR "$(sysconfdir)"'; \
  119. echo '#define SHAREDSTATEDIR "$(sharedstatedir)"'; \
  120. echo '#define LOCALSTATEDIR "$(localstatedir)"'; \
  121. echo '#define INCLUDEDIR "$(includedir)"'; \
  122. echo '#define OLDINCLUDEDIR "$(oldincludedir)"'; \
  123. echo '#define DOCDIR "$(docdir)"'; \
  124. echo '#define INFODIR "$(infodir)"'; \
  125. echo '#define HTMLDIR "$(htmldir)"'; \
  126. echo '#define DVIDIR "$(dvidir)"'; \
  127. echo '#define PDFDIR "$(pdfdir)"'; \
  128. echo '#define PSDIR "$(psdir)"'; \
  129. echo '#define LIBDIR "$(libdir)"'; \
  130. echo '#define LISPDIR "$(lispdir)"'; \
  131. echo '#define LOCALEDIR "$(localedir)"'; \
  132. echo '#define MANDIR "$(mandir)"'; \
  133. echo '#define MANEXT "$(manext)"'; \
  134. echo '#define PKGDATADIR "$(pkgdatadir)"'; \
  135. echo '#define PKGINCLUDEDIR "$(pkgincludedir)"'; \
  136. echo '#define PKGLIBDIR "$(pkglibdir)"'; \
  137. echo '#define PKGLIBEXECDIR "$(pkglibexecdir)"'; \
  138. } | sed '/""/d' > $@-t
  139. mv $@-t $@
  140. BUILT_SOURCES += configmake.h
  141. CLEANFILES += configmake.h configmake.h-t
  142. ## end gnulib module configmake
  143. ## begin gnulib module dirname
  144. EXTRA_DIST += basename.c dirname.c dirname.h stripslash.c
  145. EXTRA_libgnu_a_SOURCES += basename.c dirname.c stripslash.c
  146. ## end gnulib module dirname
  147. ## begin gnulib module errno
  148. BUILT_SOURCES += $(ERRNO_H)
  149. # We need the following in order to create <errno.h> when the system
  150. # doesn't have one that is POSIX compliant.
  151. errno.h: errno.in.h
  152. rm -f $@-t $@
  153. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  154. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  155. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  156. -e 's|@''NEXT_ERRNO_H''@|$(NEXT_ERRNO_H)|g' \
  157. -e 's|@''EMULTIHOP_HIDDEN''@|$(EMULTIHOP_HIDDEN)|g' \
  158. -e 's|@''EMULTIHOP_VALUE''@|$(EMULTIHOP_VALUE)|g' \
  159. -e 's|@''ENOLINK_HIDDEN''@|$(ENOLINK_HIDDEN)|g' \
  160. -e 's|@''ENOLINK_VALUE''@|$(ENOLINK_VALUE)|g' \
  161. -e 's|@''EOVERFLOW_HIDDEN''@|$(EOVERFLOW_HIDDEN)|g' \
  162. -e 's|@''EOVERFLOW_VALUE''@|$(EOVERFLOW_VALUE)|g' \
  163. < $(srcdir)/errno.in.h; \
  164. } > $@-t
  165. mv $@-t $@
  166. MOSTLYCLEANFILES += errno.h errno.h-t
  167. EXTRA_DIST += errno.in.h
  168. ## end gnulib module errno
  169. ## begin gnulib module error
  170. EXTRA_DIST += error.c error.h
  171. EXTRA_libgnu_a_SOURCES += error.c
  172. ## end gnulib module error
  173. ## begin gnulib module exitfail
  174. EXTRA_DIST += exitfail.c exitfail.h
  175. EXTRA_libgnu_a_SOURCES += exitfail.c
  176. ## end gnulib module exitfail
  177. ## begin gnulib module fcntl
  178. BUILT_SOURCES += $(FCNTL_H)
  179. # We need the following in order to create <fcntl.h> when the system
  180. # doesn't have one that works with the given compiler.
  181. fcntl.h: fcntl.in.h
  182. rm -f $@-t $@
  183. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  184. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  185. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  186. -e 's|@''NEXT_FCNTL_H''@|$(NEXT_FCNTL_H)|g' \
  187. -e 's|@''GNULIB_OPEN''@|$(GNULIB_OPEN)|g' \
  188. -e 's|@''REPLACE_OPEN''@|$(REPLACE_OPEN)|g' \
  189. < $(srcdir)/fcntl.in.h; \
  190. } > $@-t
  191. mv $@-t $@
  192. MOSTLYCLEANFILES += fcntl.h fcntl.h-t
  193. EXTRA_DIST += fcntl.in.h
  194. ## end gnulib module fcntl
  195. ## begin gnulib module fcntl-safer
  196. EXTRA_DIST += creat-safer.c fcntl--.h fcntl-safer.h open-safer.c
  197. EXTRA_libgnu_a_SOURCES += creat-safer.c open-safer.c
  198. ## end gnulib module fcntl-safer
  199. ## begin gnulib module float
  200. BUILT_SOURCES += $(FLOAT_H)
  201. # We need the following in order to create <float.h> when the system
  202. # doesn't have one that works with the given compiler.
  203. float.h: float.in.h
  204. rm -f $@-t $@
  205. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  206. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  207. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  208. -e 's|@''NEXT_FLOAT_H''@|$(NEXT_FLOAT_H)|g' \
  209. < $(srcdir)/float.in.h; \
  210. } > $@-t
  211. mv $@-t $@
  212. MOSTLYCLEANFILES += float.h float.h-t
  213. EXTRA_DIST += float.in.h
  214. ## end gnulib module float
  215. ## begin gnulib module floorf
  216. EXTRA_DIST += floor.c floorf.c
  217. EXTRA_libgnu_a_SOURCES += floor.c floorf.c
  218. ## end gnulib module floorf
  219. ## begin gnulib module fsusage
  220. EXTRA_DIST += fsusage.c fsusage.h
  221. EXTRA_libgnu_a_SOURCES += fsusage.c
  222. ## end gnulib module fsusage
  223. ## begin gnulib module full-read
  224. libgnu_a_SOURCES += full-read.h full-read.c
  225. ## end gnulib module full-read
  226. ## begin gnulib module full-write
  227. libgnu_a_SOURCES += full-write.h full-write.c
  228. ## end gnulib module full-write
  229. ## begin gnulib module getaddrinfo
  230. EXTRA_DIST += gai_strerror.c getaddrinfo.c
  231. EXTRA_libgnu_a_SOURCES += gai_strerror.c getaddrinfo.c
  232. ## end gnulib module getaddrinfo
  233. ## begin gnulib module gethostname
  234. EXTRA_DIST += gethostname.c
  235. EXTRA_libgnu_a_SOURCES += gethostname.c
  236. ## end gnulib module gethostname
  237. ## begin gnulib module getloadavg
  238. EXTRA_DIST += getloadavg.c
  239. EXTRA_libgnu_a_SOURCES += getloadavg.c
  240. ## end gnulib module getloadavg
  241. ## begin gnulib module getopt
  242. BUILT_SOURCES += $(GETOPT_H)
  243. # We need the following in order to create <getopt.h> when the system
  244. # doesn't have one that works with the given compiler.
  245. getopt.h: getopt.in.h
  246. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  247. cat $(srcdir)/getopt.in.h; \
  248. } > $@-t
  249. mv -f $@-t $@
  250. MOSTLYCLEANFILES += getopt.h getopt.h-t
  251. EXTRA_DIST += getopt.c getopt.in.h getopt1.c getopt_int.h
  252. EXTRA_libgnu_a_SOURCES += getopt.c getopt1.c
  253. ## end gnulib module getopt
  254. ## begin gnulib module gettext
  255. # This is for those projects which use "gettextize --intl" to put a source-code
  256. # copy of libintl into their package. In such projects, every Makefile.am needs
  257. # -I$(top_builddir)/intl, so that <libintl.h> can be found in this directory.
  258. # For the Makefile.ams in other directories it is the maintainer's
  259. # responsibility; for the one from gnulib we do it here.
  260. # This option has no effect when the user disables NLS (because then the intl
  261. # directory contains no libintl.h file) or when the project does not use
  262. # "gettextize --intl".
  263. AM_CPPFLAGS += -I$(top_builddir)/intl
  264. EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
  265. ## end gnulib module gettext
  266. ## begin gnulib module gettext-h
  267. libgnu_a_SOURCES += gettext.h
  268. ## end gnulib module gettext-h
  269. ## begin gnulib module havelib
  270. EXTRA_DIST += $(top_srcdir)/build-aux/config.rpath
  271. ## end gnulib module havelib
  272. ## begin gnulib module inet_ntop
  273. EXTRA_DIST += inet_ntop.c
  274. EXTRA_libgnu_a_SOURCES += inet_ntop.c
  275. ## end gnulib module inet_ntop
  276. ## begin gnulib module intprops
  277. EXTRA_DIST += intprops.h
  278. ## end gnulib module intprops
  279. ## begin gnulib module link-warning
  280. LINK_WARNING_H=$(top_srcdir)/build-aux/link-warning.h
  281. EXTRA_DIST += $(top_srcdir)/build-aux/link-warning.h
  282. ## end gnulib module link-warning
  283. ## begin gnulib module localcharset
  284. libgnu_a_SOURCES += localcharset.h localcharset.c
  285. # We need the following in order to install a simple file in $(libdir)
  286. # which is shared with other installed packages. We use a list of referencing
  287. # packages so that "make uninstall" will remove the file if and only if it
  288. # is not used by another installed package.
  289. # On systems with glibc-2.1 or newer, the file is redundant, therefore we
  290. # avoid installing it.
  291. all-local: charset.alias ref-add.sed ref-del.sed
  292. charset_alias = $(DESTDIR)$(libdir)/charset.alias
  293. charset_tmp = $(DESTDIR)$(libdir)/charset.tmp
  294. install-exec-local: all-local
  295. test $(GLIBC21) != no || $(mkinstalldirs) $(DESTDIR)$(libdir)
  296. if test -f $(charset_alias); then \
  297. sed -f ref-add.sed $(charset_alias) > $(charset_tmp) ; \
  298. $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
  299. rm -f $(charset_tmp) ; \
  300. else \
  301. if test $(GLIBC21) = no; then \
  302. sed -f ref-add.sed charset.alias > $(charset_tmp) ; \
  303. $(INSTALL_DATA) $(charset_tmp) $(charset_alias) ; \
  304. rm -f $(charset_tmp) ; \
  305. fi ; \
  306. fi
  307. uninstall-local: all-local
  308. if test -f $(charset_alias); then \
  309. sed -f ref-del.sed $(charset_alias) > $(charset_tmp); \
  310. if grep '^# Packages using this file: $$' $(charset_tmp) \
  311. > /dev/null; then \
  312. rm -f $(charset_alias); \
  313. else \
  314. $(INSTALL_DATA) $(charset_tmp) $(charset_alias); \
  315. fi; \
  316. rm -f $(charset_tmp); \
  317. fi
  318. charset.alias: config.charset
  319. rm -f t-$@ $@
  320. $(SHELL) $(srcdir)/config.charset '$(host)' > t-$@
  321. mv t-$@ $@
  322. SUFFIXES += .sed .sin
  323. .sin.sed:
  324. rm -f t-$@ $@
  325. sed -e '/^#/d' -e 's/@''PACKAGE''@/$(PACKAGE)/g' $< > t-$@
  326. mv t-$@ $@
  327. CLEANFILES += charset.alias ref-add.sed ref-del.sed
  328. EXTRA_DIST += config.charset ref-add.sin ref-del.sin
  329. ## end gnulib module localcharset
  330. ## begin gnulib module malloc
  331. EXTRA_DIST += malloc.c
  332. EXTRA_libgnu_a_SOURCES += malloc.c
  333. ## end gnulib module malloc
  334. ## begin gnulib module malloc-posix
  335. EXTRA_DIST += malloc.c
  336. EXTRA_libgnu_a_SOURCES += malloc.c
  337. ## end gnulib module malloc-posix
  338. ## begin gnulib module math
  339. BUILT_SOURCES += math.h
  340. # We need the following in order to create <math.h> when the system
  341. # doesn't have one that works with the given compiler.
  342. math.h: math.in.h
  343. rm -f $@-t $@
  344. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  345. sed -e 's|@''INCLUDE_NEXT_AS_FIRST_DIRECTIVE''@|$(INCLUDE_NEXT_AS_FIRST_DIRECTIVE)|g' \
  346. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  347. -e 's|@''NEXT_MATH_H''@|$(NEXT_MATH_H)|g' \
  348. -e 's|@''GNULIB_CEILF''@|$(GNULIB_CEILF)|g' \
  349. -e 's|@''GNULIB_CEILL''@|$(GNULIB_CEILL)|g' \
  350. -e 's|@''GNULIB_FLOORF''@|$(GNULIB_FLOORF)|g' \
  351. -e 's|@''GNULIB_FLOORL''@|$(GNULIB_FLOORL)|g' \
  352. -e 's|@''GNULIB_FREXP''@|$(GNULIB_FREXP)|g' \
  353. -e 's|@''GNULIB_FREXPL''@|$(GNULIB_FREXPL)|g' \
  354. -e 's|@''GNULIB_ISFINITE''@|$(GNULIB_ISFINITE)|g' \
  355. -e 's|@''GNULIB_ISINF''@|$(GNULIB_ISINF)|g' \
  356. -e 's|@''GNULIB_ISNAN''@|$(GNULIB_ISNAN)|g' \
  357. -e 's|@''GNULIB_ISNANF''@|$(GNULIB_ISNANF)|g' \
  358. -e 's|@''GNULIB_ISNAND''@|$(GNULIB_ISNAND)|g' \
  359. -e 's|@''GNULIB_ISNANL''@|$(GNULIB_ISNANL)|g' \
  360. -e 's|@''GNULIB_LDEXPL''@|$(GNULIB_LDEXPL)|g' \
  361. -e 's|@''GNULIB_MATHL''@|$(GNULIB_MATHL)|g' \
  362. -e 's|@''GNULIB_ROUND''@|$(GNULIB_ROUND)|g' \
  363. -e 's|@''GNULIB_ROUNDF''@|$(GNULIB_ROUNDF)|g' \
  364. -e 's|@''GNULIB_ROUNDL''@|$(GNULIB_ROUNDL)|g' \
  365. -e 's|@''GNULIB_SIGNBIT''@|$(GNULIB_SIGNBIT)|g' \
  366. -e 's|@''GNULIB_TRUNC''@|$(GNULIB_TRUNC)|g' \
  367. -e 's|@''GNULIB_TRUNCF''@|$(GNULIB_TRUNCF)|g' \
  368. -e 's|@''GNULIB_TRUNCL''@|$(GNULIB_TRUNCL)|g' \
  369. -e 's|@''HAVE_ISNANF''@|$(HAVE_ISNANF)|g' \
  370. -e 's|@''HAVE_ISNAND''@|$(HAVE_ISNAND)|g' \
  371. -e 's|@''HAVE_ISNANL''@|$(HAVE_ISNANL)|g' \
  372. -e 's|@''HAVE_DECL_ACOSL''@|$(HAVE_DECL_ACOSL)|g' \
  373. -e 's|@''HAVE_DECL_ASINL''@|$(HAVE_DECL_ASINL)|g' \
  374. -e 's|@''HAVE_DECL_ATANL''@|$(HAVE_DECL_ATANL)|g' \
  375. -e 's|@''HAVE_DECL_COSL''@|$(HAVE_DECL_COSL)|g' \
  376. -e 's|@''HAVE_DECL_EXPL''@|$(HAVE_DECL_EXPL)|g' \
  377. -e 's|@''HAVE_DECL_FREXPL''@|$(HAVE_DECL_FREXPL)|g' \
  378. -e 's|@''HAVE_DECL_LDEXPL''@|$(HAVE_DECL_LDEXPL)|g' \
  379. -e 's|@''HAVE_DECL_LOGL''@|$(HAVE_DECL_LOGL)|g' \
  380. -e 's|@''HAVE_DECL_SINL''@|$(HAVE_DECL_SINL)|g' \
  381. -e 's|@''HAVE_DECL_SQRTL''@|$(HAVE_DECL_SQRTL)|g' \
  382. -e 's|@''HAVE_DECL_TANL''@|$(HAVE_DECL_TANL)|g' \
  383. -e 's|@''HAVE_DECL_TRUNC''@|$(HAVE_DECL_TRUNC)|g' \
  384. -e 's|@''HAVE_DECL_TRUNCF''@|$(HAVE_DECL_TRUNCF)|g' \
  385. -e 's|@''REPLACE_CEILF''@|$(REPLACE_CEILF)|g' \
  386. -e 's|@''REPLACE_CEILL''@|$(REPLACE_CEILL)|g' \
  387. -e 's|@''REPLACE_FLOORF''@|$(REPLACE_FLOORF)|g' \
  388. -e 's|@''REPLACE_FLOORL''@|$(REPLACE_FLOORL)|g' \
  389. -e 's|@''REPLACE_FREXP''@|$(REPLACE_FREXP)|g' \
  390. -e 's|@''REPLACE_FREXPL''@|$(REPLACE_FREXPL)|g' \
  391. -e 's|@''REPLACE_HUGE_VAL''@|$(REPLACE_HUGE_VAL)|g' \
  392. -e 's|@''REPLACE_ISFINITE''@|$(REPLACE_ISFINITE)|g' \
  393. -e 's|@''REPLACE_ISINF''@|$(REPLACE_ISINF)|g' \
  394. -e 's|@''REPLACE_ISNAN''@|$(REPLACE_ISNAN)|g' \
  395. -e 's|@''REPLACE_LDEXPL''@|$(REPLACE_LDEXPL)|g' \
  396. -e 's|@''REPLACE_NAN''@|$(REPLACE_NAN)|g' \
  397. -e 's|@''REPLACE_ROUND''@|$(REPLACE_ROUND)|g' \
  398. -e 's|@''REPLACE_ROUNDF''@|$(REPLACE_ROUNDF)|g' \
  399. -e 's|@''REPLACE_ROUNDL''@|$(REPLACE_ROUNDL)|g' \
  400. -e 's|@''REPLACE_SIGNBIT''@|$(REPLACE_SIGNBIT)|g' \
  401. -e 's|@''REPLACE_SIGNBIT_USING_GCC''@|$(REPLACE_SIGNBIT_USING_GCC)|g' \
  402. -e 's|@''REPLACE_TRUNCL''@|$(REPLACE_TRUNCL)|g' \
  403. -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
  404. < $(srcdir)/math.in.h; \
  405. } > $@-t
  406. mv $@-t $@
  407. MOSTLYCLEANFILES += math.h math.h-t
  408. EXTRA_DIST += math.in.h
  409. ## end gnulib module math
  410. ## begin gnulib module mbrtowc
  411. EXTRA_DIST += mbrtowc.c
  412. EXTRA_libgnu_a_SOURCES += mbrtowc.c
  413. ## end gnulib module mbrtowc
  414. ## begin gnulib module mbsinit
  415. EXTRA_DIST += mbsinit.c
  416. EXTRA_libgnu_a_SOURCES += mbsinit.c
  417. ## end gnulib module mbsinit
  418. ## begin gnulib module mountlist
  419. EXTRA_DIST += mountlist.c mountlist.h
  420. EXTRA_libgnu_a_SOURCES += mountlist.c
  421. ## end gnulib module mountlist
  422. ## begin gnulib module netdb
  423. BUILT_SOURCES += $(NETDB_H)
  424. # We need the following in order to create <netdb.h> when the system
  425. # doesn't have one that works with the given compiler.
  426. netdb.h: netdb.in.h
  427. rm -f $@-t $@
  428. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  429. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  430. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  431. -e 's|@''NEXT_NETDB_H''@|$(NEXT_NETDB_H)|g' \
  432. -e 's|@''HAVE_NETDB_H''@|$(HAVE_NETDB_H)|g' \
  433. -e 's|@''GNULIB_GETADDRINFO''@|$(GNULIB_GETADDRINFO)|g' \
  434. -e 's|@''HAVE_STRUCT_ADDRINFO''@|$(HAVE_STRUCT_ADDRINFO)|g' \
  435. -e 's|@''HAVE_DECL_FREEADDRINFO''@|$(HAVE_DECL_FREEADDRINFO)|g' \
  436. -e 's|@''HAVE_DECL_GAI_STRERROR''@|$(HAVE_DECL_GAI_STRERROR)|g' \
  437. -e 's|@''HAVE_DECL_GETADDRINFO''@|$(HAVE_DECL_GETADDRINFO)|g' \
  438. -e 's|@''HAVE_DECL_GETNAMEINFO''@|$(HAVE_DECL_GETNAMEINFO)|g' \
  439. < $(srcdir)/netdb.in.h; \
  440. } > $@-t
  441. mv $@-t $@
  442. MOSTLYCLEANFILES += netdb.h netdb.h-t
  443. EXTRA_DIST += netdb.in.h
  444. ## end gnulib module netdb
  445. ## begin gnulib module netinet_in
  446. BUILT_SOURCES += $(NETINET_IN_H)
  447. # We need the following in order to create <netinet/in.h> when the system
  448. # doesn't have one.
  449. netinet/in.h: netinet_in.in.h
  450. @MKDIR_P@ netinet
  451. rm -f $@-t $@
  452. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  453. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  454. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  455. -e 's|@''NEXT_NETINET_IN_H''@|$(NEXT_NETINET_IN_H)|g' \
  456. -e 's|@''HAVE_NETINET_IN_H''@|$(HAVE_NETINET_IN_H)|g' \
  457. < $(srcdir)/netinet_in.in.h; \
  458. } > $@-t
  459. mv $@-t $@
  460. MOSTLYCLEANFILES += netinet/in.h netinet/in.h-t
  461. MOSTLYCLEANDIRS += netinet
  462. EXTRA_DIST += netinet_in.in.h
  463. ## end gnulib module netinet_in
  464. ## begin gnulib module open
  465. EXTRA_DIST += open.c
  466. EXTRA_libgnu_a_SOURCES += open.c
  467. ## end gnulib module open
  468. ## begin gnulib module regex
  469. EXTRA_DIST += regcomp.c regex.c regex.h regex_internal.c regex_internal.h regexec.c
  470. EXTRA_libgnu_a_SOURCES += regcomp.c regex.c regex_internal.c regexec.c
  471. ## end gnulib module regex
  472. ## begin gnulib module safe-read
  473. EXTRA_DIST += safe-read.c safe-read.h
  474. EXTRA_libgnu_a_SOURCES += safe-read.c
  475. ## end gnulib module safe-read
  476. ## begin gnulib module safe-write
  477. EXTRA_DIST += safe-write.c safe-write.h
  478. EXTRA_libgnu_a_SOURCES += safe-write.c
  479. ## end gnulib module safe-write
  480. ## begin gnulib module size_max
  481. libgnu_a_SOURCES += size_max.h
  482. ## end gnulib module size_max
  483. ## begin gnulib module snprintf
  484. EXTRA_DIST += snprintf.c
  485. EXTRA_libgnu_a_SOURCES += snprintf.c
  486. ## end gnulib module snprintf
  487. ## begin gnulib module stdbool
  488. BUILT_SOURCES += $(STDBOOL_H)
  489. # We need the following in order to create <stdbool.h> when the system
  490. # doesn't have one that works.
  491. stdbool.h: stdbool.in.h
  492. rm -f $@-t $@
  493. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  494. sed -e 's/@''HAVE__BOOL''@/$(HAVE__BOOL)/g' < $(srcdir)/stdbool.in.h; \
  495. } > $@-t
  496. mv $@-t $@
  497. MOSTLYCLEANFILES += stdbool.h stdbool.h-t
  498. EXTRA_DIST += stdbool.in.h
  499. ## end gnulib module stdbool
  500. ## begin gnulib module stdint
  501. BUILT_SOURCES += $(STDINT_H)
  502. # We need the following in order to create <stdint.h> when the system
  503. # doesn't have one that works with the given compiler.
  504. stdint.h: stdint.in.h
  505. rm -f $@-t $@
  506. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  507. sed -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \
  508. -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  509. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  510. -e 's|@''NEXT_STDINT_H''@|$(NEXT_STDINT_H)|g' \
  511. -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \
  512. -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
  513. -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \
  514. -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \
  515. -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
  516. -e 's/@''HAVE_UNSIGNED_LONG_LONG_INT''@/$(HAVE_UNSIGNED_LONG_LONG_INT)/g' \
  517. -e 's/@''APPLE_UNIVERSAL_BUILD''@/$(APPLE_UNIVERSAL_BUILD)/g' \
  518. -e 's/@''BITSIZEOF_PTRDIFF_T''@/$(BITSIZEOF_PTRDIFF_T)/g' \
  519. -e 's/@''PTRDIFF_T_SUFFIX''@/$(PTRDIFF_T_SUFFIX)/g' \
  520. -e 's/@''BITSIZEOF_SIG_ATOMIC_T''@/$(BITSIZEOF_SIG_ATOMIC_T)/g' \
  521. -e 's/@''HAVE_SIGNED_SIG_ATOMIC_T''@/$(HAVE_SIGNED_SIG_ATOMIC_T)/g' \
  522. -e 's/@''SIG_ATOMIC_T_SUFFIX''@/$(SIG_ATOMIC_T_SUFFIX)/g' \
  523. -e 's/@''BITSIZEOF_SIZE_T''@/$(BITSIZEOF_SIZE_T)/g' \
  524. -e 's/@''SIZE_T_SUFFIX''@/$(SIZE_T_SUFFIX)/g' \
  525. -e 's/@''BITSIZEOF_WCHAR_T''@/$(BITSIZEOF_WCHAR_T)/g' \
  526. -e 's/@''HAVE_SIGNED_WCHAR_T''@/$(HAVE_SIGNED_WCHAR_T)/g' \
  527. -e 's/@''WCHAR_T_SUFFIX''@/$(WCHAR_T_SUFFIX)/g' \
  528. -e 's/@''BITSIZEOF_WINT_T''@/$(BITSIZEOF_WINT_T)/g' \
  529. -e 's/@''HAVE_SIGNED_WINT_T''@/$(HAVE_SIGNED_WINT_T)/g' \
  530. -e 's/@''WINT_T_SUFFIX''@/$(WINT_T_SUFFIX)/g' \
  531. < $(srcdir)/stdint.in.h; \
  532. } > $@-t
  533. mv $@-t $@
  534. MOSTLYCLEANFILES += stdint.h stdint.h-t
  535. EXTRA_DIST += stdint.in.h
  536. ## end gnulib module stdint
  537. ## begin gnulib module stdio
  538. BUILT_SOURCES += stdio.h
  539. # We need the following in order to create <stdio.h> when the system
  540. # doesn't have one that works with the given compiler.
  541. stdio.h: stdio.in.h
  542. rm -f $@-t $@
  543. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  544. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  545. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  546. -e 's|@''NEXT_STDIO_H''@|$(NEXT_STDIO_H)|g' \
  547. -e 's|@''GNULIB_FPRINTF''@|$(GNULIB_FPRINTF)|g' \
  548. -e 's|@''GNULIB_FPRINTF_POSIX''@|$(GNULIB_FPRINTF_POSIX)|g' \
  549. -e 's|@''GNULIB_PRINTF''@|$(GNULIB_PRINTF)|g' \
  550. -e 's|@''GNULIB_PRINTF_POSIX''@|$(GNULIB_PRINTF_POSIX)|g' \
  551. -e 's|@''GNULIB_SNPRINTF''@|$(GNULIB_SNPRINTF)|g' \
  552. -e 's|@''GNULIB_SPRINTF_POSIX''@|$(GNULIB_SPRINTF_POSIX)|g' \
  553. -e 's|@''GNULIB_VFPRINTF''@|$(GNULIB_VFPRINTF)|g' \
  554. -e 's|@''GNULIB_VFPRINTF_POSIX''@|$(GNULIB_VFPRINTF_POSIX)|g' \
  555. -e 's|@''GNULIB_VPRINTF''@|$(GNULIB_VPRINTF)|g' \
  556. -e 's|@''GNULIB_VPRINTF_POSIX''@|$(GNULIB_VPRINTF_POSIX)|g' \
  557. -e 's|@''GNULIB_VSNPRINTF''@|$(GNULIB_VSNPRINTF)|g' \
  558. -e 's|@''GNULIB_VSPRINTF_POSIX''@|$(GNULIB_VSPRINTF_POSIX)|g' \
  559. -e 's|@''GNULIB_VASPRINTF''@|$(GNULIB_VASPRINTF)|g' \
  560. -e 's|@''GNULIB_OBSTACK_PRINTF''@|$(GNULIB_OBSTACK_PRINTF)|g' \
  561. -e 's|@''GNULIB_OBSTACK_PRINTF_POSIX''@|$(GNULIB_OBSTACK_PRINTF_POSIX)|g' \
  562. -e 's|@''GNULIB_FOPEN''@|$(GNULIB_FOPEN)|g' \
  563. -e 's|@''GNULIB_FREOPEN''@|$(GNULIB_FREOPEN)|g' \
  564. -e 's|@''GNULIB_FSEEK''@|$(GNULIB_FSEEK)|g' \
  565. -e 's|@''GNULIB_FSEEKO''@|$(GNULIB_FSEEKO)|g' \
  566. -e 's|@''GNULIB_FTELL''@|$(GNULIB_FTELL)|g' \
  567. -e 's|@''GNULIB_FTELLO''@|$(GNULIB_FTELLO)|g' \
  568. -e 's|@''GNULIB_FFLUSH''@|$(GNULIB_FFLUSH)|g' \
  569. -e 's|@''GNULIB_FCLOSE''@|$(GNULIB_FCLOSE)|g' \
  570. -e 's|@''GNULIB_FPUTC''@|$(GNULIB_FPUTC)|g' \
  571. -e 's|@''GNULIB_PUTC''@|$(GNULIB_PUTC)|g' \
  572. -e 's|@''GNULIB_PUTCHAR''@|$(GNULIB_PUTCHAR)|g' \
  573. -e 's|@''GNULIB_FPUTS''@|$(GNULIB_FPUTS)|g' \
  574. -e 's|@''GNULIB_PUTS''@|$(GNULIB_PUTS)|g' \
  575. -e 's|@''GNULIB_FWRITE''@|$(GNULIB_FWRITE)|g' \
  576. -e 's|@''GNULIB_GETDELIM''@|$(GNULIB_GETDELIM)|g' \
  577. -e 's|@''GNULIB_GETLINE''@|$(GNULIB_GETLINE)|g' \
  578. -e 's|@''GNULIB_PERROR''@|$(GNULIB_PERROR)|g' \
  579. -e 's|@''GNULIB_STDIO_H_SIGPIPE''@|$(GNULIB_STDIO_H_SIGPIPE)|g' \
  580. -e 's|@''REPLACE_STDIO_WRITE_FUNCS''@|$(REPLACE_STDIO_WRITE_FUNCS)|g' \
  581. -e 's|@''REPLACE_FPRINTF''@|$(REPLACE_FPRINTF)|g' \
  582. -e 's|@''REPLACE_VFPRINTF''@|$(REPLACE_VFPRINTF)|g' \
  583. -e 's|@''REPLACE_PRINTF''@|$(REPLACE_PRINTF)|g' \
  584. -e 's|@''REPLACE_VPRINTF''@|$(REPLACE_VPRINTF)|g' \
  585. -e 's|@''REPLACE_SNPRINTF''@|$(REPLACE_SNPRINTF)|g' \
  586. -e 's|@''HAVE_DECL_SNPRINTF''@|$(HAVE_DECL_SNPRINTF)|g' \
  587. -e 's|@''REPLACE_VSNPRINTF''@|$(REPLACE_VSNPRINTF)|g' \
  588. -e 's|@''HAVE_DECL_VSNPRINTF''@|$(HAVE_DECL_VSNPRINTF)|g' \
  589. -e 's|@''REPLACE_SPRINTF''@|$(REPLACE_SPRINTF)|g' \
  590. -e 's|@''REPLACE_VSPRINTF''@|$(REPLACE_VSPRINTF)|g' \
  591. -e 's|@''HAVE_VASPRINTF''@|$(HAVE_VASPRINTF)|g' \
  592. -e 's|@''REPLACE_VASPRINTF''@|$(REPLACE_VASPRINTF)|g' \
  593. -e 's|@''HAVE_DECL_OBSTACK_PRINTF''@|$(HAVE_DECL_OBSTACK_PRINTF)|g' \
  594. -e 's|@''REPLACE_OBSTACK_PRINTF''@|$(REPLACE_OBSTACK_PRINTF)|g' \
  595. -e 's|@''REPLACE_FOPEN''@|$(REPLACE_FOPEN)|g' \
  596. -e 's|@''REPLACE_FREOPEN''@|$(REPLACE_FREOPEN)|g' \
  597. -e 's|@''REPLACE_FSEEKO''@|$(REPLACE_FSEEKO)|g' \
  598. -e 's|@''REPLACE_FSEEK''@|$(REPLACE_FSEEK)|g' \
  599. -e 's|@''REPLACE_FTELLO''@|$(REPLACE_FTELLO)|g' \
  600. -e 's|@''REPLACE_FTELL''@|$(REPLACE_FTELL)|g' \
  601. -e 's|@''REPLACE_FFLUSH''@|$(REPLACE_FFLUSH)|g' \
  602. -e 's|@''REPLACE_FCLOSE''@|$(REPLACE_FCLOSE)|g' \
  603. -e 's|@''HAVE_DECL_GETDELIM''@|$(HAVE_DECL_GETDELIM)|g' \
  604. -e 's|@''HAVE_DECL_GETLINE''@|$(HAVE_DECL_GETLINE)|g' \
  605. -e 's|@''REPLACE_GETLINE''@|$(REPLACE_GETLINE)|g' \
  606. -e 's|@''REPLACE_PERROR''@|$(REPLACE_PERROR)|g' \
  607. -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
  608. < $(srcdir)/stdio.in.h; \
  609. } > $@-t
  610. mv $@-t $@
  611. MOSTLYCLEANFILES += stdio.h stdio.h-t
  612. EXTRA_DIST += stdio-write.c stdio.in.h
  613. EXTRA_libgnu_a_SOURCES += stdio-write.c
  614. ## end gnulib module stdio
  615. ## begin gnulib module stdlib
  616. BUILT_SOURCES += stdlib.h
  617. # We need the following in order to create <stdlib.h> when the system
  618. # doesn't have one that works with the given compiler.
  619. stdlib.h: stdlib.in.h
  620. rm -f $@-t $@
  621. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  622. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  623. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  624. -e 's|@''NEXT_STDLIB_H''@|$(NEXT_STDLIB_H)|g' \
  625. -e 's|@''GNULIB_MALLOC_POSIX''@|$(GNULIB_MALLOC_POSIX)|g' \
  626. -e 's|@''GNULIB_REALLOC_POSIX''@|$(GNULIB_REALLOC_POSIX)|g' \
  627. -e 's|@''GNULIB_CALLOC_POSIX''@|$(GNULIB_CALLOC_POSIX)|g' \
  628. -e 's|@''GNULIB_ATOLL''@|$(GNULIB_ATOLL)|g' \
  629. -e 's|@''GNULIB_GETLOADAVG''@|$(GNULIB_GETLOADAVG)|g' \
  630. -e 's|@''GNULIB_GETSUBOPT''@|$(GNULIB_GETSUBOPT)|g' \
  631. -e 's|@''GNULIB_MKDTEMP''@|$(GNULIB_MKDTEMP)|g' \
  632. -e 's|@''GNULIB_MKSTEMP''@|$(GNULIB_MKSTEMP)|g' \
  633. -e 's|@''GNULIB_PUTENV''@|$(GNULIB_PUTENV)|g' \
  634. -e 's|@''GNULIB_RANDOM_R''@|$(GNULIB_RANDOM_R)|g' \
  635. -e 's|@''GNULIB_RPMATCH''@|$(GNULIB_RPMATCH)|g' \
  636. -e 's|@''GNULIB_SETENV''@|$(GNULIB_SETENV)|g' \
  637. -e 's|@''GNULIB_STRTOD''@|$(GNULIB_STRTOD)|g' \
  638. -e 's|@''GNULIB_STRTOLL''@|$(GNULIB_STRTOLL)|g' \
  639. -e 's|@''GNULIB_STRTOULL''@|$(GNULIB_STRTOULL)|g' \
  640. -e 's|@''GNULIB_UNSETENV''@|$(GNULIB_UNSETENV)|g' \
  641. -e 's|@''HAVE_ATOLL''@|$(HAVE_ATOLL)|g' \
  642. -e 's|@''HAVE_CALLOC_POSIX''@|$(HAVE_CALLOC_POSIX)|g' \
  643. -e 's|@''HAVE_GETSUBOPT''@|$(HAVE_GETSUBOPT)|g' \
  644. -e 's|@''HAVE_MALLOC_POSIX''@|$(HAVE_MALLOC_POSIX)|g' \
  645. -e 's|@''HAVE_MKDTEMP''@|$(HAVE_MKDTEMP)|g' \
  646. -e 's|@''HAVE_REALLOC_POSIX''@|$(HAVE_REALLOC_POSIX)|g' \
  647. -e 's|@''HAVE_RANDOM_R''@|$(HAVE_RANDOM_R)|g' \
  648. -e 's|@''HAVE_RPMATCH''@|$(HAVE_RPMATCH)|g' \
  649. -e 's|@''HAVE_SETENV''@|$(HAVE_SETENV)|g' \
  650. -e 's|@''HAVE_STRTOD''@|$(HAVE_STRTOD)|g' \
  651. -e 's|@''HAVE_STRTOLL''@|$(HAVE_STRTOLL)|g' \
  652. -e 's|@''HAVE_STRTOULL''@|$(HAVE_STRTOULL)|g' \
  653. -e 's|@''HAVE_STRUCT_RANDOM_DATA''@|$(HAVE_STRUCT_RANDOM_DATA)|g' \
  654. -e 's|@''HAVE_SYS_LOADAVG_H''@|$(HAVE_SYS_LOADAVG_H)|g' \
  655. -e 's|@''HAVE_UNSETENV''@|$(HAVE_UNSETENV)|g' \
  656. -e 's|@''HAVE_DECL_GETLOADAVG''@|$(HAVE_DECL_GETLOADAVG)|g' \
  657. -e 's|@''REPLACE_MKSTEMP''@|$(REPLACE_MKSTEMP)|g' \
  658. -e 's|@''REPLACE_PUTENV''@|$(REPLACE_PUTENV)|g' \
  659. -e 's|@''REPLACE_STRTOD''@|$(REPLACE_STRTOD)|g' \
  660. -e 's|@''VOID_UNSETENV''@|$(VOID_UNSETENV)|g' \
  661. -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
  662. < $(srcdir)/stdlib.in.h; \
  663. } > $@-t
  664. mv $@-t $@
  665. MOSTLYCLEANFILES += stdlib.h stdlib.h-t
  666. EXTRA_DIST += stdlib.in.h
  667. ## end gnulib module stdlib
  668. ## begin gnulib module streq
  669. EXTRA_DIST += streq.h
  670. ## end gnulib module streq
  671. ## begin gnulib module strerror
  672. EXTRA_DIST += strerror.c
  673. EXTRA_libgnu_a_SOURCES += strerror.c
  674. ## end gnulib module strerror
  675. ## begin gnulib module string
  676. BUILT_SOURCES += string.h
  677. # We need the following in order to create <string.h> when the system
  678. # doesn't have one that works with the given compiler.
  679. string.h: string.in.h
  680. rm -f $@-t $@
  681. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */' && \
  682. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  683. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  684. -e 's|@''NEXT_STRING_H''@|$(NEXT_STRING_H)|g' \
  685. -e 's|@''GNULIB_MBSLEN''@|$(GNULIB_MBSLEN)|g' \
  686. -e 's|@''GNULIB_MBSNLEN''@|$(GNULIB_MBSNLEN)|g' \
  687. -e 's|@''GNULIB_MBSCHR''@|$(GNULIB_MBSCHR)|g' \
  688. -e 's|@''GNULIB_MBSRCHR''@|$(GNULIB_MBSRCHR)|g' \
  689. -e 's|@''GNULIB_MBSSTR''@|$(GNULIB_MBSSTR)|g' \
  690. -e 's|@''GNULIB_MBSCASECMP''@|$(GNULIB_MBSCASECMP)|g' \
  691. -e 's|@''GNULIB_MBSNCASECMP''@|$(GNULIB_MBSNCASECMP)|g' \
  692. -e 's|@''GNULIB_MBSPCASECMP''@|$(GNULIB_MBSPCASECMP)|g' \
  693. -e 's|@''GNULIB_MBSCASESTR''@|$(GNULIB_MBSCASESTR)|g' \
  694. -e 's|@''GNULIB_MBSCSPN''@|$(GNULIB_MBSCSPN)|g' \
  695. -e 's|@''GNULIB_MBSPBRK''@|$(GNULIB_MBSPBRK)|g' \
  696. -e 's|@''GNULIB_MBSSPN''@|$(GNULIB_MBSSPN)|g' \
  697. -e 's|@''GNULIB_MBSSEP''@|$(GNULIB_MBSSEP)|g' \
  698. -e 's|@''GNULIB_MBSTOK_R''@|$(GNULIB_MBSTOK_R)|g' \
  699. -e 's|@''GNULIB_MEMMEM''@|$(GNULIB_MEMMEM)|g' \
  700. -e 's|@''GNULIB_MEMPCPY''@|$(GNULIB_MEMPCPY)|g' \
  701. -e 's|@''GNULIB_MEMRCHR''@|$(GNULIB_MEMRCHR)|g' \
  702. -e 's|@''GNULIB_RAWMEMCHR''@|$(GNULIB_RAWMEMCHR)|g' \
  703. -e 's|@''GNULIB_STPCPY''@|$(GNULIB_STPCPY)|g' \
  704. -e 's|@''GNULIB_STPNCPY''@|$(GNULIB_STPNCPY)|g' \
  705. -e 's|@''GNULIB_STRCHRNUL''@|$(GNULIB_STRCHRNUL)|g' \
  706. -e 's|@''GNULIB_STRDUP''@|$(GNULIB_STRDUP)|g' \
  707. -e 's|@''GNULIB_STRNDUP''@|$(GNULIB_STRNDUP)|g' \
  708. -e 's|@''GNULIB_STRNLEN''@|$(GNULIB_STRNLEN)|g' \
  709. -e 's|@''GNULIB_STRPBRK''@|$(GNULIB_STRPBRK)|g' \
  710. -e 's|@''GNULIB_STRSEP''@|$(GNULIB_STRSEP)|g' \
  711. -e 's|@''GNULIB_STRSTR''@|$(GNULIB_STRSTR)|g' \
  712. -e 's|@''GNULIB_STRCASESTR''@|$(GNULIB_STRCASESTR)|g' \
  713. -e 's|@''GNULIB_STRTOK_R''@|$(GNULIB_STRTOK_R)|g' \
  714. -e 's|@''GNULIB_STRERROR''@|$(GNULIB_STRERROR)|g' \
  715. -e 's|@''GNULIB_STRSIGNAL''@|$(GNULIB_STRSIGNAL)|g' \
  716. -e 's|@''GNULIB_STRVERSCMP''@|$(GNULIB_STRVERSCMP)|g' \
  717. -e 's|@''HAVE_DECL_MEMMEM''@|$(HAVE_DECL_MEMMEM)|g' \
  718. -e 's|@''HAVE_MEMPCPY''@|$(HAVE_MEMPCPY)|g' \
  719. -e 's|@''HAVE_DECL_MEMRCHR''@|$(HAVE_DECL_MEMRCHR)|g' \
  720. -e 's|@''HAVE_RAWMEMCHR''@|$(HAVE_RAWMEMCHR)|g' \
  721. -e 's|@''HAVE_STPCPY''@|$(HAVE_STPCPY)|g' \
  722. -e 's|@''HAVE_STPNCPY''@|$(HAVE_STPNCPY)|g' \
  723. -e 's|@''HAVE_STRCHRNUL''@|$(HAVE_STRCHRNUL)|g' \
  724. -e 's|@''HAVE_DECL_STRDUP''@|$(HAVE_DECL_STRDUP)|g' \
  725. -e 's|@''HAVE_STRNDUP''@|$(HAVE_STRNDUP)|g' \
  726. -e 's|@''HAVE_DECL_STRNDUP''@|$(HAVE_DECL_STRNDUP)|g' \
  727. -e 's|@''HAVE_DECL_STRNLEN''@|$(HAVE_DECL_STRNLEN)|g' \
  728. -e 's|@''HAVE_STRPBRK''@|$(HAVE_STRPBRK)|g' \
  729. -e 's|@''HAVE_STRSEP''@|$(HAVE_STRSEP)|g' \
  730. -e 's|@''HAVE_STRCASESTR''@|$(HAVE_STRCASESTR)|g' \
  731. -e 's|@''HAVE_DECL_STRTOK_R''@|$(HAVE_DECL_STRTOK_R)|g' \
  732. -e 's|@''HAVE_DECL_STRERROR''@|$(HAVE_DECL_STRERROR)|g' \
  733. -e 's|@''HAVE_DECL_STRSIGNAL''@|$(HAVE_DECL_STRSIGNAL)|g' \
  734. -e 's|@''HAVE_STRVERSCMP''@|$(HAVE_STRVERSCMP)|g' \
  735. -e 's|@''REPLACE_MEMMEM''@|$(REPLACE_MEMMEM)|g' \
  736. -e 's|@''REPLACE_STRCASESTR''@|$(REPLACE_STRCASESTR)|g' \
  737. -e 's|@''REPLACE_STRDUP''@|$(REPLACE_STRDUP)|g' \
  738. -e 's|@''REPLACE_STRSTR''@|$(REPLACE_STRSTR)|g' \
  739. -e 's|@''REPLACE_STRERROR''@|$(REPLACE_STRERROR)|g' \
  740. -e 's|@''REPLACE_STRSIGNAL''@|$(REPLACE_STRSIGNAL)|g' \
  741. -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
  742. < $(srcdir)/string.in.h; \
  743. } > $@-t
  744. mv $@-t $@
  745. MOSTLYCLEANFILES += string.h string.h-t
  746. EXTRA_DIST += string.in.h
  747. ## end gnulib module string
  748. ## begin gnulib module strndup
  749. EXTRA_DIST += strndup.c
  750. EXTRA_libgnu_a_SOURCES += strndup.c
  751. ## end gnulib module strndup
  752. ## begin gnulib module strnlen
  753. EXTRA_DIST += strnlen.c
  754. EXTRA_libgnu_a_SOURCES += strnlen.c
  755. ## end gnulib module strnlen
  756. ## begin gnulib module sys_socket
  757. BUILT_SOURCES += $(SYS_SOCKET_H)
  758. # We need the following in order to create <sys/socket.h> when the system
  759. # doesn't have one that works with the given compiler.
  760. sys/socket.h: sys_socket.in.h
  761. @MKDIR_P@ sys
  762. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  763. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  764. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  765. -e 's|@''NEXT_SYS_SOCKET_H''@|$(NEXT_SYS_SOCKET_H)|g' \
  766. -e 's|@''HAVE_SYS_SOCKET_H''@|$(HAVE_SYS_SOCKET_H)|g' \
  767. -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
  768. -e 's|@''GNULIB_SOCKET''@|$(GNULIB_SOCKET)|g' \
  769. -e 's|@''GNULIB_CONNECT''@|$(GNULIB_CONNECT)|g' \
  770. -e 's|@''GNULIB_ACCEPT''@|$(GNULIB_ACCEPT)|g' \
  771. -e 's|@''GNULIB_BIND''@|$(GNULIB_BIND)|g' \
  772. -e 's|@''GNULIB_GETPEERNAME''@|$(GNULIB_GETPEERNAME)|g' \
  773. -e 's|@''GNULIB_GETSOCKNAME''@|$(GNULIB_GETSOCKNAME)|g' \
  774. -e 's|@''GNULIB_GETSOCKOPT''@|$(GNULIB_GETSOCKOPT)|g' \
  775. -e 's|@''GNULIB_LISTEN''@|$(GNULIB_LISTEN)|g' \
  776. -e 's|@''GNULIB_RECV''@|$(GNULIB_RECV)|g' \
  777. -e 's|@''GNULIB_SEND''@|$(GNULIB_SEND)|g' \
  778. -e 's|@''GNULIB_RECVFROM''@|$(GNULIB_RECVFROM)|g' \
  779. -e 's|@''GNULIB_SENDTO''@|$(GNULIB_SENDTO)|g' \
  780. -e 's|@''GNULIB_SETSOCKOPT''@|$(GNULIB_SETSOCKOPT)|g' \
  781. -e 's|@''GNULIB_SHUTDOWN''@|$(GNULIB_SHUTDOWN)|g' \
  782. -e 's|@''HAVE_WINSOCK2_H''@|$(HAVE_WINSOCK2_H)|g' \
  783. -e 's|@''HAVE_WS2TCPIP_H''@|$(HAVE_WS2TCPIP_H)|g' \
  784. -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
  785. < $(srcdir)/sys_socket.in.h; \
  786. } > $@-t
  787. mv -f $@-t $@
  788. MOSTLYCLEANFILES += sys/socket.h sys/socket.h-t
  789. MOSTLYCLEANDIRS += sys
  790. EXTRA_DIST += sys_socket.in.h
  791. ## end gnulib module sys_socket
  792. ## begin gnulib module unistd
  793. BUILT_SOURCES += unistd.h
  794. # We need the following in order to create an empty placeholder for
  795. # <unistd.h> when the system doesn't have one.
  796. unistd.h: unistd.in.h
  797. rm -f $@-t $@
  798. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  799. sed -e 's|@''HAVE_UNISTD_H''@|$(HAVE_UNISTD_H)|g' \
  800. -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  801. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  802. -e 's|@''NEXT_UNISTD_H''@|$(NEXT_UNISTD_H)|g' \
  803. -e 's|@''GNULIB_CHOWN''@|$(GNULIB_CHOWN)|g' \
  804. -e 's|@''GNULIB_CLOSE''@|$(GNULIB_CLOSE)|g' \
  805. -e 's|@''GNULIB_DUP2''@|$(GNULIB_DUP2)|g' \
  806. -e 's|@''GNULIB_ENVIRON''@|$(GNULIB_ENVIRON)|g' \
  807. -e 's|@''GNULIB_EUIDACCESS''@|$(GNULIB_EUIDACCESS)|g' \
  808. -e 's|@''GNULIB_FCHDIR''@|$(GNULIB_FCHDIR)|g' \
  809. -e 's|@''GNULIB_FSYNC''@|$(GNULIB_FSYNC)|g' \
  810. -e 's|@''GNULIB_FTRUNCATE''@|$(GNULIB_FTRUNCATE)|g' \
  811. -e 's|@''GNULIB_GETCWD''@|$(GNULIB_GETCWD)|g' \
  812. -e 's|@''GNULIB_GETDOMAINNAME''@|$(GNULIB_GETDOMAINNAME)|g' \
  813. -e 's|@''GNULIB_GETDTABLESIZE''@|$(GNULIB_GETDTABLESIZE)|g' \
  814. -e 's|@''GNULIB_GETHOSTNAME''@|$(GNULIB_GETHOSTNAME)|g' \
  815. -e 's|@''GNULIB_GETLOGIN_R''@|$(GNULIB_GETLOGIN_R)|g' \
  816. -e 's|@''GNULIB_GETPAGESIZE''@|$(GNULIB_GETPAGESIZE)|g' \
  817. -e 's|@''GNULIB_GETUSERSHELL''@|$(GNULIB_GETUSERSHELL)|g' \
  818. -e 's|@''GNULIB_LCHOWN''@|$(GNULIB_LCHOWN)|g' \
  819. -e 's|@''GNULIB_LSEEK''@|$(GNULIB_LSEEK)|g' \
  820. -e 's|@''GNULIB_READLINK''@|$(GNULIB_READLINK)|g' \
  821. -e 's|@''GNULIB_SLEEP''@|$(GNULIB_SLEEP)|g' \
  822. -e 's|@''GNULIB_UNISTD_H_SIGPIPE''@|$(GNULIB_UNISTD_H_SIGPIPE)|g' \
  823. -e 's|@''GNULIB_WRITE''@|$(GNULIB_WRITE)|g' \
  824. -e 's|@''HAVE_DUP2''@|$(HAVE_DUP2)|g' \
  825. -e 's|@''HAVE_EUIDACCESS''@|$(HAVE_EUIDACCESS)|g' \
  826. -e 's|@''HAVE_FSYNC''@|$(HAVE_FSYNC)|g' \
  827. -e 's|@''HAVE_FTRUNCATE''@|$(HAVE_FTRUNCATE)|g' \
  828. -e 's|@''HAVE_GETDOMAINNAME''@|$(HAVE_GETDOMAINNAME)|g' \
  829. -e 's|@''HAVE_GETDTABLESIZE''@|$(HAVE_GETDTABLESIZE)|g' \
  830. -e 's|@''HAVE_GETHOSTNAME''@|$(HAVE_GETHOSTNAME)|g' \
  831. -e 's|@''HAVE_GETPAGESIZE''@|$(HAVE_GETPAGESIZE)|g' \
  832. -e 's|@''HAVE_GETUSERSHELL''@|$(HAVE_GETUSERSHELL)|g' \
  833. -e 's|@''HAVE_READLINK''@|$(HAVE_READLINK)|g' \
  834. -e 's|@''HAVE_SLEEP''@|$(HAVE_SLEEP)|g' \
  835. -e 's|@''HAVE_DECL_ENVIRON''@|$(HAVE_DECL_ENVIRON)|g' \
  836. -e 's|@''HAVE_DECL_GETLOGIN_R''@|$(HAVE_DECL_GETLOGIN_R)|g' \
  837. -e 's|@''HAVE_OS_H''@|$(HAVE_OS_H)|g' \
  838. -e 's|@''HAVE_SYS_PARAM_H''@|$(HAVE_SYS_PARAM_H)|g' \
  839. -e 's|@''REPLACE_CHOWN''@|$(REPLACE_CHOWN)|g' \
  840. -e 's|@''REPLACE_CLOSE''@|$(REPLACE_CLOSE)|g' \
  841. -e 's|@''REPLACE_FCHDIR''@|$(REPLACE_FCHDIR)|g' \
  842. -e 's|@''REPLACE_GETCWD''@|$(REPLACE_GETCWD)|g' \
  843. -e 's|@''REPLACE_GETPAGESIZE''@|$(REPLACE_GETPAGESIZE)|g' \
  844. -e 's|@''REPLACE_LCHOWN''@|$(REPLACE_LCHOWN)|g' \
  845. -e 's|@''REPLACE_LSEEK''@|$(REPLACE_LSEEK)|g' \
  846. -e 's|@''REPLACE_WRITE''@|$(REPLACE_WRITE)|g' \
  847. -e 's|@''UNISTD_H_HAVE_WINSOCK2_H''@|$(UNISTD_H_HAVE_WINSOCK2_H)|g' \
  848. -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
  849. < $(srcdir)/unistd.in.h; \
  850. } > $@-t
  851. mv $@-t $@
  852. MOSTLYCLEANFILES += unistd.h unistd.h-t
  853. EXTRA_DIST += unistd.in.h
  854. ## end gnulib module unistd
  855. ## begin gnulib module unistd-safer
  856. EXTRA_DIST += dup-safer.c fd-safer.c pipe-safer.c unistd--.h unistd-safer.h
  857. EXTRA_libgnu_a_SOURCES += dup-safer.c fd-safer.c pipe-safer.c
  858. ## end gnulib module unistd-safer
  859. ## begin gnulib module vasnprintf
  860. EXTRA_DIST += asnprintf.c float+.h printf-args.c printf-args.h printf-parse.c printf-parse.h vasnprintf.c vasnprintf.h
  861. EXTRA_libgnu_a_SOURCES += asnprintf.c printf-args.c printf-parse.c vasnprintf.c
  862. ## end gnulib module vasnprintf
  863. ## begin gnulib module vasprintf
  864. EXTRA_DIST += asprintf.c vasprintf.c
  865. EXTRA_libgnu_a_SOURCES += asprintf.c vasprintf.c
  866. ## end gnulib module vasprintf
  867. ## begin gnulib module verify
  868. libgnu_a_SOURCES += verify.h
  869. ## end gnulib module verify
  870. ## begin gnulib module vsnprintf
  871. EXTRA_DIST += vsnprintf.c
  872. EXTRA_libgnu_a_SOURCES += vsnprintf.c
  873. ## end gnulib module vsnprintf
  874. ## begin gnulib module wchar
  875. BUILT_SOURCES += $(WCHAR_H)
  876. # We need the following in order to create <wchar.h> when the system
  877. # version does not work standalone.
  878. wchar.h: wchar.in.h
  879. rm -f $@-t $@
  880. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  881. sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  882. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  883. -e 's|@''NEXT_WCHAR_H''@|$(NEXT_WCHAR_H)|g' \
  884. -e 's|@''HAVE_WCHAR_H''@|$(HAVE_WCHAR_H)|g' \
  885. -e 's|@''GNULIB_BTOWC''@|$(GNULIB_BTOWC)|g' \
  886. -e 's|@''GNULIB_WCTOB''@|$(GNULIB_WCTOB)|g' \
  887. -e 's|@''GNULIB_MBSINIT''@|$(GNULIB_MBSINIT)|g' \
  888. -e 's|@''GNULIB_MBRTOWC''@|$(GNULIB_MBRTOWC)|g' \
  889. -e 's|@''GNULIB_MBRLEN''@|$(GNULIB_MBRLEN)|g' \
  890. -e 's|@''GNULIB_MBSRTOWCS''@|$(GNULIB_MBSRTOWCS)|g' \
  891. -e 's|@''GNULIB_MBSNRTOWCS''@|$(GNULIB_MBSNRTOWCS)|g' \
  892. -e 's|@''GNULIB_WCRTOMB''@|$(GNULIB_WCRTOMB)|g' \
  893. -e 's|@''GNULIB_WCSRTOMBS''@|$(GNULIB_WCSRTOMBS)|g' \
  894. -e 's|@''GNULIB_WCSNRTOMBS''@|$(GNULIB_WCSNRTOMBS)|g' \
  895. -e 's|@''GNULIB_WCWIDTH''@|$(GNULIB_WCWIDTH)|g' \
  896. -e 's|@''HAVE_WINT_T''@|$(HAVE_WINT_T)|g' \
  897. -e 's|@''HAVE_BTOWC''@|$(HAVE_BTOWC)|g' \
  898. -e 's|@''HAVE_MBSINIT''@|$(HAVE_MBSINIT)|g' \
  899. -e 's|@''HAVE_MBRTOWC''@|$(HAVE_MBRTOWC)|g' \
  900. -e 's|@''HAVE_MBRLEN''@|$(HAVE_MBRLEN)|g' \
  901. -e 's|@''HAVE_MBSRTOWCS''@|$(HAVE_MBSRTOWCS)|g' \
  902. -e 's|@''HAVE_MBSNRTOWCS''@|$(HAVE_MBSNRTOWCS)|g' \
  903. -e 's|@''HAVE_WCRTOMB''@|$(HAVE_WCRTOMB)|g' \
  904. -e 's|@''HAVE_WCSRTOMBS''@|$(HAVE_WCSRTOMBS)|g' \
  905. -e 's|@''HAVE_WCSNRTOMBS''@|$(HAVE_WCSNRTOMBS)|g' \
  906. -e 's|@''HAVE_DECL_WCTOB''@|$(HAVE_DECL_WCTOB)|g' \
  907. -e 's|@''HAVE_DECL_WCWIDTH''@|$(HAVE_DECL_WCWIDTH)|g' \
  908. -e 's|@''REPLACE_MBSTATE_T''@|$(REPLACE_MBSTATE_T)|g' \
  909. -e 's|@''REPLACE_BTOWC''@|$(REPLACE_BTOWC)|g' \
  910. -e 's|@''REPLACE_WCTOB''@|$(REPLACE_WCTOB)|g' \
  911. -e 's|@''REPLACE_MBSINIT''@|$(REPLACE_MBSINIT)|g' \
  912. -e 's|@''REPLACE_MBRTOWC''@|$(REPLACE_MBRTOWC)|g' \
  913. -e 's|@''REPLACE_MBRLEN''@|$(REPLACE_MBRLEN)|g' \
  914. -e 's|@''REPLACE_MBSRTOWCS''@|$(REPLACE_MBSRTOWCS)|g' \
  915. -e 's|@''REPLACE_MBSNRTOWCS''@|$(REPLACE_MBSNRTOWCS)|g' \
  916. -e 's|@''REPLACE_WCRTOMB''@|$(REPLACE_WCRTOMB)|g' \
  917. -e 's|@''REPLACE_WCSRTOMBS''@|$(REPLACE_WCSRTOMBS)|g' \
  918. -e 's|@''REPLACE_WCWIDTH''@|$(REPLACE_WCWIDTH)|g' \
  919. -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \
  920. < $(srcdir)/wchar.in.h; \
  921. } > $@-t
  922. mv $@-t $@
  923. MOSTLYCLEANFILES += wchar.h wchar.h-t
  924. EXTRA_DIST += wchar.in.h
  925. ## end gnulib module wchar
  926. ## begin gnulib module wcrtomb
  927. EXTRA_DIST += wcrtomb.c
  928. EXTRA_libgnu_a_SOURCES += wcrtomb.c
  929. ## end gnulib module wcrtomb
  930. ## begin gnulib module wctype
  931. BUILT_SOURCES += $(WCTYPE_H)
  932. # We need the following in order to create <wctype.h> when the system
  933. # doesn't have one that works with the given compiler.
  934. wctype.h: wctype.in.h
  935. rm -f $@-t $@
  936. { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
  937. sed -e 's/@''HAVE_WCTYPE_H''@/$(HAVE_WCTYPE_H)/g' \
  938. -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
  939. -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
  940. -e 's|@''NEXT_WCTYPE_H''@|$(NEXT_WCTYPE_H)|g' \
  941. -e 's/@''HAVE_ISWCNTRL''@/$(HAVE_ISWCNTRL)/g' \
  942. -e 's/@''HAVE_WINT_T''@/$(HAVE_WINT_T)/g' \
  943. -e 's/@''REPLACE_ISWCNTRL''@/$(REPLACE_ISWCNTRL)/g' \
  944. < $(srcdir)/wctype.in.h; \
  945. } > $@-t
  946. mv $@-t $@
  947. MOSTLYCLEANFILES += wctype.h wctype.h-t
  948. EXTRA_DIST += wctype.in.h
  949. ## end gnulib module wctype
  950. ## begin gnulib module write
  951. EXTRA_DIST += write.c
  952. EXTRA_libgnu_a_SOURCES += write.c
  953. ## end gnulib module write
  954. ## begin gnulib module xalloc
  955. EXTRA_DIST += xalloc.h xmalloc.c
  956. EXTRA_libgnu_a_SOURCES += xmalloc.c
  957. ## end gnulib module xalloc
  958. ## begin gnulib module xalloc-die
  959. libgnu_a_SOURCES += xalloc-die.c
  960. ## end gnulib module xalloc-die
  961. ## begin gnulib module xsize
  962. libgnu_a_SOURCES += xsize.h
  963. ## end gnulib module xsize
  964. ## begin gnulib module xstrndup
  965. libgnu_a_SOURCES += xstrndup.h xstrndup.c
  966. ## end gnulib module xstrndup
  967. mostlyclean-local: mostlyclean-generic
  968. @for dir in '' $(MOSTLYCLEANDIRS); do \
  969. if test -n "$$dir" && test -d $$dir; then \
  970. echo "rmdir $$dir"; rmdir $$dir; \
  971. fi; \
  972. done; \
  973. :