* configure.ac: Check for XML_StopParser.

* xml-support.c (gdb_xml_body_text): Check for an error.
	(gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
	(gdb_xml_end_element_wrapper): Likewise.
	* config.in, configure: Regenerated.
This commit is contained in:
Daniel Jacobowitz
2007-01-09 14:58:57 +00:00
parent 10a2343ede
commit ca4ca11edd
5 changed files with 129 additions and 0 deletions

View File

@@ -325,6 +325,11 @@ AC_LIB_HAVE_LINKFLAGS([expat], [], [#include "expat.h"],
[XML_Parser p = XML_ParserCreate (0);])
if test "$HAVE_LIBEXPAT" != yes; then
AC_MSG_WARN([expat is missing or unusable; some features may be disabled.])
else
save_LIBS=$LIBS
LIBS="$LIBS $LIBEXPAT"
AC_CHECK_FUNCS(XML_StopParser)
LIBS=$save_LIBS
fi
# ------------------------- #