We are unable to update config.guess to a newer version since its
license is different than the license we use for llvm. Therefore, any
new host triple detection code needs to be done using CMake. Rather than have
some triple detection in CMake and some in config.guess, I think it
would be better to move all triple detection code into CMake.
This patch replaces config.guess with some logic that uses the host
compiler to determine the host's triple.
In the case where the CMake detection fails, the user can still manually
specify the host triple using -DLLVM_HOST_TRIPLE.
When using gcc or clang as the host compiler, this patch should make
host triple detection more accurate, since config.guess was returning
the wrong value on some systems.
Remove trailing . for the help message to be consistent with other options.