Index: gtkdoc-mkhtml.in
===================================================================
--- gtkdoc-mkhtml.in	(revision 452)
+++ gtkdoc-mkhtml.in	(working copy)
@@ -2,20 +2,22 @@
 #
 
 usage="\
-Usage: gtkdoc-mkhtml MODULE DRIVER_FILE"
+Usage: gtkdoc-mkhtml MODULE DRIVER_FILE [BACKEND_OPTIONS...]"
 
 if test "x$1" = "x--version"; then
       echo "@VERSION@"
       exit 0
 fi
 
-if test $# -ne 2; then
+if test $# -lt 2; then
       echo "${usage}" 1>&2
       exit 1
 fi
 
 module=$1
-document=$2
+shift
+document=$1
+shift
 
 prefix=@prefix@
 datarootdir=@datarootdir@
@@ -38,11 +40,11 @@
   @XSLTPROC@ --nonet --xinclude \
       --stringparam gtkdoc.bookname $module \
       --stringparam gtkdoc.version "@VERSION@" \
-      $gtkdocdir/gtk-doc.xsl $document || exit $?
+      "$@" $gtkdocdir/gtk-doc.xsl $document || exit $?
 else
   @JADE@ -t @SGML_FORMAT_TYPE@ -w no-idref -d $gtkdocdir/gtk-doc.dsl \
       -V "gtkdoc-bookname=$module" -V "gtkdoc-version=@VERSION@" \
-      $gtkdocdir/gtk-doc.dcl $document || exit $?
+      "$@" $gtkdocdir/gtk-doc.dcl $document || exit $?
 fi
 
 # copy navigation images to html directory ...
