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