1 dnl configuration script for expat
2 dnl Process this file with autoconf to produce a configure script.
4 dnl Copyright 2000 Clark Cooper
6 dnl This file is part of EXPAT.
8 dnl EXPAT is free software; you can redistribute it and/or modify it
9 dnl under the terms of the License (based on the MIT/X license) contained
10 dnl in the file COPYING that comes with this distribution.
13 dnl Ensure that Expat is configured with autoconf 2.52 or newer
17 dnl ### apr-util hack: just hard-code the version here, as is done in expat.h.
18 AC_INIT(expat, 1.95.7, expat-bugs@mail.libexpat.org)
20 AC_CONFIG_SRCDIR(Makefile.in)
21 AC_CONFIG_AUX_DIR(conftools)
22 AC_CONFIG_MACRO_DIR(conftools)
25 dnl Increment LIBREVISION if source code has changed at all
27 dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
29 dnl If the API changes compatibly (i.e. simply adding a new function
30 dnl without changing or removing earlier interfaces), then increment LIBAGE.
32 dnl If the API changes incompatibly set LIBAGE back to 0
39 AC_CONFIG_HEADER(expat_config.h)
41 sinclude(conftools/ac_c_bigendian_cross.m4)
47 # Use a custom made libtool replacement
49 LIBTOOL="$srcdir/../../../apr/build/aplibtool"
61 dnl Checks for programs.
65 dnl Checks for header files.
68 dnl Checks for typedefs, structures, and compiler characteristics.
69 dnl check for endianness
70 if test "$cross_compiling" = "no"; then
73 AC_DEFINE(AP_UNKNOWN_BYTE_ORDER,1,
74 [byte order is unknown due to cross-compilation])
78 AC_CHECK_FUNCS(memmove bcopy)
80 dnl Only needed for regression tests:
81 AC_CHECK_HEADERS(check.h)
83 dnl Some basic configuration:
84 AC_DEFINE([XML_NS], 1,
85 [Define to make XML Namespaces functionality available.])
86 AC_DEFINE([XML_DTD], 1,
87 [Define to make parameter entity parsing functionality available.])
88 AC_DEFINE([XML_CONTEXT_BYTES], 1024,
89 [Define to specify how much context to retain around the current parse point.])
91 AC_CONFIG_FILES(Makefile)
94 abs_srcdir="`cd $srcdir && pwd`"
96 if test "$abs_srcdir" != "$abs_builddir"; then