should fix #67674 and avoid troubles if xsltproc is not available or fails

* doc/Makefile.am: should fix #67674 and avoid troubles if
  xsltproc is not available or fails in the prefix provided
Daniel
diff --git a/ChangeLog b/ChangeLog
index d6def97..404d694 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Wed Jan  2 14:11:35 CET 2002 Daniel Veillard <daniel@veillard.com>
+
+	* doc/Makefile.am: should fix #67674 and avoid troubles if 
+	  xsltproc is not available or fails in the prefix provided
+
 Tue Jan  1 17:48:56 CET 2002 Daniel Veillard <daniel@veillard.com>
 
 	* xmlmemory.c: one more doc patch from Charlie Bozeman.
diff --git a/doc/Makefile.am b/doc/Makefile.am
index fb3809e..3b5e82d 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -22,8 +22,8 @@
 all: $(PAGES)
 
 $(PAGES): xml.html site.xsl
-	@(if [ -x /usr/bin/xsltproc ] ; then \
-	  /usr/bin/xsltproc --html site.xsl xml.html > index.html ; fi );
+	-@(if [ -x $(bindir)/xsltproc ] ; then \
+	  $(bindir)/xsltproc --html $(top_srcdir)/doc/site.xsl $(top_srcdir)/doc/xml.html > index.html ; fi );
 
 scan:
 	gtkdoc-scan --module=libxml --source-dir=$(DOC_SOURCE_DIR) --ignore-headers="acconfig.h config.h xmlwin32version.h win32config.h trio.h strio.h triop.h"