Minor fix for an uninitialized var
Place docs in @docdir@
Build a shared library by default
Minor whitespace cleanup in automake files
Slightly cleaner way to handle docdir subdirectories

This avoids overriding ${docdir} as given at the command line so it
won't be inconsistent in a few Makefiles.