blob: 7cc51c2b3746eba9247cdbe9849d5fd822b7ac8e [file] [log] [blame]
Daniel Veillard01791d51998-07-24 19:24:09 +00001dnl Process this file with autoconf to produce a configure script.
Owen Taylor3473f882001-02-23 17:55:21 +00002AC_INIT(entities.c)
Daniel Veillard01791d51998-07-24 19:24:09 +00003AM_CONFIG_HEADER(config.h)
Daniel Veillardd2ade932000-09-30 14:39:55 +00004AC_CANONICAL_HOST
Daniel Veillard14fff061999-06-22 21:49:07 +00005
Daniel Veillardcf461992000-03-14 18:30:20 +00006LIBXML_MAJOR_VERSION=2
Daniel Veillard4fc52812003-09-01 20:33:13 +00007LIBXML_MINOR_VERSION=6
Daniel Veillard78dfc9f2005-07-10 22:30:30 +00008LIBXML_MICRO_VERSION=20
Daniel Veillard3e35f8e2003-10-21 00:05:38 +00009LIBXML_MICRO_VERSION_SUFFIX=
Daniel Veillard4fc52812003-09-01 20:33:13 +000010LIBXML_VERSION=$LIBXML_MAJOR_VERSION.$LIBXML_MINOR_VERSION.$LIBXML_MICRO_VERSION$LIBXML_MICRO_VERSION_SUFFIX
Daniel Veillard14fff061999-06-22 21:49:07 +000011LIBXML_VERSION_INFO=`expr $LIBXML_MAJOR_VERSION + $LIBXML_MINOR_VERSION`:$LIBXML_MICRO_VERSION:$LIBXML_MINOR_VERSION
12
Daniel Veillard361d8452000-04-03 19:48:13 +000013LIBXML_VERSION_NUMBER=`expr $LIBXML_MAJOR_VERSION \* 10000 + $LIBXML_MINOR_VERSION \* 100 + $LIBXML_MICRO_VERSION`
14
William M. Brackf4025492004-08-18 21:08:46 +000015if test -f CVS/Entries; then
Daniel Veillarddab93ea2004-08-20 16:47:10 +000016 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. Brackf4025492004-08-18 21:08:46 +000022fi
Daniel Veillard14fff061999-06-22 21:49:07 +000023AC_SUBST(LIBXML_MAJOR_VERSION)
24AC_SUBST(LIBXML_MINOR_VERSION)
25AC_SUBST(LIBXML_MICRO_VERSION)
26AC_SUBST(LIBXML_VERSION)
27AC_SUBST(LIBXML_VERSION_INFO)
Daniel Veillard361d8452000-04-03 19:48:13 +000028AC_SUBST(LIBXML_VERSION_NUMBER)
William M. Brackf4025492004-08-18 21:08:46 +000029AC_SUBST(LIBXML_VERSION_EXTRA)
Daniel Veillard14fff061999-06-22 21:49:07 +000030
Daniel Veillard361d8452000-04-03 19:48:13 +000031VERSION=${LIBXML_VERSION}
Daniel Veillard14fff061999-06-22 21:49:07 +000032
Daniel Veillardedfb29b2000-03-14 19:59:05 +000033AM_INIT_AUTOMAKE(libxml2, $VERSION)
Daniel Veillard1164e751999-02-16 16:29:17 +000034
Daniel Veillard01791d51998-07-24 19:24:09 +000035dnl Checks for programs.
36AC_PROG_CC
37AC_PROG_INSTALL
Sebastian Wilhelmia44c8a41998-08-07 08:38:58 +000038AC_PROG_CPP
Daniel Veillard01791d51998-07-24 19:24:09 +000039AC_PATH_PROG(RM, rm, /bin/rm)
40AC_PATH_PROG(MV, mv, /bin/mv)
41AC_PATH_PROG(TAR, tar, /bin/tar)
William M. Brack1826d0a2004-07-21 09:03:57 +000042AC_PATH_PROG(PERL, perl, /usr/bin/perl)
Daniel Veillard8b817da2004-09-30 09:19:33 +000043AC_PATH_PROG(XMLLINT, xmllint, /usr/bin/xmllint)
Daniel Veillard06500c82004-09-07 09:12:44 +000044AC_PATH_PROG(XSLTPROC, xsltproc, /usr/bin/xsltproc)
Daniel Veillard01791d51998-07-24 19:24:09 +000045
Daniel Veillard03109292000-08-14 14:58:22 +000046dnl Make sure we have an ANSI compiler
47AM_C_PROTOTYPES
48test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant)
49
Daniel Veillard6984e6d2003-12-09 14:20:17 +000050AC_LIBTOOL_WIN32_DLL
Daniel Veillard01791d51998-07-24 19:24:09 +000051AM_PROG_LIBTOOL
52
Daniel Veillardd8cf9062003-11-11 21:12:36 +000053# AM_MAINTAINER_MODE
Daniel Veillard01791d51998-07-24 19:24:09 +000054
Daniel Veillard4432df22003-09-28 18:58:27 +000055dnl
William M. Brack21e4ef22005-01-02 09:53:13 +000056dnl We process the AC_ARG_WITH first so that later we can modify
57dnl some of them to try to prevent impossible combinations. This
58dnl also allows up so alphabetize the choices
Daniel Veillard4432df22003-09-28 18:58:27 +000059dnl
Daniel Veillard4432df22003-09-28 18:58:27 +000060
William M. Brack21e4ef22005-01-02 09:53:13 +000061dnl
62dnl zlib option might change flags, so we save them initially
63dnl
Owen Taylor3473f882001-02-23 17:55:21 +000064_cppflags="${CPPFLAGS}"
65_ldflags="${LDFLAGS}"
Daniel Veillard71b656e2000-01-05 14:46:17 +000066
William M. Brack21e4ef22005-01-02 09:53:13 +000067AC_ARG_WITH(c14n,
68[ --with-c14n add the Canonicalization support (on)])
69AC_ARG_WITH(catalog,
70[ --with-catalog add the Catalog support (on)])
71AC_ARG_WITH(debug,
72[ --with-debug add the debugging module (on)])
73AC_ARG_WITH(docbook,
74[ --with-docbook add Docbook SGML support (on)])
75AC_ARG_WITH(fexceptions,
76[ --with-fexceptions add GCC flag -fexceptions for C++ exceptions (off)])
77AC_ARG_WITH(ftp,
78[ --with-ftp add the FTP support (on)])
79AC_ARG_WITH(history,
80[ --with-history add history support to xmllint shell(off)])
81AC_ARG_WITH(html,
82[ --with-html add the HTML support (on)])
83dnl Specific dir for HTML output ?
84AC_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 Veillard259ff742001-10-06 13:49:59 +000087
William M. Brack21e4ef22005-01-02 09:53:13 +000088AC_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"])
92AC_SUBST(HTML_DIR)
93AC_ARG_WITH(http,
94[ --with-http add the HTTP support (on)])
95AC_ARG_WITH(iconv,
96[ --with-iconv[[=DIR]] add ICONV support (on)])
97AC_ARG_WITH(iso8859x,
98[ --with-iso8859x add ISO8859X support if no iconv (on)])
99AC_ARG_WITH(legacy,
100[ --with-legacy add deprecated APIs for compatibility (on)])
101AC_ARG_WITH(mem_debug,
102[ --with-mem-debug add the memory debugging module (off)])
103AC_ARG_WITH(minimum,
104[ --with-minimum build a minimally sized library (off)])
105AC_ARG_WITH(output,
106[ --with-output add the serialization support (on)])
107AC_ARG_WITH(pattern,
108[ --with-pattern add the xmlPattern selection interface (on)])
109AC_ARG_WITH(push,
110[ --with-push add the PUSH parser interfaces (on)])
111AC_ARG_WITH(python,
112[ --with-python[[=DIR]] build Python bindings if found])
113AC_ARG_WITH(reader,
114[ --with-reader add the xmlReader parsing interface (on)])
115AC_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])
123AC_ARG_WITH(regexps,
124[ --with-regexps add Regular Expressions support (on)])
125AC_ARG_WITH(run_debug,
126[ --with-run-debug add the runtime debugging module (off)])
127AC_ARG_WITH(sax1,
128[ --with-sax1 add the older SAX1 interface (on)])
129AC_ARG_WITH(schemas,
Daniel Veillard39e5c892005-07-03 22:48:50 +0000130[ --with-schemas add Relax-NG and Schemas support (on)])
William M. Brack21e4ef22005-01-02 09:53:13 +0000131AC_ARG_WITH(threads,
132[ --with-threads add multithread support(on)])
133AC_ARG_WITH(thread-alloc,
134[ --with-thread-alloc add per-thread memory(off)])
135AC_ARG_WITH(tree,
136[ --with-tree add the DOM like tree manipulation APIs (on)])
137AC_ARG_WITH(valid,
138[ --with-valid add the DTD validation support (on)])
139AC_ARG_WITH(writer,
140[ --with-writer add the xmlWriter saving interface (on)])
141AC_ARG_WITH(xinclude,
142[ --with-xinclude add the XInclude support (on)])
143AC_ARG_WITH(xpath,
144[ --with-xpath add the XPATH support (on)])
145AC_ARG_WITH(xptr,
146[ --with-xptr add the XPointer support (on)])
Daniel Veillardf6b71bd2005-01-04 17:50:14 +0000147AC_ARG_WITH(modules,
148[ --with-modules add the dynamic modules support (on)])
Owen Taylor3473f882001-02-23 17:55:21 +0000149AC_ARG_WITH(zlib,
William M. Brack97ad4c72003-05-13 08:08:36 +0000150[ --with-zlib[[=DIR]] use libz in DIR],[
Owen Taylor3473f882001-02-23 17:55:21 +0000151 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 Veillard259ff742001-10-06 13:49:59 +0000156])
William M. Brack21e4ef22005-01-02 09:53:13 +0000157
158dnl
Daniel Veillard39e5c892005-07-03 22:48:50 +0000159dnl hard dependancies on options
160dnl
161if test "$with_schemas" = "yes"
162then
163 with_pattern=yes
164 with_regexp=yes
165fi
166if test "$with_reader" = "yes"
167then
168 with_push=yes
169fi
170if test "$with_xptr" = "yes"
171then
172 with_xpath=yes
173fi
174dnl
William M. Brack21e4ef22005-01-02 09:53:13 +0000175dnl option to build a minimal libxml2 library
176dnl
177if test "$with_minimum" = "yes"
Daniel Veillard4432df22003-09-28 18:58:27 +0000178then
William M. Brack21e4ef22005-01-02 09:53:13 +0000179 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 Veillardf6b71bd2005-01-04 17:50:14 +0000309 if test "$with_modules" = ""
310 then
311 with_modules=no
312 fi
Daniel Veillard4432df22003-09-28 18:58:27 +0000313fi
William M. Brack21e4ef22005-01-02 09:53:13 +0000314
315echo Checking zlib
316
317dnl Checks for zlib library.
318
Daniel Veillard259ff742001-10-06 13:49:59 +0000319if test "$with_zlib" = "no"; then
320 echo "Disabling compression support"
321else
Daniel Veillard3fbe8e32001-10-06 13:30:33 +0000322 AC_CHECK_HEADERS(zlib.h,
323 AC_CHECK_LIB(z, gzread,[
Daniel Veillardc790bf42003-10-11 10:50:10 +0000324 AC_DEFINE([HAVE_LIBZ], [], [Have compression library])
Daniel Veillard3fbe8e32001-10-06 13:30:33 +0000325 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 Veillard259ff742001-10-06 13:49:59 +0000336fi
Owen Taylor3473f882001-02-23 17:55:21 +0000337
Owen Taylor3473f882001-02-23 17:55:21 +0000338AC_SUBST(Z_CFLAGS)
339AC_SUBST(Z_LIBS)
340
341CPPFLAGS=${_cppflags}
342LDFLAGS=${_ldflags}
Daniel Veillardb05deb71999-08-10 19:04:08 +0000343
William M. Brack21e4ef22005-01-02 09:53:13 +0000344echo Checking headers
345
Daniel Veillard01791d51998-07-24 19:24:09 +0000346dnl Checks for header files.
347AC_HEADER_DIRENT
348AC_HEADER_STDC
Daniel Veillard817e70b2002-11-19 22:28:48 +0000349AC_CHECK_HEADERS([fcntl.h])
350AC_CHECK_HEADERS([unistd.h])
351AC_CHECK_HEADERS([ctype.h])
352AC_CHECK_HEADERS([dirent.h])
353AC_CHECK_HEADERS([errno.h])
354AC_CHECK_HEADERS([malloc.h])
355AC_CHECK_HEADERS([stdarg.h])
356AC_CHECK_HEADERS([sys/stat.h])
357AC_CHECK_HEADERS([sys/types.h])
358AC_CHECK_HEADERS([time.h])
359AC_CHECK_HEADERS([ansidecl.h])
360AC_CHECK_HEADERS([ieeefp.h])
361AC_CHECK_HEADERS([nan.h])
362AC_CHECK_HEADERS([math.h])
Daniel Veillardebe48c62003-12-03 12:12:27 +0000363AC_CHECK_HEADERS([limits.h])
Daniel Veillard817e70b2002-11-19 22:28:48 +0000364AC_CHECK_HEADERS([fp_class.h])
365AC_CHECK_HEADERS([float.h])
366AC_CHECK_HEADERS([stdlib.h])
367AC_CHECK_HEADERS([sys/socket.h], [], [],
368[#if HAVE_SYS_TYPES_H
369# include <sys/types.h>
370# endif
371])
372AC_CHECK_HEADERS([netinet/in.h], [], [],
373[#if HAVE_SYS_TYPES_H
374# include <sys/types.h>
375# endif
376])
377AC_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])
385AC_CHECK_HEADERS([netdb.h])
386AC_CHECK_HEADERS([sys/time.h])
387AC_CHECK_HEADERS([sys/select.h])
388AC_CHECK_HEADERS([sys/mman.h])
389AC_CHECK_HEADERS([sys/timeb.h])
390AC_CHECK_HEADERS([signal.h])
391AC_CHECK_HEADERS([arpa/nameser.h], [], [],
392[#if HAVE_SYS_TYPES_H
393# include <sys/types.h>
394# endif
395])
396AC_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 Veillarddcd93902005-01-13 11:25:15 +0000407AC_CHECK_HEADERS([dl.h])
408AC_CHECK_HEADERS([dlfcn.h])
Daniel Veillard01791d51998-07-24 19:24:09 +0000409
Daniel Veillardfc979062004-03-04 22:07:16 +0000410
William M. Brack21e4ef22005-01-02 09:53:13 +0000411echo Checking libraries
Daniel Veillard1164e751999-02-16 16:29:17 +0000412
Daniel Veillard01791d51998-07-24 19:24:09 +0000413dnl Checks for library functions.
414AC_FUNC_STRFTIME
Daniel Veillard92ad2102001-03-27 12:47:33 +0000415AC_CHECK_FUNCS(strdup strndup strerror)
Daniel Veillard71b656e2000-01-05 14:46:17 +0000416AC_CHECK_FUNCS(finite isnand fp_class class fpclass)
Daniel Veillard90bc3712002-03-07 15:12:58 +0000417AC_CHECK_FUNCS(strftime localtime gettimeofday ftime)
Daniel Veillard068a9652001-06-07 15:30:26 +0000418AC_CHECK_FUNCS(stat _stat signal)
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000419
Daniel Veillard92ad2102001-03-27 12:47:33 +0000420dnl Checking the standard string functions availability
421AC_CHECK_FUNCS(printf sprintf fprintf snprintf vfprintf vsprintf vsnprintf sscanf,,
422 NEED_TRIO=1)
423
Daniel Veillard7f7d1111999-09-22 09:46:25 +0000424dnl Checks for inet libraries:
Daniel Veillard71b656e2000-01-05 14:46:17 +0000425AC_CHECK_FUNC(gethostent, , AC_CHECK_LIB(nsl, gethostent))
426AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(socket, setsockopt))
Daniel Veillard7a3447a2005-01-04 14:31:14 +0000427AC_CHECK_FUNC(setsockopt, , AC_CHECK_LIB(net, setsockopt))
Daniel Veillard71b656e2000-01-05 14:46:17 +0000428AC_CHECK_FUNC(connect, , AC_CHECK_LIB(inet, connect))
Daniel Veillardb05deb71999-08-10 19:04:08 +0000429
Daniel Veillardb0426ca2000-10-11 23:39:43 +0000430dnl Determine what socket length (socklen_t) data type is
431AC_MSG_CHECKING([for type of socket length (socklen_t)])
432AC_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 Veillardc284c642005-03-31 10:24:24 +0000438 XML_SOCKLEN_T=socklen_t],[
Daniel Veillardb0426ca2000-10-11 23:39:43 +0000439 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 Veillardc284c642005-03-31 10:24:24 +0000445 XML_SOCKLEN_T=size_t],[
Daniel Veillardb0426ca2000-10-11 23:39:43 +0000446 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 Veillardc284c642005-03-31 10:24:24 +0000452 XML_SOCKLEN_T=int],[
William M. Brack2e6b1432004-02-09 15:10:28 +0000453 AC_MSG_WARN(could not determine)
Daniel Veillardc284c642005-03-31 10:24:24 +0000454 XML_SOCKLEN_T="int"])])])
455AC_DEFINE_UNQUOTED(XML_SOCKLEN_T, $XML_SOCKLEN_T, [Determine what socket length (socklen_t) data type is])
Daniel Veillardb0426ca2000-10-11 23:39:43 +0000456
Daniel Veillardde2a67b2003-06-21 14:20:04 +0000457dnl ***********************Checking for availability of IPv6*******************
458
459AC_MSG_CHECKING([whether to enable IPv6])
William M. Brack21e4ef22005-01-02 09:53:13 +0000460AC_ARG_ENABLE(ipv6, [ --enable-ipv6[[=yes/no]] enables compilation of IPv6 code [[default=yes]]],, enable_ipv6=yes)
Daniel Veillard4432df22003-09-28 18:58:27 +0000461if test "$with_minimum" = "yes"
462then
463 enable_ipv6=no
464fi
Daniel Veillardde2a67b2003-06-21 14:20:04 +0000465if 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. Brack476cd962003-08-13 11:09:42 +0000478 if test $have_ipv6 = yes; then
Daniel Veillardc790bf42003-10-11 10:50:10 +0000479 AC_DEFINE([SUPPORT_IP6], [], [Support for IPv6])
Dodji Seketeli8eba3f32004-11-09 18:30:30 +0000480 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. Brack7d8b36b2005-06-25 07:30:50 +0000485 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 Seketeli8eba3f32004-11-09 18:30:30 +0000488 dnl ********************************************************************
William M. Brack7d8b36b2005-06-25 07:30:50 +0000489 AC_MSG_CHECKING([struct sockaddr::ss_family])
Dodji Seketeli8eba3f32004-11-09 18:30:30 +0000490 AC_TRY_COMPILE([
491 #include <sys/socket.h>
492 #include <sys/types.h>], [
493 struct sockaddr_storage ss ;
William M. Brack7d8b36b2005-06-25 07:30:50 +0000494 ss.ss_family = 0 ;
Dodji Seketeli8eba3f32004-11-09 18:30:30 +0000495 ],
William M. Brack7d8b36b2005-06-25 07:30:50 +0000496 have_ss_family=yes,
497 have_ss_family=no
Dodji Seketeli8eba3f32004-11-09 18:30:30 +0000498 )
William M. Brack7d8b36b2005-06-25 07:30:50 +0000499 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 Seketeli8eba3f32004-11-09 18:30:30 +0000520 fi
Daniel Veillardde2a67b2003-06-21 14:20:04 +0000521
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. Brack476cd962003-08-13 11:09:42 +0000530 if test $have_getaddrinfo = yes; then
Daniel Veillardc790bf42003-10-11 10:50:10 +0000531 AC_DEFINE([HAVE_GETADDRINFO], [], [Define if getaddrinfo is there])
Daniel Veillardde2a67b2003-06-21 14:20:04 +0000532 fi
533 fi
534fi
535
536dnl ******************************End IPv6 checks******************************
537
Daniel Veillardb05deb71999-08-10 19:04:08 +0000538dnl Checks for isnan in libm if not in libc
Daniel Veillard6984e6d2003-12-09 14:20:17 +0000539AC_CHECK_FUNC(isnan, AC_DEFINE([HAVE_ISNAN],[], [Define if isnan is there]) , AC_CHECK_LIB(m, isnan,
Daniel Veillardc790bf42003-10-11 10:50:10 +0000540 [AC_DEFINE([HAVE_ISNAN],[], [Define if isnan is there])]))
Daniel Veillardb05deb71999-08-10 19:04:08 +0000541
Daniel Veillardc790bf42003-10-11 10:50:10 +0000542AC_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 Veillardb05deb71999-08-10 19:04:08 +0000544
545XML_LIBDIR='-L${libdir}'
Daniel Veillarde7dd2b82002-03-15 18:44:02 +0000546XML_INCLUDEDIR='-I${includedir}/libxml2'
Daniel Veillardb05deb71999-08-10 19:04:08 +0000547
Daniel Veillardd7e200c1999-11-15 17:53:11 +0000548dnl
Daniel Veillardf5c2c871999-12-01 09:51:45 +0000549dnl Extra flags
550dnl
551XML_CFLAGS=""
Daniel Veillard357c9602001-05-03 10:49:20 +0000552RDL_LIBS=""
Daniel Veillardf5c2c871999-12-01 09:51:45 +0000553
554dnl
Daniel Veillardb45c43b2001-04-28 17:02:11 +0000555dnl Workaround for native compilers
556dnl HP : http://bugs.gnome.org/db/31/3163.html
557dnl DEC : Enable NaN/Inf
Daniel Veillardd7e200c1999-11-15 17:53:11 +0000558dnl
Daniel Veillard03109292000-08-14 14:58:22 +0000559if test "${GCC}" != "yes" ; then
Daniel Veillardd7e200c1999-11-15 17:53:11 +0000560 case "${host}" in
561 *-*-hpux* )
Daniel Veillard03109292000-08-14 14:58:22 +0000562 CFLAGS="${CFLAGS} -Wp,-H30000"
Daniel Veillardd7e200c1999-11-15 17:53:11 +0000563 ;;
Daniel Veillardb45c43b2001-04-28 17:02:11 +0000564 *-dec-osf* )
565 CFLAGS="${CFLAGS} -ieee"
566 ;;
William M. Brack476cd962003-08-13 11:09:42 +0000567 alpha*-*-linux* )
568 CFLAGS="${CFLAGS} -ieee"
569 ;;
Daniel Veillardd7e200c1999-11-15 17:53:11 +0000570 esac
Daniel Veillardd574f782001-03-14 19:40:17 +0000571else
Daniel Veillardd94849b2003-07-28 13:02:24 +0000572 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 Veillard05f97352004-10-31 15:35:32 +0000581 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 Veillard14839d52001-06-06 16:11:56 +0000582 case "${host}" in
583 alpha*-*-linux* )
584 CFLAGS="${CFLAGS} -mieee"
585 ;;
Daniel Veillardcb5b4d62002-04-11 08:24:26 +0000586 alpha*-*-osf* )
587 CFLAGS="${CFLAGS} -mieee"
588 ;;
Daniel Veillard14839d52001-06-06 16:11:56 +0000589 esac
Daniel Veillardd7e200c1999-11-15 17:53:11 +0000590fi
Daniel Veillardb0426ca2000-10-11 23:39:43 +0000591case ${host} in
592 *-*-solaris*)
Daniel Veillardd2ade932000-09-30 14:39:55 +0000593 XML_LIBDIR="${XML_LIBDIR} -R${libdir}"
594 ;;
Daniel Veillardd30be4a2002-03-28 18:25:31 +0000595 hppa*-hp-mpeix)
596 NEED_TRIO=1
597 ;;
Daniel Veillardd2ade932000-09-30 14:39:55 +0000598esac
599
Daniel Veillardf5c2c871999-12-01 09:51:45 +0000600
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000601dnl
602dnl check for python
603dnl
604
605PYTHON=
606PYTHON_VERSION=
607PYTHON_INCLUDES=
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000608PYTHON_SITE_PACKAGES=
Daniel Veillard6dc91962004-03-22 19:10:02 +0000609PYTHON_TESTS=
Daniel Veillard38b80a82003-05-14 18:59:00 +0000610pythondir=
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000611if 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 Veillard9b731d72002-04-14 12:56:08 +0000616 else
Daniel Veillarda8a89fe2002-04-12 21:03:34 +0000617 if test -x "$with_python"
618 then
Daniel Veillard4efd3be2002-11-18 09:11:13 +0000619 echo Found python in $with_python
620 PYTHON="$with_python"
Daniel Veillarda8a89fe2002-04-12 21:03:34 +0000621 else
William M. Bracka73f45b2005-01-11 02:21:33 +0000622 AC_PATH_PROG(PYTHON, python python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5)
Daniel Veillarda8a89fe2002-04-12 21:03:34 +0000623 fi
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000624 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 Veillard253aa2c2002-02-02 09:17:16 +0000632 if test -r $with_python/include/python$PYTHON_VERSION/Python.h -a \
633 -d $with_python/lib/python$PYTHON_VERSION/site-packages
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000634 then
635 PYTHON_INCLUDES=$with_python/include/python$PYTHON_VERSION
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000636 PYTHON_SITE_PACKAGES=$with_python/lib/python$PYTHON_VERSION/site-packages
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000637 else
638 if test -r $prefix/include/python$PYTHON_VERSION/Python.h
639 then
Daniel Veillard253aa2c2002-02-02 09:17:16 +0000640 PYTHON_INCLUDES='$(prefix)/include/python$(PYTHON_VERSION)'
Daniel Veillarde3b7d9a2002-08-14 14:11:30 +0000641 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000642 else
643 if test -r /usr/include/python$PYTHON_VERSION/Python.h
644 then
645 PYTHON_INCLUDES=/usr/include/python$PYTHON_VERSION
Daniel Veillarde3b7d9a2002-08-14 14:11:30 +0000646 PYTHON_SITE_PACKAGES='$(libdir)/python$(PYTHON_VERSION)/site-packages'
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000647 else
648 echo could not find python$PYTHON_VERSION/Python.h
649 fi
650 fi
William M. Brack5d4cba42004-01-06 15:19:12 +0000651 if test ! -d "$PYTHON_SITE_PACKAGES"
Daniel Veillardb6984ef2002-08-14 16:55:31 +0000652 then
653 PYTHON_SITE_PACKAGES=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib()"`
654 fi
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000655 fi
656 fi
Daniel Veillard38b80a82003-05-14 18:59:00 +0000657 if test "$with_python" != ""
658 then
659 pythondir='$(PYTHON_SITE_PACKAGES)'
660 else
661 pythondir='$(libdir)/python${PYTHON_VERSION}/site-packages'
662 fi
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000663fi
664AM_CONDITIONAL(WITH_PYTHON, test "$PYTHON_INCLUDES" != "")
Daniel Veillard40b11342002-09-20 12:01:39 +0000665if test "$PYTHON_INCLUDES" != ""
666then
667 PYTHON_SUBDIR=python
668else
669 PYTHON_SUBDIR=
670fi
Daniel Veillard38b80a82003-05-14 18:59:00 +0000671AC_SUBST(pythondir)
Daniel Veillard40b11342002-09-20 12:01:39 +0000672AC_SUBST(PYTHON_SUBDIR)
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +0000673
Daniel Veillardce1648b2005-01-04 15:10:22 +0000674dnl check for dso support
675WITH_MODULES=0
Daniel Veillardce1648b2005-01-04 15:10:22 +0000676TEST_MODULES=
677
Daniel Veillardf6b71bd2005-01-04 17:50:14 +0000678if test "$with_modules" != "no" ; then
Daniel Veillard9202b672005-07-14 09:31:14 +0000679 case "$host" in
680 *-*-cygwin*)
681 MODULE_EXTENSION=".dll"
682 AC_CHECK_LIB(cygwin, dlopen, [
683 WITH_MODULES=1
684 MODULE_PLATFORM_LIBS=
685 AC_DEFINE([HAVE_DLOPEN], [], [Have dlopen based dso])
686 ])
687 ;;
688 *)
689 MODULE_EXTENSION=".so"
690 AC_CHECK_LIB(dld, shl_load, [
691 WITH_MODULES=1
692 MODULE_PLATFORM_LIBS="-ldld"
693 AC_DEFINE([HAVE_SHLLOAD], [], [Have shl_load based dso])
694 ])
695
696 AC_CHECK_LIB(dl, dlopen, [
697 WITH_MODULES=1
698 MODULE_PLATFORM_LIBS="-ldl"
699 AC_DEFINE([HAVE_DLOPEN], [], [Have dlopen based dso])
700 ])
701 ;;
702 esac
Daniel Veillardf6b71bd2005-01-04 17:50:14 +0000703fi
Daniel Veillardce1648b2005-01-04 15:10:22 +0000704
705if test "${WITH_MODULES}" = "1"; then
706 TEST_MODULES="ModuleTests"
707fi
708
709AC_SUBST(WITH_MODULES)
710AC_SUBST(MODULE_PLATFORM_LIBS)
711AC_SUBST(MODULE_EXTENSION)
712AC_SUBST(TEST_MODULES)
713
Daniel Veillard437b87b2000-01-03 17:30:46 +0000714dnl
715dnl Tester makes use of readline if present
716dnl
Daniel Veillard03109292000-08-14 14:58:22 +0000717
Daniel Veillard361d8452000-04-03 19:48:13 +0000718dnl
William M. Brack21e4ef22005-01-02 09:53:13 +0000719dnl specific tests to setup DV and Bill's devel environments with debug etc ...
Daniel Veillard81418e32001-05-22 15:08:55 +0000720dnl (-Wunreachable-code)
Daniel Veillardf6eea272001-01-18 12:17:12 +0000721dnl
William M. Brack871611b2003-10-18 04:53:14 +0000722if [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/u/veillard/XML" ]] || \
Daniel Veillardb7c6ac42004-06-29 22:01:27 +0000723 [[ "${LOGNAME}" = "veillard" -a "`pwd`" = "/home/veillard/libxml2" ]] || \
William M. Bracka2e844a2004-01-06 11:52:13 +0000724 [[ "${LOGNAME}" = "bill" -a "`pwd`" = "/home/bill/gnomecvs/xmltest" ]] || \
William M. Brack4119d1c2004-06-24 02:24:44 +0000725 [[ "${LOGNAME}" = "wbrack" -a "`pwd`" = "/Users/wbrack/gnomecvs/xmltest" ]]
William M. Brack871611b2003-10-18 04:53:14 +0000726 then
Daniel Veillard4432df22003-09-28 18:58:27 +0000727 if test "$with_minimum" != "yes"
728 then
729 if test "${with_mem_debug}" = "" ; then
730 with_mem_debug="yes"
Daniel Veillard22cdb842004-10-04 14:09:17 +0000731 with_run_debug="yes"
Daniel Veillard4432df22003-09-28 18:58:27 +0000732 fi
733 if test "${with_docbook}" = "" ; then
734 with_docbook="yes"
735 fi
Daniel Veillardeae522a2001-04-23 13:41:34 +0000736 fi
Daniel Veillardeff45a92004-10-29 12:10:55 +0000737 if test "${CC}" = "gcc" ; then
Daniel Veillard05f97352004-10-31 15:35:32 +0000738 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 Veillardeff45a92004-10-29 12:10:55 +0000739 fi
Daniel Veillard2e9b1652003-02-19 13:29:45 +0000740 STATIC_BINARIES="-static"
Daniel Veillardc86a4fa2001-03-26 16:28:29 +0000741dnl -Wcast-qual -ansi
Daniel Veillard2e9b1652003-02-19 13:29:45 +0000742else
743 STATIC_BINARIES=
Daniel Veillardf6eea272001-01-18 12:17:12 +0000744fi
Daniel Veillard2e9b1652003-02-19 13:29:45 +0000745AC_SUBST(STATIC_BINARIES)
Daniel Veillard92ad2102001-03-27 12:47:33 +0000746
747dnl
748dnl Check for trio string functions
749dnl
750
751if test "${NEED_TRIO}" = "1" ; then
752 echo Adding trio library for string functions
753 WITH_TRIO=1
754else
755 WITH_TRIO=0
756fi
Daniel Veillard01ef7382001-05-08 07:31:43 +0000757AM_CONDITIONAL(WITH_TRIO_SOURCES, test "${NEED_TRIO}" = "1")
Daniel Veillard92ad2102001-03-27 12:47:33 +0000758AC_SUBST(WITH_TRIO)
759
Daniel Veillardf6eea272001-01-18 12:17:12 +0000760dnl
William M. Brack97ad4c72003-05-13 08:08:36 +0000761dnl Allow to enable/disable various pieces
Daniel Veillard361d8452000-04-03 19:48:13 +0000762dnl
William M. Brack21e4ef22005-01-02 09:53:13 +0000763echo Checking configuration requirements
Daniel Veillard361d8452000-04-03 19:48:13 +0000764
William M. Brack21e4ef22005-01-02 09:53:13 +0000765dnl
766dnl Thread-related stuff
767dnl
Daniel Veillardb8478642001-10-12 17:29:10 +0000768THREAD_LIBS=""
Daniel Veillarddbfe05a2005-05-04 09:18:00 +0000769BASE_THREAD_LIBS=""
Daniel Veillardb8478642001-10-12 17:29:10 +0000770WITH_THREADS=0
771THREAD_CFLAGS=""
Daniel Veillardab7488e2001-10-17 11:30:37 +0000772TEST_THREADS=""
Daniel Veillard6984e6d2003-12-09 14:20:17 +0000773THREADS_W32=""
Daniel Veillard64a411c2001-10-15 12:32:07 +0000774
Daniel Veillard84942712003-04-18 14:40:05 +0000775if test "$with_threads" = "no" ; then
776 echo Disabling multithreaded support
777else
Daniel Veillardb8478642001-10-12 17:29:10 +0000778 echo Enabling multithreaded support
779
780 AC_CHECK_HEADER(pthread.h,
Daniel Veillardcbaf3992001-12-31 16:16:02 +0000781 AC_CHECK_LIB(pthread, pthread_join,[
Daniel Veillardb8478642001-10-12 17:29:10 +0000782 THREAD_LIBS="-lpthread"
Daniel Veillardc790bf42003-10-11 10:50:10 +0000783 AC_DEFINE([HAVE_LIBPTHREAD], [], [Define if pthread library is there (-lpthread)])
784 AC_DEFINE([HAVE_PTHREAD_H], [], [Define if <pthread.h> is there])
Daniel Veillardab7488e2001-10-17 11:30:37 +0000785 WITH_THREADS="1"]))
Daniel Veillard6984e6d2003-12-09 14:20:17 +0000786 case $host_os in
787 *mingw32*) WITH_THREADS="1"
788 THREADS_W32="Win32"
789 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_WIN32_THREADS"
790 ;;
William M. Bracka73f45b2005-01-11 02:21:33 +0000791 *cygwin*) THREAD_LIBS=""
792 ;;
Daniel Veillard7a3447a2005-01-04 14:31:14 +0000793 *beos*) WITH_THREADS="1"
794 THREAD_CFLAGS="$THREAD_CFLAGS -DHAVE_BEOS_THREADS"
795 ;;
Daniel Veillarddbfe05a2005-05-04 09:18:00 +0000796 *linux*)
797 if test "${CC}" = "gcc" -a "${THREAD_LIBS}" = "-lpthread" ; then
798 THREAD_LIBS=""
799 BASE_THREAD_LIBS="-lpthread"
800 fi
801 ;;
Daniel Veillard6984e6d2003-12-09 14:20:17 +0000802 esac
Daniel Veillardb8478642001-10-12 17:29:10 +0000803 if test "$WITH_THREADS" = "1" ; then
Daniel Veillardab7488e2001-10-17 11:30:37 +0000804 THREAD_CFLAGS="$THREAD_CFLAGS -D_REENTRANT"
805 TEST_THREADS="Threadtests"
Daniel Veillardb8478642001-10-12 17:29:10 +0000806 fi
807fi
William M. Brack306e33c2004-06-12 01:01:22 +0000808if test "$with_thread_alloc" = "yes" -a "$WITH_THREADS" = "1" ; then
Daniel Veillardab7488e2001-10-17 11:30:37 +0000809 THREAD_CFLAGS="$THREAD_CFLAGS -DLIBXML_THREAD_ALLOC_ENABLED"
Daniel Veillard64a411c2001-10-15 12:32:07 +0000810fi
811
Daniel Veillardb8478642001-10-12 17:29:10 +0000812AC_SUBST(THREAD_LIBS)
Daniel Veillarddbfe05a2005-05-04 09:18:00 +0000813AC_SUBST(BASE_THREAD_LIBS)
Daniel Veillardb8478642001-10-12 17:29:10 +0000814AC_SUBST(WITH_THREADS)
815AC_SUBST(THREAD_CFLAGS)
Daniel Veillardab7488e2001-10-17 11:30:37 +0000816AC_SUBST(TEST_THREADS)
Daniel Veillard6984e6d2003-12-09 14:20:17 +0000817AC_SUBST(THREADS_W32)
Daniel Veillardb8478642001-10-12 17:29:10 +0000818
William M. Brack21e4ef22005-01-02 09:53:13 +0000819dnl
820dnl xmllint shell history
821dnl
Daniel Veillard259ff742001-10-06 13:49:59 +0000822if test "$with_history" = "yes" ; then
Daniel Veillardf012a642001-07-23 19:10:52 +0000823 echo Enabling xmllint shell history
824 dnl check for terminal library. this is a very cool solution
825 dnl from octave's configure.in
826 unset tcap
827 for termlib in ncurses curses termcap terminfo termlib; do
828 AC_CHECK_LIB(${termlib}, tputs, [tcap="-l$termlib"])
829 test -n "$tcap" && break
830 done
831
832 AC_CHECK_HEADER(readline/history.h,
833 AC_CHECK_LIB(history, append_history,[
834 RDL_LIBS="-lhistory"
Daniel Veillardc790bf42003-10-11 10:50:10 +0000835 AC_DEFINE([HAVE_LIBHISTORY], [], [Define if history library is there (-lhistory)])]))
Daniel Veillardf012a642001-07-23 19:10:52 +0000836 AC_CHECK_HEADER(readline/readline.h,
837 AC_CHECK_LIB(readline, readline,[
838 RDL_LIBS="-lreadline $RDL_LIBS $tcap"
Daniel Veillardc790bf42003-10-11 10:50:10 +0000839 AC_DEFINE([HAVE_LIBREADLINE], [], [Define if readline library is there (-lreadline)])], , $tcap))
Daniel Veillardf012a642001-07-23 19:10:52 +0000840 if test -n "$RDL_DIR" -a -n "$RDL_LIBS"; then
841 CPPFLAGS="$CPPFLAGS -I${RDL_DIR}/include"
842 RDL_LIBS="-L${RDL_DIR}/lib $RDL_LIBS"
Daniel Veillardf012a642001-07-23 19:10:52 +0000843 fi
Daniel Veillardf012a642001-07-23 19:10:52 +0000844fi
845
William M. Brack21e4ef22005-01-02 09:53:13 +0000846dnl
847dnl Tree functions
848dnl
Daniel Veillard652327a2003-09-29 18:02:38 +0000849if test "$with_tree" = "no" ; then
850 echo Disabling DOM like tree manipulation APIs
851 WITH_TREE=0
852else
853 WITH_TREE=1
854fi
855AC_SUBST(WITH_TREE)
856
Daniel Veillard361d8452000-04-03 19:48:13 +0000857if test "$with_ftp" = "no" ; then
858 echo Disabling FTP support
859 WITH_FTP=0
860 FTP_OBJ=
861else
862 WITH_FTP=1
863 FTP_OBJ=nanoftp.o
864fi
865AC_SUBST(WITH_FTP)
866AC_SUBST(FTP_OBJ)
867
Daniel Veillard361d8452000-04-03 19:48:13 +0000868if test "$with_http" = "no" ; then
869 echo Disabling HTTP support
870 WITH_HTTP=0
871 HTTP_OBJ=
872else
873 WITH_HTTP=1
874 HTTP_OBJ=nanohttp.o
875fi
876AC_SUBST(WITH_HTTP)
877AC_SUBST(HTTP_OBJ)
878
Daniel Veillard4432df22003-09-28 18:58:27 +0000879if test "$with_legacy" = "no" ; then
880 echo Disabling deprecated APIs
881 WITH_LEGACY=0
882else
883 WITH_LEGACY=1
884fi
885AC_SUBST(WITH_LEGACY)
886
Daniel Veillard81273902003-09-30 00:43:48 +0000887if test "$with_reader" = "no" ; then
888 echo Disabling the xmlReader parsing interface
889 WITH_READER=0
Daniel Veillard73b013f2003-09-30 12:36:01 +0000890 READER_TEST=
Daniel Veillard81273902003-09-30 00:43:48 +0000891else
892 WITH_READER=1
Daniel Veillard73b013f2003-09-30 12:36:01 +0000893 READER_TEST=Readertests
William M. Brack21e4ef22005-01-02 09:53:13 +0000894 if test "$with_push" = "no" ; then
895 echo xmlReader requires Push interface - enabling it
896 with_push=yes
897 fi
Daniel Veillard81273902003-09-30 00:43:48 +0000898fi
899AC_SUBST(WITH_READER)
Daniel Veillard73b013f2003-09-30 12:36:01 +0000900AC_SUBST(READER_TEST)
Daniel Veillard81273902003-09-30 00:43:48 +0000901
William M. Brack21e4ef22005-01-02 09:53:13 +0000902if test "$with_writer" = "no" ; then
903 echo Disabling the xmlWriter saving interface
904 WITH_WRITER=0
905# WRITER_TEST=
906else
907 WITH_WRITER=1
908# WRITER_TEST=Writertests
909 if test "$with_push" = "no" ; then
910 echo xmlWriter requires Push interface - enabling it
911 with_push=yes
912 fi
913 if test "$with_output" = "no" ; then
914 echo xmlWriter requires Output interface - enabling it
915 with_output=yes
916 fi
Daniel Veillardb3de70c2003-12-02 22:32:15 +0000917fi
William M. Brack21e4ef22005-01-02 09:53:13 +0000918AC_SUBST(WITH_WRITER)
919#AC_SUBST(WRITER_TEST)
920
Daniel Veillardb3de70c2003-12-02 22:32:15 +0000921if test "$with_pattern" = "no" ; then
922 echo Disabling the xmlPattern parsing interface
923 WITH_PATTERN=0
Daniel Veillardf9d16912005-01-30 22:36:30 +0000924 TEST_PATTERN=
Daniel Veillardb3de70c2003-12-02 22:32:15 +0000925else
926 WITH_PATTERN=1
Daniel Veillardf9d16912005-01-30 22:36:30 +0000927 TEST_PATTERN=Patterntests
Daniel Veillardb3de70c2003-12-02 22:32:15 +0000928fi
929AC_SUBST(WITH_PATTERN)
Daniel Veillardf9d16912005-01-30 22:36:30 +0000930AC_SUBST(TEST_PATTERN)
Daniel Veillardb3de70c2003-12-02 22:32:15 +0000931
Daniel Veillard81273902003-09-30 00:43:48 +0000932if test "$with_sax1" = "no" ; then
933 echo Disabling the older SAX1 interface
934 WITH_SAX1=0
935 TEST_SAX=
936else
937 WITH_SAX1=1
938 TEST_SAX=SAXtests
939fi
940AC_SUBST(WITH_SAX1)
941AC_SUBST(TEST_SAX)
942
Daniel Veillard73b013f2003-09-30 12:36:01 +0000943if test "$with_push" = "no" ; then
944 echo Disabling the PUSH parser interfaces
945 WITH_PUSH=0
946 TEST_PUSH=
947else
948 WITH_PUSH=1
949 TEST_PUSH="XMLPushtests"
950fi
951AC_SUBST(WITH_PUSH)
952AC_SUBST(TEST_PUSH)
953
Daniel Veillard73b013f2003-09-30 12:36:01 +0000954if test "$with_html" = "no" ; then
955 echo Disabling HTML support
956 WITH_HTML=0
957 HTML_OBJ=
958 TEST_HTML=
959else
960 WITH_HTML=1
961 HTML_OBJ="HTMLparser.o HTMLtree.o"
962 TEST_HTML=HTMLtests
William M. Brack871611b2003-10-18 04:53:14 +0000963 if test "$with_push" != "no" ; then
Daniel Veillard73b013f2003-09-30 12:36:01 +0000964 TEST_PHTML=HTMLPushtests
965 else
966 TEST_PHTML=
967 fi
968fi
969AC_SUBST(WITH_HTML)
970AC_SUBST(HTML_OBJ)
971AC_SUBST(TEST_HTML)
972AC_SUBST(TEST_PHTML)
973
Daniel Veillard73b013f2003-09-30 12:36:01 +0000974if test "$with_valid" = "no" ; then
Daniel Veillard4432df22003-09-28 18:58:27 +0000975 echo Disabling DTD validation support
976 WITH_VALID=0
977 TEST_VALID=
978 TEST_VTIME=
979else
980 WITH_VALID=1
981 TEST_VALID=Validtests
982 TEST_VTIME=VTimingtests
983fi
984AC_SUBST(WITH_VALID)
985AC_SUBST(TEST_VALID)
986AC_SUBST(TEST_VTIME)
Daniel Veillard361d8452000-04-03 19:48:13 +0000987
Daniel Veillarda7374592001-05-10 14:17:55 +0000988if test "$with_catalog" = "no" ; then
989 echo Disabling Catalog support
990 WITH_CATALOG=0
991 CATALOG_OBJ=
Daniel Veillard4432df22003-09-28 18:58:27 +0000992 TEST_CATALOG=
Daniel Veillarda7374592001-05-10 14:17:55 +0000993else
994 WITH_CATALOG=1
995 CATALOG_OBJ="catalog.o"
Daniel Veillard4432df22003-09-28 18:58:27 +0000996 TEST_CATALOG=Catatests
Daniel Veillarda7374592001-05-10 14:17:55 +0000997fi
998AC_SUBST(WITH_CATALOG)
999AC_SUBST(CATALOG_OBJ)
Daniel Veillard4432df22003-09-28 18:58:27 +00001000AC_SUBST(TEST_CATALOG)
Daniel Veillarda7374592001-05-10 14:17:55 +00001001
Daniel Veillardb59076b2001-04-29 17:04:07 +00001002if test "$with_docbook" = "no" ; then
1003 echo Disabling Docbook support
Daniel Veillardeae522a2001-04-23 13:41:34 +00001004 WITH_DOCB=0
1005 DOCB_OBJ=
Daniel Veillardb59076b2001-04-29 17:04:07 +00001006else
1007 WITH_DOCB=1
1008 DOCB_OBJ="DOCBparser.o"
Daniel Veillardeae522a2001-04-23 13:41:34 +00001009fi
1010AC_SUBST(WITH_DOCB)
1011AC_SUBST(DOCB_OBJ)
1012
1013
William M. Brack21e4ef22005-01-02 09:53:13 +00001014if test "$with_xptr" = "no" ; then
1015 echo Disabling XPointer support
1016 WITH_XPTR=0
1017 XPTR_OBJ=
1018 TEST_XPTR=
1019else
1020 WITH_XPTR=1
1021 XPTR_OBJ=xpointer.o
1022 TEST_XPTR=XPtrtests
1023 if test "$with_xpath" = "no" ; then
1024 echo XPointer requires XPath support - enabling it
1025 with_xpath=yes
1026 fi
Daniel Veillard4432df22003-09-28 18:58:27 +00001027fi
William M. Brack21e4ef22005-01-02 09:53:13 +00001028AC_SUBST(WITH_XPTR)
1029AC_SUBST(XPTR_OBJ)
1030AC_SUBST(TEST_XPTR)
1031
1032if test "$with_c14n" = "no" ; then
1033 echo Disabling C14N support
1034 WITH_C14N=0
1035 C14N_OBJ=
1036 TEST_C14N=
1037else
1038 WITH_C14N=1
1039 C14N_OBJ="c14n.c"
1040 TEST_C14N=C14Ntests
1041 if test "$with_xpath" = "no" ; then
1042 echo C14N requires XPath support - enabling it
1043 with_xpath=yes
1044 fi
1045fi
1046AC_SUBST(WITH_C14N)
1047AC_SUBST(C14N_OBJ)
1048AC_SUBST(TEST_C14N)
1049
1050if test "$with_xinclude" = "no" ; then
1051 echo Disabling XInclude support
1052 WITH_XINCLUDE=0
1053 XINCLUDE_OBJ=
1054 with_xinclude="no"
1055 TEST_XINCLUDE=
1056else
1057 WITH_XINCLUDE=1
1058 XINCLUDE_OBJ=xinclude.o
1059 TEST_XINCLUDE=XIncludetests
1060 if test "$with_xpath" = "no" ; then
1061 echo XInclude requires XPath support - enabling it
1062 with_xpath=yes
1063 fi
1064fi
1065AC_SUBST(WITH_XINCLUDE)
1066AC_SUBST(XINCLUDE_OBJ)
1067AC_SUBST(TEST_XINCLUDE)
1068
Daniel Veillard361d8452000-04-03 19:48:13 +00001069if test "$with_xpath" = "no" ; then
1070 echo Disabling XPATH support
1071 WITH_XPATH=0
1072 XPATH_OBJ=
Daniel Veillard4432df22003-09-28 18:58:27 +00001073 TEST_XPATH=
Daniel Veillard361d8452000-04-03 19:48:13 +00001074else
1075 WITH_XPATH=1
1076 XPATH_OBJ=xpath.o
Daniel Veillard4432df22003-09-28 18:58:27 +00001077 TEST_XPATH=XPathtests
Daniel Veillard361d8452000-04-03 19:48:13 +00001078fi
1079AC_SUBST(WITH_XPATH)
1080AC_SUBST(XPATH_OBJ)
Daniel Veillard4432df22003-09-28 18:58:27 +00001081AC_SUBST(TEST_XPATH)
Daniel Veillard361d8452000-04-03 19:48:13 +00001082
William M. Brack21e4ef22005-01-02 09:53:13 +00001083dnl
1084dnl output functions
1085dnl
1086if test "$with_output" = "no" ; then
1087 echo Disabling serialization/saving support
1088 WITH_OUTPUT=0
Daniel Veillardc8df0aa2000-10-10 23:50:30 +00001089else
William M. Brack21e4ef22005-01-02 09:53:13 +00001090 WITH_OUTPUT=1
Daniel Veillardc8df0aa2000-10-10 23:50:30 +00001091fi
William M. Brack21e4ef22005-01-02 09:53:13 +00001092AC_SUBST(WITH_OUTPUT)
Daniel Veillard9e8bfae2000-11-06 16:43:11 +00001093
Daniel Veillard6e90d192001-07-03 16:37:49 +00001094WITH_ICONV=0
Daniel Veillard496a1cf2000-05-03 14:20:55 +00001095if test "$with_iconv" = "no" ; then
1096 echo Disabling ICONV support
Daniel Veillardd574f782001-03-14 19:40:17 +00001097else
Daniel Veillard220346d2001-12-07 11:33:54 +00001098 if test "$with_iconv" != "yes" -a "$with_iconv" != "" ; then
Daniel Veillard6e90d192001-07-03 16:37:49 +00001099 CPPFLAGS="${CPPFLAGS} -I$with_iconv/include"
Daniel Veillardf5b44e42001-09-17 17:19:54 +00001100 # Export this since our headers include iconv.h
1101 XML_INCLUDEDIR="${XML_INCLUDEDIR} -I$with_iconv/include"
Daniel Veillard6e90d192001-07-03 16:37:49 +00001102 ICONV_LIBS="-L$with_iconv/lib"
Daniel Veillard496a1cf2000-05-03 14:20:55 +00001103 fi
Daniel Veillard6e90d192001-07-03 16:37:49 +00001104
1105 AC_CHECK_HEADER(iconv.h,
1106 AC_MSG_CHECKING(for iconv)
1107 AC_TRY_LINK([#include <stdlib.h>
1108#include <iconv.h>],[
1109iconv_t cd = iconv_open ("","");
1110iconv (cd, NULL, NULL, NULL, NULL);],[
1111 AC_MSG_RESULT(yes)
1112 WITH_ICONV=1],[
1113 AC_MSG_RESULT(no)
1114 AC_MSG_CHECKING(for iconv in -liconv)
1115
1116 _ldflags="${LDFLAGS}"
1117 _libs="${LIBS}"
1118 LDFLAGS="${LDFLAGS} ${ICONV_LIBS}"
1119 LIBS="${LIBS} -liconv"
1120
1121 AC_TRY_LINK([#include <stdlib.h>
1122#include <iconv.h>],[
1123iconv_t cd = iconv_open ("","");
1124iconv (cd, NULL, NULL, NULL, NULL);],[
1125 AC_MSG_RESULT(yes)
1126 WITH_ICONV=1
1127 ICONV_LIBS="${ICONV_LIBS} -liconv"
1128 LIBS="${_libs}"
1129 LDFLAGS="${_ldflags}"],[
1130 AC_MSG_RESULT(no)
1131 LIBS="${_libs}"
1132 LDFLAGS="${_ldflags}"])]))
1133fi
Daniel Veillard6984e6d2003-12-09 14:20:17 +00001134case "$host" in
1135 *mingw*) M_LIBS=""
1136 ;;
Daniel Veillard7a3447a2005-01-04 14:31:14 +00001137 *beos*) M_LIBS=""
1138 ;;
Daniel Veillard6984e6d2003-12-09 14:20:17 +00001139 *) M_LIBS="-lm"
1140 ;;
1141esac
Daniel Veillardb82c1662001-12-09 14:00:54 +00001142XML_LIBS="-lxml2 $Z_LIBS $THREAD_LIBS $ICONV_LIBS $M_LIBS $LIBS"
Daniel Veillard90d165b2003-09-01 20:33:13 +00001143XML_LIBTOOLLIBS="libxml2.la"
Daniel Veillard496a1cf2000-05-03 14:20:55 +00001144AC_SUBST(WITH_ICONV)
1145
Daniel Veillard01fc1a92003-07-30 15:12:01 +00001146WITH_ISO8859X=1
Daniel Veillard01fc1a92003-07-30 15:12:01 +00001147if test "$WITH_ICONV" != "1" ; then
1148if test "$with_iso8859x" = "no" ; then
1149 echo Disabling ISO8859X support
1150 WITH_ISO8859X=0
1151fi
1152fi
1153AC_SUBST(WITH_ISO8859X)
1154
Daniel Veillardef4d3bc2003-02-07 12:38:22 +00001155if test "$with_schemas" = "no" ; then
William M. Brack21e4ef22005-01-02 09:53:13 +00001156 echo "Disabling Schemas/Relax-NG support"
Daniel Veillardef4d3bc2003-02-07 12:38:22 +00001157 WITH_SCHEMAS=0
1158 TEST_SCHEMAS=
1159else
Daniel Veillard71531f32003-02-05 13:19:53 +00001160 echo "Enabled Schemas/Relax-NG support"
Daniel Veillard4255d502002-04-16 15:50:10 +00001161 WITH_SCHEMAS=1
Daniel Veillard6eadf632003-01-23 18:29:16 +00001162 TEST_SCHEMAS="Schemastests Relaxtests"
Daniel Veillard6dc91962004-03-22 19:10:02 +00001163 if test "$PYTHON_INCLUDES" != "" ; then
1164 PYTHON_TESTS="$PYTHON_TESTS RelaxNGPythonTests SchemasPythonTests"
1165 fi
Daniel Veillard23e73572002-09-19 19:56:43 +00001166 with_regexps=yes
Daniel Veillard4255d502002-04-16 15:50:10 +00001167fi
1168AC_SUBST(WITH_SCHEMAS)
1169AC_SUBST(TEST_SCHEMAS)
1170
Daniel Veillard23e73572002-09-19 19:56:43 +00001171if test "$with_regexps" = "no" ; then
1172 echo Disabling Regexps support
1173 WITH_REGEXPS=0
1174 TEST_REGEXPS=
1175else
1176 WITH_REGEXPS=1
1177 TEST_REGEXPS="Regexptests Automatatests"
1178fi
1179AC_SUBST(WITH_REGEXPS)
1180AC_SUBST(TEST_REGEXPS)
1181
Daniel Veillard361d8452000-04-03 19:48:13 +00001182if test "$with_debug" = "no" ; then
1183 echo Disabling DEBUG support
1184 WITH_DEBUG=0
1185 DEBUG_OBJ=
Daniel Veillard4432df22003-09-28 18:58:27 +00001186 TEST_DEBUG=
Daniel Veillard361d8452000-04-03 19:48:13 +00001187else
1188 WITH_DEBUG=1
1189 DEBUG_OBJ=debugXML.o
Daniel Veillard4432df22003-09-28 18:58:27 +00001190 TEST_DEBUG=Scripttests
Daniel Veillard361d8452000-04-03 19:48:13 +00001191fi
1192AC_SUBST(WITH_DEBUG)
1193AC_SUBST(DEBUG_OBJ)
Daniel Veillard4432df22003-09-28 18:58:27 +00001194AC_SUBST(TEST_DEBUG)
Daniel Veillard361d8452000-04-03 19:48:13 +00001195
Daniel Veillard361d8452000-04-03 19:48:13 +00001196if test "$with_mem_debug" = "yes" ; then
William M. Brack306e33c2004-06-12 01:01:22 +00001197 if test "$with_thread_alloc" = "yes" ; then
1198 echo Disabling memory debug - cannot use mem-debug with thread-alloc!
1199 WITH_MEM_DEBUG=0
1200 else
1201 echo Enabling memory debug support
1202 WITH_MEM_DEBUG=1
1203 fi
Daniel Veillard361d8452000-04-03 19:48:13 +00001204else
1205 WITH_MEM_DEBUG=0
1206fi
1207AC_SUBST(WITH_MEM_DEBUG)
1208
Daniel Veillard22cdb842004-10-04 14:09:17 +00001209if test "$with_run_debug" = "yes" ; then
1210 echo Enabling runtime debug support
1211 WITH_RUN_DEBUG=1
1212else
1213 WITH_RUN_DEBUG=0
1214fi
1215AC_SUBST(WITH_RUN_DEBUG)
Daniel Veillard1638a472003-08-14 01:23:25 +00001216
1217WIN32_EXTRA_LIBADD=
1218WIN32_EXTRA_LDFLAGS=
William M. Bracka73f45b2005-01-11 02:21:33 +00001219CYGWIN_EXTRA_LDFLAGS=
1220CYGWIN_EXTRA_PYTHON_LIBADD=
Daniel Veillard1638a472003-08-14 01:23:25 +00001221case "$host" in
1222 *-*-mingw*)
Daniel Veillard6984e6d2003-12-09 14:20:17 +00001223 CPPFLAGS="$CPPFLAGS -DWIN32"
1224 WIN32_EXTRA_LIBADD="-lws2_32"
Daniel Veillard1638a472003-08-14 01:23:25 +00001225 WIN32_EXTRA_LDFLAGS="-no-undefined"
1226 AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation])
1227 AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around])
1228 AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling work-around])
1229 ;;
Daniel Veillardd392ba72004-08-04 14:56:45 +00001230 *-*-cygwin*)
1231 CYGWIN_EXTRA_LDFLAGS="-no-undefined"
William M. Bracka73f45b2005-01-11 02:21:33 +00001232 if test "${PYTHON}" != ""
1233 then
1234 CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
1235 fi
Daniel Veillardd392ba72004-08-04 14:56:45 +00001236 ;;
Daniel Veillard1638a472003-08-14 01:23:25 +00001237esac
1238AC_SUBST(WIN32_EXTRA_LIBADD)
1239AC_SUBST(WIN32_EXTRA_LDFLAGS)
Daniel Veillardd392ba72004-08-04 14:56:45 +00001240AC_SUBST(CYGWIN_EXTRA_LDFLAGS)
1241AC_SUBST(CYGWIN_EXTRA_PYTHON_LIBADD)
Daniel Veillard1638a472003-08-14 01:23:25 +00001242
Daniel Veillard6984e6d2003-12-09 14:20:17 +00001243AC_SUBST(CPPFLAGS)
Daniel Veillardd7e200c1999-11-15 17:53:11 +00001244AC_SUBST(CFLAGS)
Daniel Veillardf5c2c871999-12-01 09:51:45 +00001245AC_SUBST(XML_CFLAGS)
Daniel Veillardd7e200c1999-11-15 17:53:11 +00001246
Daniel Veillardb05deb71999-08-10 19:04:08 +00001247AC_SUBST(XML_LIBDIR)
1248AC_SUBST(XML_LIBS)
Daniel Veillard90d165b2003-09-01 20:33:13 +00001249AC_SUBST(XML_LIBTOOLLIBS)
Daniel Veillard81418e32001-05-22 15:08:55 +00001250AC_SUBST(ICONV_LIBS)
Daniel Veillardb05deb71999-08-10 19:04:08 +00001251AC_SUBST(XML_INCLUDEDIR)
1252AC_SUBST(HTML_DIR)
1253AC_SUBST(HAVE_ISNAN)
1254AC_SUBST(HAVE_ISINF)
Daniel Veillardf1d0e6b2002-01-31 23:42:44 +00001255AC_SUBST(PYTHON)
1256AC_SUBST(PYTHON_VERSION)
1257AC_SUBST(PYTHON_INCLUDES)
Daniel Veillard253aa2c2002-02-02 09:17:16 +00001258AC_SUBST(PYTHON_SITE_PACKAGES)
Daniel Veillardb05deb71999-08-10 19:04:08 +00001259
Daniel Veillardb05deb71999-08-10 19:04:08 +00001260AC_SUBST(M_LIBS)
Daniel Veillard437b87b2000-01-03 17:30:46 +00001261AC_SUBST(RDL_LIBS)
Daniel Veillard361d8452000-04-03 19:48:13 +00001262
Daniel Veillard9715c172002-11-25 16:33:40 +00001263dnl for the spec file
1264RELDATE=`date +'%a %b %e %Y'`
1265AC_SUBST(RELDATE)
Daniel Veillard6dc91962004-03-22 19:10:02 +00001266AC_SUBST(PYTHON_TESTS)
Daniel Veillard9715c172002-11-25 16:33:40 +00001267
Daniel Veillardc6e997c2003-01-27 12:35:42 +00001268rm -f COPYING.LIB COPYING
Daniel Veillardc575b992002-02-08 13:28:40 +00001269ln -s Copyright COPYING
1270
Daniel Veillarde4177a52004-01-08 16:43:57 +00001271# keep on one line for cygwin c.f. #130896
Daniel Veillardb1da40c2004-09-06 11:57:44 +00001272AC_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 Espinosa15fe6e71998-09-07 17:27:57 +00001273
Daniel Veillard06d25242004-02-25 13:01:42 +00001274chmod +x xml2-config python/setup.py