Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 1 | dnl Process this file with autoconf to produce a configure script. |
Adrian Bunk | 64b0d60 | 2010-11-04 09:43:31 +0100 | [diff] [blame] | 2 | AC_PREREQ(2.59) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 3 | AC_INIT(entities.c) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 4 | AM_CONFIG_HEADER(config.h) |
Daniel Veillard | 3157e51 | 2010-03-09 11:32:46 +0100 | [diff] [blame] | 5 | AC_CONFIG_MACRO_DIR([m4]) |
Daniel Veillard | d2ade93 | 2000-09-30 14:39:55 +0000 | [diff] [blame] | 6 | AC_CANONICAL_HOST |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 7 | |
Daniel Veillard | cf46199 | 2000-03-14 18:30:20 +0000 | [diff] [blame] | 8 | LIBXML_MAJOR_VERSION=2 |
Daniel Veillard | 1572425 | 2008-08-30 15:01:04 +0000 | [diff] [blame] | 9 | LIBXML_MINOR_VERSION=7 |
Daniel Veillard | bb5055f | 2010-03-15 16:21:00 +0100 | [diff] [blame] | 10 | LIBXML_MICRO_VERSION=7 |
Daniel Veillard | 3e35f8e | 2003-10-21 00:05:38 +0000 | [diff] [blame] | 11 | LIBXML_MICRO_VERSION_SUFFIX= |
Daniel Veillard | 4fc5281 | 2003-09-01 20:33:13 +0000 | [diff] [blame] | 12 | LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 13 | LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION |
| 14 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 15 | LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION` |
| 16 | |
Daniel Veillard | 9cb1b64 | 2007-01-03 15:07:44 +0000 | [diff] [blame] | 17 | if test -f CVS/Entries ; then |
Daniel Veillard | dab93ea | 2004-08-20 16:47:10 +0000 | [diff] [blame] | 18 | extra=`grep ChangeLog CVS/Entries | grep -v LIBXML | sed -e s\%/ChangeLog/1\.%% -e s\%/.*$%%` |
| 19 | echo extra=$extra |
| 20 | if test "$extra" != "" |
| 21 | then |
| 22 | LIBXML_VERSION_EXTRA="-CVS$extra" |
| 23 | fi |
Daniel Veillard | 9cb1b64 | 2007-01-03 15:07:44 +0000 | [diff] [blame] | 24 | else if test -d .svn ; then |
| 25 | extra=`svn info | grep Revision | sed 's+Revision: ++'` |
| 26 | echo extra=$extra |
| 27 | if test "$extra" != "" |
| 28 | then |
| 29 | LIBXML_VERSION_EXTRA="-SVN$extra" |
| 30 | fi |
veillard | 97c7be6 | 2009-05-12 08:43:54 +0200 | [diff] [blame] | 31 | else if test -d .git ; then |
| 32 | extra=`git describe | sed 's+LIBXML[[0-9.]]*-++'` |
| 33 | echo extra=$extra |
| 34 | if test "$extra" != "" |
| 35 | then |
| 36 | LIBXML_VERSION_EXTRA="-GIT$extra" |
| 37 | fi |
| 38 | fi |
Daniel Veillard | 9cb1b64 | 2007-01-03 15:07:44 +0000 | [diff] [blame] | 39 | fi |
William M. Brack | f402549 | 2004-08-18 21:08:46 +0000 | [diff] [blame] | 40 | fi |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 41 | AC_SUBST(LIBXML_MAJOR_VERSION) |
| 42 | AC_SUBST(LIBXML_MINOR_VERSION) |
| 43 | AC_SUBST(LIBXML_MICRO_VERSION) |
| 44 | AC_SUBST(LIBXML_VERSION) |
| 45 | AC_SUBST(LIBXML_VERSION_INFO) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 46 | AC_SUBST(LIBXML_VERSION_NUMBER) |
William M. Brack | f402549 | 2004-08-18 21:08:46 +0000 | [diff] [blame] | 47 | AC_SUBST(LIBXML_VERSION_EXTRA) |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 48 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 49 | VERSION=${LIBXML_VERSION} |
Daniel Veillard | 14fff06 | 1999-06-22 21:49:07 +0000 | [diff] [blame] | 50 | |
Daniel Veillard | edfb29b | 2000-03-14 19:59:05 +0000 | [diff] [blame] | 51 | AM_INIT_AUTOMAKE(libxml2, $VERSION) |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 52 | |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 53 | dnl Checks for programs. |
| 54 | AC_PROG_CC |
| 55 | AC_PROG_INSTALL |
Adrian Bunk | 64b0d60 | 2010-11-04 09:43:31 +0100 | [diff] [blame] | 56 | AC_PROG_MKDIR_P |
Sebastian Wilhelmi | a44c8a4 | 1998-08-07 08:38:58 +0000 | [diff] [blame] | 57 | AC_PROG_CPP |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 58 | AC_PATH_PROG(RM, rm, /bin/rm) |
| 59 | AC_PATH_PROG(MV, mv, /bin/mv) |
| 60 | AC_PATH_PROG(TAR, tar, /bin/tar) |
William M. Brack | 1826d0a | 2004-07-21 09:03:57 +0000 | [diff] [blame] | 61 | AC_PATH_PROG(PERL, perl, /usr/bin/perl) |
Daniel Veillard | 33a2de9 | 2006-10-11 08:33:22 +0000 | [diff] [blame] | 62 | AC_PATH_PROG(WGET, wget, /usr/bin/wget) |
Daniel Veillard | 8b817da | 2004-09-30 09:19:33 +0000 | [diff] [blame] | 63 | AC_PATH_PROG(XMLLINT, xmllint, /usr/bin/xmllint) |
Daniel Veillard | 06500c8 | 2004-09-07 09:12:44 +0000 | [diff] [blame] | 64 | AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 65 | |
Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 66 | dnl Make sure we have an ANSI compiler |
| 67 | AM_C_PROTOTYPES |
| 68 | test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant) |
| 69 | |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 70 | AC_LIBTOOL_WIN32_DLL |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 71 | AM_PROG_LIBTOOL |
| 72 | |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 73 | dnl |
Daniel Veillard | 8ed1072 | 2009-08-20 19:17:36 +0200 | [diff] [blame] | 74 | dnl if the system support linker version scripts for symbol versioning |
| 75 | dnl then add it |
| 76 | dnl |
| 77 | VERSION_SCRIPT_FLAGS= |
Roumen Petrov | f39adc2 | 2010-03-11 14:49:13 +0100 | [diff] [blame] | 78 | # lt_cv_prog_gnu_ld is from libtool 2.+ |
| 79 | if test "$lt_cv_prog_gnu_ld" = yes; then |
| 80 | VERSION_SCRIPT_FLAGS=-Wl,--version-script= |
| 81 | else |
| 82 | case $host in |
| 83 | *-*-sunos*) VERSION_SCRIPT_FLAGS="-Wl,-M -Wl,";; |
| 84 | esac |
| 85 | fi |
Daniel Veillard | 8ed1072 | 2009-08-20 19:17:36 +0200 | [diff] [blame] | 86 | AC_SUBST(VERSION_SCRIPT_FLAGS) |
| 87 | AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"]) |
| 88 | |
| 89 | dnl |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 90 | dnl We process the AC_ARG_WITH first so that later we can modify |
| 91 | dnl some of them to try to prevent impossible combinations. This |
| 92 | dnl also allows up so alphabetize the choices |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 93 | dnl |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 94 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 95 | dnl |
| 96 | dnl zlib option might change flags, so we save them initially |
| 97 | dnl |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 98 | _cppflags="${CPPFLAGS}" |
| 99 | _ldflags="${LDFLAGS}" |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 100 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 101 | AC_ARG_WITH(c14n, |
| 102 | [ --with-c14n add the Canonicalization support (on)]) |
| 103 | AC_ARG_WITH(catalog, |
| 104 | [ --with-catalog add the Catalog support (on)]) |
| 105 | AC_ARG_WITH(debug, |
| 106 | [ --with-debug add the debugging module (on)]) |
| 107 | AC_ARG_WITH(docbook, |
| 108 | [ --with-docbook add Docbook SGML support (on)]) |
| 109 | AC_ARG_WITH(fexceptions, |
| 110 | [ --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)]) |
| 111 | AC_ARG_WITH(ftp, |
| 112 | [ --with-ftp add the FTP support (on)]) |
| 113 | AC_ARG_WITH(history, |
| 114 | [ --with-history add history support to xmllint shell(off)]) |
| 115 | AC_ARG_WITH(html, |
| 116 | [ --with-html add the HTML support (on)]) |
| 117 | dnl Specific dir for HTML output ? |
| 118 | AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path], |
| 119 | [path to base html directory, default $datadir/doc/html]), |
| 120 | [HTML_DIR=$withval], [HTML_DIR='$(datadir)/doc']) |
Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 121 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 122 | AC_ARG_WITH(html-subdir, AC_HELP_STRING([--with-html-subdir=path], |
| 123 | [directory used under html-dir, default $PACKAGE-$VERSION/html]), |
| 124 | [test "x$withval" != "x" && HTML_DIR="$HTML_DIR/$withval"], |
| 125 | [HTML_DIR="$HTML_DIR/\$(PACKAGE)-\$(VERSION)/html"]) |
| 126 | AC_SUBST(HTML_DIR) |
| 127 | AC_ARG_WITH(http, |
| 128 | [ --with-http add the HTTP support (on)]) |
| 129 | AC_ARG_WITH(iconv, |
| 130 | [ --with-iconv[[=DIR]] add ICONV support (on)]) |
Giuseppe Iuculano | 48f7dcb | 2010-11-04 17:42:42 +0100 | [diff] [blame^] | 131 | AC_ARG_WITH(icu, |
| 132 | [ --with-icu add ICU support (off)]) |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 133 | AC_ARG_WITH(iso8859x, |
| 134 | [ --with-iso8859x add ISO8859X support if no iconv (on)]) |
| 135 | AC_ARG_WITH(legacy, |
| 136 | [ --with-legacy add deprecated APIs for compatibility (on)]) |
| 137 | AC_ARG_WITH(mem_debug, |
| 138 | [ --with-mem-debug add the memory debugging module (off)]) |
| 139 | AC_ARG_WITH(minimum, |
| 140 | [ --with-minimum build a minimally sized library (off)]) |
| 141 | AC_ARG_WITH(output, |
| 142 | [ --with-output add the serialization support (on)]) |
| 143 | AC_ARG_WITH(pattern, |
| 144 | [ --with-pattern add the xmlPattern selection interface (on)]) |
| 145 | AC_ARG_WITH(push, |
| 146 | [ --with-push add the PUSH parser interfaces (on)]) |
| 147 | AC_ARG_WITH(python, |
| 148 | [ --with-python[[=DIR]] build Python bindings if found]) |
| 149 | AC_ARG_WITH(reader, |
| 150 | [ --with-reader add the xmlReader parsing interface (on)]) |
| 151 | AC_ARG_WITH(readline, |
| 152 | [ --with-readline=DIR use readline in DIR],[ |
| 153 | if test "$withval" != "no" -a "$withval" != "yes"; then |
| 154 | RDL_DIR=$withval |
| 155 | CPPFLAGS="${CPPFLAGS} -I$withval/include" |
| 156 | LDFLAGS="${LDFLAGS} -L$withval/lib" |
| 157 | fi |
| 158 | ]) |
| 159 | AC_ARG_WITH(regexps, |
| 160 | [ --with-regexps add Regular Expressions support (on)]) |
| 161 | AC_ARG_WITH(run_debug, |
| 162 | [ --with-run-debug add the runtime debugging module (off)]) |
| 163 | AC_ARG_WITH(sax1, |
| 164 | [ --with-sax1 add the older SAX1 interface (on)]) |
| 165 | AC_ARG_WITH(schemas, |
Daniel Veillard | 39e5c89 | 2005-07-03 22:48:50 +0000 | [diff] [blame] | 166 | [ --with-schemas add Relax-NG and Schemas support (on)]) |
Daniel Veillard | ed6c549 | 2005-07-23 15:00:22 +0000 | [diff] [blame] | 167 | AC_ARG_WITH(schematron, |
| 168 | [ --with-schematron add Schematron support (on)]) |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 169 | AC_ARG_WITH(threads, |
| 170 | [ --with-threads add multithread support(on)]) |
| 171 | AC_ARG_WITH(thread-alloc, |
| 172 | [ --with-thread-alloc add per-thread memory(off)]) |
| 173 | AC_ARG_WITH(tree, |
| 174 | [ --with-tree add the DOM like tree manipulation APIs (on)]) |
| 175 | AC_ARG_WITH(valid, |
| 176 | [ --with-valid add the DTD validation support (on)]) |
| 177 | AC_ARG_WITH(writer, |
| 178 | [ --with-writer add the xmlWriter saving interface (on)]) |
| 179 | AC_ARG_WITH(xinclude, |
| 180 | [ --with-xinclude add the XInclude support (on)]) |
| 181 | AC_ARG_WITH(xpath, |
| 182 | [ --with-xpath add the XPATH support (on)]) |
| 183 | AC_ARG_WITH(xptr, |
| 184 | [ --with-xptr add the XPointer support (on)]) |
Daniel Veillard | f6b71bd | 2005-01-04 17:50:14 +0000 | [diff] [blame] | 185 | AC_ARG_WITH(modules, |
| 186 | [ --with-modules add the dynamic modules support (on)]) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 187 | AC_ARG_WITH(zlib, |
William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 188 | [ --with-zlib[[=DIR]] use libz in DIR],[ |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 189 | if test "$withval" != "no" -a "$withval" != "yes"; then |
| 190 | Z_DIR=$withval |
| 191 | CPPFLAGS="${CPPFLAGS} -I$withval/include" |
| 192 | LDFLAGS="${LDFLAGS} -L$withval/lib" |
| 193 | fi |
Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 194 | ]) |
Daniel Veillard | bfa5cf1 | 2008-08-27 15:33:28 +0000 | [diff] [blame] | 195 | AC_ARG_WITH(coverage, |
| 196 | [ --with-coverage build for code coverage with GCC (off)]) |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 197 | |
Daniel Veillard | b40744e | 2008-10-17 13:26:44 +0000 | [diff] [blame] | 198 | AC_ARG_ENABLE(rebuild-docs, |
| 199 | [ --enable-rebuild-docs[[=yes/no]] rebuild some generated docs [[default=yes]]]) |
| 200 | AM_CONDITIONAL([REBUILD_DOCS], [test "$enable_rebuild_docs" = "no"]) |
| 201 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 202 | dnl |
Daniel Veillard | 39e5c89 | 2005-07-03 22:48:50 +0000 | [diff] [blame] | 203 | dnl hard dependancies on options |
| 204 | dnl |
| 205 | if test "$with_schemas" = "yes" |
| 206 | then |
| 207 | with_pattern=yes |
Daniel Veillard | c51f51c | 2007-05-02 16:25:45 +0000 | [diff] [blame] | 208 | with_regexps=yes |
Daniel Veillard | 39e5c89 | 2005-07-03 22:48:50 +0000 | [diff] [blame] | 209 | fi |
Daniel Veillard | ed6c549 | 2005-07-23 15:00:22 +0000 | [diff] [blame] | 210 | if test "$with_schematron" = "yes" |
| 211 | then |
| 212 | with_pattern=yes |
| 213 | with_xpath=yes |
| 214 | fi |
Daniel Veillard | 39e5c89 | 2005-07-03 22:48:50 +0000 | [diff] [blame] | 215 | if test "$with_reader" = "yes" |
| 216 | then |
| 217 | with_push=yes |
| 218 | fi |
| 219 | if test "$with_xptr" = "yes" |
| 220 | then |
| 221 | with_xpath=yes |
| 222 | fi |
| 223 | dnl |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 224 | dnl option to build a minimal libxml2 library |
| 225 | dnl |
| 226 | if test "$with_minimum" = "yes" |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 227 | then |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 228 | echo "Configuring for a minimal library" |
| 229 | if test "$with_c14n" = "" |
| 230 | then |
| 231 | with_c14n=no |
| 232 | fi |
| 233 | if test "$with_catalog" = "" |
| 234 | then |
| 235 | with_catalog=no |
| 236 | fi |
| 237 | echo So far so good! |
| 238 | if test "$with_debug" = "" |
| 239 | then |
| 240 | with_debug=no |
| 241 | fi |
| 242 | if test "$with_docbook" = "" |
| 243 | then |
| 244 | with_docbook=no |
| 245 | fi |
| 246 | if test "$with_fexceptions" = "" |
| 247 | then |
| 248 | with_fexceptions=no |
| 249 | fi |
| 250 | if test "$with_ftp" = "" |
| 251 | then |
| 252 | with_ftp=no |
| 253 | fi |
| 254 | if test "$with_history" = "" |
| 255 | then |
| 256 | with_history=no |
| 257 | fi |
| 258 | if test "$with_html" = "" |
| 259 | then |
| 260 | with_html=no |
| 261 | fi |
| 262 | if test "$with_http" = "" |
| 263 | then |
| 264 | with_http=no |
| 265 | fi |
| 266 | if test "$with_iconv" = "" |
| 267 | then |
| 268 | with_iconv=no |
| 269 | fi |
| 270 | if test "$with_iso8859x" = "" |
| 271 | then |
| 272 | with_iso8859x=no |
| 273 | fi |
| 274 | if test "$with_legacy" = "" |
| 275 | then |
| 276 | with_legacy=no |
| 277 | fi |
| 278 | if test "$with_mem_debug" = "" |
| 279 | then |
| 280 | with_mem_debug=no |
| 281 | fi |
| 282 | if test "$with_output" = "" |
| 283 | then |
| 284 | with_output=no |
| 285 | fi |
| 286 | if test "$with_pattern" = "" |
| 287 | then |
| 288 | with_pattern=no |
| 289 | fi |
| 290 | if test "$with_push" = "" |
| 291 | then |
| 292 | with_push=no |
| 293 | fi |
| 294 | if test "$with_python" = "" |
| 295 | then |
| 296 | with_python=no |
| 297 | fi |
| 298 | if test "$with_reader" = "" |
| 299 | then |
| 300 | with_reader=no |
| 301 | fi |
| 302 | if test "$with_readline" = "" |
| 303 | then |
| 304 | with_readline=no |
| 305 | fi |
Daniel Veillard | c51f51c | 2007-05-02 16:25:45 +0000 | [diff] [blame] | 306 | if test "$with_regexps" = "" |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 307 | then |
Daniel Veillard | c51f51c | 2007-05-02 16:25:45 +0000 | [diff] [blame] | 308 | with_regexps=no |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 309 | fi |
| 310 | if test "$with_run_debug" = "" |
| 311 | then |
| 312 | with_run_debug=no |
| 313 | fi |
| 314 | if test "$with_sax1" = "" |
| 315 | then |
| 316 | with_sax1=no |
| 317 | fi |
| 318 | if test "$with_schemas" = "" |
| 319 | then |
| 320 | with_schemas=no |
| 321 | fi |
Daniel Veillard | ed6c549 | 2005-07-23 15:00:22 +0000 | [diff] [blame] | 322 | if test "$with_schematron" = "" |
| 323 | then |
| 324 | with_schematron=no |
| 325 | fi |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 326 | if test "$with_threads" = "" |
| 327 | then |
| 328 | with_threads=no |
| 329 | fi |
| 330 | if test "$with_thread_alloc" = "" |
| 331 | then |
| 332 | with_thread_alloc=no |
| 333 | fi |
| 334 | if test "$with_tree" = "" |
| 335 | then |
| 336 | with_tree=no |
| 337 | fi |
| 338 | if test "$with_valid" = "" |
| 339 | then |
| 340 | with_valid=no |
| 341 | fi |
| 342 | if test "$with_writer" = "" |
| 343 | then |
| 344 | with_writer=no |
| 345 | fi |
| 346 | if test "$with_xinclude" = "" |
| 347 | then |
| 348 | with_xinclude=no |
| 349 | fi |
| 350 | if test "$with_xpath" = "" |
| 351 | then |
| 352 | with_xpath=no |
| 353 | fi |
| 354 | if test "$with_xptr" = "" |
| 355 | then |
| 356 | with_xptr=no |
| 357 | fi |
| 358 | if test "$with_zlib" = "" |
| 359 | then |
| 360 | with_zlib=no |
| 361 | fi |
Daniel Veillard | f6b71bd | 2005-01-04 17:50:14 +0000 | [diff] [blame] | 362 | if test "$with_modules" = "" |
| 363 | then |
| 364 | with_modules=no |
| 365 | fi |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 366 | fi |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 367 | |
| 368 | echo Checking zlib |
| 369 | |
| 370 | dnl Checks for zlib library. |
| 371 | |
Daniel Veillard | 75acfee | 2006-07-13 06:29:56 +0000 | [diff] [blame] | 372 | WITH_ZLIB=0 |
Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 373 | if test "$with_zlib" = "no"; then |
| 374 | echo "Disabling compression support" |
| 375 | else |
Daniel Veillard | 3fbe8e3 | 2001-10-06 13:30:33 +0000 | [diff] [blame] | 376 | AC_CHECK_HEADERS(zlib.h, |
| 377 | AC_CHECK_LIB(z, gzread,[ |
Daniel Veillard | 75acfee | 2006-07-13 06:29:56 +0000 | [diff] [blame] | 378 | AC_DEFINE([HAVE_LIBZ], [1], [Have compression library]) |
| 379 | WITH_ZLIB=1 |
Daniel Veillard | 3fbe8e3 | 2001-10-06 13:30:33 +0000 | [diff] [blame] | 380 | if test "x${Z_DIR}" != "x"; then |
| 381 | Z_CFLAGS="-I${Z_DIR}/include" |
| 382 | Z_LIBS="-L${Z_DIR}/lib -lz" |
| 383 | [case ${host} in |
| 384 | *-*-solaris*) |
| 385 | Z_LIBS="-L${Z_DIR}/lib -R${Z_DIR}/lib -lz" |
| 386 | ;; |
| 387 | esac] |
| 388 | else |
| 389 | Z_LIBS="-lz" |
| 390 | fi])) |
Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 391 | fi |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 392 | |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 393 | AC_SUBST(Z_CFLAGS) |
| 394 | AC_SUBST(Z_LIBS) |
Daniel Veillard | 75acfee | 2006-07-13 06:29:56 +0000 | [diff] [blame] | 395 | AC_SUBST(WITH_ZLIB) |
Owen Taylor | 3473f88 | 2001-02-23 17:55:21 +0000 | [diff] [blame] | 396 | |
| 397 | CPPFLAGS=${_cppflags} |
| 398 | LDFLAGS=${_ldflags} |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 399 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 400 | echo Checking headers |
| 401 | |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 402 | dnl Checks for header files. |
| 403 | AC_HEADER_DIRENT |
| 404 | AC_HEADER_STDC |
Daniel Veillard | 817e70b | 2002-11-19 22:28:48 +0000 | [diff] [blame] | 405 | AC_CHECK_HEADERS([fcntl.h]) |
| 406 | AC_CHECK_HEADERS([unistd.h]) |
| 407 | AC_CHECK_HEADERS([ctype.h]) |
| 408 | AC_CHECK_HEADERS([dirent.h]) |
| 409 | AC_CHECK_HEADERS([errno.h]) |
| 410 | AC_CHECK_HEADERS([malloc.h]) |
| 411 | AC_CHECK_HEADERS([stdarg.h]) |
| 412 | AC_CHECK_HEADERS([sys/stat.h]) |
| 413 | AC_CHECK_HEADERS([sys/types.h]) |
Daniel Veillard | 7f4547c | 2008-10-03 07:58:23 +0000 | [diff] [blame] | 414 | AC_CHECK_HEADERS([stdint.h]) |
| 415 | AC_CHECK_HEADERS([inttypes.h.h]) |
Daniel Veillard | 817e70b | 2002-11-19 22:28:48 +0000 | [diff] [blame] | 416 | AC_CHECK_HEADERS([time.h]) |
| 417 | AC_CHECK_HEADERS([ansidecl.h]) |
| 418 | AC_CHECK_HEADERS([ieeefp.h]) |
| 419 | AC_CHECK_HEADERS([nan.h]) |
| 420 | AC_CHECK_HEADERS([math.h]) |
Daniel Veillard | ebe48c6 | 2003-12-03 12:12:27 +0000 | [diff] [blame] | 421 | AC_CHECK_HEADERS([limits.h]) |
Daniel Veillard | 817e70b | 2002-11-19 22:28:48 +0000 | [diff] [blame] | 422 | AC_CHECK_HEADERS([fp_class.h]) |
| 423 | AC_CHECK_HEADERS([float.h]) |
| 424 | AC_CHECK_HEADERS([stdlib.h]) |
| 425 | AC_CHECK_HEADERS([sys/socket.h], [], [], |
| 426 | [#if HAVE_SYS_TYPES_H |
| 427 | # include <sys/types.h> |
| 428 | # endif |
| 429 | ]) |
| 430 | AC_CHECK_HEADERS([netinet/in.h], [], [], |
| 431 | [#if HAVE_SYS_TYPES_H |
| 432 | # include <sys/types.h> |
| 433 | # endif |
| 434 | ]) |
| 435 | AC_CHECK_HEADERS([arpa/inet.h], [], [], |
| 436 | [#if HAVE_SYS_TYPES_H |
| 437 | # include <sys/types.h> |
| 438 | # endif |
| 439 | #if HAVE_ARPA_INET_H |
| 440 | # include <arpa/inet.h> |
| 441 | # endif |
| 442 | ]) |
| 443 | AC_CHECK_HEADERS([netdb.h]) |
| 444 | AC_CHECK_HEADERS([sys/time.h]) |
| 445 | AC_CHECK_HEADERS([sys/select.h]) |
Raphael Prevost | 48b60c3 | 2009-08-23 13:11:01 +0200 | [diff] [blame] | 446 | AC_CHECK_HEADERS([poll.h]) |
Daniel Veillard | 817e70b | 2002-11-19 22:28:48 +0000 | [diff] [blame] | 447 | AC_CHECK_HEADERS([sys/mman.h]) |
| 448 | AC_CHECK_HEADERS([sys/timeb.h]) |
| 449 | AC_CHECK_HEADERS([signal.h]) |
| 450 | AC_CHECK_HEADERS([arpa/nameser.h], [], [], |
| 451 | [#if HAVE_SYS_TYPES_H |
| 452 | # include <sys/types.h> |
| 453 | # endif |
| 454 | ]) |
| 455 | AC_CHECK_HEADERS([resolv.h], [], [], |
| 456 | [#if HAVE_SYS_TYPES_H |
| 457 | # include <sys/types.h> |
| 458 | # endif |
| 459 | #if HAVE_NETINET_IN_H |
| 460 | # include <netinet/in.h> |
| 461 | # endif |
| 462 | #if HAVE_ARPA_NAMESER_H |
| 463 | # include <arpa/nameser.h> |
| 464 | # endif |
| 465 | ]) |
Daniel Veillard | dcd9390 | 2005-01-13 11:25:15 +0000 | [diff] [blame] | 466 | AC_CHECK_HEADERS([dl.h]) |
| 467 | AC_CHECK_HEADERS([dlfcn.h]) |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 468 | |
Daniel Veillard | fc97906 | 2004-03-04 22:07:16 +0000 | [diff] [blame] | 469 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 470 | echo Checking libraries |
Daniel Veillard | 1164e75 | 1999-02-16 16:29:17 +0000 | [diff] [blame] | 471 | |
Daniel Veillard | 01791d5 | 1998-07-24 19:24:09 +0000 | [diff] [blame] | 472 | dnl Checks for library functions. |
| 473 | AC_FUNC_STRFTIME |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 474 | AC_CHECK_FUNCS(strdup strndup strerror) |
Daniel Veillard | 71b656e | 2000-01-05 14:46:17 +0000 | [diff] [blame] | 475 | AC_CHECK_FUNCS(finite isnand fp_class class fpclass) |
Daniel Veillard | 90bc371 | 2002-03-07 15:12:58 +0000 | [diff] [blame] | 476 | AC_CHECK_FUNCS(strftime localtime gettimeofday ftime) |
Daniel Veillard | 068a965 | 2001-06-07 15:30:26 +0000 | [diff] [blame] | 477 | AC_CHECK_FUNCS(stat _stat signal) |
Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 478 | |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 479 | dnl Checking the standard string functions availability |
| 480 | AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf,, |
| 481 | NEED_TRIO=1) |
| 482 | |
William M. Brack | f4caa5e | 2005-10-20 09:04:05 +0000 | [diff] [blame] | 483 | dnl Checking for va_copy availability |
| 484 | AC_MSG_CHECKING([for va_copy]) |
| 485 | AC_TRY_LINK([#include <stdarg.h> |
| 486 | va_list ap1,ap2;], [va_copy(ap1,ap2);], |
| 487 | have_va_copy=yes, |
| 488 | have_va_copy=no) |
| 489 | AC_MSG_RESULT($have_va_copy) |
| 490 | if test x"$have_va_copy" = x"yes"; then |
| 491 | AC_DEFINE(HAVE_VA_COPY,1,[Whether va_copy() is available]) |
| 492 | else |
| 493 | AC_MSG_CHECKING([for __va_copy]) |
| 494 | AC_TRY_LINK([#include <stdarg.h> |
| 495 | va_list ap1,ap2;], [__va_copy(ap1,ap2);], |
| 496 | have___va_copy=yes, |
| 497 | have___va_copy=no) |
| 498 | AC_MSG_RESULT($have___va_copy) |
| 499 | if test x"$have___va_copy" = x"yes"; then |
| 500 | AC_DEFINE(HAVE___VA_COPY,1,[Whether __va_copy() is available]) |
| 501 | fi |
| 502 | fi |
| 503 | |
Daniel Veillard | 7f7d111 | 1999-09-22 09:46:25 +0000 | [diff] [blame] | 504 | dnl Checks for inet libraries: |
Daniel Veillard | d4e39ae | 2005-10-28 15:59:14 +0000 | [diff] [blame] | 505 | AC_SEARCH_LIBS(gethostent, [nsl]) |
Scott McCreary | 59f5308 | 2009-08-26 09:55:24 +0200 | [diff] [blame] | 506 | AC_SEARCH_LIBS(setsockopt, [socket net network]) |
Daniel Veillard | d4e39ae | 2005-10-28 15:59:14 +0000 | [diff] [blame] | 507 | AC_SEARCH_LIBS(connect, [inet]) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 508 | |
Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 509 | dnl Determine what socket length (socklen_t) data type is |
| 510 | AC_MSG_CHECKING([for type of socket length (socklen_t)]) |
| 511 | AC_TRY_COMPILE2([ |
| 512 | #include <stddef.h> |
| 513 | #include <sys/types.h> |
| 514 | #include <sys/socket.h>],[ |
| 515 | (void)getsockopt (1, 1, 1, NULL, (socklen_t *)NULL)],[ |
| 516 | AC_MSG_RESULT(socklen_t *) |
Daniel Veillard | c284c64 | 2005-03-31 10:24:24 +0000 | [diff] [blame] | 517 | XML_SOCKLEN_T=socklen_t],[ |
Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 518 | AC_TRY_COMPILE2([ |
| 519 | #include <stddef.h> |
| 520 | #include <sys/types.h> |
| 521 | #include <sys/socket.h>],[ |
| 522 | (void)getsockopt (1, 1, 1, NULL, (size_t *)NULL)],[ |
| 523 | AC_MSG_RESULT(size_t *) |
Daniel Veillard | c284c64 | 2005-03-31 10:24:24 +0000 | [diff] [blame] | 524 | XML_SOCKLEN_T=size_t],[ |
Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 525 | AC_TRY_COMPILE2([ |
| 526 | #include <stddef.h> |
| 527 | #include <sys/types.h> |
| 528 | #include <sys/socket.h>],[ |
| 529 | (void)getsockopt (1, 1, 1, NULL, (int *)NULL)],[ |
| 530 | AC_MSG_RESULT(int *) |
Daniel Veillard | c284c64 | 2005-03-31 10:24:24 +0000 | [diff] [blame] | 531 | XML_SOCKLEN_T=int],[ |
William M. Brack | 2e6b143 | 2004-02-09 15:10:28 +0000 | [diff] [blame] | 532 | AC_MSG_WARN(could not determine) |
Daniel Veillard | c284c64 | 2005-03-31 10:24:24 +0000 | [diff] [blame] | 533 | XML_SOCKLEN_T="int"])])]) |
| 534 | AC_DEFINE_UNQUOTED(XML_SOCKLEN_T, $XML_SOCKLEN_T, [Determine what socket length (socklen_t) data type is]) |
Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 535 | |
Daniel Veillard | de2a67b | 2003-06-21 14:20:04 +0000 | [diff] [blame] | 536 | dnl ***********************Checking for availability of IPv6******************* |
| 537 | |
| 538 | AC_MSG_CHECKING([whether to enable IPv6]) |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 539 | AC_ARG_ENABLE(ipv6, [ --enable-ipv6[[=yes/no]] enables compilation of IPv6 code [[default=yes]]],, enable_ipv6=yes) |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 540 | if test "$with_minimum" = "yes" |
| 541 | then |
| 542 | enable_ipv6=no |
| 543 | fi |
Daniel Veillard | de2a67b | 2003-06-21 14:20:04 +0000 | [diff] [blame] | 544 | if test $enable_ipv6 = yes; then |
| 545 | have_ipv6=no |
| 546 | AC_TRY_COMPILE([ |
William M. Brack | 0c1e301 | 2007-03-14 12:40:21 +0000 | [diff] [blame] | 547 | #include <sys/types.h> |
William M. Brack | 06559b3 | 2007-03-14 09:34:15 +0000 | [diff] [blame] | 548 | #include <sys/socket.h> |
William M. Brack | 0c1e301 | 2007-03-14 12:40:21 +0000 | [diff] [blame] | 549 | ], [ |
Daniel Veillard | de2a67b | 2003-06-21 14:20:04 +0000 | [diff] [blame] | 550 | struct sockaddr_storage ss; |
| 551 | socket(AF_INET6, SOCK_STREAM, 0) |
| 552 | ], |
| 553 | have_ipv6=yes, |
| 554 | have_ipv6=no |
| 555 | ) |
| 556 | AC_MSG_RESULT($have_ipv6) |
| 557 | |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 558 | if test $have_ipv6 = yes; then |
Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 559 | AC_DEFINE([SUPPORT_IP6], [], [Support for IPv6]) |
Dodji Seketeli | 8eba3f3 | 2004-11-09 18:30:30 +0000 | [diff] [blame] | 560 | have_broken_ss_family=no |
| 561 | |
| 562 | dnl ********************************************************************* |
| 563 | dnl on some platforms (like AIX 5L), the structure sockaddr doesn't have |
| 564 | dnl a ss_family member, but rather __ss_family. Let's detect that |
William M. Brack | 7d8b36b | 2005-06-25 07:30:50 +0000 | [diff] [blame] | 565 | dnl and define the HAVE_BROKEN_SS_FAMILY when we are on one of these |
| 566 | dnl platforms. However, we should only do this if ss_family is not |
| 567 | dnl present. |
Dodji Seketeli | 8eba3f3 | 2004-11-09 18:30:30 +0000 | [diff] [blame] | 568 | dnl ******************************************************************** |
William M. Brack | 7d8b36b | 2005-06-25 07:30:50 +0000 | [diff] [blame] | 569 | AC_MSG_CHECKING([struct sockaddr::ss_family]) |
Dodji Seketeli | 8eba3f3 | 2004-11-09 18:30:30 +0000 | [diff] [blame] | 570 | AC_TRY_COMPILE([ |
William M. Brack | 0c1e301 | 2007-03-14 12:40:21 +0000 | [diff] [blame] | 571 | #include <sys/types.h> |
William M. Brack | 06559b3 | 2007-03-14 09:34:15 +0000 | [diff] [blame] | 572 | #include <sys/socket.h> |
William M. Brack | 0c1e301 | 2007-03-14 12:40:21 +0000 | [diff] [blame] | 573 | ], [ |
Dodji Seketeli | 8eba3f3 | 2004-11-09 18:30:30 +0000 | [diff] [blame] | 574 | struct sockaddr_storage ss ; |
William M. Brack | 7d8b36b | 2005-06-25 07:30:50 +0000 | [diff] [blame] | 575 | ss.ss_family = 0 ; |
Dodji Seketeli | 8eba3f3 | 2004-11-09 18:30:30 +0000 | [diff] [blame] | 576 | ], |
William M. Brack | 7d8b36b | 2005-06-25 07:30:50 +0000 | [diff] [blame] | 577 | have_ss_family=yes, |
| 578 | have_ss_family=no |
Dodji Seketeli | 8eba3f3 | 2004-11-09 18:30:30 +0000 | [diff] [blame] | 579 | ) |
William M. Brack | 7d8b36b | 2005-06-25 07:30:50 +0000 | [diff] [blame] | 580 | AC_MSG_RESULT($have_ss_family) |
| 581 | if test x$have_ss_family = xno ; then |
| 582 | AC_MSG_CHECKING([broken struct sockaddr::ss_family]) |
| 583 | AC_TRY_COMPILE([ |
William M. Brack | 0c1e301 | 2007-03-14 12:40:21 +0000 | [diff] [blame] | 584 | #include <sys/types.h> |
William M. Brack | 06559b3 | 2007-03-14 09:34:15 +0000 | [diff] [blame] | 585 | #include <sys/socket.h> |
William M. Brack | 0c1e301 | 2007-03-14 12:40:21 +0000 | [diff] [blame] | 586 | ], [ |
William M. Brack | 7d8b36b | 2005-06-25 07:30:50 +0000 | [diff] [blame] | 587 | struct sockaddr_storage ss ; |
| 588 | ss.__ss_family = 0 ; |
| 589 | ], |
| 590 | have_broken_ss_family=yes, |
| 591 | have_broken_ss_family=no |
| 592 | ) |
| 593 | AC_MSG_RESULT($have_broken_ss_family) |
| 594 | if test x$have_broken_ss_family = xyes ; then |
| 595 | AC_DEFINE(HAVE_BROKEN_SS_FAMILY, [], |
| 596 | [Whether struct sockaddr::__ss_family exists]) |
| 597 | AC_DEFINE(ss_family, __ss_family, |
| 598 | [ss_family is not defined here, use __ss_family instead]) |
| 599 | else |
| 600 | AC_MSG_WARN(ss_family and __ss_family not found) |
| 601 | fi |
Dodji Seketeli | 8eba3f3 | 2004-11-09 18:30:30 +0000 | [diff] [blame] | 602 | fi |
Daniel Veillard | de2a67b | 2003-06-21 14:20:04 +0000 | [diff] [blame] | 603 | |
| 604 | have_getaddrinfo=no |
| 605 | AC_CHECK_FUNC(getaddrinfo, have_getaddrinfo=yes) |
| 606 | if test $have_getaddrinfo != yes; then |
| 607 | for lib in bsd socket inet; do |
| 608 | AC_CHECK_LIB($lib, getaddrinfo, [LIBS="$LIBS -l$lib";have_getaddrinfo=yes;break]) |
| 609 | done |
| 610 | fi |
| 611 | |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 612 | if test $have_getaddrinfo = yes; then |
Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 613 | AC_DEFINE([HAVE_GETADDRINFO], [], [Define if getaddrinfo is there]) |
Daniel Veillard | de2a67b | 2003-06-21 14:20:04 +0000 | [diff] [blame] | 614 | fi |
| 615 | fi |
| 616 | fi |
| 617 | |
| 618 | dnl ******************************End IPv6 checks****************************** |
| 619 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 620 | dnl Checks for isnan in libm if not in libc |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 621 | AC_CHECK_FUNC(isnan, AC_DEFINE([HAVE_ISNAN],[], [Define if isnan is there]) , AC_CHECK_LIB(m, isnan, |
Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 622 | [AC_DEFINE([HAVE_ISNAN],[], [Define if isnan is there])])) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 623 | |
Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 624 | AC_CHECK_FUNC(isinf, AC_DEFINE([HAVE_ISINF], [], [Define if isinf is there]) , AC_CHECK_LIB(m, isinf, |
| 625 | [AC_DEFINE([HAVE_ISINF], [], [Define if isinf is there])])) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 626 | |
| 627 | XML_LIBDIR='-L${libdir}' |
Daniel Veillard | e7dd2b8 | 2002-03-15 18:44:02 +0000 | [diff] [blame] | 628 | XML_INCLUDEDIR='-I${includedir}/libxml2' |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 629 | |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 630 | dnl |
Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 631 | dnl Extra flags |
| 632 | dnl |
| 633 | XML_CFLAGS="" |
Daniel Veillard | 357c960 | 2001-05-03 10:49:20 +0000 | [diff] [blame] | 634 | RDL_LIBS="" |
Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 635 | |
| 636 | dnl |
Daniel Veillard | b45c43b | 2001-04-28 17:02:11 +0000 | [diff] [blame] | 637 | dnl Workaround for native compilers |
| 638 | dnl HP : http://bugs.gnome.org/db/31/3163.html |
| 639 | dnl DEC : Enable NaN/Inf |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 640 | dnl |
Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 641 | if test "${GCC}" != "yes" ; then |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 642 | case "${host}" in |
Daniel Veillard | 6a0baa0 | 2005-12-10 11:11:12 +0000 | [diff] [blame] | 643 | hppa*-*-hpux* ) |
Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 644 | CFLAGS="${CFLAGS} -Wp,-H30000" |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 645 | ;; |
Daniel Veillard | b45c43b | 2001-04-28 17:02:11 +0000 | [diff] [blame] | 646 | *-dec-osf* ) |
| 647 | CFLAGS="${CFLAGS} -ieee" |
| 648 | ;; |
William M. Brack | 476cd96 | 2003-08-13 11:09:42 +0000 | [diff] [blame] | 649 | alpha*-*-linux* ) |
| 650 | CFLAGS="${CFLAGS} -ieee" |
| 651 | ;; |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 652 | esac |
Daniel Veillard | d574f78 | 2001-03-14 19:40:17 +0000 | [diff] [blame] | 653 | else |
Daniel Veillard | d94849b | 2003-07-28 13:02:24 +0000 | [diff] [blame] | 654 | if test "$with_fexceptions" = "yes" |
| 655 | then |
| 656 | # |
| 657 | # Not activated by default because this inflates the code size |
| 658 | # Used to allow propagation of C++ exceptions through the library |
| 659 | # |
| 660 | CFLAGS="${CFLAGS} -fexceptions" |
| 661 | fi |
| 662 | |
Daniel Veillard | 05f9735 | 2004-10-31 15:35:32 +0000 | [diff] [blame] | 663 | CFLAGS="${CFLAGS} -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls" |
Daniel Veillard | 14839d5 | 2001-06-06 16:11:56 +0000 | [diff] [blame] | 664 | case "${host}" in |
| 665 | alpha*-*-linux* ) |
| 666 | CFLAGS="${CFLAGS} -mieee" |
| 667 | ;; |
Daniel Veillard | cb5b4d6 | 2002-04-11 08:24:26 +0000 | [diff] [blame] | 668 | alpha*-*-osf* ) |
| 669 | CFLAGS="${CFLAGS} -mieee" |
| 670 | ;; |
Daniel Veillard | 14839d5 | 2001-06-06 16:11:56 +0000 | [diff] [blame] | 671 | esac |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 672 | fi |
Daniel Veillard | b0426ca | 2000-10-11 23:39:43 +0000 | [diff] [blame] | 673 | case ${host} in |
| 674 | *-*-solaris*) |
Daniel Veillard | d2ade93 | 2000-09-30 14:39:55 +0000 | [diff] [blame] | 675 | XML_LIBDIR="${XML_LIBDIR} -R${libdir}" |
| 676 | ;; |
Daniel Veillard | d30be4a | 2002-03-28 18:25:31 +0000 | [diff] [blame] | 677 | hppa*-hp-mpeix) |
| 678 | NEED_TRIO=1 |
| 679 | ;; |
Daniel Veillard | 4188ddf | 2006-01-19 08:58:42 +0000 | [diff] [blame] | 680 | *-*-mingw* | *-*-cygwin* | *-*-msvc* ) |
| 681 | # If the host is Windows, and shared libraries are disabled, we |
| 682 | # need to add -DLIBXML_STATIC to CFLAGS in order for linking to |
| 683 | # work properly (without it, xmlexports.h would force the use of |
| 684 | # DLL imports, which obviously aren't present in a static |
| 685 | # library). |
| 686 | if test "x$enable_shared" = "xno"; then |
| 687 | XML_CFLAGS="$XML_CFLAGS -DLIBXML_STATIC" |
| 688 | CFLAGS="$CFLAGS -DLIBXML_STATIC" |
| 689 | fi |
| 690 | ;; |
Daniel Veillard | d2ade93 | 2000-09-30 14:39:55 +0000 | [diff] [blame] | 691 | esac |
| 692 | |
Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 693 | |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 694 | dnl |
| 695 | dnl check for python |
| 696 | dnl |
| 697 | |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 698 | PYTHON_VERSION= |
| 699 | PYTHON_INCLUDES= |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 700 | PYTHON_SITE_PACKAGES= |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 701 | PYTHON_TESTS= |
Daniel Veillard | 38b80a8 | 2003-05-14 18:59:00 +0000 | [diff] [blame] | 702 | pythondir= |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 703 | if test "$with_python" != "no" ; then |
| 704 | if test -x "$with_python/bin/python" |
| 705 | then |
| 706 | echo Found python in $with_python/bin/python |
| 707 | PYTHON="$with_python/bin/python" |
Daniel Veillard | 9b731d7 | 2002-04-14 12:56:08 +0000 | [diff] [blame] | 708 | else |
LRN | fbd4ddf | 2010-11-04 15:45:46 +0100 | [diff] [blame] | 709 | if test -x "$with_python/python.exe" |
| 710 | then |
| 711 | echo Found python in $with_python/python.exe |
| 712 | PYTHON="$with_python/python.exe" |
| 713 | else |
| 714 | if test -x "$with_python" |
| 715 | then |
| 716 | echo Found python in $with_python |
| 717 | PYTHON="$with_python" |
| 718 | else |
| 719 | if test -x "$PYTHON" |
| 720 | then |
| 721 | echo Found python in environment PYTHON=$PYTHON |
| 722 | with_python=`$PYTHON -c "import sys; print sys.exec_prefix"` |
| 723 | else |
| 724 | AC_PATH_PROG(PYTHON, python python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5) |
| 725 | fi |
Daniel Veillard | 4f69eb6 | 2005-08-24 22:19:10 +0000 | [diff] [blame] | 726 | fi |
Daniel Veillard | a8a89fe | 2002-04-12 21:03:34 +0000 | [diff] [blame] | 727 | fi |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 728 | fi |
| 729 | if test "$PYTHON" != "" |
| 730 | then |
| 731 | PYTHON_VERSION=`$PYTHON -c "import sys; print sys.version[[0:3]]"` |
| 732 | echo Found Python version $PYTHON_VERSION |
| 733 | fi |
| 734 | if test "$PYTHON_VERSION" != "" |
| 735 | then |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 736 | if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \ |
| 737 | -d $with_python/lib/python$PYTHON_VERSION/site-packages |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 738 | then |
| 739 | PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION |
Daniel Veillard | d7d0748 | 2006-05-03 13:15:44 +0000 | [diff] [blame] | 740 | PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 741 | else |
| 742 | if test -r $prefix/include/python$PYTHON_VERSION/Python.h |
| 743 | then |
Daniel Veillard | 8492ba1 | 2006-04-25 12:52:12 +0000 | [diff] [blame] | 744 | PYTHON_INCLUDES=$prefix/include/python$PYTHON_VERSION |
Daniel Veillard | d7d0748 | 2006-05-03 13:15:44 +0000 | [diff] [blame] | 745 | PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 746 | else |
| 747 | if test -r /usr/include/python$PYTHON_VERSION/Python.h |
| 748 | then |
| 749 | PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION |
Daniel Veillard | d7d0748 | 2006-05-03 13:15:44 +0000 | [diff] [blame] | 750 | PYTHON_SITE_PACKAGES=$libdir/python$PYTHON_VERSION/site-packages |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 751 | else |
LRN | fbd4ddf | 2010-11-04 15:45:46 +0100 | [diff] [blame] | 752 | if test -r $with_python/include/Python.h -a \ |
| 753 | -d $with_python/lib/site-packages |
| 754 | then |
| 755 | PYTHON_INCLUDES=$with_python/include |
| 756 | PYTHON_SITE_PACKAGES=$with_python/lib/site-packages |
| 757 | else |
| 758 | echo could not find python$PYTHON_VERSION/Python.h or $with_python/include/Python.h |
| 759 | fi |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 760 | fi |
| 761 | fi |
William M. Brack | 5d4cba4 | 2004-01-06 15:19:12 +0000 | [diff] [blame] | 762 | if test ! -d "$PYTHON_SITE_PACKAGES" |
Daniel Veillard | b6984ef | 2002-08-14 16:55:31 +0000 | [diff] [blame] | 763 | then |
| 764 | PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"` |
| 765 | fi |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 766 | fi |
Daniel Macks | 12febe8 | 2010-03-15 10:31:24 +0100 | [diff] [blame] | 767 | PYTHON_LIBS=`python$PYTHON_VERSION-config --ldflags` |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 768 | fi |
Daniel Veillard | 38b80a8 | 2003-05-14 18:59:00 +0000 | [diff] [blame] | 769 | if test "$with_python" != "" |
| 770 | then |
Daniel Veillard | d7d0748 | 2006-05-03 13:15:44 +0000 | [diff] [blame] | 771 | pythondir='$(PYTHON_SITE_PACKAGES)' |
Daniel Veillard | 38b80a8 | 2003-05-14 18:59:00 +0000 | [diff] [blame] | 772 | else |
Daniel Veillard | b2f8f1d | 2006-04-28 16:30:48 +0000 | [diff] [blame] | 773 | pythondir='$(libdir)/python$(PYTHON_VERSION)/site-packages' |
Daniel Veillard | 38b80a8 | 2003-05-14 18:59:00 +0000 | [diff] [blame] | 774 | fi |
Daniel Veillard | 4f69eb6 | 2005-08-24 22:19:10 +0000 | [diff] [blame] | 775 | else |
| 776 | PYTHON= |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 777 | fi |
| 778 | AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "") |
Daniel Veillard | 40b1134 | 2002-09-20 12:01:39 +0000 | [diff] [blame] | 779 | if test "$PYTHON_INCLUDES" != "" |
| 780 | then |
| 781 | PYTHON_SUBDIR=python |
| 782 | else |
| 783 | PYTHON_SUBDIR= |
| 784 | fi |
Daniel Veillard | 38b80a8 | 2003-05-14 18:59:00 +0000 | [diff] [blame] | 785 | AC_SUBST(pythondir) |
Daniel Veillard | 40b1134 | 2002-09-20 12:01:39 +0000 | [diff] [blame] | 786 | AC_SUBST(PYTHON_SUBDIR) |
Frederic Crozat | e21731d | 2009-09-12 18:02:40 +0200 | [diff] [blame] | 787 | AC_SUBST(PYTHON_LIBS) |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 788 | |
Daniel Veillard | ce1648b | 2005-01-04 15:10:22 +0000 | [diff] [blame] | 789 | dnl check for dso support |
| 790 | WITH_MODULES=0 |
Daniel Veillard | ce1648b | 2005-01-04 15:10:22 +0000 | [diff] [blame] | 791 | TEST_MODULES= |
| 792 | |
Daniel Veillard | f6b71bd | 2005-01-04 17:50:14 +0000 | [diff] [blame] | 793 | if test "$with_modules" != "no" ; then |
Daniel Veillard | 9202b67 | 2005-07-14 09:31:14 +0000 | [diff] [blame] | 794 | case "$host" in |
| 795 | *-*-cygwin*) |
| 796 | MODULE_EXTENSION=".dll" |
| 797 | AC_CHECK_LIB(cygwin, dlopen, [ |
| 798 | WITH_MODULES=1 |
| 799 | MODULE_PLATFORM_LIBS= |
| 800 | AC_DEFINE([HAVE_DLOPEN], [], [Have dlopen based dso]) |
| 801 | ]) |
| 802 | ;; |
Roumen Petrov | 120a269 | 2010-03-10 10:07:49 +0100 | [diff] [blame] | 803 | *-*-mingw*) |
| 804 | MODULE_EXTENSION=".dll" |
| 805 | WITH_MODULES=1 |
| 806 | ;; |
Daniel Veillard | 9202b67 | 2005-07-14 09:31:14 +0000 | [diff] [blame] | 807 | *) |
Daniel Veillard | 1d96f5a | 2005-10-28 08:44:48 +0000 | [diff] [blame] | 808 | AC_CHECK_FUNC(shl_load, libxml_have_shl_load=yes, [ |
| 809 | AC_CHECK_LIB(dld, shl_load, [ |
| 810 | MODULE_PLATFORM_LIBS="-ldld" |
| 811 | libxml_have_shl_load=yes], [ |
| 812 | AC_CHECK_FUNC(dlopen, libxml_have_dlopen=yes, [ |
| 813 | AC_CHECK_LIB(dl, dlopen, [ |
| 814 | MODULE_PLATFORM_LIBS="-ldl" |
| 815 | libxml_have_dlopen=yes])])])]) |
| 816 | |
| 817 | if test "${libxml_have_shl_load}" = "yes"; then |
| 818 | MODULE_EXTENSION=".sl" |
Daniel Veillard | 9202b67 | 2005-07-14 09:31:14 +0000 | [diff] [blame] | 819 | WITH_MODULES=1 |
Daniel Veillard | 9202b67 | 2005-07-14 09:31:14 +0000 | [diff] [blame] | 820 | AC_DEFINE([HAVE_SHLLOAD], [], [Have shl_load based dso]) |
Daniel Veillard | 1d96f5a | 2005-10-28 08:44:48 +0000 | [diff] [blame] | 821 | fi |
Daniel Veillard | 9202b67 | 2005-07-14 09:31:14 +0000 | [diff] [blame] | 822 | |
Daniel Veillard | 1d96f5a | 2005-10-28 08:44:48 +0000 | [diff] [blame] | 823 | if test "${libxml_have_dlopen}" = "yes"; then |
| 824 | case "${host}" in |
| 825 | *-*-hpux* ) |
| 826 | MODULE_EXTENSION=".sl" |
| 827 | ;; |
| 828 | * ) |
| 829 | MODULE_EXTENSION=".so" |
| 830 | ;; |
| 831 | esac |
| 832 | |
Daniel Veillard | 9202b67 | 2005-07-14 09:31:14 +0000 | [diff] [blame] | 833 | WITH_MODULES=1 |
Daniel Veillard | 9202b67 | 2005-07-14 09:31:14 +0000 | [diff] [blame] | 834 | AC_DEFINE([HAVE_DLOPEN], [], [Have dlopen based dso]) |
Daniel Veillard | 1d96f5a | 2005-10-28 08:44:48 +0000 | [diff] [blame] | 835 | fi |
Daniel Veillard | 9202b67 | 2005-07-14 09:31:14 +0000 | [diff] [blame] | 836 | ;; |
| 837 | esac |
Daniel Veillard | f6b71bd | 2005-01-04 17:50:14 +0000 | [diff] [blame] | 838 | fi |
Daniel Veillard | ce1648b | 2005-01-04 15:10:22 +0000 | [diff] [blame] | 839 | |
| 840 | if test "${WITH_MODULES}" = "1"; then |
| 841 | TEST_MODULES="ModuleTests" |
| 842 | fi |
| 843 | |
| 844 | AC_SUBST(WITH_MODULES) |
| 845 | AC_SUBST(MODULE_PLATFORM_LIBS) |
| 846 | AC_SUBST(MODULE_EXTENSION) |
| 847 | AC_SUBST(TEST_MODULES) |
| 848 | |
Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 849 | dnl |
| 850 | dnl Tester makes use of readline if present |
| 851 | dnl |
Daniel Veillard | 0310929 | 2000-08-14 14:58:22 +0000 | [diff] [blame] | 852 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 853 | dnl |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 854 | dnl specific tests to setup DV and Bill's devel environments with debug etc ... |
Daniel Veillard | 81418e3 | 2001-05-22 15:08:55 +0000 | [diff] [blame] | 855 | dnl (-Wunreachable-code) |
Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 856 | dnl |
William M. Brack | 871611b | 2003-10-18 04:53:14 +0000 | [diff] [blame] | 857 | if [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ]] || \ |
Daniel Veillard | b7c6ac4 | 2004-06-29 22:01:27 +0000 | [diff] [blame] | 858 | [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ]] || \ |
William M. Brack | 7f28a01 | 2007-01-11 23:42:10 +0000 | [diff] [blame] | 859 | [[ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomesvn/libxml2" ]] |
William M. Brack | 871611b | 2003-10-18 04:53:14 +0000 | [diff] [blame] | 860 | then |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 861 | if test "$with_minimum" != "yes" |
| 862 | then |
| 863 | if test "${with_mem_debug}" = "" ; then |
Daniel Veillard | 379a3b7 | 2005-08-12 10:18:14 +0000 | [diff] [blame] | 864 | echo Activating memory debugging |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 865 | with_mem_debug="yes" |
Daniel Veillard | 22cdb84 | 2004-10-04 14:09:17 +0000 | [diff] [blame] | 866 | with_run_debug="yes" |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 867 | fi |
| 868 | if test "${with_docbook}" = "" ; then |
| 869 | with_docbook="yes" |
| 870 | fi |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 871 | fi |
Daniel Veillard | 3854c57 | 2005-08-25 10:17:45 +0000 | [diff] [blame] | 872 | if test "${GCC}" = "yes" ; then |
Daniel Veillard | 05f9735 | 2004-10-31 15:35:32 +0000 | [diff] [blame] | 873 | CFLAGS="-g -O -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -Wall" |
Daniel Veillard | eff45a9 | 2004-10-29 12:10:55 +0000 | [diff] [blame] | 874 | fi |
Daniel Veillard | 2e9b165 | 2003-02-19 13:29:45 +0000 | [diff] [blame] | 875 | STATIC_BINARIES="-static" |
Daniel Veillard | c86a4fa | 2001-03-26 16:28:29 +0000 | [diff] [blame] | 876 | dnl -Wcast-qual -ansi |
Daniel Veillard | 2e9b165 | 2003-02-19 13:29:45 +0000 | [diff] [blame] | 877 | else |
| 878 | STATIC_BINARIES= |
Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 879 | fi |
Daniel Veillard | 2e9b165 | 2003-02-19 13:29:45 +0000 | [diff] [blame] | 880 | AC_SUBST(STATIC_BINARIES) |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 881 | |
| 882 | dnl |
| 883 | dnl Check for trio string functions |
| 884 | dnl |
| 885 | |
| 886 | if test "${NEED_TRIO}" = "1" ; then |
| 887 | echo Adding trio library for string functions |
| 888 | WITH_TRIO=1 |
| 889 | else |
| 890 | WITH_TRIO=0 |
| 891 | fi |
Daniel Veillard | 01ef738 | 2001-05-08 07:31:43 +0000 | [diff] [blame] | 892 | AM_CONDITIONAL(WITH_TRIO_SOURCES, test "${NEED_TRIO}" = "1") |
Daniel Veillard | 92ad210 | 2001-03-27 12:47:33 +0000 | [diff] [blame] | 893 | AC_SUBST(WITH_TRIO) |
| 894 | |
Daniel Veillard | f6eea27 | 2001-01-18 12:17:12 +0000 | [diff] [blame] | 895 | dnl |
William M. Brack | 97ad4c7 | 2003-05-13 08:08:36 +0000 | [diff] [blame] | 896 | dnl Allow to enable/disable various pieces |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 897 | dnl |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 898 | echo Checking configuration requirements |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 899 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 900 | dnl |
| 901 | dnl Thread-related stuff |
| 902 | dnl |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 903 | THREAD_LIBS="" |
Daniel Veillard | dbfe05a | 2005-05-04 09:18:00 +0000 | [diff] [blame] | 904 | BASE_THREAD_LIBS="" |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 905 | WITH_THREADS=0 |
| 906 | THREAD_CFLAGS="" |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 907 | TEST_THREADS="" |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 908 | THREADS_W32="" |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 909 | |
Daniel Veillard | 8494271 | 2003-04-18 14:40:05 +0000 | [diff] [blame] | 910 | if test "$with_threads" = "no" ; then |
| 911 | echo Disabling multithreaded support |
| 912 | else |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 913 | echo Enabling multithreaded support |
LRN | 203fd2e | 2009-08-07 21:47:25 +0200 | [diff] [blame] | 914 | dnl Use pthread by default |
Andrew W. Nosenko | 858084f | 2009-10-06 18:14:15 +0200 | [diff] [blame] | 915 | if test "$with_threads" = "pthread" || test "$with_threads" = "" || test "$with_threads" = "yes" ; then |
LRN | 203fd2e | 2009-08-07 21:47:25 +0200 | [diff] [blame] | 916 | AC_CHECK_HEADER(pthread.h, |
| 917 | AC_CHECK_LIB(pthread, pthread_join,[ |
| 918 | THREAD_LIBS="-lpthread" |
| 919 | AC_DEFINE([HAVE_LIBPTHREAD], [], [Define if pthread library is there (-lpthread)]) |
| 920 | AC_DEFINE([HAVE_PTHREAD_H], [], [Define if <pthread.h> is there]) |
| 921 | WITH_THREADS="1"])) |
| 922 | fi |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 923 | case $host_os in |
LRN | 203fd2e | 2009-08-07 21:47:25 +0200 | [diff] [blame] | 924 | *mingw32*) if test "$THREAD_LIBS" != "-lpthread"; then |
| 925 | WITH_THREADS="1" |
| 926 | THREADS_W32="Win32" |
| 927 | THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS" |
| 928 | fi |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 929 | ;; |
William M. Brack | a73f45b | 2005-01-11 02:21:33 +0000 | [diff] [blame] | 930 | *cygwin*) THREAD_LIBS="" |
| 931 | ;; |
Daniel Veillard | 7a3447a | 2005-01-04 14:31:14 +0000 | [diff] [blame] | 932 | *beos*) WITH_THREADS="1" |
| 933 | THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS" |
| 934 | ;; |
Daniel Veillard | dbfe05a | 2005-05-04 09:18:00 +0000 | [diff] [blame] | 935 | *linux*) |
Daniel Veillard | 32a461f | 2005-08-25 21:48:54 +0000 | [diff] [blame] | 936 | if test "${GCC}" = "yes" ; then |
| 937 | GCC_VERSION=`${CC} --version | head -1 | awk '{print $3}'` |
| 938 | GCC_MAJOR=`echo ${GCC_VERSION} | sed 's+\..*++'` |
| 939 | GCC_MEDIUM=`echo ${GCC_VERSION} | sed 's+[[0-9]]*\.++' | sed 's+\..*++'` |
| 940 | if test "${THREAD_LIBS}" = "-lpthread" ; then |
| 941 | if expr ${GCC_MEDIUM} \> 2 \& ${GCC_MAJOR} = 3 > /dev/null |
| 942 | then |
| 943 | THREAD_LIBS="" |
| 944 | BASE_THREAD_LIBS="-lpthread" |
| 945 | else |
LRN | 203fd2e | 2009-08-07 21:47:25 +0200 | [diff] [blame] | 946 | if expr ${GCC_MAJOR} \> 3 > /dev/null |
Daniel Veillard | 32a461f | 2005-08-25 21:48:54 +0000 | [diff] [blame] | 947 | then |
| 948 | THREAD_LIBS="" |
| 949 | BASE_THREAD_LIBS="-lpthread" |
| 950 | else |
| 951 | echo old GCC disabling weak symbols for pthread |
| 952 | fi |
| 953 | fi |
| 954 | fi |
Daniel Veillard | dbfe05a | 2005-05-04 09:18:00 +0000 | [diff] [blame] | 955 | fi |
| 956 | ;; |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 957 | esac |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 958 | if test "$WITH_THREADS" = "1" ; then |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 959 | THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT" |
| 960 | TEST_THREADS="Threadtests" |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 961 | fi |
| 962 | fi |
William M. Brack | 306e33c | 2004-06-12 01:01:22 +0000 | [diff] [blame] | 963 | if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 964 | THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED" |
Daniel Veillard | 64a411c | 2001-10-15 12:32:07 +0000 | [diff] [blame] | 965 | fi |
| 966 | |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 967 | AC_SUBST(THREAD_LIBS) |
Daniel Veillard | dbfe05a | 2005-05-04 09:18:00 +0000 | [diff] [blame] | 968 | AC_SUBST(BASE_THREAD_LIBS) |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 969 | AC_SUBST(WITH_THREADS) |
| 970 | AC_SUBST(THREAD_CFLAGS) |
Daniel Veillard | ab7488e | 2001-10-17 11:30:37 +0000 | [diff] [blame] | 971 | AC_SUBST(TEST_THREADS) |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 972 | AC_SUBST(THREADS_W32) |
Daniel Veillard | b847864 | 2001-10-12 17:29:10 +0000 | [diff] [blame] | 973 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 974 | dnl |
| 975 | dnl xmllint shell history |
| 976 | dnl |
Daniel Veillard | 259ff74 | 2001-10-06 13:49:59 +0000 | [diff] [blame] | 977 | if test "$with_history" = "yes" ; then |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 978 | echo Enabling xmllint shell history |
| 979 | dnl check for terminal library. this is a very cool solution |
| 980 | dnl from octave's configure.in |
| 981 | unset tcap |
| 982 | for termlib in ncurses curses termcap terminfo termlib; do |
| 983 | AC_CHECK_LIB(${termlib}, tputs, [tcap="-l$termlib"]) |
| 984 | test -n "$tcap" && break |
| 985 | done |
| 986 | |
| 987 | AC_CHECK_HEADER(readline/history.h, |
| 988 | AC_CHECK_LIB(history, append_history,[ |
| 989 | RDL_LIBS="-lhistory" |
Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 990 | AC_DEFINE([HAVE_LIBHISTORY], [], [Define if history library is there (-lhistory)])])) |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 991 | AC_CHECK_HEADER(readline/readline.h, |
| 992 | AC_CHECK_LIB(readline, readline,[ |
| 993 | RDL_LIBS="-lreadline $RDL_LIBS $tcap" |
Daniel Veillard | c790bf4 | 2003-10-11 10:50:10 +0000 | [diff] [blame] | 994 | AC_DEFINE([HAVE_LIBREADLINE], [], [Define if readline library is there (-lreadline)])], , $tcap)) |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 995 | if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then |
| 996 | CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include" |
| 997 | RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS" |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 998 | fi |
Daniel Veillard | f012a64 | 2001-07-23 19:10:52 +0000 | [diff] [blame] | 999 | fi |
| 1000 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1001 | dnl |
| 1002 | dnl Tree functions |
| 1003 | dnl |
Daniel Veillard | 652327a | 2003-09-29 18:02:38 +0000 | [diff] [blame] | 1004 | if test "$with_tree" = "no" ; then |
| 1005 | echo Disabling DOM like tree manipulation APIs |
| 1006 | WITH_TREE=0 |
| 1007 | else |
| 1008 | WITH_TREE=1 |
| 1009 | fi |
| 1010 | AC_SUBST(WITH_TREE) |
| 1011 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1012 | if test "$with_ftp" = "no" ; then |
| 1013 | echo Disabling FTP support |
| 1014 | WITH_FTP=0 |
| 1015 | FTP_OBJ= |
| 1016 | else |
| 1017 | WITH_FTP=1 |
| 1018 | FTP_OBJ=nanoftp.o |
| 1019 | fi |
| 1020 | AC_SUBST(WITH_FTP) |
| 1021 | AC_SUBST(FTP_OBJ) |
| 1022 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1023 | if test "$with_http" = "no" ; then |
| 1024 | echo Disabling HTTP support |
| 1025 | WITH_HTTP=0 |
| 1026 | HTTP_OBJ= |
| 1027 | else |
| 1028 | WITH_HTTP=1 |
| 1029 | HTTP_OBJ=nanohttp.o |
| 1030 | fi |
| 1031 | AC_SUBST(WITH_HTTP) |
| 1032 | AC_SUBST(HTTP_OBJ) |
| 1033 | |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1034 | if test "$with_legacy" = "no" ; then |
| 1035 | echo Disabling deprecated APIs |
| 1036 | WITH_LEGACY=0 |
| 1037 | else |
| 1038 | WITH_LEGACY=1 |
| 1039 | fi |
| 1040 | AC_SUBST(WITH_LEGACY) |
| 1041 | |
Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 1042 | if test "$with_reader" = "no" ; then |
| 1043 | echo Disabling the xmlReader parsing interface |
| 1044 | WITH_READER=0 |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 1045 | READER_TEST= |
Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 1046 | else |
| 1047 | WITH_READER=1 |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 1048 | READER_TEST=Readertests |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1049 | if test "$with_push" = "no" ; then |
| 1050 | echo xmlReader requires Push interface - enabling it |
| 1051 | with_push=yes |
| 1052 | fi |
Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 1053 | fi |
| 1054 | AC_SUBST(WITH_READER) |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 1055 | AC_SUBST(READER_TEST) |
Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 1056 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1057 | if test "$with_writer" = "no" ; then |
| 1058 | echo Disabling the xmlWriter saving interface |
| 1059 | WITH_WRITER=0 |
| 1060 | # WRITER_TEST= |
| 1061 | else |
| 1062 | WITH_WRITER=1 |
| 1063 | # WRITER_TEST=Writertests |
| 1064 | if test "$with_push" = "no" ; then |
| 1065 | echo xmlWriter requires Push interface - enabling it |
| 1066 | with_push=yes |
| 1067 | fi |
| 1068 | if test "$with_output" = "no" ; then |
| 1069 | echo xmlWriter requires Output interface - enabling it |
| 1070 | with_output=yes |
| 1071 | fi |
Daniel Veillard | b3de70c | 2003-12-02 22:32:15 +0000 | [diff] [blame] | 1072 | fi |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1073 | AC_SUBST(WITH_WRITER) |
| 1074 | #AC_SUBST(WRITER_TEST) |
| 1075 | |
Daniel Veillard | b3de70c | 2003-12-02 22:32:15 +0000 | [diff] [blame] | 1076 | if test "$with_pattern" = "no" ; then |
| 1077 | echo Disabling the xmlPattern parsing interface |
| 1078 | WITH_PATTERN=0 |
Daniel Veillard | f9d1691 | 2005-01-30 22:36:30 +0000 | [diff] [blame] | 1079 | TEST_PATTERN= |
Daniel Veillard | b3de70c | 2003-12-02 22:32:15 +0000 | [diff] [blame] | 1080 | else |
| 1081 | WITH_PATTERN=1 |
Daniel Veillard | f9d1691 | 2005-01-30 22:36:30 +0000 | [diff] [blame] | 1082 | TEST_PATTERN=Patterntests |
Daniel Veillard | b3de70c | 2003-12-02 22:32:15 +0000 | [diff] [blame] | 1083 | fi |
| 1084 | AC_SUBST(WITH_PATTERN) |
Daniel Veillard | f9d1691 | 2005-01-30 22:36:30 +0000 | [diff] [blame] | 1085 | AC_SUBST(TEST_PATTERN) |
Daniel Veillard | b3de70c | 2003-12-02 22:32:15 +0000 | [diff] [blame] | 1086 | |
Daniel Veillard | 8127390 | 2003-09-30 00:43:48 +0000 | [diff] [blame] | 1087 | if test "$with_sax1" = "no" ; then |
| 1088 | echo Disabling the older SAX1 interface |
| 1089 | WITH_SAX1=0 |
| 1090 | TEST_SAX= |
| 1091 | else |
| 1092 | WITH_SAX1=1 |
| 1093 | TEST_SAX=SAXtests |
| 1094 | fi |
| 1095 | AC_SUBST(WITH_SAX1) |
| 1096 | AC_SUBST(TEST_SAX) |
| 1097 | |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 1098 | if test "$with_push" = "no" ; then |
| 1099 | echo Disabling the PUSH parser interfaces |
| 1100 | WITH_PUSH=0 |
| 1101 | TEST_PUSH= |
| 1102 | else |
| 1103 | WITH_PUSH=1 |
| 1104 | TEST_PUSH="XMLPushtests" |
| 1105 | fi |
| 1106 | AC_SUBST(WITH_PUSH) |
| 1107 | AC_SUBST(TEST_PUSH) |
| 1108 | |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 1109 | if test "$with_html" = "no" ; then |
| 1110 | echo Disabling HTML support |
| 1111 | WITH_HTML=0 |
| 1112 | HTML_OBJ= |
| 1113 | TEST_HTML= |
| 1114 | else |
| 1115 | WITH_HTML=1 |
| 1116 | HTML_OBJ="HTMLparser.o HTMLtree.o" |
| 1117 | TEST_HTML=HTMLtests |
William M. Brack | 871611b | 2003-10-18 04:53:14 +0000 | [diff] [blame] | 1118 | if test "$with_push" != "no" ; then |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 1119 | TEST_PHTML=HTMLPushtests |
| 1120 | else |
| 1121 | TEST_PHTML= |
| 1122 | fi |
| 1123 | fi |
| 1124 | AC_SUBST(WITH_HTML) |
| 1125 | AC_SUBST(HTML_OBJ) |
| 1126 | AC_SUBST(TEST_HTML) |
| 1127 | AC_SUBST(TEST_PHTML) |
| 1128 | |
Daniel Veillard | 73b013f | 2003-09-30 12:36:01 +0000 | [diff] [blame] | 1129 | if test "$with_valid" = "no" ; then |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1130 | echo Disabling DTD validation support |
| 1131 | WITH_VALID=0 |
| 1132 | TEST_VALID= |
| 1133 | TEST_VTIME= |
| 1134 | else |
| 1135 | WITH_VALID=1 |
| 1136 | TEST_VALID=Validtests |
| 1137 | TEST_VTIME=VTimingtests |
| 1138 | fi |
| 1139 | AC_SUBST(WITH_VALID) |
| 1140 | AC_SUBST(TEST_VALID) |
| 1141 | AC_SUBST(TEST_VTIME) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1142 | |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 1143 | if test "$with_catalog" = "no" ; then |
| 1144 | echo Disabling Catalog support |
| 1145 | WITH_CATALOG=0 |
| 1146 | CATALOG_OBJ= |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1147 | TEST_CATALOG= |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 1148 | else |
| 1149 | WITH_CATALOG=1 |
| 1150 | CATALOG_OBJ="catalog.o" |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1151 | TEST_CATALOG=Catatests |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 1152 | fi |
| 1153 | AC_SUBST(WITH_CATALOG) |
| 1154 | AC_SUBST(CATALOG_OBJ) |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1155 | AC_SUBST(TEST_CATALOG) |
Daniel Veillard | a737459 | 2001-05-10 14:17:55 +0000 | [diff] [blame] | 1156 | |
Daniel Veillard | b59076b | 2001-04-29 17:04:07 +0000 | [diff] [blame] | 1157 | if test "$with_docbook" = "no" ; then |
| 1158 | echo Disabling Docbook support |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 1159 | WITH_DOCB=0 |
| 1160 | DOCB_OBJ= |
Daniel Veillard | b59076b | 2001-04-29 17:04:07 +0000 | [diff] [blame] | 1161 | else |
| 1162 | WITH_DOCB=1 |
| 1163 | DOCB_OBJ="DOCBparser.o" |
Daniel Veillard | eae522a | 2001-04-23 13:41:34 +0000 | [diff] [blame] | 1164 | fi |
| 1165 | AC_SUBST(WITH_DOCB) |
| 1166 | AC_SUBST(DOCB_OBJ) |
| 1167 | |
| 1168 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1169 | if test "$with_xptr" = "no" ; then |
| 1170 | echo Disabling XPointer support |
| 1171 | WITH_XPTR=0 |
| 1172 | XPTR_OBJ= |
| 1173 | TEST_XPTR= |
| 1174 | else |
| 1175 | WITH_XPTR=1 |
| 1176 | XPTR_OBJ=xpointer.o |
| 1177 | TEST_XPTR=XPtrtests |
| 1178 | if test "$with_xpath" = "no" ; then |
| 1179 | echo XPointer requires XPath support - enabling it |
| 1180 | with_xpath=yes |
| 1181 | fi |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1182 | fi |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1183 | AC_SUBST(WITH_XPTR) |
| 1184 | AC_SUBST(XPTR_OBJ) |
| 1185 | AC_SUBST(TEST_XPTR) |
| 1186 | |
| 1187 | if test "$with_c14n" = "no" ; then |
| 1188 | echo Disabling C14N support |
| 1189 | WITH_C14N=0 |
| 1190 | C14N_OBJ= |
| 1191 | TEST_C14N= |
| 1192 | else |
| 1193 | WITH_C14N=1 |
| 1194 | C14N_OBJ="c14n.c" |
| 1195 | TEST_C14N=C14Ntests |
| 1196 | if test "$with_xpath" = "no" ; then |
| 1197 | echo C14N requires XPath support - enabling it |
| 1198 | with_xpath=yes |
| 1199 | fi |
| 1200 | fi |
| 1201 | AC_SUBST(WITH_C14N) |
| 1202 | AC_SUBST(C14N_OBJ) |
| 1203 | AC_SUBST(TEST_C14N) |
| 1204 | |
| 1205 | if test "$with_xinclude" = "no" ; then |
| 1206 | echo Disabling XInclude support |
| 1207 | WITH_XINCLUDE=0 |
| 1208 | XINCLUDE_OBJ= |
| 1209 | with_xinclude="no" |
| 1210 | TEST_XINCLUDE= |
| 1211 | else |
| 1212 | WITH_XINCLUDE=1 |
| 1213 | XINCLUDE_OBJ=xinclude.o |
| 1214 | TEST_XINCLUDE=XIncludetests |
| 1215 | if test "$with_xpath" = "no" ; then |
| 1216 | echo XInclude requires XPath support - enabling it |
| 1217 | with_xpath=yes |
| 1218 | fi |
| 1219 | fi |
| 1220 | AC_SUBST(WITH_XINCLUDE) |
| 1221 | AC_SUBST(XINCLUDE_OBJ) |
| 1222 | AC_SUBST(TEST_XINCLUDE) |
| 1223 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1224 | if test "$with_xpath" = "no" ; then |
| 1225 | echo Disabling XPATH support |
| 1226 | WITH_XPATH=0 |
| 1227 | XPATH_OBJ= |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1228 | TEST_XPATH= |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1229 | else |
| 1230 | WITH_XPATH=1 |
| 1231 | XPATH_OBJ=xpath.o |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1232 | TEST_XPATH=XPathtests |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1233 | fi |
| 1234 | AC_SUBST(WITH_XPATH) |
| 1235 | AC_SUBST(XPATH_OBJ) |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1236 | AC_SUBST(TEST_XPATH) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1237 | |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1238 | dnl |
| 1239 | dnl output functions |
| 1240 | dnl |
| 1241 | if test "$with_output" = "no" ; then |
| 1242 | echo Disabling serialization/saving support |
| 1243 | WITH_OUTPUT=0 |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 1244 | else |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1245 | WITH_OUTPUT=1 |
Daniel Veillard | c8df0aa | 2000-10-10 23:50:30 +0000 | [diff] [blame] | 1246 | fi |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1247 | AC_SUBST(WITH_OUTPUT) |
Daniel Veillard | 9e8bfae | 2000-11-06 16:43:11 +0000 | [diff] [blame] | 1248 | |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 1249 | WITH_ICONV=0 |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 1250 | if test "$with_iconv" = "no" ; then |
| 1251 | echo Disabling ICONV support |
Daniel Veillard | d574f78 | 2001-03-14 19:40:17 +0000 | [diff] [blame] | 1252 | else |
Daniel Veillard | 220346d | 2001-12-07 11:33:54 +0000 | [diff] [blame] | 1253 | if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 1254 | CPPFLAGS="${CPPFLAGS} -I$with_iconv/include" |
Daniel Veillard | f5b44e4 | 2001-09-17 17:19:54 +0000 | [diff] [blame] | 1255 | # Export this since our headers include iconv.h |
| 1256 | XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include" |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 1257 | ICONV_LIBS="-L$with_iconv/lib" |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 1258 | fi |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 1259 | |
| 1260 | AC_CHECK_HEADER(iconv.h, |
| 1261 | AC_MSG_CHECKING(for iconv) |
| 1262 | AC_TRY_LINK([#include <stdlib.h> |
| 1263 | #include <iconv.h>],[ |
| 1264 | iconv_t cd = iconv_open ("",""); |
| 1265 | iconv (cd, NULL, NULL, NULL, NULL);],[ |
| 1266 | AC_MSG_RESULT(yes) |
| 1267 | WITH_ICONV=1],[ |
| 1268 | AC_MSG_RESULT(no) |
| 1269 | AC_MSG_CHECKING(for iconv in -liconv) |
| 1270 | |
| 1271 | _ldflags="${LDFLAGS}" |
| 1272 | _libs="${LIBS}" |
| 1273 | LDFLAGS="${LDFLAGS} ${ICONV_LIBS}" |
| 1274 | LIBS="${LIBS} -liconv" |
| 1275 | |
| 1276 | AC_TRY_LINK([#include <stdlib.h> |
| 1277 | #include <iconv.h>],[ |
| 1278 | iconv_t cd = iconv_open ("",""); |
| 1279 | iconv (cd, NULL, NULL, NULL, NULL);],[ |
| 1280 | AC_MSG_RESULT(yes) |
| 1281 | WITH_ICONV=1 |
| 1282 | ICONV_LIBS="${ICONV_LIBS} -liconv" |
| 1283 | LIBS="${_libs}" |
| 1284 | LDFLAGS="${_ldflags}"],[ |
| 1285 | AC_MSG_RESULT(no) |
| 1286 | LIBS="${_libs}" |
| 1287 | LDFLAGS="${_ldflags}"])])) |
Daniel Veillard | 8e1a46d | 2008-02-15 07:47:26 +0000 | [diff] [blame] | 1288 | |
| 1289 | if test "$WITH_ICONV" = "1" ; then |
| 1290 | AC_MSG_CHECKING([for iconv declaration]) |
| 1291 | AC_CACHE_VAL(xml_cv_iconv_arg2, [ |
| 1292 | AC_TRY_COMPILE([#include <stdlib.h> |
| 1293 | #include <iconv.h> |
| 1294 | extern |
| 1295 | #ifdef __cplusplus |
| 1296 | "C" |
| 1297 | #endif |
| 1298 | #if defined(__STDC__) || defined(__cplusplus) |
| 1299 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 1300 | #else |
| 1301 | size_t iconv(); |
| 1302 | #endif |
| 1303 | ], [], xml_cv_iconv_arg2="", xml_cv_iconv_arg2="const")]) |
| 1304 | |
| 1305 | xml_cv_iconv_decl="extern size_t iconv (iconv_t cd, $xml_cv_iconv_arg2 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
| 1306 | AC_MSG_RESULT([${xml_xxx:- |
| 1307 | }$xml_cv_iconv_decl]) |
| 1308 | AC_DEFINE_UNQUOTED(ICONV_CONST, $xml_cv_iconv_arg2, |
| 1309 | [Define as const if the declaration of iconv() needs const.]) |
| 1310 | fi |
Daniel Veillard | 6e90d19 | 2001-07-03 16:37:49 +0000 | [diff] [blame] | 1311 | fi |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 1312 | case "$host" in |
| 1313 | *mingw*) M_LIBS="" |
| 1314 | ;; |
Daniel Veillard | 7a3447a | 2005-01-04 14:31:14 +0000 | [diff] [blame] | 1315 | *beos*) M_LIBS="" |
| 1316 | ;; |
Scott McCreary | 508a8d6 | 2009-08-24 16:35:35 +0200 | [diff] [blame] | 1317 | *haiku*) M_LIBS="" |
| 1318 | ;; |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 1319 | *) M_LIBS="-lm" |
| 1320 | ;; |
| 1321 | esac |
Daniel Veillard | b82c166 | 2001-12-09 14:00:54 +0000 | [diff] [blame] | 1322 | XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS" |
Daniel Veillard | 90d165b | 2003-09-01 20:33:13 +0000 | [diff] [blame] | 1323 | XML_LIBTOOLLIBS="libxml2.la" |
Daniel Veillard | 496a1cf | 2000-05-03 14:20:55 +0000 | [diff] [blame] | 1324 | AC_SUBST(WITH_ICONV) |
| 1325 | |
Giuseppe Iuculano | 48f7dcb | 2010-11-04 17:42:42 +0100 | [diff] [blame^] | 1326 | WITH_ICU=0 |
| 1327 | if test "$with_icu" != "yes" ; then |
| 1328 | echo Disabling ICU support |
| 1329 | else |
| 1330 | ICU_CONFIG=icu-config |
| 1331 | if ${ICU_CONFIG} --cflags >/dev/null 2>&1 |
| 1332 | then |
| 1333 | ICU_LIBS=`icu-config --ldflags` |
| 1334 | LDFLAGS="$LDFLAGS $ICU_LIBS" |
| 1335 | WITH_ICU=1 |
| 1336 | echo Enabling ICU support |
| 1337 | else |
| 1338 | AC_MSG_ERROR([libicu config program icu-config not found]) |
| 1339 | fi |
| 1340 | fi |
| 1341 | AC_SUBST(WITH_ICU) |
| 1342 | |
Daniel Veillard | 01fc1a9 | 2003-07-30 15:12:01 +0000 | [diff] [blame] | 1343 | WITH_ISO8859X=1 |
Daniel Veillard | 01fc1a9 | 2003-07-30 15:12:01 +0000 | [diff] [blame] | 1344 | if test "$WITH_ICONV" != "1" ; then |
| 1345 | if test "$with_iso8859x" = "no" ; then |
| 1346 | echo Disabling ISO8859X support |
| 1347 | WITH_ISO8859X=0 |
| 1348 | fi |
| 1349 | fi |
| 1350 | AC_SUBST(WITH_ISO8859X) |
| 1351 | |
Daniel Veillard | ed6c549 | 2005-07-23 15:00:22 +0000 | [diff] [blame] | 1352 | if test "$with_schematron" = "no" ; then |
| 1353 | echo "Disabling Schematron support" |
| 1354 | WITH_SCHEMATRON=0 |
| 1355 | TEST_SCHEMATRON= |
| 1356 | else |
| 1357 | echo "Enabled Schematron support" |
| 1358 | WITH_SCHEMATRON=1 |
| 1359 | TEST_SCHEMATRON="Schematrontests" |
| 1360 | with_xpath=yes |
| 1361 | with_pattern=yes |
| 1362 | fi |
| 1363 | AC_SUBST(WITH_SCHEMATRON) |
| 1364 | AC_SUBST(TEST_SCHEMATRON) |
| 1365 | |
Daniel Veillard | ef4d3bc | 2003-02-07 12:38:22 +0000 | [diff] [blame] | 1366 | if test "$with_schemas" = "no" ; then |
William M. Brack | 21e4ef2 | 2005-01-02 09:53:13 +0000 | [diff] [blame] | 1367 | echo "Disabling Schemas/Relax-NG support" |
Daniel Veillard | ef4d3bc | 2003-02-07 12:38:22 +0000 | [diff] [blame] | 1368 | WITH_SCHEMAS=0 |
| 1369 | TEST_SCHEMAS= |
| 1370 | else |
Daniel Veillard | 71531f3 | 2003-02-05 13:19:53 +0000 | [diff] [blame] | 1371 | echo "Enabled Schemas/Relax-NG support" |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 1372 | WITH_SCHEMAS=1 |
Daniel Veillard | 6eadf63 | 2003-01-23 18:29:16 +0000 | [diff] [blame] | 1373 | TEST_SCHEMAS="Schemastests Relaxtests" |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 1374 | if test "$PYTHON_INCLUDES" != "" ; then |
| 1375 | PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests" |
| 1376 | fi |
Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 1377 | with_regexps=yes |
Daniel Veillard | 4255d50 | 2002-04-16 15:50:10 +0000 | [diff] [blame] | 1378 | fi |
| 1379 | AC_SUBST(WITH_SCHEMAS) |
| 1380 | AC_SUBST(TEST_SCHEMAS) |
| 1381 | |
Daniel Veillard | 23e7357 | 2002-09-19 19:56:43 +0000 | [diff] [blame] | 1382 | if test "$with_regexps" = "no" ; then |
| 1383 | echo Disabling Regexps support |
| 1384 | WITH_REGEXPS=0 |
| 1385 | TEST_REGEXPS= |
| 1386 | else |
| 1387 | WITH_REGEXPS=1 |
| 1388 | TEST_REGEXPS="Regexptests Automatatests" |
| 1389 | fi |
| 1390 | AC_SUBST(WITH_REGEXPS) |
| 1391 | AC_SUBST(TEST_REGEXPS) |
| 1392 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1393 | if test "$with_debug" = "no" ; then |
| 1394 | echo Disabling DEBUG support |
| 1395 | WITH_DEBUG=0 |
| 1396 | DEBUG_OBJ= |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1397 | TEST_DEBUG= |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1398 | else |
| 1399 | WITH_DEBUG=1 |
| 1400 | DEBUG_OBJ=debugXML.o |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1401 | TEST_DEBUG=Scripttests |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1402 | fi |
| 1403 | AC_SUBST(WITH_DEBUG) |
| 1404 | AC_SUBST(DEBUG_OBJ) |
Daniel Veillard | 4432df2 | 2003-09-28 18:58:27 +0000 | [diff] [blame] | 1405 | AC_SUBST(TEST_DEBUG) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1406 | |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1407 | if test "$with_mem_debug" = "yes" ; then |
William M. Brack | 306e33c | 2004-06-12 01:01:22 +0000 | [diff] [blame] | 1408 | if test "$with_thread_alloc" = "yes" ; then |
| 1409 | echo Disabling memory debug - cannot use mem-debug with thread-alloc! |
| 1410 | WITH_MEM_DEBUG=0 |
| 1411 | else |
| 1412 | echo Enabling memory debug support |
| 1413 | WITH_MEM_DEBUG=1 |
| 1414 | fi |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1415 | else |
| 1416 | WITH_MEM_DEBUG=0 |
| 1417 | fi |
| 1418 | AC_SUBST(WITH_MEM_DEBUG) |
| 1419 | |
Daniel Veillard | 22cdb84 | 2004-10-04 14:09:17 +0000 | [diff] [blame] | 1420 | if test "$with_run_debug" = "yes" ; then |
| 1421 | echo Enabling runtime debug support |
| 1422 | WITH_RUN_DEBUG=1 |
| 1423 | else |
| 1424 | WITH_RUN_DEBUG=0 |
| 1425 | fi |
| 1426 | AC_SUBST(WITH_RUN_DEBUG) |
Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1427 | |
| 1428 | WIN32_EXTRA_LIBADD= |
| 1429 | WIN32_EXTRA_LDFLAGS= |
William M. Brack | a73f45b | 2005-01-11 02:21:33 +0000 | [diff] [blame] | 1430 | CYGWIN_EXTRA_LDFLAGS= |
| 1431 | CYGWIN_EXTRA_PYTHON_LIBADD= |
LRN | fbd4ddf | 2010-11-04 15:45:46 +0100 | [diff] [blame] | 1432 | WIN32_EXTRA_PYTHON_LIBADD= |
Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1433 | case "$host" in |
| 1434 | *-*-mingw*) |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 1435 | CPPFLAGS="$CPPFLAGS -DWIN32" |
| 1436 | WIN32_EXTRA_LIBADD="-lws2_32" |
Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1437 | WIN32_EXTRA_LDFLAGS="-no-undefined" |
| 1438 | AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation]) |
| 1439 | AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around]) |
| 1440 | AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling work-around]) |
LRN | fbd4ddf | 2010-11-04 15:45:46 +0100 | [diff] [blame] | 1441 | if test "${PYTHON}" != "" |
| 1442 | then |
| 1443 | WIN32_EXTRA_PYTHON_LIBADD="-L${pythondir}/../../libs -lpython${PYTHON_VERSION//./}" |
| 1444 | fi |
Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1445 | ;; |
Daniel Veillard | d392ba7 | 2004-08-04 14:56:45 +0000 | [diff] [blame] | 1446 | *-*-cygwin*) |
| 1447 | CYGWIN_EXTRA_LDFLAGS="-no-undefined" |
William M. Brack | a73f45b | 2005-01-11 02:21:33 +0000 | [diff] [blame] | 1448 | if test "${PYTHON}" != "" |
| 1449 | then |
| 1450 | CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}" |
| 1451 | fi |
Daniel Veillard | d392ba7 | 2004-08-04 14:56:45 +0000 | [diff] [blame] | 1452 | ;; |
Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1453 | esac |
| 1454 | AC_SUBST(WIN32_EXTRA_LIBADD) |
| 1455 | AC_SUBST(WIN32_EXTRA_LDFLAGS) |
LRN | fbd4ddf | 2010-11-04 15:45:46 +0100 | [diff] [blame] | 1456 | AC_SUBST(WIN32_EXTRA_PYTHON_LIBADD) |
Daniel Veillard | d392ba7 | 2004-08-04 14:56:45 +0000 | [diff] [blame] | 1457 | AC_SUBST(CYGWIN_EXTRA_LDFLAGS) |
| 1458 | AC_SUBST(CYGWIN_EXTRA_PYTHON_LIBADD) |
Daniel Veillard | 1638a47 | 2003-08-14 01:23:25 +0000 | [diff] [blame] | 1459 | |
Daniel Veillard | bfa5cf1 | 2008-08-27 15:33:28 +0000 | [diff] [blame] | 1460 | if test "$with_coverage" = "yes" -a "${GCC}" = "yes" |
| 1461 | then |
| 1462 | echo Enabling code coverage for GCC |
| 1463 | CFLAGS="$CFLAGS -fprofile-arcs -ftest-coverage" |
| 1464 | LDFLAGS="$LDFLAGS -fprofile-arcs -ftest-coverage" |
| 1465 | else |
| 1466 | echo Disabling code coverage for GCC |
| 1467 | fi |
| 1468 | |
Daniel Veillard | 6984e6d | 2003-12-09 14:20:17 +0000 | [diff] [blame] | 1469 | AC_SUBST(CPPFLAGS) |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 1470 | AC_SUBST(CFLAGS) |
Daniel Veillard | bfa5cf1 | 2008-08-27 15:33:28 +0000 | [diff] [blame] | 1471 | AC_SUBST(LDFLAGS) |
Daniel Veillard | f5c2c87 | 1999-12-01 09:51:45 +0000 | [diff] [blame] | 1472 | AC_SUBST(XML_CFLAGS) |
Daniel Veillard | d7e200c | 1999-11-15 17:53:11 +0000 | [diff] [blame] | 1473 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 1474 | AC_SUBST(XML_LIBDIR) |
| 1475 | AC_SUBST(XML_LIBS) |
Daniel Veillard | 90d165b | 2003-09-01 20:33:13 +0000 | [diff] [blame] | 1476 | AC_SUBST(XML_LIBTOOLLIBS) |
Daniel Veillard | 81418e3 | 2001-05-22 15:08:55 +0000 | [diff] [blame] | 1477 | AC_SUBST(ICONV_LIBS) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 1478 | AC_SUBST(XML_INCLUDEDIR) |
| 1479 | AC_SUBST(HTML_DIR) |
| 1480 | AC_SUBST(HAVE_ISNAN) |
| 1481 | AC_SUBST(HAVE_ISINF) |
Daniel Veillard | f1d0e6b | 2002-01-31 23:42:44 +0000 | [diff] [blame] | 1482 | AC_SUBST(PYTHON) |
| 1483 | AC_SUBST(PYTHON_VERSION) |
| 1484 | AC_SUBST(PYTHON_INCLUDES) |
Daniel Veillard | 253aa2c | 2002-02-02 09:17:16 +0000 | [diff] [blame] | 1485 | AC_SUBST(PYTHON_SITE_PACKAGES) |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 1486 | |
Daniel Veillard | b05deb7 | 1999-08-10 19:04:08 +0000 | [diff] [blame] | 1487 | AC_SUBST(M_LIBS) |
Daniel Veillard | 437b87b | 2000-01-03 17:30:46 +0000 | [diff] [blame] | 1488 | AC_SUBST(RDL_LIBS) |
Daniel Veillard | 361d845 | 2000-04-03 19:48:13 +0000 | [diff] [blame] | 1489 | |
Daniel Veillard | 9715c17 | 2002-11-25 16:33:40 +0000 | [diff] [blame] | 1490 | dnl for the spec file |
| 1491 | RELDATE=`date +'%a %b %e %Y'` |
| 1492 | AC_SUBST(RELDATE) |
Daniel Veillard | 6dc9196 | 2004-03-22 19:10:02 +0000 | [diff] [blame] | 1493 | AC_SUBST(PYTHON_TESTS) |
Daniel Veillard | 9715c17 | 2002-11-25 16:33:40 +0000 | [diff] [blame] | 1494 | |
Daniel Veillard | c6e997c | 2003-01-27 12:35:42 +0000 | [diff] [blame] | 1495 | rm -f COPYING.LIB COPYING |
Daniel Veillard | c575b99 | 2002-02-08 13:28:40 +0000 | [diff] [blame] | 1496 | ln -s Copyright COPYING |
| 1497 | |
Daniel Veillard | e4177a5 | 2004-01-08 16:43:57 +0000 | [diff] [blame] | 1498 | # keep on one line for cygwin c.f. #130896 |
Daniel Veillard | 99b7850 | 2005-09-11 22:04:08 +0000 | [diff] [blame] | 1499 | AC_OUTPUT(libxml2.spec:libxml.spec.in Makefile include/Makefile include/libxml/Makefile doc/Makefile doc/examples/Makefile doc/devhelp/Makefile example/Makefile python/Makefile python/tests/Makefile xstc/Makefile include/libxml/xmlversion.h xml2-config libxml-2.0.pc libxml-2.0-uninstalled.pc python/setup.py) |
Arturo Espinosa | 15fe6e7 | 1998-09-07 17:27:57 +0000 | [diff] [blame] | 1500 | |
Daniel Veillard | 06d2524 | 2004-02-25 13:01:42 +0000 | [diff] [blame] | 1501 | chmod +x xml2-config python/setup.py |
Daniel Veillard | 6795260 | 2006-01-05 15:29:44 +0000 | [diff] [blame] | 1502 | echo Done configuring |