Use mktemp to create temporary directory
Add --disable-install-doc option