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