Guard manpage generation by reading CMakeCache.txt and exiting if HAVE_SYSTEM, ENABLE_WALLET, or WITH_ZMQ are off, and provide a short hint so contributors rebuild with the right flags instead of committing incomplete manpages.
Fixes #17506
Override by exporting SKIP_BUILD_OPTIONS_CHECK=1 if you really need a custom-fit manpage (see bitcoin/bitcoin#29457 (comment)).