1
# configure.in - HTML TidyLib GNU autoconf input file
3
# Copyright (c) 2003-2004 World Wide Web Consortium
4
# (Massachusetts Institute of Technology, European Research
5
# Consortium for Informatics and Mathematics, Keio University).
10
# $Author: terry_teague $
11
# $Date: 2004/08/02 02:13:09 $
15
AC_INIT([include/tidy.h])
19
# TIDY_MICRO_VERSION += 1;
20
# TIDY_INTERFACE_AGE += 1;
21
# TIDY_BINARY_AGE += 1;
23
# if any functions have been added, set TIDY_INTERFACE_AGE to 0.
24
# if backwards compatibility has been broken,
25
# set TIDY_BINARY_AGE and TIDY_INTERFACE_AGE to 0.
33
LIBTIDY_VERSION=$TIDY_MAJOR_VERSION.$TIDY_MINOR_VERSION.$TIDY_MICRO_VERSION
35
AC_SUBST(LIBTIDY_VERSION)
39
LT_RELEASE=$TIDY_MAJOR_VERSION.$TIDY_MINOR_VERSION
40
LT_CURRENT=`expr $TIDY_MICRO_VERSION - $TIDY_INTERFACE_AGE`
41
LT_REVISION=$TIDY_INTERFACE_AGE
42
LT_AGE=`expr $TIDY_BINARY_AGE - $TIDY_INTERFACE_AGE`
49
AM_INIT_AUTOMAKE(tidy,$LIBTIDY_VERSION)
51
# Checks for programs.
53
# =============================================
54
# AC_PROG_CC has a habit of adding -g to CFLAGS
59
if test "x$GCC" = "xyes"; then
60
WARNING_CFLAGS="-Wall -Wno-switch -Wno-parentheses -Wno-unused"
64
AC_SUBST(WARNING_CFLAGS)
67
AC_ARG_ENABLE(debug,[ --enable-debug add -g (instead of -O2) to CFLAGS],[
68
if test "x$enableval" = "xyes"; then
72
if test $debug_build = yes; then
73
CFLAGS="$save_cflags -g"
75
CFLAGS="-O2 $save_cflags"
78
# =============================================
88
AC_ARG_ENABLE(access,[ --enable-access support accessibility checks],[
89
if test "x$enableval" = "xno"; then
93
if test $support_access = yes; then
94
AC_DEFINE(SUPPORT_ACCESSIBILITY_CHECKS,1)
96
AC_DEFINE(SUPPORT_ACCESSIBILITY_CHECKS,0)
100
AC_ARG_ENABLE(utf16,[ --enable-utf16 support UTF-16 encoding],[
101
if test "x$enableval" = "xno"; then
105
if test $support_utf16 = yes; then
106
AC_DEFINE(SUPPORT_UTF16_ENCODINGS,1)
108
AC_DEFINE(SUPPORT_UTF16_ENCODINGS,0)
112
AC_ARG_ENABLE(asian,[ --enable-asian support asian encodings],[
113
if test "x$enableval" = "xno"; then
117
if test $support_asian = yes; then
118
AC_DEFINE(SUPPORT_ASIAN_ENCODINGS,1)
120
AC_DEFINE(SUPPORT_ASIAN_ENCODINGS,0)
123
# TODO: this defines "WITH_DMALLOC" but tidy expects "DMALLOC"
124
# need to do: #if defined(DMALLOC) || defined(WITH_DMALLOC)