--- Makefile.in.orig	Tue Sep 20 23:14:47 2011
+++ Makefile.in	Wed Sep 21 00:24:45 2011
@@ -2869,7 +2869,7 @@ g-ir-annotation-tool: tools/g-ir-annotation-tool.in _g
 	@chmod a+x $@
 
 g-ir-doc-tool: tools/g-ir-doc-tool.in _giscanner.la Makefile
-	$(AM_V_GEN) sed -e s,@libdir\@,$(libdir), -e s,@PYTHON\@,$(PYTHON), $< > $@.tmp && mv $@.tmp $@
+	$(AM_V_GEN) sed -e s,@libdir\@,$(libdir), -e s,@PYTHON\@,$(PYTHON), -e s,@datarootdir\@,$(datarootdir), $< > $@.tmp && mv $@.tmp $@
 	@chmod a+x $@
 
 check-local:
