I downloaded 1.40.0 and started to build on my mac, but "./bootstrap.sh --help" gave me back "command not found" in Terminal.
Updated workaround: The permissions for all the .sh files were incorrect, so I had to "find . -name '*.sh' -exec chmod 766 {} \;" before it would build successfully