build: fix Meson build with docs=auto

When docs=auto and doxygen isn't found, the build fails with:

    doc/ ERROR: Tried to use not-found external program in "command"

Instead of always enabling docs when docs=auto, only do so when doxygen
is found.
7 jobs for meson-auto-docs in 3 minutes and 1 second (queued for 4 seconds)