update from Tycho Hilhorst, should fix #523378 Daniel

* vms/build_libxml.com: update from Tycho Hilhorst, should fix #523378
Daniel

svn path=/trunk/; revision=3710
diff --git a/ChangeLog b/ChangeLog
index 7f36971..480cfec 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Mar 19 16:41:52 CET 2008 Daniel Veillard <daniel@veillard.com>
+
+	* vms/build_libxml.com: update from Tycho Hilhorst, should fix #523378
+
 Tue Mar 18 09:23:05 CET 2008 Daniel Veillard <daniel@veillard.com>
 
 	* threads.c: check some malloc returns with Ashwin patch, add
diff --git a/vms/build_libxml.com b/vms/build_libxml.com
index ed5107b..816e64d 100755
--- a/vms/build_libxml.com
+++ b/vms/build_libxml.com
@@ -6,16 +6,20 @@
 $!
 $!   	"DEBUG"  - build everything in debug
 $!
-$! This procedure creates an object library XML_LIBDIR:LIBXML.OLB directory.  
+$! This procedure creates an object library XML_LIBDIR:LIBXML.OLB directory.
 $! After the library is built, you can link LIBXML routines into
-$! your code with the command  
+$! your code with the command
 $!
 $!	$ LINK your_modules,XML_LIBDIR:LIBXML.OLB/LIBRARY
-$! 
+$!
 $! Change History
 $! --------------
 $! Command file author : John A Fotheringham (jaf@jafsoft.com)
-$! Update history      : 13 October 2003	Craig Berry (craigberry@mac.com)
+$! Update history      : 19 March 2008	Tycho Hilhorst
+$!                       - added module schematron.c (prevent xmllint errors)
+$!                       - added /DEF and /INCLUDE options to cc_opts to tell
+$!                         config.h is available, and where to find it
+$!                     : 13 October 2003	Craig Berry (craigberry@mac.com)
 $!			 more new module additions
 $!                     : 25 April 2003		Craig Berry (craigberry@mac.com)
 $!			 added xmlreader.c and relaxng.c to source list
@@ -27,7 +31,7 @@
 $!
 $!- compile command.  If p1="nowarn" suppress the expected warning types
 $!
-$   cc_opts = "/NAMES=(SHORTENED)/FLOAT=IEEE/IEEE_MODE=DENORM_RESULTS"
+$   cc_opts = "/DEF=HAVE_CONFIG_H/NAMES=(SHORTENED)/FLOAT=IEEE/IEEE_MODE=DENORM_RESULTS/INCLUDE=xml_srcdir"
 $!
 $   if p1.eqs."DEBUG" .or. p2.eqs."DEBUG"
 $   then
@@ -50,6 +54,7 @@
 $   sources = sources + " xmlregexp.c xmlschemas.c xmlschemastypes.c xmlunicode.c"
 $   sources = sources + " triostr.c trio.c xmlreader.c relaxng.c dict.c SAX2.c"
 $   sources = sources + " xmlwriter.c legacy.c chvalid.c pattern.c xmlsave.c"
+$   sources = sources + " schematron.c"
 $!
 $!- list of main modules to compile and link.  Compare this list to the
 $!  definition of bin_PROGRAMS in MAKEFILE.IN
@@ -98,8 +103,8 @@
 $!
 $   copy/log config.vms xml_srcdir:config.h
 $!
-$   if f$trnlnm("libxml").eqs."" 
-$   then 
+$   if f$trnlnm("libxml").eqs.""
+$   then
 $     globfile = f$search("[-...]globals.h")
 $     if globfile.eqs.""
 $     then
@@ -116,16 +121,16 @@
 $!
 $ exit_status = 1
 $ saved_default = f$environment("default")
-$ on error then goto ERROR_OUT 
-$ on control_y then goto ERROR_OUT 
+$ on error then goto ERROR_OUT
+$ on control_y then goto ERROR_OUT
 $!
-$!- move to the source directory and create any necessary subdirs and the 
+$!- move to the source directory and create any necessary subdirs and the
 $!  object library
 $!
 $ set default xml_srcdir
 $ if f$search("DEBUG.DIR").eqs."" then create/dir [.DEBUG]
-$ if f$search("XML_LIBDIR:LIBXML.OLB").eqs."" 
-$ then 
+$ if f$search("XML_LIBDIR:LIBXML.OLB").eqs.""
+$ then
 $   write sys$output "Creating new object library XML_LIBDIR:LIBXML.OLB"
 $   library/create XML_LIBDIR:LIBXML.OLB
 $ endif
@@ -151,8 +156,8 @@
 $   if next_source.nes."" .and. next_source.nes." "
 $   then
 $!
-$     on error then goto ERROR_OUT 
-$     on control_y then goto ERROR_OUT 
+$     on error then goto ERROR_OUT
+$     on control_y then goto ERROR_OUT
 $     call build 'next_source'
 $     s_no = s_no + 1
 $     goto source_loop
@@ -164,7 +169,7 @@
 $! these programs are built as ordinary modules into XML_LIBDIR:LIBXML.OLB.  Here they
 $! are built a second time with /DEFINE=(STANDALONE) in which case a main()
 $! is also compiled into the module
-$ 
+$
 $ lib_command	= ""
 $ link_command	= "LINK"
 $!
@@ -199,8 +204,8 @@
 $   if next_prog.nes."" .and. next_prog.nes." "
 $   then
 $!
-$     on error then goto ERROR_OUT 
-$     on control_y then goto ERROR_OUT 
+$     on error then goto ERROR_OUT
+$     on control_y then goto ERROR_OUT
 $     call build 'next_prog'.c
 $     p_no = p_no + 1
 $     goto prog_loop
@@ -210,9 +215,9 @@
 $!- Th-th-th-th-th-that's all folks! ------------------------------------------
 $!
 $ goto exit_here ! move this line to avoid parts of this command file
-$ exit_here:	  
+$ exit_here:
 $!
-$ exit       
+$ exit
 $ goto exit_out
 $!
 $!
@@ -246,7 +251,7 @@
 $   if lib_command.nes.""  then lib_command 'object_file'
 $!
 $!- link module if command defined
-$   if link_command.nes."" 
+$   if link_command.nes.""
 $   then
 $	opts = ""
 $	if debug then opts = "/DEBUG"