Fix #1810 by having autoconf/configure check for presence of rst2html