[doc] working makefiles, configure
Ensure that autoconf and automake can build the docs, and are distributing it properly. Still one issue: if we detect doxygen and sphinx on configure, we rebuild the docs, even if the user is using a distributed release.