diff -urp doc/Makefile.in doc/Makefile.in
--- doc/Makefile.in	2008-01-14 17:47:35.000000000 -0500
+++ doc/Makefile.in	2008-01-22 19:59:02.000000000 -0500
@@ -569,8 +569,9 @@ install-data-local:
 	  done; \
 	  echo '-- Installing $(srcdir)/html/index.sgml' ; \
 	  $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \
-	  which gtkdoc-rebase >/dev/null && \
+	  if test `which gtkdoc-rebase` != ""; then \
 	    gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \
+	  fi \
 	fi
 
 uninstall-local:
diff -urp gtk-doc.make gtk-doc.make
--- gtk-doc.make	2008-01-14 17:47:27.000000000 -0500
+++ gtk-doc.make	2008-01-22 19:53:07.000000000 -0500
@@ -139,8 +139,9 @@ install-data-local:
 	  done; \
 	  echo '-- Installing $(srcdir)/html/index.sgml' ; \
 	  $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \
-	  which gtkdoc-rebase >/dev/null && \
+	  if test `which gtkdoc-rebase` != ""; then \
 	    gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \
+	  fi \
 	fi
 	
 
