gnulib-comp.m4 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2011 Free Software Foundation, Inc.
  3. #
  4. # This file is free software, distributed under the terms of the GNU
  5. # General Public License. As a special exception to the GNU General
  6. # Public License, this file may be distributed as part of a program
  7. # that contains a configuration script generated by Autoconf, under
  8. # the same distribution terms as the rest of that program.
  9. #
  10. # Generated by gnulib-tool.
  11. #
  12. # This file represents the compiled summary of the specification in
  13. # gnulib-cache.m4. It lists the computed macro invocations that need
  14. # to be invoked from configure.ac.
  15. # In projects that use version control, this file can be treated like
  16. # other built files.
  17. # This macro should be invoked from ./configure.ac, in the section
  18. # "Checks for programs", right after AC_PROG_CC, and certainly before
  19. # any checks for libraries, header files, types and library functions.
  20. AC_DEFUN([gl_EARLY],
  21. [
  22. m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
  23. m4_pattern_allow([^gl_ES$])dnl a valid locale name
  24. m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
  25. m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
  26. AC_REQUIRE([AC_PROG_RANLIB])
  27. # Code from module arg-nonnull:
  28. # Code from module c++defs:
  29. # Code from module extensions:
  30. AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
  31. # Code from module include_next:
  32. # Code from module memchr:
  33. # Code from module memmem:
  34. # Code from module memmem-simple:
  35. # Code from module multiarch:
  36. # Code from module sigaction:
  37. # Code from module signal:
  38. # Code from module sigprocmask:
  39. # Code from module stddef:
  40. # Code from module stdint:
  41. # Code from module string:
  42. # Code from module warn-on-use:
  43. ])
  44. # This macro should be invoked from ./configure.ac, in the section
  45. # "Check for header files, types and library functions".
  46. AC_DEFUN([gl_INIT],
  47. [
  48. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  49. gl_cond_libtool=false
  50. gl_libdeps=
  51. gl_ltlibdeps=
  52. gl_m4_base='m4'
  53. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  54. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  55. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  56. m4_pushdef([gl_LIBSOURCES_LIST], [])
  57. m4_pushdef([gl_LIBSOURCES_DIR], [])
  58. gl_COMMON
  59. gl_source_base='lib'
  60. gl_FUNC_MEMCHR
  61. if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
  62. AC_LIBOBJ([memchr])
  63. gl_PREREQ_MEMCHR
  64. fi
  65. gl_STRING_MODULE_INDICATOR([memchr])
  66. gl_FUNC_MEMMEM
  67. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  68. AC_LIBOBJ([memmem])
  69. fi
  70. gl_FUNC_MEMMEM_SIMPLE
  71. if test $HAVE_MEMMEM = 0 || test $REPLACE_MEMMEM = 1; then
  72. AC_LIBOBJ([memmem])
  73. fi
  74. gl_STRING_MODULE_INDICATOR([memmem])
  75. gl_MULTIARCH
  76. gl_SIGACTION
  77. if test $HAVE_SIGACTION = 0; then
  78. AC_LIBOBJ([sigaction])
  79. gl_PREREQ_SIGACTION
  80. fi
  81. gl_SIGNAL_MODULE_INDICATOR([sigaction])
  82. gl_SIGNAL_H
  83. gl_SIGNALBLOCKING
  84. if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
  85. AC_LIBOBJ([sigprocmask])
  86. gl_PREREQ_SIGPROCMASK
  87. fi
  88. gl_SIGNAL_MODULE_INDICATOR([sigprocmask])
  89. gl_STDDEF_H
  90. gl_STDINT_H
  91. gl_HEADER_STRING_H
  92. # End of code from modules
  93. m4_ifval(gl_LIBSOURCES_LIST, [
  94. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  95. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  96. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  97. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  98. exit 1
  99. fi
  100. done])dnl
  101. m4_if(m4_sysval, [0], [],
  102. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  103. ])
  104. m4_popdef([gl_LIBSOURCES_DIR])
  105. m4_popdef([gl_LIBSOURCES_LIST])
  106. m4_popdef([AC_LIBSOURCES])
  107. m4_popdef([AC_REPLACE_FUNCS])
  108. m4_popdef([AC_LIBOBJ])
  109. AC_CONFIG_COMMANDS_PRE([
  110. gl_libobjs=
  111. gl_ltlibobjs=
  112. if test -n "$gl_LIBOBJS"; then
  113. # Remove the extension.
  114. sed_drop_objext='s/\.o$//;s/\.obj$//'
  115. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  116. gl_libobjs="$gl_libobjs $i.$ac_objext"
  117. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  118. done
  119. fi
  120. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  121. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  122. ])
  123. gltests_libdeps=
  124. gltests_ltlibdeps=
  125. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  126. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  127. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  128. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  129. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  130. gl_COMMON
  131. gl_source_base='tests'
  132. changequote(,)dnl
  133. 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
  134. changequote([, ])dnl
  135. AC_SUBST([gltests_WITNESS])
  136. gl_module_indicator_condition=$gltests_WITNESS
  137. m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
  138. m4_popdef([gl_MODULE_INDICATOR_CONDITION])
  139. m4_ifval(gltests_LIBSOURCES_LIST, [
  140. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  141. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  142. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  143. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  144. exit 1
  145. fi
  146. done])dnl
  147. m4_if(m4_sysval, [0], [],
  148. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  149. ])
  150. m4_popdef([gltests_LIBSOURCES_DIR])
  151. m4_popdef([gltests_LIBSOURCES_LIST])
  152. m4_popdef([AC_LIBSOURCES])
  153. m4_popdef([AC_REPLACE_FUNCS])
  154. m4_popdef([AC_LIBOBJ])
  155. AC_CONFIG_COMMANDS_PRE([
  156. gltests_libobjs=
  157. gltests_ltlibobjs=
  158. if test -n "$gltests_LIBOBJS"; then
  159. # Remove the extension.
  160. sed_drop_objext='s/\.o$//;s/\.obj$//'
  161. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  162. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  163. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  164. done
  165. fi
  166. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  167. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  168. ])
  169. LIBGNU_LIBDEPS="$gl_libdeps"
  170. AC_SUBST([LIBGNU_LIBDEPS])
  171. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  172. AC_SUBST([LIBGNU_LTLIBDEPS])
  173. ])
  174. # Like AC_LIBOBJ, except that the module name goes
  175. # into gl_LIBOBJS instead of into LIBOBJS.
  176. AC_DEFUN([gl_LIBOBJ], [
  177. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  178. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  179. ])
  180. # Like AC_REPLACE_FUNCS, except that the module name goes
  181. # into gl_LIBOBJS instead of into LIBOBJS.
  182. AC_DEFUN([gl_REPLACE_FUNCS], [
  183. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  184. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  185. ])
  186. # Like AC_LIBSOURCES, except the directory where the source file is
  187. # expected is derived from the gnulib-tool parameterization,
  188. # and alloca is special cased (for the alloca-opt module).
  189. # We could also entirely rely on EXTRA_lib..._SOURCES.
  190. AC_DEFUN([gl_LIBSOURCES], [
  191. m4_foreach([_gl_NAME], [$1], [
  192. m4_if(_gl_NAME, [alloca.c], [], [
  193. m4_define([gl_LIBSOURCES_DIR], [lib])
  194. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  195. ])
  196. ])
  197. ])
  198. # Like AC_LIBOBJ, except that the module name goes
  199. # into gltests_LIBOBJS instead of into LIBOBJS.
  200. AC_DEFUN([gltests_LIBOBJ], [
  201. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  202. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  203. ])
  204. # Like AC_REPLACE_FUNCS, except that the module name goes
  205. # into gltests_LIBOBJS instead of into LIBOBJS.
  206. AC_DEFUN([gltests_REPLACE_FUNCS], [
  207. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  208. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  209. ])
  210. # Like AC_LIBSOURCES, except the directory where the source file is
  211. # expected is derived from the gnulib-tool parameterization,
  212. # and alloca is special cased (for the alloca-opt module).
  213. # We could also entirely rely on EXTRA_lib..._SOURCES.
  214. AC_DEFUN([gltests_LIBSOURCES], [
  215. m4_foreach([_gl_NAME], [$1], [
  216. m4_if(_gl_NAME, [alloca.c], [], [
  217. m4_define([gltests_LIBSOURCES_DIR], [tests])
  218. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  219. ])
  220. ])
  221. ])
  222. # This macro records the list of files which have been installed by
  223. # gnulib-tool and may be removed by future gnulib-tool invocations.
  224. AC_DEFUN([gl_FILE_LIST], [
  225. build-aux/arg-nonnull.h
  226. build-aux/c++defs.h
  227. build-aux/warn-on-use.h
  228. lib/dummy.c
  229. lib/memchr.c
  230. lib/memchr.valgrind
  231. lib/memmem.c
  232. lib/sig-handler.h
  233. lib/sigaction.c
  234. lib/signal.in.h
  235. lib/sigprocmask.c
  236. lib/stddef.in.h
  237. lib/stdint.in.h
  238. lib/str-two-way.h
  239. lib/string.in.h
  240. m4/00gnulib.m4
  241. m4/extensions.m4
  242. m4/gnulib-common.m4
  243. m4/include_next.m4
  244. m4/longlong.m4
  245. m4/memchr.m4
  246. m4/memmem.m4
  247. m4/mmap-anon.m4
  248. m4/multiarch.m4
  249. m4/onceonly.m4
  250. m4/sigaction.m4
  251. m4/signal_h.m4
  252. m4/signalblocking.m4
  253. m4/stddef_h.m4
  254. m4/stdint.m4
  255. m4/string_h.m4
  256. m4/warn-on-use.m4
  257. m4/wchar_t.m4
  258. ])