1# Makefile.in generated by automake 1.16.1 from Makefile.am.
2# @configure_input@
3
4# Copyright (C) 1994-2018 Free Software Foundation, Inc.
5
6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,
8# with or without modifications, as long as this notice is preserved.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13# PARTICULAR PURPOSE.
14
15@SET_MAKE@
16
17
18
19
20VPATH = @srcdir@
21am__is_gnu_make = { \
22  if test -z '$(MAKELEVEL)'; then \
23    false; \
24  elif test -n '$(MAKE_HOST)'; then \
25    true; \
26  elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
27    true; \
28  else \
29    false; \
30  fi; \
31}
32am__make_running_with_option = \
33  case $${target_option-} in \
34      ?) ;; \
35      *) echo "am__make_running_with_option: internal error: invalid" \
36              "target option '$${target_option-}' specified" >&2; \
37         exit 1;; \
38  esac; \
39  has_opt=no; \
40  sane_makeflags=$$MAKEFLAGS; \
41  if $(am__is_gnu_make); then \
42    sane_makeflags=$$MFLAGS; \
43  else \
44    case $$MAKEFLAGS in \
45      *\\[\ \	]*) \
46        bs=\\; \
47        sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
48          | sed "s/$$bs$$bs[$$bs $$bs	]*//g"`;; \
49    esac; \
50  fi; \
51  skip_next=no; \
52  strip_trailopt () \
53  { \
54    flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
55  }; \
56  for flg in $$sane_makeflags; do \
57    test $$skip_next = yes && { skip_next=no; continue; }; \
58    case $$flg in \
59      *=*|--*) continue;; \
60        -*I) strip_trailopt 'I'; skip_next=yes;; \
61      -*I?*) strip_trailopt 'I';; \
62        -*O) strip_trailopt 'O'; skip_next=yes;; \
63      -*O?*) strip_trailopt 'O';; \
64        -*l) strip_trailopt 'l'; skip_next=yes;; \
65      -*l?*) strip_trailopt 'l';; \
66      -[dEDm]) skip_next=yes;; \
67      -[JT]) skip_next=yes;; \
68    esac; \
69    case $$flg in \
70      *$$target_option*) has_opt=yes; break;; \
71    esac; \
72  done; \
73  test $$has_opt = yes
74am__make_dryrun = (target_option=n; $(am__make_running_with_option))
75am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
76pkgdatadir = $(datadir)/@PACKAGE@
77pkgincludedir = $(includedir)/@PACKAGE@
78pkglibdir = $(libdir)/@PACKAGE@
79pkglibexecdir = $(libexecdir)/@PACKAGE@
80am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
81install_sh_DATA = $(install_sh) -c -m 644
82install_sh_PROGRAM = $(install_sh) -c
83install_sh_SCRIPT = $(install_sh) -c
84INSTALL_HEADER = $(INSTALL_DATA)
85transform = $(program_transform_name)
86NORMAL_INSTALL = :
87PRE_INSTALL = :
88POST_INSTALL = :
89NORMAL_UNINSTALL = :
90PRE_UNINSTALL = :
91POST_UNINSTALL = :
92build_triplet = @build@
93host_triplet = @host@
94check_PROGRAMS = testSchemas$(EXEEXT) testRelax$(EXEEXT) \
95	testSAX$(EXEEXT) testHTML$(EXEEXT) testXPath$(EXEEXT) \
96	testURI$(EXEEXT) testThreads$(EXEEXT) testC14N$(EXEEXT) \
97	testAutomata$(EXEEXT) testRegexp$(EXEEXT) testReader$(EXEEXT) \
98	testapi$(EXEEXT) testModule$(EXEEXT) runtest$(EXEEXT) \
99	runsuite$(EXEEXT) testchar$(EXEEXT) testdict$(EXEEXT) \
100	runxmlconf$(EXEEXT) testrecurse$(EXEEXT) testlimits$(EXEEXT)
101bin_PROGRAMS = xmllint$(EXEEXT) xmlcatalog$(EXEEXT)
102subdir = .
103ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
104am__aclocal_m4_deps = $(top_srcdir)/m4/libtool.m4 \
105	$(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \
106	$(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \
107	$(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac
108am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
109	$(ACLOCAL_M4)
110DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
111	$(am__configure_deps) $(am__DIST_COMMON)
112am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
113 configure.lineno config.status.lineno
114mkinstalldirs = $(install_sh) -d
115CONFIG_HEADER = config.h
116CONFIG_CLEAN_FILES = libxml2.spec libxml-2.0.pc \
117	libxml-2.0-uninstalled.pc libxml2-config.cmake xml2-config
118CONFIG_CLEAN_VPATH_FILES =
119am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" \
120	"$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" \
121	"$(DESTDIR)$(man3dir)" "$(DESTDIR)$(cmakedir)" \
122	"$(DESTDIR)$(confexecdir)" "$(DESTDIR)$(m4datadir)" \
123	"$(DESTDIR)$(pkgconfigdir)"
124PROGRAMS = $(bin_PROGRAMS)
125am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
126am__vpath_adj = case $$p in \
127    $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
128    *) f=$$p;; \
129  esac;
130am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
131am__install_max = 40
132am__nobase_strip_setup = \
133  srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
134am__nobase_strip = \
135  for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
136am__nobase_list = $(am__nobase_strip_setup); \
137  for p in $$list; do echo "$$p $$p"; done | \
138  sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
139  $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
140    if (++n[$$2] == $(am__install_max)) \
141      { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
142    END { for (dir in files) print dir, files[dir] }'
143am__base_list = \
144  sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
145  sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
146am__uninstall_files_from_dir = { \
147  test -z "$$files" \
148    || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
149    || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
150         $(am__cd) "$$dir" && rm -f $$files; }; \
151  }
152LTLIBRARIES = $(lib_LTLIBRARIES) $(noinst_LTLIBRARIES)
153am__DEPENDENCIES_1 =
154libxml2_la_DEPENDENCIES = $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
155	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
156	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
157	$(am__DEPENDENCIES_1)
158am__libxml2_la_SOURCES_DIST = SAX.c entities.c encoding.c error.c \
159	parserInternals.c parser.c tree.c hash.c list.c xmlIO.c \
160	xmlmemory.c uri.c valid.c xlink.c HTMLparser.c HTMLtree.c \
161	debugXML.c xpath.c xpointer.c xinclude.c nanohttp.c nanoftp.c \
162	DOCBparser.c catalog.c globals.c threads.c c14n.c xmlstring.c \
163	buf.c xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
164	triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c \
165	xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c xmlmodule.c \
166	schematron.c xzlib.c
167@WITH_SAX1_SOURCES_TRUE@am__objects_1 = DOCBparser.lo
168@WITH_TRIO_SOURCES_TRUE@am__objects_2 = triostr.lo trio.lo
169am_libxml2_la_OBJECTS = SAX.lo entities.lo encoding.lo error.lo \
170	parserInternals.lo parser.lo tree.lo hash.lo list.lo xmlIO.lo \
171	xmlmemory.lo uri.lo valid.lo xlink.lo HTMLparser.lo \
172	HTMLtree.lo debugXML.lo xpath.lo xpointer.lo xinclude.lo \
173	nanohttp.lo nanoftp.lo $(am__objects_1) catalog.lo globals.lo \
174	threads.lo c14n.lo xmlstring.lo buf.lo xmlregexp.lo \
175	xmlschemas.lo xmlschemastypes.lo xmlunicode.lo \
176	$(am__objects_2) xmlreader.lo relaxng.lo dict.lo SAX2.lo \
177	xmlwriter.lo legacy.lo chvalid.lo pattern.lo xmlsave.lo \
178	xmlmodule.lo schematron.lo xzlib.lo
179libxml2_la_OBJECTS = $(am_libxml2_la_OBJECTS)
180AM_V_lt = $(am__v_lt_@AM_V@)
181am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
182am__v_lt_0 = --silent
183am__v_lt_1 =
184libxml2_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
185	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
186	$(libxml2_la_LDFLAGS) $(LDFLAGS) -o $@
187testdso_la_LIBADD =
188am_testdso_la_OBJECTS = testdso.lo
189testdso_la_OBJECTS = $(am_testdso_la_OBJECTS)
190testdso_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
191	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
192	$(testdso_la_LDFLAGS) $(LDFLAGS) -o $@
193am_runsuite_OBJECTS = runsuite.$(OBJEXT)
194runsuite_OBJECTS = $(am_runsuite_OBJECTS)
195am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) $(top_builddir)/libxml2.la \
196	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
197	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \
198	$(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1)
199runsuite_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
200	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
201	$(runsuite_LDFLAGS) $(LDFLAGS) -o $@
202am_runtest_OBJECTS = runtest.$(OBJEXT)
203runtest_OBJECTS = $(am_runtest_OBJECTS)
204runtest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
205	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
206	$(runtest_LDFLAGS) $(LDFLAGS) -o $@
207am_runxmlconf_OBJECTS = runxmlconf.$(OBJEXT)
208runxmlconf_OBJECTS = $(am_runxmlconf_OBJECTS)
209runxmlconf_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
210	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
211	$(runxmlconf_LDFLAGS) $(LDFLAGS) -o $@
212am_testAutomata_OBJECTS = testAutomata.$(OBJEXT)
213testAutomata_OBJECTS = $(am_testAutomata_OBJECTS)
214testAutomata_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
215	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
216	$(testAutomata_LDFLAGS) $(LDFLAGS) -o $@
217am_testC14N_OBJECTS = testC14N.$(OBJEXT)
218testC14N_OBJECTS = $(am_testC14N_OBJECTS)
219testC14N_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
220	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
221	$(testC14N_LDFLAGS) $(LDFLAGS) -o $@
222am_testHTML_OBJECTS = testHTML.$(OBJEXT)
223testHTML_OBJECTS = $(am_testHTML_OBJECTS)
224testHTML_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
225	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
226	$(testHTML_LDFLAGS) $(LDFLAGS) -o $@
227am_testModule_OBJECTS = testModule.$(OBJEXT)
228testModule_OBJECTS = $(am_testModule_OBJECTS)
229testModule_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
230	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
231	$(testModule_LDFLAGS) $(LDFLAGS) -o $@
232am_testReader_OBJECTS = testReader.$(OBJEXT)
233testReader_OBJECTS = $(am_testReader_OBJECTS)
234testReader_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
235	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
236	$(testReader_LDFLAGS) $(LDFLAGS) -o $@
237am_testRegexp_OBJECTS = testRegexp.$(OBJEXT)
238testRegexp_OBJECTS = $(am_testRegexp_OBJECTS)
239testRegexp_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
240	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
241	$(testRegexp_LDFLAGS) $(LDFLAGS) -o $@
242am_testRelax_OBJECTS = testRelax.$(OBJEXT)
243testRelax_OBJECTS = $(am_testRelax_OBJECTS)
244testRelax_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
245	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
246	$(testRelax_LDFLAGS) $(LDFLAGS) -o $@
247am_testSAX_OBJECTS = testSAX.$(OBJEXT)
248testSAX_OBJECTS = $(am_testSAX_OBJECTS)
249testSAX_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
250	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
251	$(testSAX_LDFLAGS) $(LDFLAGS) -o $@
252am_testSchemas_OBJECTS = testSchemas.$(OBJEXT)
253testSchemas_OBJECTS = $(am_testSchemas_OBJECTS)
254testSchemas_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
255	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
256	$(testSchemas_LDFLAGS) $(LDFLAGS) -o $@
257am_testThreads_OBJECTS = testThreads.$(OBJEXT)
258testThreads_OBJECTS = $(am_testThreads_OBJECTS)
259testThreads_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
260	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
261	$(testThreads_LDFLAGS) $(LDFLAGS) -o $@
262am_testURI_OBJECTS = testURI.$(OBJEXT)
263testURI_OBJECTS = $(am_testURI_OBJECTS)
264testURI_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
265	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
266	$(testURI_LDFLAGS) $(LDFLAGS) -o $@
267am_testXPath_OBJECTS = testXPath.$(OBJEXT)
268testXPath_OBJECTS = $(am_testXPath_OBJECTS)
269testXPath_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
270	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
271	$(testXPath_LDFLAGS) $(LDFLAGS) -o $@
272am_testapi_OBJECTS = testapi.$(OBJEXT)
273testapi_OBJECTS = $(am_testapi_OBJECTS)
274testapi_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
275	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
276	$(testapi_LDFLAGS) $(LDFLAGS) -o $@
277am_testchar_OBJECTS = testchar.$(OBJEXT)
278testchar_OBJECTS = $(am_testchar_OBJECTS)
279testchar_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
280	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
281	$(testchar_LDFLAGS) $(LDFLAGS) -o $@
282am_testdict_OBJECTS = testdict.$(OBJEXT)
283testdict_OBJECTS = $(am_testdict_OBJECTS)
284testdict_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
285	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
286	$(testdict_LDFLAGS) $(LDFLAGS) -o $@
287am_testlimits_OBJECTS = testlimits.$(OBJEXT)
288testlimits_OBJECTS = $(am_testlimits_OBJECTS)
289testlimits_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
290	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
291	$(testlimits_LDFLAGS) $(LDFLAGS) -o $@
292am_testrecurse_OBJECTS = testrecurse.$(OBJEXT)
293testrecurse_OBJECTS = $(am_testrecurse_OBJECTS)
294testrecurse_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
295	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
296	$(testrecurse_LDFLAGS) $(LDFLAGS) -o $@
297am_xmlcatalog_OBJECTS = xmlcatalog.$(OBJEXT)
298xmlcatalog_OBJECTS = $(am_xmlcatalog_OBJECTS)
299xmlcatalog_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
300	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
301	$(xmlcatalog_LDFLAGS) $(LDFLAGS) -o $@
302am_xmllint_OBJECTS = xmllint.$(OBJEXT)
303xmllint_OBJECTS = $(am_xmllint_OBJECTS)
304xmllint_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
305	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
306	$(xmllint_LDFLAGS) $(LDFLAGS) -o $@
307SCRIPTS = $(bin_SCRIPTS)
308AM_V_P = $(am__v_P_@AM_V@)
309am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
310am__v_P_0 = false
311am__v_P_1 = :
312AM_V_GEN = $(am__v_GEN_@AM_V@)
313am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
314am__v_GEN_0 = @echo "  GEN     " $@;
315am__v_GEN_1 =
316AM_V_at = $(am__v_at_@AM_V@)
317am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
318am__v_at_0 = @
319am__v_at_1 =
320DEFAULT_INCLUDES = -I.@am__isrc@
321depcomp = $(SHELL) $(top_srcdir)/depcomp
322am__maybe_remake_depfiles = depfiles
323am__depfiles_remade = ./$(DEPDIR)/DOCBparser.Plo \
324	./$(DEPDIR)/HTMLparser.Plo ./$(DEPDIR)/HTMLtree.Plo \
325	./$(DEPDIR)/SAX.Plo ./$(DEPDIR)/SAX2.Plo ./$(DEPDIR)/buf.Plo \
326	./$(DEPDIR)/c14n.Plo ./$(DEPDIR)/catalog.Plo \
327	./$(DEPDIR)/chvalid.Plo ./$(DEPDIR)/debugXML.Plo \
328	./$(DEPDIR)/dict.Plo ./$(DEPDIR)/encoding.Plo \
329	./$(DEPDIR)/entities.Plo ./$(DEPDIR)/error.Plo \
330	./$(DEPDIR)/globals.Plo ./$(DEPDIR)/hash.Plo \
331	./$(DEPDIR)/legacy.Plo ./$(DEPDIR)/list.Plo \
332	./$(DEPDIR)/nanoftp.Plo ./$(DEPDIR)/nanohttp.Plo \
333	./$(DEPDIR)/parser.Plo ./$(DEPDIR)/parserInternals.Plo \
334	./$(DEPDIR)/pattern.Plo ./$(DEPDIR)/relaxng.Plo \
335	./$(DEPDIR)/runsuite.Po ./$(DEPDIR)/runtest.Po \
336	./$(DEPDIR)/runxmlconf.Po ./$(DEPDIR)/schematron.Plo \
337	./$(DEPDIR)/testAutomata.Po ./$(DEPDIR)/testC14N.Po \
338	./$(DEPDIR)/testHTML.Po ./$(DEPDIR)/testModule.Po \
339	./$(DEPDIR)/testReader.Po ./$(DEPDIR)/testRegexp.Po \
340	./$(DEPDIR)/testRelax.Po ./$(DEPDIR)/testSAX.Po \
341	./$(DEPDIR)/testSchemas.Po ./$(DEPDIR)/testThreads.Po \
342	./$(DEPDIR)/testURI.Po ./$(DEPDIR)/testXPath.Po \
343	./$(DEPDIR)/testapi.Po ./$(DEPDIR)/testchar.Po \
344	./$(DEPDIR)/testdict.Po ./$(DEPDIR)/testdso.Plo \
345	./$(DEPDIR)/testlimits.Po ./$(DEPDIR)/testrecurse.Po \
346	./$(DEPDIR)/threads.Plo ./$(DEPDIR)/tree.Plo \
347	./$(DEPDIR)/trio.Plo ./$(DEPDIR)/triostr.Plo \
348	./$(DEPDIR)/uri.Plo ./$(DEPDIR)/valid.Plo \
349	./$(DEPDIR)/xinclude.Plo ./$(DEPDIR)/xlink.Plo \
350	./$(DEPDIR)/xmlIO.Plo ./$(DEPDIR)/xmlcatalog.Po \
351	./$(DEPDIR)/xmllint.Po ./$(DEPDIR)/xmlmemory.Plo \
352	./$(DEPDIR)/xmlmodule.Plo ./$(DEPDIR)/xmlreader.Plo \
353	./$(DEPDIR)/xmlregexp.Plo ./$(DEPDIR)/xmlsave.Plo \
354	./$(DEPDIR)/xmlschemas.Plo ./$(DEPDIR)/xmlschemastypes.Plo \
355	./$(DEPDIR)/xmlstring.Plo ./$(DEPDIR)/xmlunicode.Plo \
356	./$(DEPDIR)/xmlwriter.Plo ./$(DEPDIR)/xpath.Plo \
357	./$(DEPDIR)/xpointer.Plo ./$(DEPDIR)/xzlib.Plo
358am__mv = mv -f
359COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
360	$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
361LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
362	$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
363	$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
364	$(AM_CFLAGS) $(CFLAGS)
365AM_V_CC = $(am__v_CC_@AM_V@)
366am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
367am__v_CC_0 = @echo "  CC      " $@;
368am__v_CC_1 =
369CCLD = $(CC)
370LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
371	$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
372	$(AM_LDFLAGS) $(LDFLAGS) -o $@
373AM_V_CCLD = $(am__v_CCLD_@AM_V@)
374am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
375am__v_CCLD_0 = @echo "  CCLD    " $@;
376am__v_CCLD_1 =
377SOURCES = $(libxml2_la_SOURCES) $(testdso_la_SOURCES) \
378	$(runsuite_SOURCES) $(runtest_SOURCES) $(runxmlconf_SOURCES) \
379	$(testAutomata_SOURCES) $(testC14N_SOURCES) \
380	$(testHTML_SOURCES) $(testModule_SOURCES) \
381	$(testReader_SOURCES) $(testRegexp_SOURCES) \
382	$(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \
383	$(testThreads_SOURCES) $(testURI_SOURCES) $(testXPath_SOURCES) \
384	$(testapi_SOURCES) $(testchar_SOURCES) $(testdict_SOURCES) \
385	$(testlimits_SOURCES) $(testrecurse_SOURCES) \
386	$(xmlcatalog_SOURCES) $(xmllint_SOURCES)
387DIST_SOURCES = $(am__libxml2_la_SOURCES_DIST) $(testdso_la_SOURCES) \
388	$(runsuite_SOURCES) $(runtest_SOURCES) $(runxmlconf_SOURCES) \
389	$(testAutomata_SOURCES) $(testC14N_SOURCES) \
390	$(testHTML_SOURCES) $(testModule_SOURCES) \
391	$(testReader_SOURCES) $(testRegexp_SOURCES) \
392	$(testRelax_SOURCES) $(testSAX_SOURCES) $(testSchemas_SOURCES) \
393	$(testThreads_SOURCES) $(testURI_SOURCES) $(testXPath_SOURCES) \
394	$(testapi_SOURCES) $(testchar_SOURCES) $(testdict_SOURCES) \
395	$(testlimits_SOURCES) $(testrecurse_SOURCES) \
396	$(xmlcatalog_SOURCES) $(xmllint_SOURCES)
397RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
398	ctags-recursive dvi-recursive html-recursive info-recursive \
399	install-data-recursive install-dvi-recursive \
400	install-exec-recursive install-html-recursive \
401	install-info-recursive install-pdf-recursive \
402	install-ps-recursive install-recursive installcheck-recursive \
403	installdirs-recursive pdf-recursive ps-recursive \
404	tags-recursive uninstall-recursive
405am__can_run_installinfo = \
406  case $$AM_UPDATE_INFO_DIR in \
407    n|no|NO) false;; \
408    *) (install-info --version) >/dev/null 2>&1;; \
409  esac
410man1dir = $(mandir)/man1
411man3dir = $(mandir)/man3
412NROFF = nroff
413MANS = $(man_MANS)
414DATA = $(cmake_DATA) $(confexec_DATA) $(m4data_DATA) $(pkgconfig_DATA)
415RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive	\
416  distclean-recursive maintainer-clean-recursive
417am__recursive_targets = \
418  $(RECURSIVE_TARGETS) \
419  $(RECURSIVE_CLEAN_TARGETS) \
420  $(am__extra_recursive_targets)
421AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
422	cscope distdir distdir-am dist dist-all distcheck
423am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
424	$(LISP)config.h.in
425# Read a list of newline-separated strings from the standard input,
426# and print each of them once, without duplicates.  Input order is
427# *not* preserved.
428am__uniquify_input = $(AWK) '\
429  BEGIN { nonempty = 0; } \
430  { items[$$0] = 1; nonempty = 1; } \
431  END { if (nonempty) { for (i in items) print i; }; } \
432'
433# Make sure the list of sources is unique.  This is necessary because,
434# e.g., the same source file might be shared among _SOURCES variables
435# for different programs/libraries.
436am__define_uniq_tagged_files = \
437  list='$(am__tagged_files)'; \
438  unique=`for i in $$list; do \
439    if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
440  done | $(am__uniquify_input)`
441ETAGS = etags
442CTAGS = ctags
443CSCOPE = cscope
444am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
445	$(srcdir)/libxml-2.0-uninstalled.pc.in \
446	$(srcdir)/libxml-2.0.pc.in $(srcdir)/libxml.spec.in \
447	$(srcdir)/libxml2-config.cmake.in $(srcdir)/xml2-config.in \
448	AUTHORS COPYING ChangeLog INSTALL NEWS README TODO compile \
449	config.guess config.sub depcomp install-sh ltmain.sh missing
450DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
451distdir = $(PACKAGE)-$(VERSION)
452top_distdir = $(distdir)
453am__remove_distdir = \
454  if test -d "$(distdir)"; then \
455    find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
456      && rm -rf "$(distdir)" \
457      || { sleep 5 && rm -rf "$(distdir)"; }; \
458  else :; fi
459am__post_remove_distdir = $(am__remove_distdir)
460am__relativize = \
461  dir0=`pwd`; \
462  sed_first='s,^\([^/]*\)/.*$$,\1,'; \
463  sed_rest='s,^[^/]*/*,,'; \
464  sed_last='s,^.*/\([^/]*\)$$,\1,'; \
465  sed_butlast='s,/*[^/]*$$,,'; \
466  while test -n "$$dir1"; do \
467    first=`echo "$$dir1" | sed -e "$$sed_first"`; \
468    if test "$$first" != "."; then \
469      if test "$$first" = ".."; then \
470        dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
471        dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
472      else \
473        first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
474        if test "$$first2" = "$$first"; then \
475          dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
476        else \
477          dir2="../$$dir2"; \
478        fi; \
479        dir0="$$dir0"/"$$first"; \
480      fi; \
481    fi; \
482    dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
483  done; \
484  reldir="$$dir2"
485DIST_ARCHIVES = $(distdir).tar.gz
486GZIP_ENV = --best
487DIST_TARGETS = dist-gzip
488distuninstallcheck_listfiles = find . -type f -print
489am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
490  | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
491distcleancheck_listfiles = find . -type f -print
492ACLOCAL = @ACLOCAL@
493AMTAR = @AMTAR@
494AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
495AR = @AR@
496AUTOCONF = @AUTOCONF@
497AUTOHEADER = @AUTOHEADER@
498AUTOMAKE = @AUTOMAKE@
499AWK = @AWK@
500BASE_THREAD_LIBS = @BASE_THREAD_LIBS@
501C14N_OBJ = @C14N_OBJ@
502CATALOG_OBJ = @CATALOG_OBJ@
503CC = @CC@
504CCDEPMODE = @CCDEPMODE@
505CFLAGS = @CFLAGS@
506CPP = @CPP@
507CPPFLAGS = @CPPFLAGS@
508CYGPATH_W = @CYGPATH_W@
509CYGWIN_EXTRA_LDFLAGS = @CYGWIN_EXTRA_LDFLAGS@
510CYGWIN_EXTRA_PYTHON_LIBADD = @CYGWIN_EXTRA_PYTHON_LIBADD@
511DEBUG_OBJ = @DEBUG_OBJ@
512DEFS = @DEFS@
513DEPDIR = @DEPDIR@
514DLLTOOL = @DLLTOOL@
515DOCB_OBJ = @DOCB_OBJ@
516DSYMUTIL = @DSYMUTIL@
517DUMPBIN = @DUMPBIN@
518ECHO_C = @ECHO_C@
519ECHO_N = @ECHO_N@
520ECHO_T = @ECHO_T@
521EGREP = @EGREP@
522EXEEXT = @EXEEXT@
523EXTRA_CFLAGS = @EXTRA_CFLAGS@
524FGREP = @FGREP@
525FTP_OBJ = @FTP_OBJ@
526GREP = @GREP@
527HAVE_ISINF = @HAVE_ISINF@
528HAVE_ISNAN = @HAVE_ISNAN@
529HTML_DIR = @HTML_DIR@
530HTML_OBJ = @HTML_OBJ@
531HTTP_OBJ = @HTTP_OBJ@
532ICONV_LIBS = @ICONV_LIBS@
533ICU_CFLAGS = @ICU_CFLAGS@
534ICU_LIBS = @ICU_LIBS@
535INSTALL = @INSTALL@
536INSTALL_DATA = @INSTALL_DATA@
537INSTALL_PROGRAM = @INSTALL_PROGRAM@
538INSTALL_SCRIPT = @INSTALL_SCRIPT@
539INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
540LD = @LD@
541LDFLAGS = @LDFLAGS@
542LIBOBJS = @LIBOBJS@
543LIBS = @LIBS@
544LIBTOOL = @LIBTOOL@
545LIBXML_MAJOR_VERSION = @LIBXML_MAJOR_VERSION@
546LIBXML_MICRO_VERSION = @LIBXML_MICRO_VERSION@
547LIBXML_MINOR_VERSION = @LIBXML_MINOR_VERSION@
548LIBXML_VERSION = @LIBXML_VERSION@
549LIBXML_VERSION_EXTRA = @LIBXML_VERSION_EXTRA@
550LIBXML_VERSION_INFO = @LIBXML_VERSION_INFO@
551LIBXML_VERSION_NUMBER = @LIBXML_VERSION_NUMBER@
552LIPO = @LIPO@
553LN_S = @LN_S@
554LTLIBOBJS = @LTLIBOBJS@
555LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
556LZMA_CFLAGS = @LZMA_CFLAGS@
557LZMA_LIBS = @LZMA_LIBS@
558MAINT = @MAINT@
559MAKEINFO = @MAKEINFO@
560MANIFEST_TOOL = @MANIFEST_TOOL@
561MKDIR_P = @MKDIR_P@
562MODULE_EXTENSION = @MODULE_EXTENSION@
563MODULE_PLATFORM_LIBS = @MODULE_PLATFORM_LIBS@
564MV = @MV@
565M_LIBS = @M_LIBS@
566NM = @NM@
567NMEDIT = @NMEDIT@
568OBJDUMP = @OBJDUMP@
569OBJEXT = @OBJEXT@
570OTOOL = @OTOOL@
571OTOOL64 = @OTOOL64@
572PACKAGE = @PACKAGE@
573PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
574PACKAGE_NAME = @PACKAGE_NAME@
575PACKAGE_STRING = @PACKAGE_STRING@
576PACKAGE_TARNAME = @PACKAGE_TARNAME@
577PACKAGE_URL = @PACKAGE_URL@
578PACKAGE_VERSION = @PACKAGE_VERSION@
579PATH_SEPARATOR = @PATH_SEPARATOR@
580PERL = @PERL@
581PKG_CONFIG = @PKG_CONFIG@
582PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
583PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
584PYTHON = @PYTHON@
585PYTHON_INCLUDES = @PYTHON_INCLUDES@
586PYTHON_LIBS = @PYTHON_LIBS@
587PYTHON_SITE_PACKAGES = @PYTHON_SITE_PACKAGES@
588PYTHON_SUBDIR = @PYTHON_SUBDIR@
589PYTHON_TESTS = @PYTHON_TESTS@
590PYTHON_VERSION = @PYTHON_VERSION@
591RANLIB = @RANLIB@
592RDL_LIBS = @RDL_LIBS@
593READER_TEST = @READER_TEST@
594RELDATE = @RELDATE@
595SED = @SED@
596SET_MAKE = @SET_MAKE@
597SHELL = @SHELL@
598STATIC_BINARIES = @STATIC_BINARIES@
599STRIP = @STRIP@
600TAR = @TAR@
601TEST_C14N = @TEST_C14N@
602TEST_CATALOG = @TEST_CATALOG@
603TEST_DEBUG = @TEST_DEBUG@
604TEST_HTML = @TEST_HTML@
605TEST_MODULES = @TEST_MODULES@
606TEST_PATTERN = @TEST_PATTERN@
607TEST_PHTML = @TEST_PHTML@
608TEST_PUSH = @TEST_PUSH@
609TEST_REGEXPS = @TEST_REGEXPS@
610TEST_SAX = @TEST_SAX@
611TEST_SCHEMAS = @TEST_SCHEMAS@
612TEST_SCHEMATRON = @TEST_SCHEMATRON@
613TEST_THREADS = @TEST_THREADS@
614TEST_VALID = @TEST_VALID@
615TEST_VTIME = @TEST_VTIME@
616TEST_XINCLUDE = @TEST_XINCLUDE@
617TEST_XPATH = @TEST_XPATH@
618TEST_XPTR = @TEST_XPTR@
619THREAD_CFLAGS = @THREAD_CFLAGS@
620THREAD_LIBS = @THREAD_LIBS@
621VERSION = @VERSION@
622VERSION_SCRIPT_FLAGS = @VERSION_SCRIPT_FLAGS@
623WGET = @WGET@
624WIN32_EXTRA_LDFLAGS = @WIN32_EXTRA_LDFLAGS@
625WIN32_EXTRA_LIBADD = @WIN32_EXTRA_LIBADD@
626WIN32_EXTRA_PYTHON_LIBADD = @WIN32_EXTRA_PYTHON_LIBADD@
627WITH_C14N = @WITH_C14N@
628WITH_CATALOG = @WITH_CATALOG@
629WITH_DEBUG = @WITH_DEBUG@
630WITH_DOCB = @WITH_DOCB@
631WITH_FTP = @WITH_FTP@
632WITH_HTML = @WITH_HTML@
633WITH_HTTP = @WITH_HTTP@
634WITH_ICONV = @WITH_ICONV@
635WITH_ICU = @WITH_ICU@
636WITH_ISO8859X = @WITH_ISO8859X@
637WITH_LEGACY = @WITH_LEGACY@
638WITH_LZMA = @WITH_LZMA@
639WITH_MEM_DEBUG = @WITH_MEM_DEBUG@
640WITH_MODULES = @WITH_MODULES@
641WITH_OUTPUT = @WITH_OUTPUT@
642WITH_PATTERN = @WITH_PATTERN@
643WITH_PUSH = @WITH_PUSH@
644WITH_READER = @WITH_READER@
645WITH_REGEXPS = @WITH_REGEXPS@
646WITH_RUN_DEBUG = @WITH_RUN_DEBUG@
647WITH_SAX1 = @WITH_SAX1@
648WITH_SCHEMAS = @WITH_SCHEMAS@
649WITH_SCHEMATRON = @WITH_SCHEMATRON@
650WITH_THREADS = @WITH_THREADS@
651WITH_THREAD_ALLOC = @WITH_THREAD_ALLOC@
652WITH_TREE = @WITH_TREE@
653WITH_TRIO = @WITH_TRIO@
654WITH_VALID = @WITH_VALID@
655WITH_WRITER = @WITH_WRITER@
656WITH_XINCLUDE = @WITH_XINCLUDE@
657WITH_XPATH = @WITH_XPATH@
658WITH_XPTR = @WITH_XPTR@
659WITH_ZLIB = @WITH_ZLIB@
660XINCLUDE_OBJ = @XINCLUDE_OBJ@
661XMLLINT = @XMLLINT@
662XML_CFLAGS = @XML_CFLAGS@
663XML_INCLUDEDIR = @XML_INCLUDEDIR@
664XML_LIBDIR = @XML_LIBDIR@
665XML_LIBS = @XML_LIBS@
666XML_LIBTOOLLIBS = @XML_LIBTOOLLIBS@
667XML_PRIVATE_LIBS = @XML_PRIVATE_LIBS@
668XPATH_OBJ = @XPATH_OBJ@
669XPTR_OBJ = @XPTR_OBJ@
670XSLTPROC = @XSLTPROC@
671Z_CFLAGS = @Z_CFLAGS@
672Z_LIBS = @Z_LIBS@
673abs_builddir = @abs_builddir@
674abs_srcdir = @abs_srcdir@
675abs_top_builddir = @abs_top_builddir@
676abs_top_srcdir = @abs_top_srcdir@
677ac_ct_AR = @ac_ct_AR@
678ac_ct_CC = @ac_ct_CC@
679ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
680am__include = @am__include@
681am__leading_dot = @am__leading_dot@
682am__quote = @am__quote@
683am__tar = @am__tar@
684am__untar = @am__untar@
685bindir = @bindir@
686build = @build@
687build_alias = @build_alias@
688build_cpu = @build_cpu@
689build_os = @build_os@
690build_vendor = @build_vendor@
691builddir = @builddir@
692datadir = @datadir@
693datarootdir = @datarootdir@
694docdir = @docdir@
695dvidir = @dvidir@
696exec_prefix = @exec_prefix@
697host = @host@
698host_alias = @host_alias@
699host_cpu = @host_cpu@
700host_os = @host_os@
701host_vendor = @host_vendor@
702htmldir = @htmldir@
703includedir = @includedir@
704infodir = @infodir@
705install_sh = @install_sh@
706libdir = @libdir@
707libexecdir = @libexecdir@
708localedir = @localedir@
709localstatedir = @localstatedir@
710mandir = @mandir@
711mkdir_p = @mkdir_p@
712oldincludedir = @oldincludedir@
713pdfdir = @pdfdir@
714prefix = @prefix@
715program_transform_name = @program_transform_name@
716psdir = @psdir@
717pythondir = @pythondir@
718sbindir = @sbindir@
719sharedstatedir = @sharedstatedir@
720srcdir = @srcdir@
721sysconfdir = @sysconfdir@
722target_alias = @target_alias@
723top_build_prefix = @top_build_prefix@
724top_builddir = @top_builddir@
725top_srcdir = @top_srcdir@
726ACLOCAL_AMFLAGS = -I m4
727SUBDIRS = include . doc example fuzz xstc $(PYTHON_SUBDIR)
728DIST_SUBDIRS = include . doc example fuzz python xstc
729AM_CPPFLAGS = -I$(top_builddir)/include -I$(srcdir)/include
730AM_CFLAGS = $(EXTRA_CFLAGS) $(THREAD_CFLAGS) $(Z_CFLAGS) $(LZMA_CFLAGS)
731bin_SCRIPTS = xml2-config
732lib_LTLIBRARIES = libxml2.la
733libxml2_la_LIBADD = $(ICU_LIBS) $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(M_LIBS) $(WIN32_EXTRA_LIBADD)
734@USE_VERSION_SCRIPT_FALSE@LIBXML2_VERSION_SCRIPT =
735@USE_VERSION_SCRIPT_TRUE@LIBXML2_VERSION_SCRIPT = $(VERSION_SCRIPT_FLAGS)$(srcdir)/libxml2.syms
736libxml2_la_LDFLAGS = $(CYGWIN_EXTRA_LDFLAGS) $(WIN32_EXTRA_LDFLAGS) \
737		     $(LIBXML2_VERSION_SCRIPT) \
738		     -version-info $(LIBXML_VERSION_INFO) \
739		     $(MODULE_PLATFORM_LIBS)
740
741@WITH_SAX1_SOURCES_FALSE@docb_sources =
742@WITH_SAX1_SOURCES_TRUE@docb_sources = DOCBparser.c
743@WITH_TRIO_SOURCES_FALSE@trio_sources =
744@WITH_TRIO_SOURCES_TRUE@trio_sources = triostr.c trio.c
745libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c  \
746		parser.c tree.c hash.c list.c xmlIO.c xmlmemory.c uri.c  \
747		valid.c xlink.c HTMLparser.c HTMLtree.c debugXML.c xpath.c  \
748		xpointer.c xinclude.c nanohttp.c nanoftp.c \
749		$(docb_sources) \
750		catalog.c globals.c threads.c c14n.c xmlstring.c buf.c \
751		xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c \
752		$(trio_sources) \
753		xmlreader.c relaxng.c dict.c SAX2.c \
754		xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c \
755		xmlmodule.c schematron.c xzlib.c
756
757DEPS = $(top_builddir)/libxml2.la
758LDADDS = $(STATIC_BINARIES) $(top_builddir)/libxml2.la $(THREAD_LIBS) $(Z_LIBS) $(LZMA_LIBS) $(ICONV_LIBS) $(M_LIBS) $(WIN32_EXTRA_LIBADD)
759man_MANS = xml2-config.1 libxml.3
760m4datadir = $(datadir)/aclocal
761m4data_DATA = libxml.m4
762runtest_SOURCES = runtest.c
763runtest_LDFLAGS = -pthread
764runtest_DEPENDENCIES = $(DEPS)
765runtest_LDADD = $(BASE_THREAD_LIBS) $(RDL_LIBS) $(LDADDS)
766testrecurse_SOURCES = testrecurse.c
767testrecurse_LDFLAGS =
768testrecurse_DEPENDENCIES = $(DEPS)
769testrecurse_LDADD = $(BASE_THREAD_LIBS) $(RDL_LIBS) $(LDADDS)
770testlimits_SOURCES = testlimits.c
771testlimits_LDFLAGS =
772testlimits_DEPENDENCIES = $(DEPS)
773testlimits_LDADD = $(BASE_THREAD_LIBS) $(RDL_LIBS) $(LDADDS)
774testchar_SOURCES = testchar.c
775testchar_LDFLAGS =
776testchar_DEPENDENCIES = $(DEPS)
777testchar_LDADD = $(RDL_LIBS) $(LDADDS)
778testdict_SOURCES = testdict.c
779testdict_LDFLAGS =
780testdict_DEPENDENCIES = $(DEPS)
781testdict_LDADD = $(RDL_LIBS) $(LDADDS)
782runsuite_SOURCES = runsuite.c
783runsuite_LDFLAGS =
784runsuite_DEPENDENCIES = $(DEPS)
785runsuite_LDADD = $(RDL_LIBS) $(LDADDS)
786xmllint_SOURCES = xmllint.c
787xmllint_LDFLAGS =
788xmllint_DEPENDENCIES = $(DEPS)
789xmllint_LDADD = $(RDL_LIBS) $(LDADDS)
790testSAX_SOURCES = testSAX.c
791testSAX_LDFLAGS =
792testSAX_DEPENDENCIES = $(DEPS)
793testSAX_LDADD = $(LDADDS)
794testHTML_SOURCES = testHTML.c
795testHTML_LDFLAGS =
796testHTML_DEPENDENCIES = $(DEPS)
797testHTML_LDADD = $(LDADDS)
798xmlcatalog_SOURCES = xmlcatalog.c
799xmlcatalog_LDFLAGS =
800xmlcatalog_DEPENDENCIES = $(DEPS)
801xmlcatalog_LDADD = $(RDL_LIBS) $(LDADDS)
802testXPath_SOURCES = testXPath.c
803testXPath_LDFLAGS =
804testXPath_DEPENDENCIES = $(DEPS)
805testXPath_LDADD = $(LDADDS)
806testC14N_SOURCES = testC14N.c
807testC14N_LDFLAGS =
808testC14N_DEPENDENCIES = $(DEPS)
809testC14N_LDADD = $(LDADDS)
810testThreads_SOURCES = testThreads.c
811testThreads_LDFLAGS = -pthread
812testThreads_DEPENDENCIES = $(DEPS)
813testThreads_LDADD = $(BASE_THREAD_LIBS) $(LDADDS)
814testURI_SOURCES = testURI.c
815testURI_LDFLAGS =
816testURI_DEPENDENCIES = $(DEPS)
817testURI_LDADD = $(LDADDS)
818testRegexp_SOURCES = testRegexp.c
819testRegexp_LDFLAGS =
820testRegexp_DEPENDENCIES = $(DEPS)
821testRegexp_LDADD = $(LDADDS)
822testAutomata_SOURCES = testAutomata.c
823testAutomata_LDFLAGS =
824testAutomata_DEPENDENCIES = $(DEPS)
825testAutomata_LDADD = $(LDADDS)
826testSchemas_SOURCES = testSchemas.c
827testSchemas_LDFLAGS =
828testSchemas_DEPENDENCIES = $(DEPS)
829testSchemas_LDADD = $(LDADDS)
830testRelax_SOURCES = testRelax.c
831testRelax_LDFLAGS =
832testRelax_DEPENDENCIES = $(DEPS)
833testRelax_LDADD = $(LDADDS)
834testReader_SOURCES = testReader.c
835testReader_LDFLAGS =
836testReader_DEPENDENCIES = $(DEPS)
837testReader_LDADD = $(LDADDS)
838testModule_SOURCES = testModule.c
839testModule_LDFLAGS =
840testModule_DEPENDENCIES = $(DEPS)
841testModule_LDADD = $(LDADDS)
842noinst_LTLIBRARIES = testdso.la
843testdso_la_SOURCES = testdso.c
844testdso_la_LDFLAGS = -module -no-undefined -avoid-version -rpath $(libdir)
845BUILT_SOURCES = testapi.c
846testapi_SOURCES = testapi.c
847testapi_LDFLAGS =
848testapi_DEPENDENCIES = $(DEPS)
849testapi_LDADD = $(LDADDS)
850runxmlconf_SOURCES = runxmlconf.c
851runxmlconf_LDFLAGS =
852runxmlconf_DEPENDENCIES = $(DEPS)
853runxmlconf_LDADD = $(LDADDS)
854CLEANFILES = runxmlconf.log test.out xml2Conf.sh *.gcda *.gcno *.res
855DISTCLEANFILES = COPYING missing.lst
856confexecdir = $(libdir)
857confexec_DATA = xml2Conf.sh
858CVS_EXTRA_DIST =
859EXTRA_DIST = xml2-config.in xml2Conf.sh.in libxml.spec.in libxml2.spec \
860             libxml.m4 Copyright check-xml-test-suite.py gentest.py \
861	     check-relaxng-test-suite.py check-relaxng-test-suite2.py \
862	     check-xsddata-test-suite.py check-xinclude-test-suite.py \
863             example/Makefile.am example/gjobread.c example/gjobs.xml \
864	     $(man_MANS) libxml-2.0.pc.in libxml-2.0-uninstalled.pc.in \
865	     libxml2-config.cmake.in autogen.sh \
866	     trionan.c trionan.h triostr.c triostr.h trio.c trio.h \
867	     triop.h triodef.h libxml.h elfgcchack.h xzlib.h buf.h \
868	     enc.h save.h genUnicode.py TODO_SCHEMAS \
869	     dbgen.pl dbgenattr.pl regressions.py regressions.xml \
870	     README.tests Makefile.tests libxml2.syms timsort.h \
871	     README.zOS \
872	     CMakeLists.txt config.h.cmake.in libxml2-config.cmake.cmake.in \
873	     $(CVS_EXTRA_DIST)
874
875pkgconfigdir = $(prefix)/libdata/pkgconfig
876pkgconfig_DATA = libxml-2.0.pc
877cmakedir = $(libdir)/cmake/libxml2
878cmake_DATA = libxml2-config.cmake
879
880#
881# Install the tests program sources as examples
882#
883BASE_DIR = $(datadir)/doc
884DOC_MODULE = libxml2-$(VERSION)
885EXAMPLES_DIR = $(BASE_DIR)/$(DOC_MODULE)/examples
886
887#
888# Coverage support, largely borrowed from libvirt
889# Both binaries comes from the lcov package in Fedora
890#
891LCOV = /usr/bin/lcov
892GENHTML = /usr/bin/genhtml
893all: $(BUILT_SOURCES) config.h
894	$(MAKE) $(AM_MAKEFLAGS) all-recursive
895
896.SUFFIXES:
897.SUFFIXES: .c .lo .o .obj
898am--refresh: Makefile
899	@:
900$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
901	@for dep in $?; do \
902	  case '$(am__configure_deps)' in \
903	    *$$dep*) \
904	      echo ' cd $(srcdir) && $(AUTOMAKE) --foreign'; \
905	      $(am__cd) $(srcdir) && $(AUTOMAKE) --foreign \
906		&& exit 0; \
907	      exit 1;; \
908	  esac; \
909	done; \
910	echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \
911	$(am__cd) $(top_srcdir) && \
912	  $(AUTOMAKE) --foreign Makefile
913Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
914	@case '$?' in \
915	  *config.status*) \
916	    echo ' $(SHELL) ./config.status'; \
917	    $(SHELL) ./config.status;; \
918	  *) \
919	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles)'; \
920	    cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__maybe_remake_depfiles);; \
921	esac;
922
923$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
924	$(SHELL) ./config.status --recheck
925
926$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
927	$(am__cd) $(srcdir) && $(AUTOCONF)
928$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
929	$(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
930$(am__aclocal_m4_deps):
931
932config.h: stamp-h1
933	@test -f $@ || rm -f stamp-h1
934	@test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
935
936stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
937	@rm -f stamp-h1
938	cd $(top_builddir) && $(SHELL) ./config.status config.h
939$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
940	($(am__cd) $(top_srcdir) && $(AUTOHEADER))
941	rm -f stamp-h1
942	touch $@
943
944distclean-hdr:
945	-rm -f config.h stamp-h1
946libxml2.spec: $(top_builddir)/config.status $(srcdir)/libxml.spec.in
947	cd $(top_builddir) && $(SHELL) ./config.status $@
948libxml-2.0.pc: $(top_builddir)/config.status $(srcdir)/libxml-2.0.pc.in
949	cd $(top_builddir) && $(SHELL) ./config.status $@
950libxml-2.0-uninstalled.pc: $(top_builddir)/config.status $(srcdir)/libxml-2.0-uninstalled.pc.in
951	cd $(top_builddir) && $(SHELL) ./config.status $@
952libxml2-config.cmake: $(top_builddir)/config.status $(srcdir)/libxml2-config.cmake.in
953	cd $(top_builddir) && $(SHELL) ./config.status $@
954xml2-config: $(top_builddir)/config.status $(srcdir)/xml2-config.in
955	cd $(top_builddir) && $(SHELL) ./config.status $@
956install-binPROGRAMS: $(bin_PROGRAMS)
957	@$(NORMAL_INSTALL)
958	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
959	if test -n "$$list"; then \
960	  echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
961	  $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
962	fi; \
963	for p in $$list; do echo "$$p $$p"; done | \
964	sed 's/$(EXEEXT)$$//' | \
965	while read p p1; do if test -f $$p \
966	 || test -f $$p1 \
967	  ; then echo "$$p"; echo "$$p"; else :; fi; \
968	done | \
969	sed -e 'p;s,.*/,,;n;h' \
970	    -e 's|.*|.|' \
971	    -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
972	sed 'N;N;N;s,\n, ,g' | \
973	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
974	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
975	    if ($$2 == $$4) files[d] = files[d] " " $$1; \
976	    else { print "f", $$3 "/" $$4, $$1; } } \
977	  END { for (d in files) print "f", d, files[d] }' | \
978	while read type dir files; do \
979	    if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
980	    test -z "$$files" || { \
981	    echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
982	    $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
983	    } \
984	; done
985
986uninstall-binPROGRAMS:
987	@$(NORMAL_UNINSTALL)
988	@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
989	files=`for p in $$list; do echo "$$p"; done | \
990	  sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
991	      -e 's/$$/$(EXEEXT)/' \
992	`; \
993	test -n "$$list" || exit 0; \
994	echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
995	cd "$(DESTDIR)$(bindir)" && rm -f $$files
996
997clean-binPROGRAMS:
998	@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
999	echo " rm -f" $$list; \
1000	rm -f $$list || exit $$?; \
1001	test -n "$(EXEEXT)" || exit 0; \
1002	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
1003	echo " rm -f" $$list; \
1004	rm -f $$list
1005
1006clean-checkPROGRAMS:
1007	@list='$(check_PROGRAMS)'; test -n "$$list" || exit 0; \
1008	echo " rm -f" $$list; \
1009	rm -f $$list || exit $$?; \
1010	test -n "$(EXEEXT)" || exit 0; \
1011	list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
1012	echo " rm -f" $$list; \
1013	rm -f $$list
1014
1015install-libLTLIBRARIES: $(lib_LTLIBRARIES)
1016	@$(NORMAL_INSTALL)
1017	@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
1018	list2=; for p in $$list; do \
1019	  if test -f $$p; then \
1020	    list2="$$list2 $$p"; \
1021	  else :; fi; \
1022	done; \
1023	test -z "$$list2" || { \
1024	  echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
1025	  $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
1026	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
1027	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
1028	}
1029
1030uninstall-libLTLIBRARIES:
1031	@$(NORMAL_UNINSTALL)
1032	@list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
1033	for p in $$list; do \
1034	  $(am__strip_dir) \
1035	  echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
1036	  $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
1037	done
1038
1039clean-libLTLIBRARIES:
1040	-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
1041	@list='$(lib_LTLIBRARIES)'; \
1042	locs=`for p in $$list; do echo $$p; done | \
1043	      sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
1044	      sort -u`; \
1045	test -z "$$locs" || { \
1046	  echo rm -f $${locs}; \
1047	  rm -f $${locs}; \
1048	}
1049
1050clean-noinstLTLIBRARIES:
1051	-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
1052	@list='$(noinst_LTLIBRARIES)'; \
1053	locs=`for p in $$list; do echo $$p; done | \
1054	      sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
1055	      sort -u`; \
1056	test -z "$$locs" || { \
1057	  echo rm -f $${locs}; \
1058	  rm -f $${locs}; \
1059	}
1060
1061libxml2.la: $(libxml2_la_OBJECTS) $(libxml2_la_DEPENDENCIES) $(EXTRA_libxml2_la_DEPENDENCIES)
1062	$(AM_V_CCLD)$(libxml2_la_LINK) -rpath $(libdir) $(libxml2_la_OBJECTS) $(libxml2_la_LIBADD) $(LIBS)
1063
1064testdso.la: $(testdso_la_OBJECTS) $(testdso_la_DEPENDENCIES) $(EXTRA_testdso_la_DEPENDENCIES)
1065	$(AM_V_CCLD)$(testdso_la_LINK)  $(testdso_la_OBJECTS) $(testdso_la_LIBADD) $(LIBS)
1066
1067runsuite$(EXEEXT): $(runsuite_OBJECTS) $(runsuite_DEPENDENCIES) $(EXTRA_runsuite_DEPENDENCIES)
1068	@rm -f runsuite$(EXEEXT)
1069	$(AM_V_CCLD)$(runsuite_LINK) $(runsuite_OBJECTS) $(runsuite_LDADD) $(LIBS)
1070
1071runtest$(EXEEXT): $(runtest_OBJECTS) $(runtest_DEPENDENCIES) $(EXTRA_runtest_DEPENDENCIES)
1072	@rm -f runtest$(EXEEXT)
1073	$(AM_V_CCLD)$(runtest_LINK) $(runtest_OBJECTS) $(runtest_LDADD) $(LIBS)
1074
1075runxmlconf$(EXEEXT): $(runxmlconf_OBJECTS) $(runxmlconf_DEPENDENCIES) $(EXTRA_runxmlconf_DEPENDENCIES)
1076	@rm -f runxmlconf$(EXEEXT)
1077	$(AM_V_CCLD)$(runxmlconf_LINK) $(runxmlconf_OBJECTS) $(runxmlconf_LDADD) $(LIBS)
1078
1079testAutomata$(EXEEXT): $(testAutomata_OBJECTS) $(testAutomata_DEPENDENCIES) $(EXTRA_testAutomata_DEPENDENCIES)
1080	@rm -f testAutomata$(EXEEXT)
1081	$(AM_V_CCLD)$(testAutomata_LINK) $(testAutomata_OBJECTS) $(testAutomata_LDADD) $(LIBS)
1082
1083testC14N$(EXEEXT): $(testC14N_OBJECTS) $(testC14N_DEPENDENCIES) $(EXTRA_testC14N_DEPENDENCIES)
1084	@rm -f testC14N$(EXEEXT)
1085	$(AM_V_CCLD)$(testC14N_LINK) $(testC14N_OBJECTS) $(testC14N_LDADD) $(LIBS)
1086
1087testHTML$(EXEEXT): $(testHTML_OBJECTS) $(testHTML_DEPENDENCIES) $(EXTRA_testHTML_DEPENDENCIES)
1088	@rm -f testHTML$(EXEEXT)
1089	$(AM_V_CCLD)$(testHTML_LINK) $(testHTML_OBJECTS) $(testHTML_LDADD) $(LIBS)
1090
1091testModule$(EXEEXT): $(testModule_OBJECTS) $(testModule_DEPENDENCIES) $(EXTRA_testModule_DEPENDENCIES)
1092	@rm -f testModule$(EXEEXT)
1093	$(AM_V_CCLD)$(testModule_LINK) $(testModule_OBJECTS) $(testModule_LDADD) $(LIBS)
1094
1095testReader$(EXEEXT): $(testReader_OBJECTS) $(testReader_DEPENDENCIES) $(EXTRA_testReader_DEPENDENCIES)
1096	@rm -f testReader$(EXEEXT)
1097	$(AM_V_CCLD)$(testReader_LINK) $(testReader_OBJECTS) $(testReader_LDADD) $(LIBS)
1098
1099testRegexp$(EXEEXT): $(testRegexp_OBJECTS) $(testRegexp_DEPENDENCIES) $(EXTRA_testRegexp_DEPENDENCIES)
1100	@rm -f testRegexp$(EXEEXT)
1101	$(AM_V_CCLD)$(testRegexp_LINK) $(testRegexp_OBJECTS) $(testRegexp_LDADD) $(LIBS)
1102
1103testRelax$(EXEEXT): $(testRelax_OBJECTS) $(testRelax_DEPENDENCIES) $(EXTRA_testRelax_DEPENDENCIES)
1104	@rm -f testRelax$(EXEEXT)
1105	$(AM_V_CCLD)$(testRelax_LINK) $(testRelax_OBJECTS) $(testRelax_LDADD) $(LIBS)
1106
1107testSAX$(EXEEXT): $(testSAX_OBJECTS) $(testSAX_DEPENDENCIES) $(EXTRA_testSAX_DEPENDENCIES)
1108	@rm -f testSAX$(EXEEXT)
1109	$(AM_V_CCLD)$(testSAX_LINK) $(testSAX_OBJECTS) $(testSAX_LDADD) $(LIBS)
1110
1111testSchemas$(EXEEXT): $(testSchemas_OBJECTS) $(testSchemas_DEPENDENCIES) $(EXTRA_testSchemas_DEPENDENCIES)
1112	@rm -f testSchemas$(EXEEXT)
1113	$(AM_V_CCLD)$(testSchemas_LINK) $(testSchemas_OBJECTS) $(testSchemas_LDADD) $(LIBS)
1114
1115testThreads$(EXEEXT): $(testThreads_OBJECTS) $(testThreads_DEPENDENCIES) $(EXTRA_testThreads_DEPENDENCIES)
1116	@rm -f testThreads$(EXEEXT)
1117	$(AM_V_CCLD)$(testThreads_LINK) $(testThreads_OBJECTS) $(testThreads_LDADD) $(LIBS)
1118
1119testURI$(EXEEXT): $(testURI_OBJECTS) $(testURI_DEPENDENCIES) $(EXTRA_testURI_DEPENDENCIES)
1120	@rm -f testURI$(EXEEXT)
1121	$(AM_V_CCLD)$(testURI_LINK) $(testURI_OBJECTS) $(testURI_LDADD) $(LIBS)
1122
1123testXPath$(EXEEXT): $(testXPath_OBJECTS) $(testXPath_DEPENDENCIES) $(EXTRA_testXPath_DEPENDENCIES)
1124	@rm -f testXPath$(EXEEXT)
1125	$(AM_V_CCLD)$(testXPath_LINK) $(testXPath_OBJECTS) $(testXPath_LDADD) $(LIBS)
1126
1127testapi$(EXEEXT): $(testapi_OBJECTS) $(testapi_DEPENDENCIES) $(EXTRA_testapi_DEPENDENCIES)
1128	@rm -f testapi$(EXEEXT)
1129	$(AM_V_CCLD)$(testapi_LINK) $(testapi_OBJECTS) $(testapi_LDADD) $(LIBS)
1130
1131testchar$(EXEEXT): $(testchar_OBJECTS) $(testchar_DEPENDENCIES) $(EXTRA_testchar_DEPENDENCIES)
1132	@rm -f testchar$(EXEEXT)
1133	$(AM_V_CCLD)$(testchar_LINK) $(testchar_OBJECTS) $(testchar_LDADD) $(LIBS)
1134
1135testdict$(EXEEXT): $(testdict_OBJECTS) $(testdict_DEPENDENCIES) $(EXTRA_testdict_DEPENDENCIES)
1136	@rm -f testdict$(EXEEXT)
1137	$(AM_V_CCLD)$(testdict_LINK) $(testdict_OBJECTS) $(testdict_LDADD) $(LIBS)
1138
1139testlimits$(EXEEXT): $(testlimits_OBJECTS) $(testlimits_DEPENDENCIES) $(EXTRA_testlimits_DEPENDENCIES)
1140	@rm -f testlimits$(EXEEXT)
1141	$(AM_V_CCLD)$(testlimits_LINK) $(testlimits_OBJECTS) $(testlimits_LDADD) $(LIBS)
1142
1143testrecurse$(EXEEXT): $(testrecurse_OBJECTS) $(testrecurse_DEPENDENCIES) $(EXTRA_testrecurse_DEPENDENCIES)
1144	@rm -f testrecurse$(EXEEXT)
1145	$(AM_V_CCLD)$(testrecurse_LINK) $(testrecurse_OBJECTS) $(testrecurse_LDADD) $(LIBS)
1146
1147xmlcatalog$(EXEEXT): $(xmlcatalog_OBJECTS) $(xmlcatalog_DEPENDENCIES) $(EXTRA_xmlcatalog_DEPENDENCIES)
1148	@rm -f xmlcatalog$(EXEEXT)
1149	$(AM_V_CCLD)$(xmlcatalog_LINK) $(xmlcatalog_OBJECTS) $(xmlcatalog_LDADD) $(LIBS)
1150
1151xmllint$(EXEEXT): $(xmllint_OBJECTS) $(xmllint_DEPENDENCIES) $(EXTRA_xmllint_DEPENDENCIES)
1152	@rm -f xmllint$(EXEEXT)
1153	$(AM_V_CCLD)$(xmllint_LINK) $(xmllint_OBJECTS) $(xmllint_LDADD) $(LIBS)
1154install-binSCRIPTS: $(bin_SCRIPTS)
1155	@$(NORMAL_INSTALL)
1156	@list='$(bin_SCRIPTS)'; test -n "$(bindir)" || list=; \
1157	if test -n "$$list"; then \
1158	  echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
1159	  $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
1160	fi; \
1161	for p in $$list; do \
1162	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1163	  if test -f "$$d$$p"; then echo "$$d$$p"; echo "$$p"; else :; fi; \
1164	done | \
1165	sed -e 'p;s,.*/,,;n' \
1166	    -e 'h;s|.*|.|' \
1167	    -e 'p;x;s,.*/,,;$(transform)' | sed 'N;N;N;s,\n, ,g' | \
1168	$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1; } \
1169	  { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
1170	    if ($$2 == $$4) { files[d] = files[d] " " $$1; \
1171	      if (++n[d] == $(am__install_max)) { \
1172		print "f", d, files[d]; n[d] = 0; files[d] = "" } } \
1173	    else { print "f", d "/" $$4, $$1 } } \
1174	  END { for (d in files) print "f", d, files[d] }' | \
1175	while read type dir files; do \
1176	     if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
1177	     test -z "$$files" || { \
1178	       echo " $(INSTALL_SCRIPT) $$files '$(DESTDIR)$(bindir)$$dir'"; \
1179	       $(INSTALL_SCRIPT) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
1180	     } \
1181	; done
1182
1183uninstall-binSCRIPTS:
1184	@$(NORMAL_UNINSTALL)
1185	@list='$(bin_SCRIPTS)'; test -n "$(bindir)" || exit 0; \
1186	files=`for p in $$list; do echo "$$p"; done | \
1187	       sed -e 's,.*/,,;$(transform)'`; \
1188	dir='$(DESTDIR)$(bindir)'; $(am__uninstall_files_from_dir)
1189
1190mostlyclean-compile:
1191	-rm -f *.$(OBJEXT)
1192
1193distclean-compile:
1194	-rm -f *.tab.c
1195
1196@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/DOCBparser.Plo@am__quote@ # am--include-marker
1197@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HTMLparser.Plo@am__quote@ # am--include-marker
1198@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/HTMLtree.Plo@am__quote@ # am--include-marker
1199@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SAX.Plo@am__quote@ # am--include-marker
1200@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/SAX2.Plo@am__quote@ # am--include-marker
1201@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/buf.Plo@am__quote@ # am--include-marker
1202@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/c14n.Plo@am__quote@ # am--include-marker
1203@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/catalog.Plo@am__quote@ # am--include-marker
1204@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/chvalid.Plo@am__quote@ # am--include-marker
1205@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/debugXML.Plo@am__quote@ # am--include-marker
1206@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dict.Plo@am__quote@ # am--include-marker
1207@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/encoding.Plo@am__quote@ # am--include-marker
1208@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/entities.Plo@am__quote@ # am--include-marker
1209@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Plo@am__quote@ # am--include-marker
1210@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/globals.Plo@am__quote@ # am--include-marker
1211@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hash.Plo@am__quote@ # am--include-marker
1212@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/legacy.Plo@am__quote@ # am--include-marker
1213@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/list.Plo@am__quote@ # am--include-marker
1214@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nanoftp.Plo@am__quote@ # am--include-marker
1215@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/nanohttp.Plo@am__quote@ # am--include-marker
1216@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parser.Plo@am__quote@ # am--include-marker
1217@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/parserInternals.Plo@am__quote@ # am--include-marker
1218@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pattern.Plo@am__quote@ # am--include-marker
1219@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/relaxng.Plo@am__quote@ # am--include-marker
1220@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/runsuite.Po@am__quote@ # am--include-marker
1221@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/runtest.Po@am__quote@ # am--include-marker
1222@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/runxmlconf.Po@am__quote@ # am--include-marker
1223@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/schematron.Plo@am__quote@ # am--include-marker
1224@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testAutomata.Po@am__quote@ # am--include-marker
1225@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testC14N.Po@am__quote@ # am--include-marker
1226@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testHTML.Po@am__quote@ # am--include-marker
1227@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testModule.Po@am__quote@ # am--include-marker
1228@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testReader.Po@am__quote@ # am--include-marker
1229@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testRegexp.Po@am__quote@ # am--include-marker
1230@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testRelax.Po@am__quote@ # am--include-marker
1231@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testSAX.Po@am__quote@ # am--include-marker
1232@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testSchemas.Po@am__quote@ # am--include-marker
1233@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testThreads.Po@am__quote@ # am--include-marker
1234@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testURI.Po@am__quote@ # am--include-marker
1235@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testXPath.Po@am__quote@ # am--include-marker
1236@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testapi.Po@am__quote@ # am--include-marker
1237@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testchar.Po@am__quote@ # am--include-marker
1238@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testdict.Po@am__quote@ # am--include-marker
1239@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testdso.Plo@am__quote@ # am--include-marker
1240@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testlimits.Po@am__quote@ # am--include-marker
1241@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/testrecurse.Po@am__quote@ # am--include-marker
1242@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/threads.Plo@am__quote@ # am--include-marker
1243@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tree.Plo@am__quote@ # am--include-marker
1244@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/trio.Plo@am__quote@ # am--include-marker
1245@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/triostr.Plo@am__quote@ # am--include-marker
1246@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/uri.Plo@am__quote@ # am--include-marker
1247@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/valid.Plo@am__quote@ # am--include-marker
1248@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xinclude.Plo@am__quote@ # am--include-marker
1249@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xlink.Plo@am__quote@ # am--include-marker
1250@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlIO.Plo@am__quote@ # am--include-marker
1251@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlcatalog.Po@am__quote@ # am--include-marker
1252@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmllint.Po@am__quote@ # am--include-marker
1253@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlmemory.Plo@am__quote@ # am--include-marker
1254@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlmodule.Plo@am__quote@ # am--include-marker
1255@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlreader.Plo@am__quote@ # am--include-marker
1256@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlregexp.Plo@am__quote@ # am--include-marker
1257@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlsave.Plo@am__quote@ # am--include-marker
1258@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlschemas.Plo@am__quote@ # am--include-marker
1259@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlschemastypes.Plo@am__quote@ # am--include-marker
1260@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlstring.Plo@am__quote@ # am--include-marker
1261@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlunicode.Plo@am__quote@ # am--include-marker
1262@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xmlwriter.Plo@am__quote@ # am--include-marker
1263@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpath.Plo@am__quote@ # am--include-marker
1264@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xpointer.Plo@am__quote@ # am--include-marker
1265@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xzlib.Plo@am__quote@ # am--include-marker
1266
1267$(am__depfiles_remade):
1268	@$(MKDIR_P) $(@D)
1269	@echo '# dummy' >$@-t && $(am__mv) $@-t $@
1270
1271am--depfiles: $(am__depfiles_remade)
1272
1273.c.o:
1274@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
1275@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
1276@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1277@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1278@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
1279
1280.c.obj:
1281@am__fastdepCC_TRUE@	$(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
1282@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
1283@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
1284@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1285@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
1286
1287.c.lo:
1288@am__fastdepCC_TRUE@	$(AM_V_CC)$(LTCOMPILE) -fPIC -DPIC -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
1289@am__fastdepCC_TRUE@	$(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
1290@AMDEP_TRUE@@am__fastdepCC_FALSE@	$(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
1291@AMDEP_TRUE@@am__fastdepCC_FALSE@	DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
1292@am__fastdepCC_FALSE@	$(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
1293
1294mostlyclean-libtool:
1295	-rm -f *.lo
1296
1297clean-libtool:
1298	-rm -rf .libs _libs
1299
1300distclean-libtool:
1301	-rm -f libtool config.lt
1302install-man1: $(man_MANS)
1303	@$(NORMAL_INSTALL)
1304	@list1=''; \
1305	list2='$(man_MANS)'; \
1306	test -n "$(man1dir)" \
1307	  && test -n "`echo $$list1$$list2`" \
1308	  || exit 0; \
1309	echo " $(MKDIR_P) '$(DESTDIR)$(man1dir)'"; \
1310	$(MKDIR_P) "$(DESTDIR)$(man1dir)" || exit 1; \
1311	{ for i in $$list1; do echo "$$i"; done;  \
1312	if test -n "$$list2"; then \
1313	  for i in $$list2; do echo "$$i"; done \
1314	    | sed -n '/\.1[a-z]*$$/p'; \
1315	fi; \
1316	} | while read p; do \
1317	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
1318	  echo "$$d$$p"; echo "$$p"; \
1319	done | \
1320	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
1321	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
1322	sed 'N;N;s,\n, ,g' | { \
1323	list=; while read file base inst; do \
1324	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
1325	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man1dir)/$$inst'"; \
1326	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man1dir)/$$inst" || exit $$?; \
1327	  fi; \
1328	done; \
1329	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
1330	while read files; do \
1331	  test -z "$$files" || { \
1332	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man1dir)'"; \
1333	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man1dir)" || exit $$?; }; \
1334	done; }
1335
1336uninstall-man1:
1337	@$(NORMAL_UNINSTALL)
1338	@list=''; test -n "$(man1dir)" || exit 0; \
1339	files=`{ for i in $$list; do echo "$$i"; done; \
1340	l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1341	  sed -n '/\.1[a-z]*$$/p'; \
1342	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^1][0-9a-z]*$$,1,;x' \
1343	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
1344	dir='$(DESTDIR)$(man1dir)'; $(am__uninstall_files_from_dir)
1345install-man3: $(man_MANS)
1346	@$(NORMAL_INSTALL)
1347	@list1=''; \
1348	list2='$(man_MANS)'; \
1349	test -n "$(man3dir)" \
1350	  && test -n "`echo $$list1$$list2`" \
1351	  || exit 0; \
1352	echo " $(MKDIR_P) '$(DESTDIR)$(man3dir)'"; \
1353	$(MKDIR_P) "$(DESTDIR)$(man3dir)" || exit 1; \
1354	{ for i in $$list1; do echo "$$i"; done;  \
1355	if test -n "$$list2"; then \
1356	  for i in $$list2; do echo "$$i"; done \
1357	    | sed -n '/\.3[a-z]*$$/p'; \
1358	fi; \
1359	} | while read p; do \
1360	  if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
1361	  echo "$$d$$p"; echo "$$p"; \
1362	done | \
1363	sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
1364	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
1365	sed 'N;N;s,\n, ,g' | { \
1366	list=; while read file base inst; do \
1367	  if test "$$base" = "$$inst"; then list="$$list $$file"; else \
1368	    echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man3dir)/$$inst'"; \
1369	    $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man3dir)/$$inst" || exit $$?; \
1370	  fi; \
1371	done; \
1372	for i in $$list; do echo "$$i"; done | $(am__base_list) | \
1373	while read files; do \
1374	  test -z "$$files" || { \
1375	    echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man3dir)'"; \
1376	    $(INSTALL_DATA) $$files "$(DESTDIR)$(man3dir)" || exit $$?; }; \
1377	done; }
1378
1379uninstall-man3:
1380	@$(NORMAL_UNINSTALL)
1381	@list=''; test -n "$(man3dir)" || exit 0; \
1382	files=`{ for i in $$list; do echo "$$i"; done; \
1383	l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
1384	  sed -n '/\.3[a-z]*$$/p'; \
1385	} | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^3][0-9a-z]*$$,3,;x' \
1386	      -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
1387	dir='$(DESTDIR)$(man3dir)'; $(am__uninstall_files_from_dir)
1388install-cmakeDATA: $(cmake_DATA)
1389	@$(NORMAL_INSTALL)
1390	@list='$(cmake_DATA)'; test -n "$(cmakedir)" || list=; \
1391	if test -n "$$list"; then \
1392	  echo " $(MKDIR_P) '$(DESTDIR)$(cmakedir)'"; \
1393	  $(MKDIR_P) "$(DESTDIR)$(cmakedir)" || exit 1; \
1394	fi; \
1395	for p in $$list; do \
1396	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1397	  echo "$$d$$p"; \
1398	done | $(am__base_list) | \
1399	while read files; do \
1400	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(cmakedir)'"; \
1401	  $(INSTALL_DATA) $$files "$(DESTDIR)$(cmakedir)" || exit $$?; \
1402	done
1403
1404uninstall-cmakeDATA:
1405	@$(NORMAL_UNINSTALL)
1406	@list='$(cmake_DATA)'; test -n "$(cmakedir)" || list=; \
1407	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1408	dir='$(DESTDIR)$(cmakedir)'; $(am__uninstall_files_from_dir)
1409install-confexecDATA: $(confexec_DATA)
1410	@$(NORMAL_INSTALL)
1411	@list='$(confexec_DATA)'; test -n "$(confexecdir)" || list=; \
1412	if test -n "$$list"; then \
1413	  echo " $(MKDIR_P) '$(DESTDIR)$(confexecdir)'"; \
1414	  $(MKDIR_P) "$(DESTDIR)$(confexecdir)" || exit 1; \
1415	fi; \
1416	for p in $$list; do \
1417	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1418	  echo "$$d$$p"; \
1419	done | $(am__base_list) | \
1420	while read files; do \
1421	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(confexecdir)'"; \
1422	  $(INSTALL_DATA) $$files "$(DESTDIR)$(confexecdir)" || exit $$?; \
1423	done
1424
1425uninstall-confexecDATA:
1426	@$(NORMAL_UNINSTALL)
1427	@list='$(confexec_DATA)'; test -n "$(confexecdir)" || list=; \
1428	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1429	dir='$(DESTDIR)$(confexecdir)'; $(am__uninstall_files_from_dir)
1430install-m4dataDATA: $(m4data_DATA)
1431	@$(NORMAL_INSTALL)
1432	@list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
1433	if test -n "$$list"; then \
1434	  echo " $(MKDIR_P) '$(DESTDIR)$(m4datadir)'"; \
1435	  $(MKDIR_P) "$(DESTDIR)$(m4datadir)" || exit 1; \
1436	fi; \
1437	for p in $$list; do \
1438	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1439	  echo "$$d$$p"; \
1440	done | $(am__base_list) | \
1441	while read files; do \
1442	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(m4datadir)'"; \
1443	  $(INSTALL_DATA) $$files "$(DESTDIR)$(m4datadir)" || exit $$?; \
1444	done
1445
1446uninstall-m4dataDATA:
1447	@$(NORMAL_UNINSTALL)
1448	@list='$(m4data_DATA)'; test -n "$(m4datadir)" || list=; \
1449	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1450	dir='$(DESTDIR)$(m4datadir)'; $(am__uninstall_files_from_dir)
1451install-pkgconfigDATA: $(pkgconfig_DATA)
1452	@$(NORMAL_INSTALL)
1453	@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
1454	if test -n "$$list"; then \
1455	  echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
1456	  $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
1457	fi; \
1458	for p in $$list; do \
1459	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
1460	  echo "$$d$$p"; \
1461	done | $(am__base_list) | \
1462	while read files; do \
1463	  echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
1464	  $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
1465	done
1466
1467uninstall-pkgconfigDATA:
1468	@$(NORMAL_UNINSTALL)
1469	@list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
1470	files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
1471	dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
1472
1473# This directory's subdirectories are mostly independent; you can cd
1474# into them and run 'make' without going through this Makefile.
1475# To change the values of 'make' variables: instead of editing Makefiles,
1476# (1) if the variable is set in 'config.status', edit 'config.status'
1477#     (which will cause the Makefiles to be regenerated when you run 'make');
1478# (2) otherwise, pass the desired values on the 'make' command line.
1479$(am__recursive_targets):
1480	@fail=; \
1481	if $(am__make_keepgoing); then \
1482	  failcom='fail=yes'; \
1483	else \
1484	  failcom='exit 1'; \
1485	fi; \
1486	dot_seen=no; \
1487	target=`echo $@ | sed s/-recursive//`; \
1488	case "$@" in \
1489	  distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
1490	  *) list='$(SUBDIRS)' ;; \
1491	esac; \
1492	for subdir in $$list; do \
1493	  echo "Making $$target in $$subdir"; \
1494	  if test "$$subdir" = "."; then \
1495	    dot_seen=yes; \
1496	    local_target="$$target-am"; \
1497	  else \
1498	    local_target="$$target"; \
1499	  fi; \
1500	  ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
1501	  || eval $$failcom; \
1502	done; \
1503	if test "$$dot_seen" = "no"; then \
1504	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
1505	fi; test -z "$$fail"
1506
1507ID: $(am__tagged_files)
1508	$(am__define_uniq_tagged_files); mkid -fID $$unique
1509tags: tags-recursive
1510TAGS: tags
1511
1512tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1513	set x; \
1514	here=`pwd`; \
1515	if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
1516	  include_option=--etags-include; \
1517	  empty_fix=.; \
1518	else \
1519	  include_option=--include; \
1520	  empty_fix=; \
1521	fi; \
1522	list='$(SUBDIRS)'; for subdir in $$list; do \
1523	  if test "$$subdir" = .; then :; else \
1524	    test ! -f $$subdir/TAGS || \
1525	      set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
1526	  fi; \
1527	done; \
1528	$(am__define_uniq_tagged_files); \
1529	shift; \
1530	if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1531	  test -n "$$unique" || unique=$$empty_fix; \
1532	  if test $$# -gt 0; then \
1533	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1534	      "$$@" $$unique; \
1535	  else \
1536	    $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1537	      $$unique; \
1538	  fi; \
1539	fi
1540ctags: ctags-recursive
1541
1542CTAGS: ctags
1543ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1544	$(am__define_uniq_tagged_files); \
1545	test -z "$(CTAGS_ARGS)$$unique" \
1546	  || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1547	     $$unique
1548
1549GTAGS:
1550	here=`$(am__cd) $(top_builddir) && pwd` \
1551	  && $(am__cd) $(top_srcdir) \
1552	  && gtags -i $(GTAGS_ARGS) "$$here"
1553cscope: cscope.files
1554	test ! -s cscope.files \
1555	  || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
1556clean-cscope:
1557	-rm -f cscope.files
1558cscope.files: clean-cscope cscopelist
1559cscopelist: cscopelist-recursive
1560
1561cscopelist-am: $(am__tagged_files)
1562	list='$(am__tagged_files)'; \
1563	case "$(srcdir)" in \
1564	  [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
1565	  *) sdir=$(subdir)/$(srcdir) ;; \
1566	esac; \
1567	for i in $$list; do \
1568	  if test -f "$$i"; then \
1569	    echo "$(subdir)/$$i"; \
1570	  else \
1571	    echo "$$sdir/$$i"; \
1572	  fi; \
1573	done >> $(top_builddir)/cscope.files
1574
1575distclean-tags:
1576	-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1577	-rm -f cscope.out cscope.in.out cscope.po.out cscope.files
1578
1579distdir: $(BUILT_SOURCES)
1580	$(MAKE) $(AM_MAKEFLAGS) distdir-am
1581
1582distdir-am: $(DISTFILES)
1583	$(am__remove_distdir)
1584	test -d "$(distdir)" || mkdir "$(distdir)"
1585	@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1586	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1587	list='$(DISTFILES)'; \
1588	  dist_files=`for file in $$list; do echo $$file; done | \
1589	  sed -e "s|^$$srcdirstrip/||;t" \
1590	      -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1591	case $$dist_files in \
1592	  */*) $(MKDIR_P) `echo "$$dist_files" | \
1593			   sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1594			   sort -u` ;; \
1595	esac; \
1596	for file in $$dist_files; do \
1597	  if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1598	  if test -d $$d/$$file; then \
1599	    dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1600	    if test -d "$(distdir)/$$file"; then \
1601	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1602	    fi; \
1603	    if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1604	      cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
1605	      find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1606	    fi; \
1607	    cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
1608	  else \
1609	    test -f "$(distdir)/$$file" \
1610	    || cp -p $$d/$$file "$(distdir)/$$file" \
1611	    || exit 1; \
1612	  fi; \
1613	done
1614	@list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1615	  if test "$$subdir" = .; then :; else \
1616	    $(am__make_dryrun) \
1617	      || test -d "$(distdir)/$$subdir" \
1618	      || $(MKDIR_P) "$(distdir)/$$subdir" \
1619	      || exit 1; \
1620	    dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
1621	    $(am__relativize); \
1622	    new_distdir=$$reldir; \
1623	    dir1=$$subdir; dir2="$(top_distdir)"; \
1624	    $(am__relativize); \
1625	    new_top_distdir=$$reldir; \
1626	    echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
1627	    echo "     am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
1628	    ($(am__cd) $$subdir && \
1629	      $(MAKE) $(AM_MAKEFLAGS) \
1630	        top_distdir="$$new_top_distdir" \
1631	        distdir="$$new_distdir" \
1632		am__remove_distdir=: \
1633		am__skip_length_check=: \
1634		am__skip_mode_fix=: \
1635	        distdir) \
1636	      || exit 1; \
1637	  fi; \
1638	done
1639	$(MAKE) $(AM_MAKEFLAGS) \
1640	  top_distdir="$(top_distdir)" distdir="$(distdir)" \
1641	  dist-hook
1642	-test -n "$(am__skip_mode_fix)" \
1643	|| find "$(distdir)" -type d ! -perm -755 \
1644		-exec chmod u+rwx,go+rx {} \; -o \
1645	  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
1646	  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
1647	  ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
1648	|| chmod -R a+r "$(distdir)"
1649dist-gzip: distdir
1650	tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
1651	$(am__post_remove_distdir)
1652
1653dist-bzip2: distdir
1654	tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
1655	$(am__post_remove_distdir)
1656
1657dist-lzip: distdir
1658	tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
1659	$(am__post_remove_distdir)
1660
1661dist-xz: distdir
1662	tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
1663	$(am__post_remove_distdir)
1664
1665dist-tarZ: distdir
1666	@echo WARNING: "Support for distribution archives compressed with" \
1667		       "legacy program 'compress' is deprecated." >&2
1668	@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
1669	tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
1670	$(am__post_remove_distdir)
1671
1672dist-shar: distdir
1673	@echo WARNING: "Support for shar distribution archives is" \
1674	               "deprecated." >&2
1675	@echo WARNING: "It will be removed altogether in Automake 2.0" >&2
1676	shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
1677	$(am__post_remove_distdir)
1678
1679dist-zip: distdir
1680	-rm -f $(distdir).zip
1681	zip -rq $(distdir).zip $(distdir)
1682	$(am__post_remove_distdir)
1683
1684dist dist-all:
1685	$(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
1686	$(am__post_remove_distdir)
1687
1688# This target untars the dist file and tries a VPATH configuration.  Then
1689# it guarantees that the distribution is self-contained by making another
1690# tarfile.
1691distcheck: dist
1692	case '$(DIST_ARCHIVES)' in \
1693	*.tar.gz*) \
1694	  eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
1695	*.tar.bz2*) \
1696	  bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
1697	*.tar.lz*) \
1698	  lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
1699	*.tar.xz*) \
1700	  xz -dc $(distdir).tar.xz | $(am__untar) ;;\
1701	*.tar.Z*) \
1702	  uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
1703	*.shar.gz*) \
1704	  eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
1705	*.zip*) \
1706	  unzip $(distdir).zip ;;\
1707	esac
1708	chmod -R a-w $(distdir)
1709	chmod u+w $(distdir)
1710	mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
1711	chmod a-w $(distdir)
1712	test -d $(distdir)/_build || exit 0; \
1713	dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
1714	  && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
1715	  && am__cwd=`pwd` \
1716	  && $(am__cd) $(distdir)/_build/sub \
1717	  && ../../configure \
1718	    $(AM_DISTCHECK_CONFIGURE_FLAGS) \
1719	    $(DISTCHECK_CONFIGURE_FLAGS) \
1720	    --srcdir=../.. --prefix="$$dc_install_base" \
1721	  && $(MAKE) $(AM_MAKEFLAGS) \
1722	  && $(MAKE) $(AM_MAKEFLAGS) dvi \
1723	  && $(MAKE) $(AM_MAKEFLAGS) check \
1724	  && $(MAKE) $(AM_MAKEFLAGS) install \
1725	  && $(MAKE) $(AM_MAKEFLAGS) installcheck \
1726	  && $(MAKE) $(AM_MAKEFLAGS) uninstall \
1727	  && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
1728	        distuninstallcheck \
1729	  && chmod -R a-w "$$dc_install_base" \
1730	  && ({ \
1731	       (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
1732	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
1733	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
1734	       && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
1735	            distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
1736	      } || { rm -rf "$$dc_destdir"; exit 1; }) \
1737	  && rm -rf "$$dc_destdir" \
1738	  && $(MAKE) $(AM_MAKEFLAGS) dist \
1739	  && rm -rf $(DIST_ARCHIVES) \
1740	  && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
1741	  && cd "$$am__cwd" \
1742	  || exit 1
1743	$(am__post_remove_distdir)
1744	@(echo "$(distdir) archives ready for distribution: "; \
1745	  list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
1746	  sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
1747distuninstallcheck:
1748	@test -n '$(distuninstallcheck_dir)' || { \
1749	  echo 'ERROR: trying to run $@ with an empty' \
1750	       '$$(distuninstallcheck_dir)' >&2; \
1751	  exit 1; \
1752	}; \
1753	$(am__cd) '$(distuninstallcheck_dir)' || { \
1754	  echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
1755	  exit 1; \
1756	}; \
1757	test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
1758	   || { echo "ERROR: files left after uninstall:" ; \
1759	        if test -n "$(DESTDIR)"; then \
1760	          echo "  (check DESTDIR support)"; \
1761	        fi ; \
1762	        $(distuninstallcheck_listfiles) ; \
1763	        exit 1; } >&2
1764distcleancheck: distclean
1765	@if test '$(srcdir)' = . ; then \
1766	  echo "ERROR: distcleancheck can only run from a VPATH build" ; \
1767	  exit 1 ; \
1768	fi
1769	@test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
1770	  || { echo "ERROR: files left in build directory after distclean:" ; \
1771	       $(distcleancheck_listfiles) ; \
1772	       exit 1; } >&2
1773check-am: all-am
1774	$(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
1775check: $(BUILT_SOURCES)
1776	$(MAKE) $(AM_MAKEFLAGS) check-recursive
1777all-am: Makefile $(LTLIBRARIES) $(SCRIPTS) $(MANS) $(DATA) \
1778		config.h
1779install-binPROGRAMS: install-libLTLIBRARIES
1780
1781installdirs: installdirs-recursive
1782installdirs-am:
1783	for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man3dir)" "$(DESTDIR)$(cmakedir)" "$(DESTDIR)$(confexecdir)" "$(DESTDIR)$(m4datadir)" "$(DESTDIR)$(pkgconfigdir)"; do \
1784	  test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1785	done
1786install: $(BUILT_SOURCES)
1787	$(MAKE) $(AM_MAKEFLAGS) install-recursive
1788install-exec: install-exec-recursive
1789install-data: install-data-recursive
1790uninstall: uninstall-recursive
1791
1792install-am: all-am
1793	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1794
1795installcheck: installcheck-recursive
1796install-strip:
1797	if test -z '$(STRIP)'; then \
1798	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1799	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1800	      install; \
1801	else \
1802	  $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1803	    install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1804	    "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1805	fi
1806mostlyclean-generic:
1807
1808clean-generic:
1809	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
1810
1811distclean-generic:
1812	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1813	-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1814	-test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
1815
1816maintainer-clean-generic:
1817	@echo "This command is intended for maintainers to use"
1818	@echo "it deletes files that may require special tools to rebuild."
1819	-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
1820clean: clean-recursive
1821
1822clean-am: clean-binPROGRAMS clean-checkPROGRAMS clean-generic \
1823	clean-libLTLIBRARIES clean-libtool clean-noinstLTLIBRARIES \
1824	mostlyclean-am
1825
1826distclean: distclean-recursive
1827	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
1828		-rm -f ./$(DEPDIR)/DOCBparser.Plo
1829	-rm -f ./$(DEPDIR)/HTMLparser.Plo
1830	-rm -f ./$(DEPDIR)/HTMLtree.Plo
1831	-rm -f ./$(DEPDIR)/SAX.Plo
1832	-rm -f ./$(DEPDIR)/SAX2.Plo
1833	-rm -f ./$(DEPDIR)/buf.Plo
1834	-rm -f ./$(DEPDIR)/c14n.Plo
1835	-rm -f ./$(DEPDIR)/catalog.Plo
1836	-rm -f ./$(DEPDIR)/chvalid.Plo
1837	-rm -f ./$(DEPDIR)/debugXML.Plo
1838	-rm -f ./$(DEPDIR)/dict.Plo
1839	-rm -f ./$(DEPDIR)/encoding.Plo
1840	-rm -f ./$(DEPDIR)/entities.Plo
1841	-rm -f ./$(DEPDIR)/error.Plo
1842	-rm -f ./$(DEPDIR)/globals.Plo
1843	-rm -f ./$(DEPDIR)/hash.Plo
1844	-rm -f ./$(DEPDIR)/legacy.Plo
1845	-rm -f ./$(DEPDIR)/list.Plo
1846	-rm -f ./$(DEPDIR)/nanoftp.Plo
1847	-rm -f ./$(DEPDIR)/nanohttp.Plo
1848	-rm -f ./$(DEPDIR)/parser.Plo
1849	-rm -f ./$(DEPDIR)/parserInternals.Plo
1850	-rm -f ./$(DEPDIR)/pattern.Plo
1851	-rm -f ./$(DEPDIR)/relaxng.Plo
1852	-rm -f ./$(DEPDIR)/runsuite.Po
1853	-rm -f ./$(DEPDIR)/runtest.Po
1854	-rm -f ./$(DEPDIR)/runxmlconf.Po
1855	-rm -f ./$(DEPDIR)/schematron.Plo
1856	-rm -f ./$(DEPDIR)/testAutomata.Po
1857	-rm -f ./$(DEPDIR)/testC14N.Po
1858	-rm -f ./$(DEPDIR)/testHTML.Po
1859	-rm -f ./$(DEPDIR)/testModule.Po
1860	-rm -f ./$(DEPDIR)/testReader.Po
1861	-rm -f ./$(DEPDIR)/testRegexp.Po
1862	-rm -f ./$(DEPDIR)/testRelax.Po
1863	-rm -f ./$(DEPDIR)/testSAX.Po
1864	-rm -f ./$(DEPDIR)/testSchemas.Po
1865	-rm -f ./$(DEPDIR)/testThreads.Po
1866	-rm -f ./$(DEPDIR)/testURI.Po
1867	-rm -f ./$(DEPDIR)/testXPath.Po
1868	-rm -f ./$(DEPDIR)/testapi.Po
1869	-rm -f ./$(DEPDIR)/testchar.Po
1870	-rm -f ./$(DEPDIR)/testdict.Po
1871	-rm -f ./$(DEPDIR)/testdso.Plo
1872	-rm -f ./$(DEPDIR)/testlimits.Po
1873	-rm -f ./$(DEPDIR)/testrecurse.Po
1874	-rm -f ./$(DEPDIR)/threads.Plo
1875	-rm -f ./$(DEPDIR)/tree.Plo
1876	-rm -f ./$(DEPDIR)/trio.Plo
1877	-rm -f ./$(DEPDIR)/triostr.Plo
1878	-rm -f ./$(DEPDIR)/uri.Plo
1879	-rm -f ./$(DEPDIR)/valid.Plo
1880	-rm -f ./$(DEPDIR)/xinclude.Plo
1881	-rm -f ./$(DEPDIR)/xlink.Plo
1882	-rm -f ./$(DEPDIR)/xmlIO.Plo
1883	-rm -f ./$(DEPDIR)/xmlcatalog.Po
1884	-rm -f ./$(DEPDIR)/xmllint.Po
1885	-rm -f ./$(DEPDIR)/xmlmemory.Plo
1886	-rm -f ./$(DEPDIR)/xmlmodule.Plo
1887	-rm -f ./$(DEPDIR)/xmlreader.Plo
1888	-rm -f ./$(DEPDIR)/xmlregexp.Plo
1889	-rm -f ./$(DEPDIR)/xmlsave.Plo
1890	-rm -f ./$(DEPDIR)/xmlschemas.Plo
1891	-rm -f ./$(DEPDIR)/xmlschemastypes.Plo
1892	-rm -f ./$(DEPDIR)/xmlstring.Plo
1893	-rm -f ./$(DEPDIR)/xmlunicode.Plo
1894	-rm -f ./$(DEPDIR)/xmlwriter.Plo
1895	-rm -f ./$(DEPDIR)/xpath.Plo
1896	-rm -f ./$(DEPDIR)/xpointer.Plo
1897	-rm -f ./$(DEPDIR)/xzlib.Plo
1898	-rm -f Makefile
1899distclean-am: clean-am distclean-compile distclean-generic \
1900	distclean-hdr distclean-libtool distclean-tags
1901
1902dvi: dvi-recursive
1903
1904dvi-am:
1905
1906html: html-recursive
1907
1908html-am:
1909
1910info: info-recursive
1911
1912info-am:
1913
1914install-data-am: install-cmakeDATA \
1915	install-m4dataDATA install-man install-pkgconfigDATA
1916
1917install-dvi: install-dvi-recursive
1918
1919install-dvi-am:
1920
1921install-exec-am: install-binPROGRAMS install-binSCRIPTS \
1922	install-confexecDATA install-libLTLIBRARIES
1923
1924install-html: install-html-recursive
1925
1926install-html-am:
1927
1928install-info: install-info-recursive
1929
1930install-info-am:
1931
1932install-man: install-man1 install-man3
1933
1934install-pdf: install-pdf-recursive
1935
1936install-pdf-am:
1937
1938install-ps: install-ps-recursive
1939
1940install-ps-am:
1941
1942installcheck-am:
1943
1944maintainer-clean: maintainer-clean-recursive
1945	-rm -f $(am__CONFIG_DISTCLEAN_FILES)
1946	-rm -rf $(top_srcdir)/autom4te.cache
1947		-rm -f ./$(DEPDIR)/DOCBparser.Plo
1948	-rm -f ./$(DEPDIR)/HTMLparser.Plo
1949	-rm -f ./$(DEPDIR)/HTMLtree.Plo
1950	-rm -f ./$(DEPDIR)/SAX.Plo
1951	-rm -f ./$(DEPDIR)/SAX2.Plo
1952	-rm -f ./$(DEPDIR)/buf.Plo
1953	-rm -f ./$(DEPDIR)/c14n.Plo
1954	-rm -f ./$(DEPDIR)/catalog.Plo
1955	-rm -f ./$(DEPDIR)/chvalid.Plo
1956	-rm -f ./$(DEPDIR)/debugXML.Plo
1957	-rm -f ./$(DEPDIR)/dict.Plo
1958	-rm -f ./$(DEPDIR)/encoding.Plo
1959	-rm -f ./$(DEPDIR)/entities.Plo
1960	-rm -f ./$(DEPDIR)/error.Plo
1961	-rm -f ./$(DEPDIR)/globals.Plo
1962	-rm -f ./$(DEPDIR)/hash.Plo
1963	-rm -f ./$(DEPDIR)/legacy.Plo
1964	-rm -f ./$(DEPDIR)/list.Plo
1965	-rm -f ./$(DEPDIR)/nanoftp.Plo
1966	-rm -f ./$(DEPDIR)/nanohttp.Plo
1967	-rm -f ./$(DEPDIR)/parser.Plo
1968	-rm -f ./$(DEPDIR)/parserInternals.Plo
1969	-rm -f ./$(DEPDIR)/pattern.Plo
1970	-rm -f ./$(DEPDIR)/relaxng.Plo
1971	-rm -f ./$(DEPDIR)/runsuite.Po
1972	-rm -f ./$(DEPDIR)/runtest.Po
1973	-rm -f ./$(DEPDIR)/runxmlconf.Po
1974	-rm -f ./$(DEPDIR)/schematron.Plo
1975	-rm -f ./$(DEPDIR)/testAutomata.Po
1976	-rm -f ./$(DEPDIR)/testC14N.Po
1977	-rm -f ./$(DEPDIR)/testHTML.Po
1978	-rm -f ./$(DEPDIR)/testModule.Po
1979	-rm -f ./$(DEPDIR)/testReader.Po
1980	-rm -f ./$(DEPDIR)/testRegexp.Po
1981	-rm -f ./$(DEPDIR)/testRelax.Po
1982	-rm -f ./$(DEPDIR)/testSAX.Po
1983	-rm -f ./$(DEPDIR)/testSchemas.Po
1984	-rm -f ./$(DEPDIR)/testThreads.Po
1985	-rm -f ./$(DEPDIR)/testURI.Po
1986	-rm -f ./$(DEPDIR)/testXPath.Po
1987	-rm -f ./$(DEPDIR)/testapi.Po
1988	-rm -f ./$(DEPDIR)/testchar.Po
1989	-rm -f ./$(DEPDIR)/testdict.Po
1990	-rm -f ./$(DEPDIR)/testdso.Plo
1991	-rm -f ./$(DEPDIR)/testlimits.Po
1992	-rm -f ./$(DEPDIR)/testrecurse.Po
1993	-rm -f ./$(DEPDIR)/threads.Plo
1994	-rm -f ./$(DEPDIR)/tree.Plo
1995	-rm -f ./$(DEPDIR)/trio.Plo
1996	-rm -f ./$(DEPDIR)/triostr.Plo
1997	-rm -f ./$(DEPDIR)/uri.Plo
1998	-rm -f ./$(DEPDIR)/valid.Plo
1999	-rm -f ./$(DEPDIR)/xinclude.Plo
2000	-rm -f ./$(DEPDIR)/xlink.Plo
2001	-rm -f ./$(DEPDIR)/xmlIO.Plo
2002	-rm -f ./$(DEPDIR)/xmlcatalog.Po
2003	-rm -f ./$(DEPDIR)/xmllint.Po
2004	-rm -f ./$(DEPDIR)/xmlmemory.Plo
2005	-rm -f ./$(DEPDIR)/xmlmodule.Plo
2006	-rm -f ./$(DEPDIR)/xmlreader.Plo
2007	-rm -f ./$(DEPDIR)/xmlregexp.Plo
2008	-rm -f ./$(DEPDIR)/xmlsave.Plo
2009	-rm -f ./$(DEPDIR)/xmlschemas.Plo
2010	-rm -f ./$(DEPDIR)/xmlschemastypes.Plo
2011	-rm -f ./$(DEPDIR)/xmlstring.Plo
2012	-rm -f ./$(DEPDIR)/xmlunicode.Plo
2013	-rm -f ./$(DEPDIR)/xmlwriter.Plo
2014	-rm -f ./$(DEPDIR)/xpath.Plo
2015	-rm -f ./$(DEPDIR)/xpointer.Plo
2016	-rm -f ./$(DEPDIR)/xzlib.Plo
2017	-rm -f Makefile
2018maintainer-clean-am: distclean-am maintainer-clean-generic
2019
2020mostlyclean: mostlyclean-recursive
2021
2022mostlyclean-am: mostlyclean-compile mostlyclean-generic \
2023	mostlyclean-libtool
2024
2025pdf: pdf-recursive
2026
2027pdf-am:
2028
2029ps: ps-recursive
2030
2031ps-am:
2032
2033uninstall-am: uninstall-binPROGRAMS uninstall-binSCRIPTS \
2034	uninstall-cmakeDATA uninstall-confexecDATA \
2035	uninstall-libLTLIBRARIES uninstall-local uninstall-m4dataDATA \
2036	uninstall-man uninstall-pkgconfigDATA
2037
2038uninstall-man: uninstall-man1 uninstall-man3
2039
2040.MAKE: $(am__recursive_targets) all check check-am install install-am \
2041	install-strip
2042
2043.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
2044	am--depfiles am--refresh check check-am clean \
2045	clean-binPROGRAMS clean-checkPROGRAMS clean-cscope \
2046	clean-generic clean-libLTLIBRARIES clean-libtool \
2047	clean-noinstLTLIBRARIES cscope cscopelist-am ctags ctags-am \
2048	dist dist-all dist-bzip2 dist-gzip dist-hook dist-lzip \
2049	dist-shar dist-tarZ dist-xz dist-zip distcheck distclean \
2050	distclean-compile distclean-generic distclean-hdr \
2051	distclean-libtool distclean-tags distcleancheck distdir \
2052	distuninstallcheck dvi dvi-am html html-am info info-am \
2053	install install-am install-binPROGRAMS install-binSCRIPTS \
2054	install-cmakeDATA install-confexecDATA install-data \
2055	install-data-am install-data-local install-dvi install-dvi-am \
2056	install-exec install-exec-am install-html install-html-am \
2057	install-info install-info-am install-libLTLIBRARIES \
2058	install-m4dataDATA install-man install-man1 install-man3 \
2059	install-pdf install-pdf-am install-pkgconfigDATA install-ps \
2060	install-ps-am install-strip installcheck installcheck-am \
2061	installdirs installdirs-am maintainer-clean \
2062	maintainer-clean-generic mostlyclean mostlyclean-compile \
2063	mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
2064	tags tags-am uninstall uninstall-am uninstall-binPROGRAMS \
2065	uninstall-binSCRIPTS uninstall-cmakeDATA \
2066	uninstall-confexecDATA uninstall-libLTLIBRARIES \
2067	uninstall-local uninstall-m4dataDATA uninstall-man \
2068	uninstall-man1 uninstall-man3 uninstall-pkgconfigDATA
2069
2070.PRECIOUS: Makefile
2071
2072
2073# that one forces the rebuild when "make rebuild" is run on doc/
2074rebuild_testapi:
2075	-@(if [ "$(PYTHON)" != "" ] ; then \
2076	    $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
2077
2078# that one is just to make sure it is rebuilt if missing
2079# but adding the dependances generate mess
2080testapi.c: $(srcdir)/gentest.py
2081	-@(if [ "$(PYTHON)" != "" ] ; then \
2082	    $(PYTHON) $(srcdir)/gentest.py $(srcdir) ; fi )
2083
2084#testOOM_SOURCES=testOOM.c testOOMlib.h testOOMlib.c
2085#testOOM_LDFLAGS =
2086#testOOM_DEPENDENCIES = $(DEPS)
2087#testOOM_LDADD= $(LDADDS)
2088
2089runtests: runtest$(EXEEXT) testrecurse$(EXEEXT) testapi$(EXEEXT) \
2090          testchar$(EXEEXT) testdict$(EXEEXT) runxmlconf$(EXEEXT)
2091	[ -d test   ] || $(LN_S) $(srcdir)/test   .
2092	[ -d result ] || $(LN_S) $(srcdir)/result .
2093	$(CHECKER) ./runtest$(EXEEXT) && \
2094	    $(CHECKER) ./testrecurse$(EXEEXT) && \
2095	    ASAN_OPTIONS="$$ASAN_OPTIONS:detect_leaks=0" $(CHECKER) ./testapi$(EXEEXT) && \
2096	    $(CHECKER) ./testchar$(EXEEXT) && \
2097	    $(CHECKER) ./testdict$(EXEEXT) && \
2098	    $(CHECKER) ./runxmlconf$(EXEEXT)
2099	@(if [ "$(PYTHON_SUBDIR)" != "" ] ; then cd python ; \
2100	    $(MAKE) tests ; fi)
2101	@cd fuzz; $(MAKE) tests
2102
2103check: all runtests
2104
2105check-valgrind valgrind: all
2106	@echo '## Running the regression tests under Valgrind'
2107	@echo '## Go get a cup of coffee it is gonna take a while ...'
2108	$(MAKE) CHECKER='valgrind -q' runtests
2109
2110asan:
2111	@echo '## rebuilding for ASAN'
2112	./configure CFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security -Werror=array-bounds -g" CXXFLAGS="-fsanitize=address,undefined -Wformat -Werror=format-security -Werror=array-bounds -g" LDFLAGS="-fsanitize=address,undefined" CC="clang" CXX="clang++" --disable-shared ; OptimOff  ; $(MAKE) clean ; $(MAKE)
2113
2114testall : tests SVGtests SAXtests
2115
2116tests: XMLtests XMLenttests NStests IDtests Errtests APItests $(READER_TEST) $(TEST_SAX) $(TEST_PUSH) $(TEST_HTML) $(TEST_PHTML) $(TEST_VALID) URItests $(TEST_PATTERN) $(TEST_XPATH) $(TEST_XPTR) $(TEST_XINCLUDE) $(TEST_C14N) $(TEST_DEBUG) $(TEST_CATALOG) $(TEST_REGEXPS) $(TEST_SCHEMAS) $(TEST_SCHEMATRON) $(TEST_THREADS) Timingtests $(TEST_VTIME) $(PYTHON_TESTS) $(TEST_MODULES)
2117	@(if [ "$(PYTHON_SUBDIR)" != "" ] ; then cd python ; \
2118	    $(MAKE) -s tests ; fi)
2119	@(cd doc/examples ; $(MAKE) -s tests)
2120
2121APItests: testapi$(EXEEXT)
2122	@echo "## Running the API regression tests this may take a little while"
2123	-@(ASAN_OPTIONS="$$ASAN_OPTIONS:detect_leaks=0" $(CHECKER) $(top_builddir)/testapi -q)
2124
2125HTMLtests : testHTML$(EXEEXT)
2126	@(echo > .memdump)
2127	@echo "## HTML regression tests"
2128	-@(for i in $(srcdir)/test/HTML/* ; do \
2129	  name=`basename $$i`; \
2130	  if [ ! -d $$i ] ; then \
2131	  if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
2132	      echo New test file $$name ; \
2133	      $(CHECKER) $(top_builddir)/testHTML $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
2134	  else \
2135	      log=`$(CHECKER) $(top_builddir)/testHTML $$i > result.$$name 2> error.$$name ; \
2136	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2137	      diff $(srcdir)/result/HTML/$$name result.$$name ; \
2138	      diff -b $(srcdir)/result/HTML/$$name.err error.$$name ; \
2139	      $(CHECKER) $(top_builddir)/testHTML result.$$name > result2.$$name 2>error.$$name ; \
2140	      diff result.$$name result2.$$name` ; \
2141	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2142	      rm result.$$name result2.$$name error.$$name ; \
2143	  fi ; fi ; done)
2144
2145HTMLPushtests : testHTML$(EXEEXT)
2146	@echo "## Push HTML regression tests"
2147	-@(for i in $(srcdir)/test/HTML/* ; do \
2148	  name=`basename $$i`; \
2149	  if [ ! -d $$i ] ; then \
2150	  if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
2151	      echo New test file $$name ; \
2152	      $(CHECKER) $(top_builddir)/testHTML --push $$i > $(srcdir)/result/HTML/$$name 2>$(srcdir)/result/HTML/$$name.err ; \
2153	  else \
2154	      log=`$(CHECKER) $(top_builddir)/testHTML --push $$i > result.$$name 2> error.$$name ; \
2155	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2156	      diff $(srcdir)/result/HTML/$$name result.$$name ; \
2157	      cut -b 1-15 $(srcdir)/result/HTML/$$name.err > errorcut.$$name; \
2158	      cut -b 1-15 error.$$name > errorcut2.$$name; \
2159	      diff -b errorcut.$$name errorcut2.$$name ; \
2160	      $(CHECKER) $(top_builddir)/testHTML --push result.$$name > result2.$$name 2>error.$$name ; \
2161	      diff result.$$name result2.$$name` ; \
2162	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2163	      rm result.$$name result2.$$name error.$$name errorcut.$$name errorcut2.$$name ; \
2164	  fi ; fi ; done)
2165	@echo "## HTML SAX regression tests"
2166	-@(for i in $(srcdir)/test/HTML/* ; do \
2167	  name=`basename $$i`; \
2168	  if [ ! -d $$i ] ; then \
2169	  if [ ! -f $(srcdir)/result/HTML/$$name.sax ] ; then \
2170	      echo New test file $$name ; \
2171	      $(CHECKER) $(top_builddir)/testHTML --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
2172	  else \
2173	      log=`$(CHECKER) $(top_builddir)/testHTML --sax $$i > result.$$name.sax ; \
2174	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2175	      diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
2176	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2177	      rm result.$$name.sax ; \
2178	  fi ; fi ; done)
2179	@echo "## Push HTML SAX regression tests"
2180	-@(for i in $(srcdir)/test/HTML/* ; do \
2181	  name=`basename $$i`; \
2182	  if [ ! -d $$i ] ; then \
2183	  if [ ! -f $(srcdir)/result/HTML/$$name ] ; then \
2184	      echo New test file $$name ; \
2185	      $(CHECKER) $(top_builddir)/testHTML --push --sax $$i > $(srcdir)/result/HTML/$$name.sax ; \
2186	  else \
2187	      log=`$(CHECKER) $(top_builddir)/testHTML --push --sax $$i 2>&1 > result.$$name.sax ; \
2188	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2189	      diff $(srcdir)/result/HTML/$$name.sax result.$$name.sax` ; \
2190	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2191	      rm result.$$name.sax ; \
2192	  fi ; fi ; done)
2193
2194XMLtests : xmllint$(EXEEXT)
2195	@(echo > .memdump)
2196	@echo "## XML regression tests"
2197	-@(for i in $(srcdir)/test/* ; do \
2198	  name=`basename $$i`; \
2199	  if [ ! -d $$i ] ; then \
2200	  if [ ! -f $(srcdir)/result/$$name ] ; then \
2201	      echo New test file $$name ; \
2202	      $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/$$name ; \
2203	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2204	  else \
2205	      log=`$(CHECKER) $(top_builddir)/xmllint $$i 2>&1 > result.$$name ; \
2206	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2207	      diff $(srcdir)/result/$$name result.$$name ; \
2208	      $(CHECKER) $(top_builddir)/xmllint result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
2209	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2210	      diff result.$$name result2.$$name` ;\
2211	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2212	      rm result.$$name result2.$$name ; \
2213	  fi ; fi ; done)
2214	@echo "## XML regression tests on memory"
2215	-@(for i in $(srcdir)/test/* ; do \
2216	  name=`basename $$i`; \
2217	  if [ ! -d $$i ] ; then \
2218	  if [ ! -f $(srcdir)/result/$$name ] ; then \
2219	      echo New test file $$name ; \
2220	      $(CHECKER) $(top_builddir)/xmllint --memory $$i > $(srcdir)/result/$$name ; \
2221	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2222	  else \
2223	      log=`$(CHECKER) $(top_builddir)/xmllint --memory $$i 2>&1 > result.$$name ; \
2224	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2225	      diff $(srcdir)/result/$$name result.$$name ; \
2226	      $(CHECKER) $(top_builddir)/xmllint --memory result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
2227	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"`; \
2228	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2229	      diff result.$$name result2.$$name ; \
2230	      rm result.$$name result2.$$name ; \
2231	  fi ; fi ; done)
2232
2233XMLPushtests: xmllint$(EXEEXT)
2234	@(echo > .memdump)
2235	@echo "## XML push regression tests"
2236	-@(for i in $(srcdir)/test/* ; do \
2237	  name=`basename $$i`; \
2238	  if [ ! -d $$i ] ; then \
2239	  if [ ! -f $(srcdir)/result/$$name ] ; then \
2240	      echo New test file $$name ; \
2241	      $(CHECKER) $(top_builddir)/xmllint --push $$i > $(srcdir)/result/$$name ; \
2242	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2243	  else \
2244	      log=`$(CHECKER) $(top_builddir)/xmllint --push $$i 2>&1 > result.$$name ; \
2245	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2246	      diff $(srcdir)/result/$$name result.$$name ; \
2247	      $(CHECKER) $(top_builddir)/xmllint --push result.$$name 2>&1 > result2.$$name | grep -v 'failed to load external entity' ; \
2248	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2249	      diff result.$$name result2.$$name` ; \
2250	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2251	      rm result.$$name result2.$$name ; \
2252	  fi ; fi ; done)
2253
2254NStests : xmllint$(EXEEXT)
2255	@(echo > .memdump)
2256	@echo "## XML Namespaces regression tests"
2257	-@(for i in $(srcdir)/test/namespaces/* ; do \
2258	  name=`basename $$i`; \
2259	  if [ ! -d $$i ] ; then \
2260	  if [ ! -f $(srcdir)/result/namespaces/$$name ] ; then \
2261	      echo New test file $$name ; \
2262	      $(CHECKER) $(top_builddir)/xmllint $$i \
2263	         2> $(srcdir)/result/namespaces/$$name.err \
2264		 > $(srcdir)/result/namespaces/$$name ; \
2265	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2266	  else \
2267	      log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \
2268	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2269	      diff $(srcdir)/result/namespaces/$$name result.$$name ; \
2270	      diff $(srcdir)/result/namespaces/$$name.err error.$$name`; \
2271	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2272	      rm result.$$name error.$$name ; \
2273	  fi ; fi ; done)
2274
2275IDtests : xmllint$(EXEEXT) testXPath$(EXEEXT)
2276	@(echo > .memdump)
2277	@echo "## xml:id regression tests"
2278	-@(for i in $(srcdir)/test/xmlid/id_*.xml ; do \
2279	  name=`basename $$i`; \
2280	  if [ ! -d $$i ] ; then \
2281	  if [ ! -f $(srcdir)/result/xmlid/$$name ] ; then \
2282	      echo New test file $$name ; \
2283	      $(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" \
2284	         2> $(srcdir)/result/xmlid/$$name.err \
2285		 > $(srcdir)/result/xmlid/$$name ; \
2286	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2287	  else \
2288	      log=`$(CHECKER) $(top_builddir)/testXPath -i $$i "id('bar')" 2> error.$$name > result.$$name ; \
2289	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2290	      diff $(srcdir)/result/xmlid/$$name result.$$name ; \
2291	      diff $(srcdir)/result/xmlid/$$name.err error.$$name` ; \
2292	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2293	      rm result.$$name error.$$name ; \
2294	  fi ; fi ; done)
2295
2296Errtests : xmllint$(EXEEXT)
2297	@(echo > .memdump)
2298	@echo "## Error cases regression tests"
2299	-@(for i in $(srcdir)/test/errors/*.xml ; do \
2300	  name=`basename $$i`; \
2301	  if [ ! -d $$i ] ; then \
2302	  if [ ! -f $(srcdir)/result/errors/$$name ] ; then \
2303	      echo New test file $$name ; \
2304	      $(CHECKER) $(top_builddir)/xmllint $$i \
2305	         2> $(srcdir)/result/errors/$$name.err \
2306		 > $(srcdir)/result/errors/$$name ; \
2307	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2308	  else \
2309	      log=`$(CHECKER) $(top_builddir)/xmllint $$i 2> error.$$name > result.$$name ; \
2310	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2311	      diff $(srcdir)/result/errors/$$name result.$$name ; \
2312	      diff $(srcdir)/result/errors/$$name.err error.$$name` ; \
2313	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2314	      rm result.$$name error.$$name ; \
2315	  fi ; fi ; done)
2316	@echo "## Error cases regression tests (old 1.0)"
2317	-@(for i in $(srcdir)/test/errors10/*.xml ; do \
2318	  name=`basename $$i`; \
2319	  if [ ! -d $$i ] ; then \
2320	  if [ ! -f $(srcdir)/result/errors10/$$name ] ; then \
2321	      echo New test file $$name ; \
2322	      $(CHECKER) $(top_builddir)/xmllint --oldxml10 $$i \
2323	         2> $(srcdir)/result/errors10/$$name.err \
2324		 > $(srcdir)/result/errors10/$$name ; \
2325	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2326	  else \
2327	      log=`$(CHECKER) $(top_builddir)/xmllint --oldxml10 $$i 2> error.$$name > result.$$name ; \
2328	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2329	      diff $(srcdir)/result/errors10/$$name result.$$name ; \
2330	      diff $(srcdir)/result/errors10/$$name.err error.$$name` ; \
2331	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2332	      rm result.$$name error.$$name ; \
2333	  fi ; fi ; done)
2334	@echo "## Error cases stream regression tests"
2335	-@(for i in $(srcdir)/test/errors/*.xml ; do \
2336	  name=`basename $$i`; \
2337	  if [ ! -d $$i ] ; then \
2338	  if [ ! -f $(srcdir)/result/errors/$$name.str ] ; then \
2339	      echo New test file $$name ; \
2340	      $(CHECKER) $(top_builddir)/xmllint --stream $$i \
2341	         2> $(srcdir)/result/errors/$$name.str \
2342		 > /dev/null ; \
2343	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2344	  else \
2345	      log=`$(CHECKER) $(top_builddir)/xmllint --stream $$i 2> error.$$name > /dev/null ; \
2346	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2347	      diff $(srcdir)/result/errors/$$name.str error.$$name` ; \
2348	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2349	      rm error.$$name ; \
2350	  fi ; fi ; done)
2351
2352Docbtests : xmllint$(EXEEXT)
2353
2354XMLenttests : xmllint$(EXEEXT)
2355	@(echo > .memdump)
2356	@echo "## XML entity subst regression tests"
2357	-@(for i in $(srcdir)/test/* ; do \
2358	  name=`basename $$i`; \
2359	  if [ ! -d $$i ] ; then \
2360	  if [ ! -f $(srcdir)/result/noent/$$name ] ; then \
2361	      echo New test file $$name ; \
2362	      $(CHECKER) $(top_builddir)/xmllint --noent $$i > $(srcdir)/result/noent/$$name ; \
2363	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2364	  else \
2365	      log=`$(CHECKER) $(top_builddir)/xmllint --noent $$i 2>&1 > result.$$name ; \
2366	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2367	      diff $(srcdir)/result/noent/$$name result.$$name ; \
2368	      $(CHECKER) $(top_builddir)/xmllint --noent result.$$name 2>&1 > result2.$$name ; \
2369	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2370	      diff result.$$name result2.$$name` ; \
2371	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2372	      rm result.$$name result2.$$name ; \
2373	  fi ; fi ; done)
2374
2375URItests : testURI$(EXEEXT)
2376	@(echo > .memdump)
2377	@echo "## URI module regression tests"
2378	-@(for i in $(srcdir)/test/URI/*.data ; do \
2379	  name=`basename $$i`; \
2380	  if [ ! -d $$i ] ; then \
2381	  if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
2382	      echo New test file $$name ; \
2383	      $(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i > $(srcdir)/result/URI/$$name ; \
2384	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2385	  else \
2386	      log=`$(CHECKER) $(top_builddir)/testURI -base 'http://foo.com/path/to/index.html?orig#help' < $$i 2>&1 > result.$$name ; \
2387	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2388	      diff $(srcdir)/result/URI/$$name result.$$name` ; \
2389	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2390	      rm result.$$name ; \
2391	  fi ; fi ; done)
2392	-@(for i in $(srcdir)/test/URI/*.uri ; do \
2393	  name=`basename $$i`; \
2394	  if [ ! -d $$i ] ; then \
2395	  if [ ! -f $(srcdir)/result/URI/$$name ] ; then \
2396	      echo New test file $$name ; \
2397	      $(CHECKER) $(top_builddir)/testURI < $$i > $(srcdir)/result/URI/$$name ; \
2398	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2399	  else \
2400	      log=`$(CHECKER) $(top_builddir)/testURI < $$i 2>&1 > result.$$name ; \
2401	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2402	      diff $(srcdir)/result/URI/$$name result.$$name` ; \
2403	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2404	      rm result.$$name ; \
2405	  fi ; fi ; done)
2406
2407XPathtests : testXPath$(EXEEXT)
2408	@(echo > .memdump)
2409	@echo "## XPath regression tests"
2410	-@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
2411	  then echo Skipping debug not compiled in ; exit 0 ; fi ; \
2412	  for i in $(srcdir)/test/XPath/expr/* ; do \
2413	  name=`basename $$i`; \
2414	  if [ ! -d $$i ] ; then \
2415	  if [ ! -f $(srcdir)/result/XPath/expr/$$name ] ; then \
2416	      echo New test file $$name ; \
2417	      $(CHECKER) $(top_builddir)/testXPath -f --expr $$i > $(srcdir)/result/XPath/expr/$$name 2> /dev/null ; \
2418	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2419	  else \
2420	      log=`$(CHECKER) $(top_builddir)/testXPath -f --expr $$i > result.$$name 2> /dev/null ; \
2421	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2422	      diff $(srcdir)/result/XPath/expr/$$name result.$$name` ; \
2423	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2424	      rm result.$$name ; \
2425	  fi ; fi ; done ; \
2426	  for i in $(srcdir)/test/XPath/docs/* ; do \
2427	  if [ ! -d $$i ] ; then \
2428	  doc=`basename $$i`; \
2429	  for j in $(srcdir)/test/XPath/tests/$$doc* ; do \
2430	  if [ ! -f $$j ] ; then continue ; fi ; \
2431	  name=`basename $$j`; \
2432	  if [ ! -d $$j ] ; then \
2433	  if [ ! -f $(srcdir)/result/XPath/tests/$$name ] ; then \
2434	      echo New test file $$name ; \
2435	      $(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > $(srcdir)/result/XPath/tests/$$name ; \
2436	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2437	  else \
2438	      log=`$(CHECKER) $(top_builddir)/testXPath -f -i $$i $$j > result.$$name ; \
2439	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2440	      diff $(srcdir)/result/XPath/tests/$$name result.$$name` ; \
2441	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2442	      rm result.$$name ; \
2443	  fi ; fi ; done ; fi ; done)
2444
2445XPtrtests : testXPath$(EXEEXT)
2446	@(echo > .memdump)
2447	@echo "## XPointer regression tests"
2448	-@(if [ "`$(top_builddir)/testXPath | grep 'support not compiled in'`" != "" ] ; \
2449	  then echo Skipping debug not compiled in ; exit 0 ; fi ; \
2450	  for i in $(srcdir)/test/XPath/docs/* ; do \
2451	  if [ ! -d $$i ] ; then \
2452	  doc=`basename $$i`; \
2453	  for j in $(srcdir)/test/XPath/xptr/$$doc* ; do \
2454	  if [ ! -f $$j ] ; then continue ; fi ; \
2455	  name=`basename $$j`; \
2456	  if [ ! -d $$j ] ; then \
2457	  if [ ! -f $(srcdir)/result/XPath/xptr/$$name ] ; then \
2458	      echo New test file $$name ; \
2459	      $(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j > $(srcdir)/result/XPath/xptr/$$name 2> /dev/null ; \
2460	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2461	  else \
2462	      log=`$(CHECKER) $(top_builddir)/testXPath -xptr -f -i $$i $$j > result.$$name 2> /dev/null ; \
2463	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2464	      diff $(srcdir)/result/XPath/xptr/$$name result.$$name` ; \
2465	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2466	      rm result.$$name ; \
2467	  fi ; fi ; done ; fi ; done)
2468
2469XIncludetests : xmllint$(EXEEXT)
2470	@(echo > .memdump)
2471	@echo "## XInclude regression tests"
2472	-@(for i in $(srcdir)/test/XInclude/docs/* ; do \
2473	  name=`basename $$i`; \
2474	  if [ ! -d $$i ] ; then \
2475	  if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
2476	      echo New test file $$name ; \
2477	      $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \
2478	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2479	  else \
2480	      log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude $$i > result.$$name 2>error.$$name ; \
2481	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2482	      diff $(srcdir)/result/XInclude/$$name result.$$name ; \
2483	      diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \
2484	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2485	      rm result.$$name error.$$name ; \
2486	  fi ; fi ; done)
2487	-@(for i in $(srcdir)/test/XInclude/docs/* ; do \
2488	  name=`basename $$i`; \
2489	  if [ ! -d $$i ] ; then \
2490	  if [ ! -f $(srcdir)/result/XInclude/$$name ] ; then \
2491	      echo New test file $$name ; \
2492	      $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > $(srcdir)/result/XInclude/$$name 2> $(srcdir)/result/XInclude/$$name.err ; \
2493	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2494	  else \
2495	      log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode $$i > result.$$name 2>error.$$name ; \
2496	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2497	      diff $(srcdir)/result/XInclude/$$name result.$$name ; \
2498	      diff $(srcdir)/result/XInclude/$$name.err error.$$name` ; \
2499	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2500	      rm result.$$name error.$$name ; \
2501	  fi ; fi ; done)
2502	@(echo > .memdump)
2503	@echo "## XInclude xmlReader regression tests"
2504	-@(for i in $(srcdir)/test/XInclude/docs/* ; do \
2505	  name=`basename $$i`; \
2506	  if [ ! -d $$i ] ; then \
2507	  if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \
2508	      echo New test file $$name ; \
2509	      $(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \
2510	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2511	  else \
2512	      log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \
2513	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2514	      diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \
2515	      diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \
2516	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2517	      rm result.$$name error.$$name ; \
2518	  fi ; fi ; done)
2519	-@(for i in $(srcdir)/test/XInclude/docs/* ; do \
2520	  name=`basename $$i`; \
2521	  if [ ! -d $$i ] ; then \
2522	  if [ ! -f $(srcdir)/result/XInclude/$$name.rdr ] ; then \
2523	      echo New test file $$name ; \
2524	      $(CHECKER) $(top_builddir)/xmllint --nowarning --noxincludenode --stream --debug $$i > $(srcdir)/result/XInclude/$$name.rdr ; \
2525	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2526	  else \
2527	      log=`$(CHECKER) $(top_builddir)/xmllint --nowarning --xinclude --stream --debug $$i > result.$$name 2>error.$$name ; \
2528	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2529	      diff $(srcdir)/result/XInclude/$$name.err error.$$name ; \
2530	      diff $(srcdir)/result/XInclude/$$name.rdr result.$$name` ; \
2531	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2532	      rm result.$$name error.$$name ; \
2533	  fi ; fi ; done)
2534
2535Scripttests : xmllint$(EXEEXT)
2536	@(echo > .memdump)
2537	@echo "## Scripts regression tests"
2538	@echo "## Some of the base computations may be different if srcdir != ."
2539	-@(for i in $(srcdir)/test/scripts/*.script ; do \
2540	  name=`basename $$i .script`; \
2541	  xml=$(srcdir)/test/scripts/`basename $$i .script`.xml; \
2542	  if [ -f $$xml ] ; then \
2543	  if [ ! -f $(srcdir)/result/scripts/$$name ] ; then \
2544	      echo New test file $$name ; \
2545	      $(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > $(srcdir)/result/scripts/$$name 2> $(srcdir)/result/scripts/$$name.err ; \
2546	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2547	  else \
2548	      log=`$(CHECKER) $(top_builddir)/xmllint --shell $$xml < $$i > result.$$name 2> result.$$name.err ; \
2549	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2550	      diff $(srcdir)/result/scripts/$$name result.$$name ; \
2551	      diff $(srcdir)/result/scripts/$$name.err result.$$name.err` ; \
2552	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2553	      rm result.$$name result.$$name.err ; \
2554	  fi ; fi ; done)
2555
2556Catatests : xmlcatalog$(EXEEXT)
2557	@(echo > .memdump)
2558	@echo "## Catalog regression tests"
2559	-@(for i in $(srcdir)/test/catalogs/*.script ; do \
2560	  name=`basename $$i .script`; \
2561	  xml=$(srcdir)/test/catalogs/`basename $$i .script`.xml; \
2562	  if [ -f $$xml ] ; then \
2563	  if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
2564	      echo New test file $$name ; \
2565	      $(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > $(srcdir)/result/catalogs/$$name ; \
2566	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2567	  else \
2568	      log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$xml < $$i 2>&1 > result.$$name ; \
2569	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2570	      diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
2571	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2572	      rm result.$$name ; \
2573	  fi ; fi ; done)
2574	-@(for i in $(srcdir)/test/catalogs/*.script ; do \
2575	  name=`basename $$i .script`; \
2576	  sgml=$(srcdir)/test/catalogs/`basename $$i .script`.sgml; \
2577	  if [ -f $$sgml ] ; then \
2578	  if [ ! -f $(srcdir)/result/catalogs/$$name ] ; then \
2579	      echo New test file $$name ; \
2580	      $(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > $(srcdir)/result/catalogs/$$name ; \
2581	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2582	  else \
2583	      log=`$(CHECKER) $(top_builddir)/xmlcatalog --shell $$sgml < $$i > result.$$name ; \
2584	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2585	      diff $(srcdir)/result/catalogs/$$name result.$$name` ; \
2586	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2587	      rm result.$$name ; \
2588	  fi ; fi ; done)
2589	@echo "## Add and del operations on XML Catalogs"
2590	-@($(CHECKER) $(top_builddir)/xmlcatalog --create --noout $(srcdir)/result/catalogs/mycatalog; \
2591	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2592	$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid sysid $(srcdir)/result/catalogs/mycatalog; \
2593	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2594	$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid2 sysid2 $(srcdir)/result/catalogs/mycatalog; \
2595	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2596	$(CHECKER) $(top_builddir)/xmlcatalog --noout --add public Pubid3 sysid3 $(srcdir)/result/catalogs/mycatalog; \
2597	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2598	diff result/catalogs/mycatalog.full $(srcdir)/result/catalogs/mycatalog; \
2599	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2600	$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid $(srcdir)/result/catalogs/mycatalog; \
2601	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2602	$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid3 $(srcdir)/result/catalogs/mycatalog; \
2603	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2604	$(CHECKER) $(top_builddir)/xmlcatalog --noout --del sysid2 $(srcdir)/result/catalogs/mycatalog; \
2605	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2606	diff result/catalogs/mycatalog.empty $(srcdir)/result/catalogs/mycatalog; \
2607	grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2608	rm -f $(srcdir)/result/catalogs/mycatalog)
2609
2610SVGtests : xmllint$(EXEEXT)
2611	@echo "## SVG parsing regression tests"
2612	-@(for i in $(srcdir)/test/SVG/* ; do \
2613	  name=`basename $$i`; \
2614	  if [ ! -d $$i ] ; then \
2615	  if [ ! -f $(srcdir)/result/SVG/$$name ] ; then \
2616	      echo New test file $$name ; \
2617	      $(CHECKER) $(top_builddir)/xmllint $$i > $(srcdir)/result/SVG/$$name ; \
2618	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2619	  else \
2620	      echo Testing $$name ; \
2621	      $(CHECKER) $(top_builddir)/xmllint $$i > result.$$name ; \
2622	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2623	      diff $(srcdir)/result/SVG/$$name result.$$name ; \
2624	      $(CHECKER) $(top_builddir)/xmllint result.$$name > result2.$$name ; \
2625	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2626	      diff result.$$name result2.$$name ; \
2627	      rm result.$$name result2.$$name ; \
2628	  fi ; fi ; done)
2629
2630Threadtests : testThreads$(EXEEXT)
2631	@echo "## Threaded regression tests"
2632	-@($(CHECKER) $(top_builddir)/testThreads ; \
2633	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"; \
2634	   exit 0)
2635
2636Readertests : xmllint$(EXEEXT)
2637	@(echo > .memdump)
2638	@echo "## Reader regression tests"
2639	-@(for i in $(srcdir)/test/* ; do \
2640	  name=`basename $$i`; \
2641	  if [ ! -d $$i ] ; then \
2642	  if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
2643	      echo New test file $$name ; \
2644	      $(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
2645	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2646	  else \
2647	      log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
2648	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2649	      diff $(srcdir)/result/$$name.rdr result.$$name` ; \
2650	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2651	      rm result.$$name ; \
2652	  fi ; fi ; done)
2653	@echo "## Reader on memory regression tests"
2654	-@(for i in $(srcdir)/test/* ; do \
2655	  name=`basename $$i`; \
2656	  if [ ! -d $$i ] ; then \
2657	  if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
2658	      echo New test file $$name ; \
2659	      $(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
2660	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2661	  else \
2662	      log=`$(CHECKER) $(top_builddir)/xmllint --memory --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
2663	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2664	      diff $(srcdir)/result/$$name.rdr result.$$name` ; \
2665	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2666	      rm result.$$name ; \
2667	  fi ; fi ; done)
2668	@(echo > .memdump)
2669	@echo "## Walker regression tests"
2670	-@(for i in $(srcdir)/test/* ; do \
2671	  name=`basename $$i`; \
2672	  if [ ! -d $$i ] ; then \
2673	  if [ ! -f $(srcdir)/result/$$name.rdr ] ; then \
2674	      echo New test file $$name ; \
2675	      $(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > $(srcdir)/result/$$name.rdr 2>/dev/null ; \
2676	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2677	  else \
2678	      log=`$(CHECKER) $(top_builddir)/xmllint --nonet --debug --walker $$i > result.$$name 2>/dev/null ; \
2679	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2680	      diff $(srcdir)/result/$$name.rdr result.$$name` ; \
2681	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2682	      rm result.$$name ; \
2683	  fi ; fi ; done)
2684	@echo "## Reader entities substitution regression tests"
2685	-@(for i in $(srcdir)/test/* ; do \
2686	  name=`basename $$i`; \
2687	  if [ ! -d $$i ] ; then \
2688	  if [ ! -f $(srcdir)/result/$$name.rde ] ; then \
2689	      echo New test file $$name ; \
2690	      $(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > $(srcdir)/result/$$name.rde 2>/dev/null ; \
2691	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2692	  else \
2693	      log=`$(CHECKER) $(top_builddir)/xmllint --noent --nonet --debug --stream $$i > result.$$name 2>/dev/null ; \
2694	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2695	      diff $(srcdir)/result/$$name.rde result.$$name` ; \
2696	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2697	      rm result.$$name ; \
2698	  fi ; fi ; done)
2699
2700SAXtests : testSAX$(EXEEXT)
2701	@(echo > .memdump)
2702	@echo "## SAX1 callbacks regression tests"
2703	-@(for i in $(srcdir)/test/* ; do \
2704	  name=`basename $$i`; \
2705	  if [ ! -d $$i ] ; then \
2706	  if [ ! -f $(srcdir)/result/$$name.sax ] ; then \
2707	      echo New test file $$name ; \
2708	      $(CHECKER) $(top_builddir)/testSAX $$i > $(srcdir)/result/$$name.sax 2> /dev/null ; \
2709	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2710	  else \
2711	      log=`$(CHECKER) $(top_builddir)/testSAX $$i > result.$$name 2> /dev/null ; \
2712	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2713	      diff $(srcdir)/result/$$name.sax result.$$name` ; \
2714	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2715	      rm result.$$name ; \
2716	  fi ; fi ; done)
2717	@echo "## SAX2 callbacks regression tests"
2718	-@(for i in $(srcdir)/test/* ; do \
2719	  name=`basename $$i`; \
2720	  if [ ! -d $$i ] ; then \
2721	  if [ ! -f $(srcdir)/result/$$name.sax2 ] ; then \
2722	      echo New test file $$name ; \
2723	      $(CHECKER) $(top_builddir)/testSAX --sax2 $$i > $(srcdir)/result/$$name.sax2 2> /dev/null ; \
2724	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2725	  else \
2726	      log=`$(CHECKER) $(top_builddir)/testSAX --sax2 $$i > result.$$name 2> /dev/null ; \
2727	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2728	      diff $(srcdir)/result/$$name.sax2 result.$$name` ; \
2729	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2730	      rm result.$$name ; \
2731	  fi ; fi ; done)
2732	@echo "## SAX2 callbacks regression tests with entity substitution"
2733	-@(for i in $(srcdir)/test/* ; do \
2734	  name=`basename $$i`; \
2735	  if [ ! -d $$i ] ; then \
2736	  if [ ! -f $(srcdir)/result/noent/$$name.sax2 ] ; then \
2737	      echo New test file $$name ; \
2738	      $(CHECKER) $(top_builddir)/testSAX --sax2 --noent $$i > $(srcdir)/result/noent/$$name.sax2 2> /dev/null ; \
2739	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2740	  else \
2741	      log=`$(CHECKER) $(top_builddir)/testSAX --sax2 --noent $$i > result.$$name 2> /dev/null ; \
2742	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2743	      diff $(srcdir)/result/noent/$$name.sax2 result.$$name` ; \
2744	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2745	      rm result.$$name ; \
2746	  fi ; fi ; done)
2747
2748Validtests : xmllint$(EXEEXT)
2749	@(echo > .memdump)
2750	@echo "## Valid documents regression tests"
2751	-@(for i in $(srcdir)/test/VCM/* ; do \
2752	  name=`basename $$i`; \
2753	  if [ ! -d $$i ] ; then \
2754	      log=`$(CHECKER) $(top_builddir)/xmllint --valid --noout --nowarning $$i ; \
2755	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0"`;\
2756	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2757	  fi ; done ; exit 0)
2758	@echo "## Validity checking regression tests"
2759	-@(for i in $(srcdir)/test/VC/* ; do \
2760	  name=`basename $$i`; \
2761	  if [ ! -d $$i ] ; then \
2762	  if [ ! -f $(srcdir)/result/VC/$$name ] ; then \
2763	      echo New test file $$name ; \
2764	      $(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> $(srcdir)/result/VC/$$name ; \
2765	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2766	  else \
2767	      log=`$(CHECKER) $(top_builddir)/xmllint --noout --valid $$i 2> result.$$name ; \
2768	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2769	      diff $(srcdir)/result/VC/$$name result.$$name` ; \
2770	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2771	      rm result.$$name ; \
2772	  fi ; fi ; done)
2773	@echo "## General documents valid regression tests"
2774	-@(for i in $(srcdir)/test/valid/* ; do \
2775	  name=`basename $$i`; \
2776	  if [ ! -d $$i ] ; then \
2777	  if [ ! -f $(srcdir)/result/valid/$$name ] ; then \
2778	      echo New test file $$name ; \
2779	      $(CHECKER) $(top_builddir)/xmllint --valid $$i > $(srcdir)/result/valid/$$name 2>$(srcdir)/result/valid/$$name.err ; \
2780	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2781	  else \
2782	      log=`$(CHECKER) $(top_builddir)/xmllint --valid $$i > result.$$name 2>error.$$name ; \
2783	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2784	      diff $(srcdir)/result/valid/$$name result.$$name ; \
2785	      diff $(srcdir)/result/valid/$$name.err error.$$name` ; \
2786	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2787	      rm result.$$name error.$$name ; \
2788	  fi ; fi ; done)
2789
2790Regexptests: testRegexp$(EXEEXT)
2791	@(echo > .memdump)
2792	@echo "## Regexp regression tests"
2793	-@(for i in $(srcdir)/test/regexp/* ; do \
2794	  name=`basename $$i`; \
2795	  if [ ! -d $$i ] ; then \
2796	  if [ ! -f $(srcdir)/result/regexp/$$name ] ; then \
2797	      echo New test file $$name ; \
2798	      $(CHECKER) $(top_builddir)/testRegexp -i $$i > $(srcdir)/result/regexp/$$name 2> $(srcdir)/result/regexp/$$name.err ; \
2799	      if [ ! -s "$(srcdir)/result/regexp/$$name.err" ] ; then rm $(srcdir)/result/regexp/$$name.err; fi ; \
2800	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2801	  else \
2802	      log=`$(CHECKER) $(top_builddir)/testRegexp -i $$i > result.$$name 2> error.$$name ; \
2803	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2804	      diff $(srcdir)/result/regexp/$$name result.$$name ; \
2805	      if [ -s "$(srcdir)/result/regexp/$$name.err" -o -s "error.$$name" ] ; then diff $(srcdir)/result/regexp/$$name.err error.$$name ; fi` ; \
2806	      if [ -n "$$log" ] ; then echo $$name result ; echo $$log ; fi ; \
2807	      rm result.$$name error.$$name ; \
2808	  fi ; fi ; done)
2809
2810# Disabled for now
2811Exptests: testRegexp$(EXEEXT)
2812	@echo "## Formal expressions regression tests"
2813	-@(for i in $(srcdir)/test/expr/* ; do \
2814	  name=`basename $$i`; \
2815	  if [ ! -d $$i ] ; then \
2816	  if [ ! -f $(srcdir)/result/expr/$$name ] ; then \
2817	      echo New test file $$name ; \
2818	      $(CHECKER) $(top_builddir)/testRegexp --expr -i $$i > $(srcdir)/result/expr/$$name; \
2819	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2820	  else \
2821	      log=`$(CHECKER) $(top_builddir)/testRegexp --expr -i $$i 2>&1 > result.$$name ; \
2822	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2823	      diff $(srcdir)/result/expr/$$name result.$$name` ; \
2824	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2825	      rm result.$$name ; \
2826	  fi ; fi ; done)
2827
2828Automatatests: testAutomata$(EXEEXT)
2829	@(echo > .memdump)
2830	@echo "## Automata regression tests"
2831	-@(for i in $(srcdir)/test/automata/* ; do \
2832	  name=`basename $$i`; \
2833	  if [ ! -d $$i ] ; then \
2834	  if [ ! -f $(srcdir)/result/automata/$$name ] ; then \
2835	      echo New test file $$name ; \
2836	      $(CHECKER) $(top_builddir)/testAutomata $$i > $(srcdir)/result/automata/$$name; \
2837	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2838	  else \
2839	      log=`$(CHECKER) $(top_builddir)/testAutomata $$i 2>&1 > result.$$name ; \
2840	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2841	      diff $(srcdir)/result/automata/$$name result.$$name` ; \
2842	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
2843	      rm result.$$name ; \
2844	  fi ; fi ; done)
2845
2846dba100000.xml: dbgenattr.pl
2847	@echo "## generating dba100000.xml"
2848	@($(PERL) $(top_srcdir)/dbgenattr.pl 100000 > dba100000.xml)
2849
2850Timingtests: xmllint$(EXEEXT) dba100000.xml
2851	@echo "## Timing tests to try to detect performance"
2852	@echo "## as well a memory usage breakage when streaming"
2853	@echo "## 1/ using the file interface"
2854	@echo "## 2/ using the memory interface"
2855	@echo "## 3/ repeated DOM parsing"
2856	@echo "## 4/ repeated DOM validation"
2857	-@($(top_builddir)/xmllint --stream --timing dba100000.xml; \
2858	   MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2859	   if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2860	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2861	   exit 0)
2862	-@($(top_builddir)/xmllint --stream --timing --memory dba100000.xml; \
2863	   MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2864	   if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2865	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2866	   exit 0)
2867	-@($(top_builddir)/xmllint --noout --timing --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
2868	   MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2869	   if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2870	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2871	   exit 0)
2872
2873VTimingtests: xmllint$(EXEEXT)
2874	-@($(top_builddir)/xmllint --noout --timing --valid --repeat $(srcdir)/test/valid/REC-xml-19980210.xml; \
2875	   MEM=`cat .memdump | grep "MEMORY ALLOCATED" | awk '{ print $$7}'`;\
2876	   if [ "$$MEM" != "" ] ; then echo Using $$MEM bytes ; fi ; \
2877	   grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2878	   exit 0)
2879
2880C14Ntests : testC14N$(EXEEXT)
2881	@echo "## C14N and XPath regression tests"
2882	-@(for m in with-comments without-comments 1-1-without-comments exc-without-comments ; do \
2883	    for i in $(srcdir)/test/c14n/$$m/*.xml ; do  \
2884		if [ ! -d $$i ] ; then \
2885		    name=`basename $$i .xml`; \
2886		    cmdline="$(CHECKER) $(top_builddir)/testC14N --$$m $$i"; \
2887		    if [ -f $(srcdir)/test/c14n/$$m/$$name.xpath ] ; then \
2888			cmdline="$$cmdline $(srcdir)/test/c14n/$$m/$$name.xpath"; \
2889			if [ -f $(srcdir)/test/c14n/$$m/$$name.ns ] ; then \
2890			    cmdline="$$cmdline '`cat $(srcdir)/test/c14n/$$m/$$name.ns`'"; \
2891			fi; \
2892		    fi; \
2893		    $$cmdline > $(srcdir)/test/c14n/test.tmp 2> /dev/null; \
2894		    if [ $$? -eq 0 ]; then \
2895			diff  $(srcdir)/result/c14n/$$m/$$name $(srcdir)/test/c14n/test.tmp; \
2896			if [ $$? -ne 0 ]; then \
2897			    echo "Test $$m/$$name failed"; \
2898			    cat $(srcdir)/test/c14n/test.tmp; \
2899			fi; \
2900		    else \
2901			echo "C14N failed"; \
2902		    fi; \
2903		    grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2904		fi; \
2905		rm -f $(srcdir)/test/c14n/test.tmp; \
2906	    done; \
2907	done)
2908
2909Schemastests: testSchemas$(EXEEXT)
2910	@(echo > .memdump)
2911	@echo "## Schemas regression tests"
2912	-@(for i in $(srcdir)/test/schemas/*_*.xsd ; do \
2913	  name=`basename $$i | sed 's+_.*++'`; \
2914	  sno=`basename $$i | sed 's+.*_\(.*\).xsd+\1+'`; \
2915	  for j in $(srcdir)/test/schemas/"$$name"_*.xml ; do \
2916	      if [ -f $$j ] ; then \
2917	      xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2918	      if [ ! -f $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" ]; \
2919	      then \
2920		  echo New test file "$$name"_"$$sno"_"$$xno" ; \
2921		  $(CHECKER) $(top_builddir)/testSchemas $$i $$j \
2922		    > $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \
2923		    2> $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err; \
2924	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2925	      else \
2926	          log=`$(CHECKER) $(top_builddir)/testSchemas $$i $$j \
2927		    > res.$$name 2> err.$$name;\
2928	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2929	          diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno" \
2930		       res.$$name;\
2931	          diff $(srcdir)/result/schemas/"$$name"_"$$sno"_"$$xno".err \
2932		       err.$$name;\
2933		  grep Unimplemented err.$$name`; \
2934	          if [ -n "$$log" ] ; then echo "$$name"_"$$sno"_"$$xno" result ; echo "$$log" ; fi ; \
2935	          rm res.$$name err.$$name ; \
2936	       fi ; fi ;\
2937	  done; done)
2938
2939Relaxtests: xmllint$(EXEEXT)
2940	@(echo > .memdump)
2941	@echo "## Relax-NG regression tests"
2942	-@(for i in $(srcdir)/test/relaxng/*.rng ; do \
2943	  name=`basename $$i | sed 's+\.rng++'`; \
2944	  if [ ! -f $(srcdir)/result/relaxng/"$$name"_valid ] ; then \
2945	      echo New schemas $$name ; \
2946	      $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \
2947		      > $(srcdir)/result/relaxng/"$$name"_valid \
2948		      2> $(srcdir)/result/relaxng/"$$name"_err; \
2949	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2950	  else \
2951	      log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $(srcdir)/test/relaxng/tutorA.rng $$i \
2952	      > res.$$name 2> err.$$name;\
2953	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2954	      diff $(srcdir)/result/relaxng/"$$name"_valid \
2955		   res.$$name;\
2956	      diff $(srcdir)/result/relaxng/"$$name"_err \
2957		   err.$$name | grep -v "error detected at";\
2958	      grep Unimplemented err.$$name`; \
2959	      if [ -n "$$log" ] ; then echo schemas $$name result ; echo "$$log" ; fi ; \
2960	      rm res.$$name err.$$name ; \
2961	  fi; \
2962	  for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
2963	      if [ -f $$j ] ; then \
2964	      xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2965	      if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
2966	      then \
2967		  echo New test file "$$name"_"$$xno" ; \
2968		  $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
2969		    > $(srcdir)/result/relaxng/"$$name"_"$$xno" \
2970		    2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \
2971	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2972	      else \
2973	          log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
2974		    > res.$$name 2> err.$$name;\
2975	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2976	          diff $(srcdir)/result/relaxng/"$$name"_"$$xno" \
2977		       res.$$name;\
2978	          diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \
2979		       err.$$name | grep -v "error detected at";\
2980		  grep Unimplemented err.$$name`; \
2981		  if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo "$$log" ; fi ; \
2982	          rm res.$$name err.$$name ; \
2983	       fi ; fi ; \
2984	  done; done)
2985	@echo "## Relax-NG streaming regression tests"
2986	-@(for i in $(srcdir)/test/relaxng/*.rng ; do \
2987	  name=`basename $$i | sed 's+\.rng++'`; \
2988	  for j in $(srcdir)/test/relaxng/"$$name"_*.xml ; do \
2989	      if [ -f $$j ] ; then \
2990	      xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
2991	      if [ ! -f $(srcdir)/result/relaxng/"$$name"_"$$xno" ]; \
2992	      then \
2993		  echo New test file "$$name"_"$$xno" ; \
2994		  $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --relaxng $$i $$j \
2995		    > $(srcdir)/result/relaxng/"$$name"_"$$xno" \
2996		    2> $(srcdir)/result/relaxng/"$$name"_"$$xno".err; \
2997	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
2998	      else \
2999	          log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --noout --stream --relaxng $$i $$j \
3000		    > res.$$name 2> err.$$name;\
3001	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
3002	          diff $(srcdir)/result/relaxng/"$$name"_"$$xno" res.$$name;\
3003		  if [ "$$name" != "tutor10_1" -a "$$name" != "tutor10_2" -a "$$name" != "tutor3_2" -a "$$name" != "307377" -a "$$name" != "tutor8_2" ] ; then \
3004		      diff $(srcdir)/result/relaxng/"$$name"_"$$xno".err \
3005			   err.$$name | grep -v "error detected at";\
3006		  fi ; grep Unimplemented err.$$name`; \
3007	          if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo "$$log" ; fi ; \
3008	          rm res.$$name err.$$name ; \
3009	       fi ; fi ; \
3010	  done; done)
3011
3012Schematrontests: xmllint$(EXEEXT)
3013	@(echo > .memdump)
3014	@echo "## Schematron regression tests"
3015	-@(for i in $(srcdir)/test/schematron/*.sct ; do \
3016	  name=`basename $$i | sed 's+\.sct++'`; \
3017	  for j in $(srcdir)/test/schematron/"$$name"_*.xml ; do \
3018	      if [ -f $$j ] ; then \
3019	      xno=`basename $$j | sed 's+.*_\(.*\).xml+\1+'`; \
3020	      if [ ! -f $(srcdir)/result/schematron/"$$name"_"$$xno" ]; \
3021	      then \
3022		  echo New test file "$$name"_"$$xno" ; \
3023		  $(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
3024		    > $(srcdir)/result/schematron/"$$name"_"$$xno" \
3025		    2> $(srcdir)/result/schematron/"$$name"_"$$xno".err; \
3026	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
3027	      else \
3028	          log=`$(CHECKER) $(top_builddir)/xmllint$(EXEEXT) --schematron $$i $$j \
3029		    > res.$$name 2> err.$$name;\
3030	          grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
3031	          diff $(srcdir)/result/schematron/"$$name"_"$$xno" \
3032		       res.$$name;\
3033	          diff $(srcdir)/result/schematron/"$$name"_"$$xno".err \
3034		       err.$$name | grep -v "error detected at";\
3035		  grep Unimplemented err.$$name`; \
3036		  if [ -n "$$log" ] ; then echo "$$name"_"$$xno" result ; echo "$$log" ; fi ; \
3037	          rm res.$$name err.$$name ; \
3038	       fi ; fi ; \
3039	  done; done)
3040
3041RelaxNGPythonTests:
3042	@(if [ -x $(PYTHON) ] ; then \
3043	    PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH ; \
3044	    export PYTHONPATH; \
3045	    LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
3046	    export LD_LIBRARY_PATH; \
3047	    echo "## Relax-NG Python based test suite 1" ; \
3048	    $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite.py ; \
3049	    echo "## Relax-NG Python based test suite 2" ; \
3050	    $(CHECKER) $(PYTHON) $(srcdir)/check-relaxng-test-suite2.py ; \
3051	  fi)
3052
3053SchemasPythonTests:
3054	@(if [ -x $(PYTHON) ] ; then \
3055	    PYTHONPATH=$(top_builddir)/python:$(top_builddir)/python/.libs:$$PYTHONPATH; \
3056	    export PYTHONPATH; \
3057	    LD_LIBRARY_PATH="$(top_builddir)/.libs:$$LD_LIBRARY_PATH" ; \
3058	    export LD_LIBRARY_PATH; \
3059	    echo "## XML Schemas datatypes Python based test suite" ; \
3060	    echo "## It is normal to see 11 errors reported" ; \
3061	    $(CHECKER) $(PYTHON) $(srcdir)/check-xsddata-test-suite.py ; \
3062	  fi)
3063	@(if [ -x $(PYTHON) -a -d xstc ] ; then cd xstc ; $(MAKE) CHECKER="$(CHECKER)" pytests ; fi)
3064
3065Patterntests: xmllint$(EXEEXT)
3066	@(echo > .memdump)
3067	@echo "## Pattern regression tests"
3068	-@(for i in $(srcdir)/test/pattern/*.pat ; do \
3069	  name=`basename $$i .pat`; \
3070	  if [ -f $(srcdir)/test/pattern/$$name.xml ] ; then \
3071	  if [ ! -f $(srcdir)/result/pattern/$$name ] ; then \
3072	      rm -f result.$$name ; \
3073	      echo New test file $$name ; \
3074	      for pat in `cat $$i` ; do \
3075	      $(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/pattern/$$name.xml >> $(srcdir)/result/pattern/$$name ; \
3076	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
3077	      done ;\
3078	  else \
3079	      rm -f result.$$name ; \
3080	      lst=`cat $$i` ; \
3081	      log=`for pat in $$lst ; do $(CHECKER) $(top_builddir)/xmllint --walker --pattern $$pat $(srcdir)/test/pattern/$$name.xml 2>&1 >> result.$$name ; \
3082	      grep "MORY ALLO" .memdump  | grep -v "MEMORY ALLOCATED : 0";\
3083	      done ;\
3084	      diff $(srcdir)/result/pattern/$$name result.$$name` ; \
3085	      if [ -n "$$log" ] ; then echo $$name result ; echo "$$log" ; fi ; \
3086	      rm result.$$name ; \
3087	  fi ; fi ; done ;)
3088
3089ModuleTests: testModule$(EXEEXT) testdso.la
3090	@echo "## Module tests"
3091	@(./testModule$(EXEEXT))
3092
3093cleanup:
3094	-@(find . -name .\#\* -exec rm {} \;)
3095	-@(find . -name \*.gcda -o -name \*.gcno -exec rm -f {} \;)
3096	-@(find . -name \*.orig -o -name \*.rej -o -name \*.old -exec rm -f {} \;)
3097
3098dist-hook: cleanup libxml2.spec
3099	-cp libxml2.spec $(distdir)
3100	(cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn --exclude .git win32 macos os400 vms VxWorks bakefile test result) | (cd $(distdir); tar xf -)
3101
3102dist-source: distdir
3103	$(AMTAR) -chof - --exclude Tests --exclude test --exclude result $(distdir) | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-sources+"`.tar.gz
3104
3105dist-test: distdir
3106	(mkdir -p $(distdir))
3107	(cd $(srcdir) ; tar -cf - --exclude CVS --exclude .svn --exclude .git xstc/Tests) | (cd $(distdir); tar xf -)
3108	tar -cf - $(distdir)/test $(distdir)/result $(distdir)/xstc/Tests  $(distdir)/Makefile.tests $(distdir)/README $(distdir)/README.tests $(distdir)/AUTHORS $(distdir)/testapi.c $(distdir)/runtest.c $(distdir)/runsuite.c | GZIP=$(GZIP_ENV) gzip -c >`echo "$(distdir)" | sed "s+libxml2+libxml2-tests+"`.tar.gz
3109	@(rm -rf $(distdir)/xstc/Test)
3110
3111cleantar:
3112	@(rm -f libxml*.tar.gz COPYING.LIB)
3113
3114rpm: cleanup cleantar
3115	@(unset CDPATH ; $(MAKE) dist-source dist && rpmbuild -ta $(distdir).tar.gz)
3116
3117xml2Conf.sh: xml2Conf.sh.in Makefile
3118	sed -e 's?\@XML_LIBDIR\@?$(XML_LIBDIR)?g' \
3119	    -e 's?\@XML_INCLUDEDIR\@?$(XML_INCLUDEDIR)?g' \
3120	    -e 's?\@VERSION\@?$(VERSION)?g' \
3121	    -e 's?\@XML_LIBS\@?$(XML_LIBS)?g' \
3122	    -e 's?\@XML_PRIVATE_LIBS\@?$(XML_PRIVATE_LIBS)?g' \
3123	       < $(srcdir)/xml2Conf.sh.in > xml2Conf.tmp \
3124	&& mv xml2Conf.tmp xml2Conf.sh
3125
3126install-data-local:
3127	$(MKDIR_P) $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
3128	-$(INSTALL) -m 0644 $(srcdir)/Copyright $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
3129	$(MKDIR_P) $(DESTDIR)$(EXAMPLES_DIR)
3130	-$(INSTALL) -m 0644 $(srcdir)/xmllint.c $(DESTDIR)$(EXAMPLES_DIR)
3131	-$(INSTALL) -m 0644 $(srcdir)/testSAX.c $(DESTDIR)$(EXAMPLES_DIR)
3132	-$(INSTALL) -m 0644 $(srcdir)/testHTML.c $(DESTDIR)$(EXAMPLES_DIR)
3133	-$(INSTALL) -m 0644 $(srcdir)/testXPath.c $(DESTDIR)$(EXAMPLES_DIR)
3134
3135uninstall-local:
3136	rm -f $(DESTDIR)$(EXAMPLES_DIR)/testXPath.c
3137	rm -f $(DESTDIR)$(EXAMPLES_DIR)/testHTML.c
3138	rm -f $(DESTDIR)$(EXAMPLES_DIR)/testSAX.c
3139	rm -f $(DESTDIR)$(EXAMPLES_DIR)/xmllint.c
3140	rm -rf $(DESTDIR)$(EXAMPLES_DIR)
3141	rm -f $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)/Copyright
3142	rm -rf $(DESTDIR)$(BASE_DIR)/$(DOC_MODULE)
3143
3144tst: tst.c
3145	$(CC) $(CFLAGS) -Iinclude -o tst tst.c .libs/libxml2.a -lpthread -lm -lz -llzma
3146
3147sparse: clean
3148	$(MAKE) CC=cgcc
3149
3150cov: clean-cov
3151	if [ "`echo $(LDFLAGS) | grep coverage`" = "" ] ; then \
3152	    echo not configured with coverage; exit 1 ; fi
3153	if [ ! -x $(LCOV) -o ! -x $(GENHTML) ] ; then \
3154	    echo Need $(LCOV) and $(GENHTML) excecutables; exit 1 ; fi
3155	-@($(MAKE) check)
3156	-@(./runsuite$(EXEEXT))
3157	mkdir $(top_builddir)/coverage
3158	$(LCOV) -c -o $(top_builddir)/coverage/libxml2.info.tmp -d $(top_srcdir)
3159	$(LCOV) -r $(top_builddir)/coverage/libxml2.info.tmp -o $(top_builddir)/coverage/libxml2.info *usr*
3160	rm $(top_builddir)/coverage/libxml2.info.tmp
3161	$(GENHTML) -s -t "libxml2" -o $(top_builddir)/coverage --legend $(top_builddir)/coverage/libxml2.info
3162	echo "Coverage report is in $(top_builddir)/coverage/index.html"
3163
3164clean-cov:
3165	rm -rf $(top_builddir)/coverage
3166
3167# Tell versions [3.59,3.63) of GNU make to not export all variables.
3168# Otherwise a system limit (for SysV at least) may be exceeded.
3169.NOEXPORT:
3170