bottleneck testcase based on rubbos
[bottlenecks.git] / rubbos / app / httpd-2.0.64 / srclib / apr-util / xml / expat / configure.in
1 dnl   configuration script for expat
2 dnl   Process this file with autoconf to produce a configure script.
3 dnl
4 dnl   Copyright 2000 Clark Cooper
5 dnl
6 dnl   This file is part of EXPAT.
7 dnl
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.
11 dnl
12
13 dnl Ensure that Expat is configured with autoconf 2.52 or newer
14 AC_PREREQ(2.52)
15
16
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)
19
20 AC_CONFIG_SRCDIR(Makefile.in)
21 AC_CONFIG_AUX_DIR(conftools)
22 AC_CONFIG_MACRO_DIR(conftools)
23
24 dnl
25 dnl Increment LIBREVISION if source code has changed at all
26 dnl
27 dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
28 dnl
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.
31 dnl 
32 dnl If the API changes incompatibly set LIBAGE back to 0
33 dnl
34
35 LIBCURRENT=5
36 LIBREVISION=0
37 LIBAGE=5
38
39 AC_CONFIG_HEADER(expat_config.h)
40
41 sinclude(conftools/ac_c_bigendian_cross.m4)
42
43 AC_CANONICAL_SYSTEM
44
45 case "$host_os" in
46 *os2*)
47     # Use a custom made libtool replacement
48     echo Using aplibtool
49     LIBTOOL="$srcdir/../../../apr/build/aplibtool"
50     ;;
51 *)
52 AC_LIBTOOL_WIN32_DLL
53 AC_PROG_LIBTOOL
54     ;;
55 esac
56
57 AC_SUBST(LIBCURRENT)
58 AC_SUBST(LIBREVISION)
59 AC_SUBST(LIBAGE)
60
61 dnl Checks for programs.
62 AC_PROG_CC
63 AC_PROG_INSTALL
64
65 dnl Checks for header files.
66 AC_HEADER_STDC
67
68 dnl Checks for typedefs, structures, and compiler characteristics.
69 dnl check for endianness
70 if test "$cross_compiling" = "no"; then
71   AC_C_BIGENDIAN
72 else
73   AC_DEFINE(AP_UNKNOWN_BYTE_ORDER,1,
74                 [byte order is unknown due to cross-compilation])
75 fi
76 AC_C_CONST
77 AC_TYPE_SIZE_T
78 AC_CHECK_FUNCS(memmove bcopy)
79
80 dnl Only needed for regression tests:
81 AC_CHECK_HEADERS(check.h)
82
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.])
90
91 AC_CONFIG_FILES(Makefile)
92 AC_OUTPUT
93
94 abs_srcdir="`cd $srcdir && pwd`"
95 abs_builddir="`pwd`"
96 if test "$abs_srcdir" != "$abs_builddir"; then
97   mkdir lib
98 fi
99