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.
14
AC_CONFIG_AUX_DIR(conftools)
17
dnl Follow the GNU/Linux convention of odd number minor version for
18
dnl beta/development releases and even number minor version for stable
19
dnl releases. Edit is bumped with each release and set to 0 with
20
dnl change to major or minor version.
24
EXPAT_MINOR_VERSION=95
27
EXPAT_VERSION=$EXPAT_MAJOR_VERSION.$EXPAT_MINOR_VERSION.$EXPAT_EDIT
28
VERSION=$EXPAT_VERSION
32
dnl Increment LIBREVISION if source code has changed at all
34
dnl If the API has changed, increment LIBCURRENT and set LIBREVISION to 0
36
dnl If the API changes compatibly (i.e. simply adding a new function
37
dnl without changing or removing earlier interfaces), then increment LIBAGE.
39
dnl If the API changes incompatibly set LIBAGE back to 0
46
AC_CONFIG_HEADER(config.h)
51
# Use a custom made libtool replacement
53
LIBTOOL="$srcdir/../../../apr/build/aplibtool"
66
AC_SUBST(EXPAT_MAJOR_VERSION)
67
AC_SUBST(EXPAT_MINOR_VERSION)
74
dnl Checks for programs.
78
dnl Checks for libraries.
80
dnl Checks for header files.
82
AC_CHECK_HEADERS(fcntl.h unistd.h string.h)
84
dnl Checks for typedefs, structures, and compiler characteristics.
85
dnl check for endianness
86
if test "$cross_compiling" = "no"; then
89
AC_DEFINE(AP_UNKNOWN_BYTE_ORDER,1,
90
[byte order is unknown due to cross-compilation])
96
dnl Checks for library functions.
100
AC_SUBST(FILEMAP_OBJ)
101
if test -z "$HAVE_MMAP"; then
102
FILEMAP_OBJ=unixfilemap.o
104
FILEMAP_OBJ=readfilemap.o
107
AC_CHECK_FUNCS(memmove bcopy)
109
AC_OUTPUT(Makefile lib/Makefile lib/expat.h)