Move the autotools check on settings docs to a shell script and call it from meson too. (cherry picked from commit 81bc218e6d)
81bc218e6d