gnulib-comp.m4 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  1. # DO NOT EDIT! GENERATED AUTOMATICALLY!
  2. # Copyright (C) 2002-2012 Free Software Foundation, Inc.
  3. #
  4. # This file is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 3 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This file is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this file. If not, see <http://www.gnu.org/licenses/>.
  16. #
  17. # As a special exception to the GNU General Public License,
  18. # this file may be distributed as part of a program that
  19. # contains a configuration script generated by Autoconf, under
  20. # the same distribution terms as the rest of that program.
  21. #
  22. # Generated by gnulib-tool.
  23. #
  24. # This file represents the compiled summary of the specification in
  25. # gnulib-cache.m4. It lists the computed macro invocations that need
  26. # to be invoked from configure.ac.
  27. # In projects that use version control, this file can be treated like
  28. # other built files.
  29. # This macro should be invoked from ./configure.ac, in the section
  30. # "Checks for programs", right after AC_PROG_CC, and certainly before
  31. # any checks for libraries, header files, types and library functions.
  32. AC_DEFUN([gl_EARLY],
  33. [
  34. m4_pattern_forbid([^gl_[A-Z]])dnl the gnulib macro namespace
  35. m4_pattern_allow([^gl_ES$])dnl a valid locale name
  36. m4_pattern_allow([^gl_LIBOBJS$])dnl a variable
  37. m4_pattern_allow([^gl_LTLIBOBJS$])dnl a variable
  38. AC_REQUIRE([gl_PROG_AR_RANLIB])
  39. # Code from module array-list:
  40. # Code from module diffseq:
  41. # Code from module include_next:
  42. # Code from module inline:
  43. # Code from module list:
  44. # Code from module minmax:
  45. # Code from module multiarch:
  46. # Code from module oset:
  47. # Code from module rbtree-list:
  48. # Code from module rbtree-oset:
  49. # Code from module rbtreehash-list:
  50. # Code from module size_max:
  51. # Code from module stdbool:
  52. # Code from module stdint:
  53. # Code from module xsize:
  54. ])
  55. # This macro should be invoked from ./configure.ac, in the section
  56. # "Check for header files, types and library functions".
  57. AC_DEFUN([gl_INIT],
  58. [
  59. AM_CONDITIONAL([GL_COND_LIBTOOL], [false])
  60. gl_cond_libtool=false
  61. gl_libdeps=
  62. gl_ltlibdeps=
  63. gl_m4_base='m4'
  64. m4_pushdef([AC_LIBOBJ], m4_defn([gl_LIBOBJ]))
  65. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gl_REPLACE_FUNCS]))
  66. m4_pushdef([AC_LIBSOURCES], m4_defn([gl_LIBSOURCES]))
  67. m4_pushdef([gl_LIBSOURCES_LIST], [])
  68. m4_pushdef([gl_LIBSOURCES_DIR], [])
  69. gl_COMMON
  70. gl_source_base='gnulib/lib'
  71. gl_INLINE
  72. gl_LIST
  73. gl_MINMAX
  74. gl_MULTIARCH
  75. gl_LIST
  76. gl_SIZE_MAX
  77. AM_STDBOOL_H
  78. gl_STDINT_H
  79. gl_XSIZE
  80. # End of code from modules
  81. m4_ifval(gl_LIBSOURCES_LIST, [
  82. m4_syscmd([test ! -d ]m4_defn([gl_LIBSOURCES_DIR])[ ||
  83. for gl_file in ]gl_LIBSOURCES_LIST[ ; do
  84. if test ! -r ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file ; then
  85. echo "missing file ]m4_defn([gl_LIBSOURCES_DIR])[/$gl_file" >&2
  86. exit 1
  87. fi
  88. done])dnl
  89. m4_if(m4_sysval, [0], [],
  90. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  91. ])
  92. m4_popdef([gl_LIBSOURCES_DIR])
  93. m4_popdef([gl_LIBSOURCES_LIST])
  94. m4_popdef([AC_LIBSOURCES])
  95. m4_popdef([AC_REPLACE_FUNCS])
  96. m4_popdef([AC_LIBOBJ])
  97. AC_CONFIG_COMMANDS_PRE([
  98. gl_libobjs=
  99. gl_ltlibobjs=
  100. if test -n "$gl_LIBOBJS"; then
  101. # Remove the extension.
  102. sed_drop_objext='s/\.o$//;s/\.obj$//'
  103. for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  104. gl_libobjs="$gl_libobjs $i.$ac_objext"
  105. gl_ltlibobjs="$gl_ltlibobjs $i.lo"
  106. done
  107. fi
  108. AC_SUBST([gl_LIBOBJS], [$gl_libobjs])
  109. AC_SUBST([gl_LTLIBOBJS], [$gl_ltlibobjs])
  110. ])
  111. gltests_libdeps=
  112. gltests_ltlibdeps=
  113. m4_pushdef([AC_LIBOBJ], m4_defn([gltests_LIBOBJ]))
  114. m4_pushdef([AC_REPLACE_FUNCS], m4_defn([gltests_REPLACE_FUNCS]))
  115. m4_pushdef([AC_LIBSOURCES], m4_defn([gltests_LIBSOURCES]))
  116. m4_pushdef([gltests_LIBSOURCES_LIST], [])
  117. m4_pushdef([gltests_LIBSOURCES_DIR], [])
  118. gl_COMMON
  119. gl_source_base='gnulib/tests'
  120. changequote(,)dnl
  121. 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
  122. changequote([, ])dnl
  123. AC_SUBST([gltests_WITNESS])
  124. gl_module_indicator_condition=$gltests_WITNESS
  125. m4_pushdef([gl_MODULE_INDICATOR_CONDITION], [$gl_module_indicator_condition])
  126. m4_popdef([gl_MODULE_INDICATOR_CONDITION])
  127. m4_ifval(gltests_LIBSOURCES_LIST, [
  128. m4_syscmd([test ! -d ]m4_defn([gltests_LIBSOURCES_DIR])[ ||
  129. for gl_file in ]gltests_LIBSOURCES_LIST[ ; do
  130. if test ! -r ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file ; then
  131. echo "missing file ]m4_defn([gltests_LIBSOURCES_DIR])[/$gl_file" >&2
  132. exit 1
  133. fi
  134. done])dnl
  135. m4_if(m4_sysval, [0], [],
  136. [AC_FATAL([expected source file, required through AC_LIBSOURCES, not found])])
  137. ])
  138. m4_popdef([gltests_LIBSOURCES_DIR])
  139. m4_popdef([gltests_LIBSOURCES_LIST])
  140. m4_popdef([AC_LIBSOURCES])
  141. m4_popdef([AC_REPLACE_FUNCS])
  142. m4_popdef([AC_LIBOBJ])
  143. AC_CONFIG_COMMANDS_PRE([
  144. gltests_libobjs=
  145. gltests_ltlibobjs=
  146. if test -n "$gltests_LIBOBJS"; then
  147. # Remove the extension.
  148. sed_drop_objext='s/\.o$//;s/\.obj$//'
  149. for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
  150. gltests_libobjs="$gltests_libobjs $i.$ac_objext"
  151. gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
  152. done
  153. fi
  154. AC_SUBST([gltests_LIBOBJS], [$gltests_libobjs])
  155. AC_SUBST([gltests_LTLIBOBJS], [$gltests_ltlibobjs])
  156. ])
  157. LIBGNU_LIBDEPS="$gl_libdeps"
  158. AC_SUBST([LIBGNU_LIBDEPS])
  159. LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
  160. AC_SUBST([LIBGNU_LTLIBDEPS])
  161. ])
  162. # Like AC_LIBOBJ, except that the module name goes
  163. # into gl_LIBOBJS instead of into LIBOBJS.
  164. AC_DEFUN([gl_LIBOBJ], [
  165. AS_LITERAL_IF([$1], [gl_LIBSOURCES([$1.c])])dnl
  166. gl_LIBOBJS="$gl_LIBOBJS $1.$ac_objext"
  167. ])
  168. # Like AC_REPLACE_FUNCS, except that the module name goes
  169. # into gl_LIBOBJS instead of into LIBOBJS.
  170. AC_DEFUN([gl_REPLACE_FUNCS], [
  171. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  172. AC_CHECK_FUNCS([$1], , [gl_LIBOBJ($ac_func)])
  173. ])
  174. # Like AC_LIBSOURCES, except the directory where the source file is
  175. # expected is derived from the gnulib-tool parameterization,
  176. # and alloca is special cased (for the alloca-opt module).
  177. # We could also entirely rely on EXTRA_lib..._SOURCES.
  178. AC_DEFUN([gl_LIBSOURCES], [
  179. m4_foreach([_gl_NAME], [$1], [
  180. m4_if(_gl_NAME, [alloca.c], [], [
  181. m4_define([gl_LIBSOURCES_DIR], [gnulib/lib])
  182. m4_append([gl_LIBSOURCES_LIST], _gl_NAME, [ ])
  183. ])
  184. ])
  185. ])
  186. # Like AC_LIBOBJ, except that the module name goes
  187. # into gltests_LIBOBJS instead of into LIBOBJS.
  188. AC_DEFUN([gltests_LIBOBJ], [
  189. AS_LITERAL_IF([$1], [gltests_LIBSOURCES([$1.c])])dnl
  190. gltests_LIBOBJS="$gltests_LIBOBJS $1.$ac_objext"
  191. ])
  192. # Like AC_REPLACE_FUNCS, except that the module name goes
  193. # into gltests_LIBOBJS instead of into LIBOBJS.
  194. AC_DEFUN([gltests_REPLACE_FUNCS], [
  195. m4_foreach_w([gl_NAME], [$1], [AC_LIBSOURCES(gl_NAME[.c])])dnl
  196. AC_CHECK_FUNCS([$1], , [gltests_LIBOBJ($ac_func)])
  197. ])
  198. # Like AC_LIBSOURCES, except the directory where the source file is
  199. # expected is derived from the gnulib-tool parameterization,
  200. # and alloca is special cased (for the alloca-opt module).
  201. # We could also entirely rely on EXTRA_lib..._SOURCES.
  202. AC_DEFUN([gltests_LIBSOURCES], [
  203. m4_foreach([_gl_NAME], [$1], [
  204. m4_if(_gl_NAME, [alloca.c], [], [
  205. m4_define([gltests_LIBSOURCES_DIR], [gnulib/tests])
  206. m4_append([gltests_LIBSOURCES_LIST], _gl_NAME, [ ])
  207. ])
  208. ])
  209. ])
  210. # This macro records the list of files which have been installed by
  211. # gnulib-tool and may be removed by future gnulib-tool invocations.
  212. AC_DEFUN([gl_FILE_LIST], [
  213. lib/diffseq.h
  214. lib/gl_anyhash_list1.h
  215. lib/gl_anyhash_list2.h
  216. lib/gl_anyrbtree_list1.h
  217. lib/gl_anyrbtree_list2.h
  218. lib/gl_anytree_list1.h
  219. lib/gl_anytree_list2.h
  220. lib/gl_anytree_oset.h
  221. lib/gl_anytreehash_list1.h
  222. lib/gl_anytreehash_list2.h
  223. lib/gl_array_list.c
  224. lib/gl_array_list.h
  225. lib/gl_list.c
  226. lib/gl_list.h
  227. lib/gl_oset.c
  228. lib/gl_oset.h
  229. lib/gl_rbtree_list.c
  230. lib/gl_rbtree_list.h
  231. lib/gl_rbtree_oset.c
  232. lib/gl_rbtree_oset.h
  233. lib/gl_rbtreehash_list.c
  234. lib/gl_rbtreehash_list.h
  235. lib/minmax.h
  236. lib/size_max.h
  237. lib/stdbool.in.h
  238. lib/stdint.in.h
  239. lib/xsize.h
  240. m4/00gnulib.m4
  241. m4/gl_list.m4
  242. m4/gnulib-common.m4
  243. m4/include_next.m4
  244. m4/inline.m4
  245. m4/longlong.m4
  246. m4/minmax.m4
  247. m4/multiarch.m4
  248. m4/onceonly.m4
  249. m4/size_max.m4
  250. m4/stdbool.m4
  251. m4/stdint.m4
  252. m4/xsize.m4
  253. ])