configure.ac 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437
  1. dnl configuration script for expat
  2. dnl Process this file with autoconf to produce a configure script.
  3. dnl __ __ _
  4. dnl ___\ \/ /_ __ __ _| |_
  5. dnl / _ \\ /| '_ \ / _` | __|
  6. dnl | __// \| |_) | (_| | |_
  7. dnl \___/_/\_\ .__/ \__,_|\__|
  8. dnl |_| XML parser
  9. dnl
  10. dnl Copyright (c) 2000 Clark Cooper <[email protected]>
  11. dnl Copyright (c) 2000-2005 Fred L. Drake, Jr. <[email protected]>
  12. dnl Copyright (c) 2001-2003 Greg Stein <[email protected]>
  13. dnl Copyright (c) 2006-2012 Karl Waclawek <[email protected]>
  14. dnl Copyright (c) 2016-2022 Sebastian Pipping <[email protected]>
  15. dnl Copyright (c) 2017 S. P. Zeidler <[email protected]>
  16. dnl Copyright (c) 2017 Stephen Groat <[email protected]>
  17. dnl Copyright (c) 2017-2020 Joe Orton <[email protected]>
  18. dnl Copyright (c) 2018 Yury Gribov <[email protected]>
  19. dnl Copyright (c) 2018 Benjamin Peterson <[email protected]>
  20. dnl Copyright (c) 2018 Marco Maggi <[email protected]>
  21. dnl Copyright (c) 2018 KangLin <[email protected]>
  22. dnl Copyright (c) 2019 Mohammed Khajapasha <[email protected]>
  23. dnl Copyright (c) 2019 Kishore Kunche <[email protected]>
  24. dnl Copyright (c) 2020 Jeffrey Walton <[email protected]>
  25. dnl Licensed under the MIT license:
  26. dnl
  27. dnl Permission is hereby granted, free of charge, to any person obtaining
  28. dnl a copy of this software and associated documentation files (the
  29. dnl "Software"), to deal in the Software without restriction, including
  30. dnl without limitation the rights to use, copy, modify, merge, publish,
  31. dnl distribute, sublicense, and/or sell copies of the Software, and to permit
  32. dnl persons to whom the Software is furnished to do so, subject to the
  33. dnl following conditions:
  34. dnl
  35. dnl The above copyright notice and this permission notice shall be included
  36. dnl in all copies or substantial portions of the Software.
  37. dnl
  38. dnl THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  39. dnl EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  40. dnl MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
  41. dnl NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
  42. dnl DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  43. dnl OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
  44. dnl USE OR OTHER DEALINGS IN THE SOFTWARE.
  45. dnl Ensure that Expat is configured with autoconf 2.69 or newer.
  46. AC_PREREQ([2.69])
  47. dnl Get the version number of Expat, using m4's esyscmd() command to run
  48. dnl the command at m4-generation time. This allows us to create an m4
  49. dnl symbol holding the correct version number. AC_INIT requires the
  50. dnl version number at m4-time, rather than when ./configure is run, so
  51. dnl all this must happen as part of m4, not as part of the shell code
  52. dnl contained in ./configure.
  53. dnl
  54. dnl NOTE: esyscmd() is a GNU M4 extension. Thus, we wrap it in an appropriate
  55. dnl test. I believe this test will work, but I don't have a place with non-
  56. dnl GNU M4 to test it right now.
  57. m4_define([expat_version],
  58. m4_ifdef([__gnu__],
  59. [esyscmd(conftools/get-version.sh lib/expat.h)],
  60. [2.2.x]))
  61. AC_INIT([expat], expat_version, [[email protected]])
  62. m4_undefine([expat_version])
  63. AC_CONFIG_SRCDIR([Makefile.in])
  64. AC_CONFIG_AUX_DIR([conftools])
  65. AC_CONFIG_MACRO_DIR([m4])
  66. AC_CANONICAL_HOST
  67. AM_INIT_AUTOMAKE
  68. dnl
  69. dnl Increment LIBREVISION if source code has changed at all
  70. dnl
  71. dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
  72. dnl
  73. dnl If the API changes compatibly (i.e. simply adding a new function
  74. dnl without changing or removing earlier interfaces), then increment LIBAGE.
  75. dnl
  76. dnl If the API changes incompatibly set LIBAGE back to 0
  77. dnl
  78. LIBCURRENT=9 # sync
  79. LIBREVISION=6 # with
  80. LIBAGE=8 # CMakeLists.txt!
  81. AC_CONFIG_HEADERS([expat_config.h])
  82. AM_PROG_AR
  83. AC_PROG_INSTALL
  84. AC_PROG_LN_S
  85. AC_PROG_MAKE_SET
  86. LT_PREREQ([2.4])
  87. LT_INIT([win32-dll])
  88. AC_SUBST(LIBCURRENT)
  89. AC_SUBST(LIBREVISION)
  90. AC_SUBST(LIBAGE)
  91. AC_LANG([C])
  92. AC_PROG_CC_C99
  93. AS_IF([test "$GCC" = yes],
  94. [AX_APPEND_COMPILE_FLAGS([-Wall -Wextra], [AM_CFLAGS])
  95. dnl Be careful about adding the -fexceptions option; some versions of
  96. dnl GCC don't support it and it causes extra warnings that are only
  97. dnl distracting; avoid.
  98. AX_APPEND_COMPILE_FLAGS([-fexceptions], [AM_CFLAGS])
  99. AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing -Wmissing-prototypes -Wstrict-prototypes], [AM_CFLAGS])
  100. AX_APPEND_COMPILE_FLAGS([-pedantic -Wduplicated-cond -Wduplicated-branches -Wlogical-op], [AM_CFLAGS])
  101. AX_APPEND_COMPILE_FLAGS([-Wrestrict -Wnull-dereference -Wjump-misses-init -Wdouble-promotion], [AM_CFLAGS])
  102. AX_APPEND_COMPILE_FLAGS([-Wshadow -Wformat=2 -Wno-pedantic-ms-format -Wmisleading-indentation], [AM_CFLAGS])])
  103. AC_LANG_PUSH([C++])
  104. AC_PROG_CXX
  105. AS_IF([test "$GCC" = yes],
  106. [AX_APPEND_COMPILE_FLAGS([-Wall -Wextra], [AM_CXXFLAGS])
  107. dnl Be careful about adding the -fexceptions option; some versions of
  108. dnl GCC don't support it and it causes extra warnings that are only
  109. dnl distracting; avoid.
  110. AX_APPEND_COMPILE_FLAGS([-fexceptions], [AM_CXXFLAGS])
  111. AX_APPEND_COMPILE_FLAGS([-fno-strict-aliasing], [AM_CXXFLAGS])])
  112. AC_LANG_POP([C++])
  113. AS_IF([test "$GCC" = yes],
  114. [AX_APPEND_LINK_FLAGS([-fno-strict-aliasing],[AM_LDFLAGS])])
  115. dnl patching ${archive_cmds} to affect generation of file "libtool" to fix linking with clang (issue #312)
  116. AS_CASE(["$LD"],[*clang*],
  117. [AS_CASE(["${host_os}"],
  118. [*linux*],[archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'])])
  119. EXPATCFG_COMPILER_SUPPORTS_VISIBILITY([
  120. AX_APPEND_FLAG([-fvisibility=hidden], [AM_CFLAGS])
  121. AX_APPEND_FLAG([-DXML_ENABLE_VISIBILITY=1], [AM_CPPFLAGS])])
  122. dnl Checks for typedefs, structures, and compiler characteristics.
  123. dnl We define BYTEORDER to 1234 when the platform is little endian; it
  124. dnl defines it to 4321 when the platform is big endian. We also define
  125. dnl WORDS_BIGENDIAN to 1 when the platform is big endian.
  126. dnl
  127. dnl A long time ago (early 2000 years) AC_C_BIGENDIAN was considered
  128. dnl wrong when cross compiling, now (2018, GNU Autoconf 2.69) we assume
  129. dnl it is fine.
  130. AC_C_BIGENDIAN([AC_DEFINE([WORDS_BIGENDIAN], 1)
  131. AS_VAR_SET([BYTEORDER], 4321)],
  132. [AS_VAR_SET([BYTEORDER], 1234)])
  133. AC_DEFINE_UNQUOTED([BYTEORDER], $BYTEORDER, [1234 = LILENDIAN, 4321 = BIGENDIAN])
  134. AC_C_CONST
  135. AC_TYPE_SIZE_T
  136. AC_ARG_WITH([xmlwf],
  137. [AS_HELP_STRING([--without-xmlwf], [do not build xmlwf])],
  138. [],
  139. [with_xmlwf=yes])
  140. AM_CONDITIONAL([WITH_XMLWF], [test x${with_xmlwf} = xyes])
  141. AC_ARG_WITH([examples],
  142. [AS_HELP_STRING([--without-examples], [do not build examples @<:@default=included@:>@])],
  143. [],
  144. [with_examples=yes])
  145. AM_CONDITIONAL([WITH_EXAMPLES], [test x${with_examples} = xyes])
  146. AC_ARG_WITH([tests],
  147. [AS_HELP_STRING([--without-tests], [do not build tests @<:@default=included@:>@])],
  148. [],
  149. [with_tests=yes])
  150. AM_CONDITIONAL([WITH_TESTS], [test x${with_tests} = xyes])
  151. AS_VAR_SET([EXPATCFG_ON_MINGW],[no])
  152. AS_CASE("${host_os}",
  153. [mingw*],
  154. [AS_VAR_SET([EXPATCFG_ON_MINGW],[yes])
  155. AC_MSG_NOTICE([detected OS: MinGW])])
  156. AM_CONDITIONAL([MINGW], [test x${EXPATCFG_ON_MINGW} = xyes])
  157. dnl Note: Prefix "_INTERNAL_" here means exclusive use inside of file configure.ac
  158. AM_CONDITIONAL([UNICODE], [echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE >/dev/null])
  159. AM_CONDITIONAL([_INTERNAL_UNICODE_WCHAR_T], [echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_UNICODE_WCHAR_T >/dev/null])
  160. AM_CONDITIONAL([_INTERNAL_MIN_SIZE], [echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_MIN_SIZE >/dev/null])
  161. AM_CONDITIONAL([_INTERNAL_LARGE_SIZE], [echo -- "${CPPFLAGS}${CFLAGS}" | ${FGREP} XML_LARGE_SIZE >/dev/null])
  162. LT_LIB_M
  163. AC_ARG_WITH([libbsd],
  164. [AS_HELP_STRING([--with-libbsd], [utilize libbsd (for arc4random_buf)])],
  165. [],
  166. [with_libbsd=no])
  167. AS_IF([test "x${with_libbsd}" != xno],
  168. [AC_CHECK_LIB([bsd],
  169. [arc4random_buf],
  170. [],
  171. [AS_IF([test "x${with_libbsd}" = xyes],
  172. [AC_MSG_ERROR([Enforced use of libbsd cannot be satisfied.])])])])
  173. AC_MSG_CHECKING([for arc4random_buf (BSD or libbsd)])
  174. AC_LINK_IFELSE([AC_LANG_SOURCE([
  175. #include <stdlib.h> /* for arc4random_buf on BSD, for NULL */
  176. #if defined(HAVE_LIBBSD)
  177. # include <bsd/stdlib.h>
  178. #endif
  179. int main() {
  180. arc4random_buf(NULL, 0U);
  181. return 0;
  182. }
  183. ])],
  184. [AC_DEFINE([HAVE_ARC4RANDOM_BUF], [1], [Define to 1 if you have the `arc4random_buf' function.])
  185. AC_MSG_RESULT([yes])],
  186. [AC_MSG_RESULT([no])
  187. AC_MSG_CHECKING([for arc4random (BSD, macOS or libbsd)])
  188. AC_LINK_IFELSE([AC_LANG_SOURCE([
  189. #if defined(HAVE_LIBBSD)
  190. # include <bsd/stdlib.h>
  191. #else
  192. # include <stdlib.h>
  193. #endif
  194. int main() {
  195. arc4random();
  196. return 0;
  197. }
  198. ])],
  199. [AC_DEFINE([HAVE_ARC4RANDOM], [1], [Define to 1 if you have the `arc4random' function.])
  200. AC_MSG_RESULT([yes])],
  201. [AC_MSG_RESULT([no])])])
  202. AC_ARG_WITH([getrandom],
  203. [AS_HELP_STRING([--with-getrandom],
  204. [enforce the use of getrandom function in the system @<:@default=check@:>@])
  205. AS_HELP_STRING([--without-getrandom],
  206. [skip auto detect of getrandom @<:@default=check@:>@])],
  207. [],
  208. [with_getrandom=check])
  209. AS_IF([test "x$with_getrandom" != xno],
  210. [AC_MSG_CHECKING([for getrandom (Linux 3.17+, glibc 2.25+)])
  211. AC_LINK_IFELSE([AC_LANG_SOURCE([
  212. #include <stdlib.h> /* for NULL */
  213. #include <sys/random.h>
  214. int main() {
  215. return getrandom(NULL, 0U, 0U);
  216. }
  217. ])],
  218. [AC_DEFINE([HAVE_GETRANDOM], [1], [Define to 1 if you have the `getrandom' function.])
  219. AC_MSG_RESULT([yes])],
  220. [AC_MSG_RESULT([no])
  221. AS_IF([test "x$with_getrandom" = xyes],
  222. [AC_MSG_ERROR([enforced the use of getrandom --with-getrandom, but not detected])])])])
  223. AC_ARG_WITH([sys_getrandom],
  224. [AS_HELP_STRING([--with-sys-getrandom],
  225. [enforce the use of syscall SYS_getrandom function in the system @<:@default=check@:>@])
  226. AS_HELP_STRING([--without-sys-getrandom],
  227. [skip auto detect of syscall SYS_getrandom @<:@default=check@:>@])],
  228. [],
  229. [with_sys_getrandom=check])
  230. AS_IF([test "x$with_sys_getrandom" != xno],
  231. [AC_MSG_CHECKING([for syscall SYS_getrandom (Linux 3.17+)])
  232. AC_LINK_IFELSE([AC_LANG_SOURCE([
  233. #include <stdlib.h> /* for NULL */
  234. #include <unistd.h> /* for syscall */
  235. #include <sys/syscall.h> /* for SYS_getrandom */
  236. int main() {
  237. syscall(SYS_getrandom, NULL, 0, 0);
  238. return 0;
  239. }
  240. ])],
  241. [AC_DEFINE([HAVE_SYSCALL_GETRANDOM], [1], [Define to 1 if you have `syscall' and `SYS_getrandom'.])
  242. AC_MSG_RESULT([yes])],
  243. [AC_MSG_RESULT([no])
  244. AS_IF([test "x$with_sys_getrandom" = xyes],
  245. [AC_MSG_ERROR([enforced the use of syscall SYS_getrandom --with-sys-getrandom, but not detected])])])])
  246. dnl Only needed for xmlwf:
  247. AC_CHECK_HEADERS(fcntl.h unistd.h)
  248. AC_TYPE_OFF_T
  249. AC_FUNC_MMAP
  250. AS_IF([test "$ac_cv_func_mmap_fixed_mapped" = "yes"],
  251. [AS_VAR_SET(FILEMAP,unixfilemap)],
  252. [AS_VAR_SET(FILEMAP,readfilemap)])
  253. AC_SUBST(FILEMAP)
  254. dnl Some basic configuration:
  255. AC_DEFINE([XML_NS], 1,
  256. [Define to make XML Namespaces functionality available.])
  257. AC_DEFINE([XML_DTD], 1,
  258. [Define to make parameter entity parsing functionality available.])
  259. AC_DEFINE([XML_DEV_URANDOM], 1,
  260. [Define to include code reading entropy from `/dev/urandom'.])
  261. AC_ARG_ENABLE([xml-attr-info],
  262. [AS_HELP_STRING([--enable-xml-attr-info],
  263. [Enable retrieving the byte offsets for attribute names and values @<:@default=no@:>@])],
  264. [],
  265. [enable_xml_attr_info=no])
  266. AS_IF([test "x${enable_xml_attr_info}" = "xyes"],
  267. [AC_DEFINE([XML_ATTR_INFO], 1,
  268. [Define to allow retrieving the byte offsets for attribute names and values.])])
  269. AC_ARG_ENABLE([xml-context],
  270. AS_HELP_STRING([--enable-xml-context @<:@COUNT@:>@],
  271. [Retain context around the current parse point;
  272. default is enabled and a size of 1024 bytes])
  273. AS_HELP_STRING([--disable-xml-context],
  274. [Do not retain context around the current parse point]),
  275. [enable_xml_context=${enableval}])
  276. AS_IF([test "x${enable_xml_context}" != "xno"],
  277. [AS_IF([test "x${enable_xml_context}" = "xyes" \
  278. -o "x${enable_xml_context}" = "x"],
  279. [AS_VAR_SET(enable_xml_context,1024)])
  280. AC_DEFINE_UNQUOTED([XML_CONTEXT_BYTES], [${enable_xml_context}],
  281. [Define to specify how much context to retain around the current parse point.])])
  282. AC_ARG_WITH([docbook],
  283. [AS_HELP_STRING([--with-docbook],
  284. [enforce XML to man page compilation @<:@default=check@:>@])
  285. AS_HELP_STRING([--without-docbook],
  286. [skip XML to man page compilation @<:@default=check@:>@])],
  287. [],
  288. [with_docbook=check])
  289. AC_ARG_VAR([DOCBOOK_TO_MAN], [docbook2x-man command])
  290. AS_IF([test "x$with_docbook" != xno],
  291. [AC_CHECK_PROGS([DOCBOOK_TO_MAN], [docbook2x-man db2x_docbook2man docbook2man docbook-to-man])])
  292. AS_IF([test "x${DOCBOOK_TO_MAN}" = x -a "x$with_docbook" = xyes],
  293. [AC_MSG_ERROR([Required program 'docbook2x-man' not found.])])
  294. AS_IF([test "x${DOCBOOK_TO_MAN}" != x -a "x$with_docbook" != xno],
  295. [AS_IF([${DOCBOOK_TO_MAN} --help | grep -i -q -F sgmlbase],
  296. [AC_MSG_ERROR([Your local ${DOCBOOK_TO_MAN} was found to work with SGML rather
  297. than XML. Please install docbook2X and use variable DOCBOOK_TO_MAN to point
  298. configure to command docbook2x-man of docbook2X.
  299. Or use DOCBOOK_TO_MAN="xmlto man --skip-validation" if you have xmlto around.
  300. You can also configure using --without-docbook if you can do without a man
  301. page for xmlwf.])])])
  302. AM_CONDITIONAL(WITH_DOCBOOK, [test "x${DOCBOOK_TO_MAN}" != x])
  303. dnl Configure CMake file templates
  304. dnl NOTE: The *_TRUE variables read here are Automake conditionals
  305. dnl that are either set to "" when enabled or to "#" when disabled
  306. dnl (because they are used to dynamically comment out certain things)
  307. AS_IF([test "x${enable_xml_attr_info}" = xyes],
  308. [EXPAT_ATTR_INFO=ON],
  309. [EXPAT_ATTR_INFO=OFF])
  310. EXPAT_DTD=ON
  311. AS_IF([test "x${_INTERNAL_LARGE_SIZE_TRUE}" = x],
  312. [EXPAT_LARGE_SIZE=ON],
  313. [EXPAT_LARGE_SIZE=OFF])
  314. AS_IF([test "x${_INTERNAL_MIN_SIZE_TRUE}" = x],
  315. [EXPAT_MIN_SIZE=ON],
  316. [EXPAT_MIN_SIZE=OFF])
  317. EXPAT_NS=ON
  318. AS_IF([test "x${enable_xml_context}" != xno],
  319. [EXPAT_CONTEXT_BYTES=${enable_xml_context}],
  320. [EXPAT_CONTEXT_BYTES=OFF])
  321. AS_IF([test "x${UNICODE_TRUE}" = x],
  322. [AS_IF(
  323. [test "x${_INTERNAL_UNICODE_WCHAR_T_TRUE}" = x],
  324. [EXPAT_CHAR_TYPE=wchar_t],
  325. [EXPAT_CHAR_TYPE=ushort])],
  326. [EXPAT_CHAR_TYPE=char])
  327. PACKAGE_INIT="${srcdir}"/cmake/autotools/expat-package-init.cmake
  328. LIBDIR_BASENAME="$(basename "${libdir}")"
  329. SO_MAJOR="$(expr "${LIBCURRENT}" - "${LIBAGE}")"
  330. SO_MINOR="${LIBAGE}"
  331. SO_PATCH="${LIBREVISION}"
  332. AC_CHECK_SIZEOF([void *]) # sets ac_cv_sizeof_void_p
  333. AC_SUBST([EXPAT_ATTR_INFO])
  334. AC_SUBST([EXPAT_DTD])
  335. AC_SUBST([EXPAT_LARGE_SIZE])
  336. AC_SUBST([EXPAT_MIN_SIZE])
  337. AC_SUBST([EXPAT_NS])
  338. AC_SUBST([EXPAT_CONTEXT_BYTES])
  339. AC_SUBST([EXPAT_CHAR_TYPE])
  340. AC_SUBST_FILE([PACKAGE_INIT])
  341. AC_SUBST([LIBDIR_BASENAME])
  342. AC_SUBST([SO_MAJOR])
  343. AC_SUBST([SO_MINOR])
  344. AC_SUBST([SO_PATCH])
  345. AC_SUBST([ac_cv_sizeof_void_p])
  346. dnl write the Automake flags we set
  347. AC_SUBST([AM_CPPFLAGS])
  348. AC_SUBST([AM_CFLAGS])
  349. AC_SUBST([AM_CXXFLAGS])
  350. AC_SUBST([AM_LDFLAGS])
  351. dnl Emulate the use of CMAKE_SHARED_LIBRARY_PREFIX under CMake
  352. AC_MSG_CHECKING([for shared library name prefix])
  353. AS_CASE("${host_os}",
  354. [cygwin*], [CMAKE_SHARED_LIBRARY_PREFIX=cyg],
  355. [CMAKE_SHARED_LIBRARY_PREFIX=lib])
  356. AC_MSG_RESULT([${CMAKE_SHARED_LIBRARY_PREFIX}])
  357. AC_SUBST([CMAKE_SHARED_LIBRARY_PREFIX])
  358. AS_CASE("${host_os}",
  359. [darwin*], [CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__macos.cmake.in],
  360. [mingw*|cygwin*], [CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__windows.cmake.in],
  361. [CMAKE_NOCONFIG_SOURCE=cmake/autotools/expat-noconfig__linux.cmake.in])
  362. AC_CONFIG_FILES([Makefile]
  363. [expat.pc]
  364. [cmake/expat-config.cmake]
  365. [cmake/autotools/expat-config-version.cmake]
  366. [cmake/autotools/expat-noconfig.cmake:${CMAKE_NOCONFIG_SOURCE}]
  367. [doc/Makefile]
  368. [examples/Makefile]
  369. [lib/Makefile]
  370. [tests/Makefile]
  371. [tests/benchmark/Makefile]
  372. [xmlwf/Makefile])
  373. AC_CONFIG_FILES([run.sh], [chmod +x run.sh])
  374. AC_OUTPUT
  375. AC_MSG_NOTICE([
  376. Automake flags (can be overridden by user flags):
  377. [AM_CPPFLAGS]: ${AM_CPPFLAGS}
  378. [AM_CFLAGS]: ${AM_CFLAGS}
  379. [AM_CXXFLAGS]: ${AM_CXXFLAGS}
  380. [AM_LDFLAGS]: ${AM_LDFLAGS}
  381. User flags (override Automake flags on conflict):
  382. CPPFLAGS: ${CPPFLAGS}
  383. CFLAGS: ${CFLAGS}
  384. CXXFLAGS: ${CXXFLAGS}
  385. LDFLAGS: ${LDFLAGS}])