making DSO support an option code and documentation cleanups regenerated
* configure.in: making DSO support an option
* xmlmodule.c xmlreader.c include/libxml/xmlmodule.h: code
and documentation cleanups
* elfgcchack.h testapi.c doc/*: regenerated the docs and
checks for new module
* test/valid/REC-xml-19980210.xml: fix a small change introduced
previously
Daniel
diff --git a/configure.in b/configure.in
index 7d475aa..c3654d8 100644
--- a/configure.in
+++ b/configure.in
@@ -144,6 +144,8 @@
[ --with-xpath add the XPATH support (on)])
AC_ARG_WITH(xptr,
[ --with-xptr add the XPointer support (on)])
+AC_ARG_WITH(modules,
+[ --with-modules add the dynamic modules support (on)])
AC_ARG_WITH(zlib,
[ --with-zlib[[=DIR]] use libz in DIR],[
if test "$withval" != "no" -a "$withval" != "yes"; then
@@ -288,6 +290,10 @@
then
with_zlib=no
fi
+ if test "$with_modules" = ""
+ then
+ with_modules=no
+ fi
fi
echo Checking zlib
@@ -633,6 +639,7 @@
MODULE_EXTENSION=".so"
TEST_MODULES=
+if test "$with_modules" != "no" ; then
AC_CHECK_LIB(dld, shl_load, [
WITH_MODULES=1
MODULE_PLATFORM_LIBS="-ldld"
@@ -644,6 +651,7 @@
MODULE_PLATFORM_LIBS="-ldl"
AC_DEFINE([HAVE_DLOPEN], [], [Have dlopen based dso])
])
+fi
if test "${WITH_MODULES}" = "1"; then
TEST_MODULES="ModuleTests"