[Copied from [ https://llvm.org/bugs/show_bug.cgi?id=26405 | https://llvm.org/bugs/show_bug.cgi?id=26405 ]
cmake build support on Haiku is lagging a bit.
This patch updates cmake build scripts to build on Haiku. It updates config.guess to a newer version which recognizes Haiku x86_64.
It should apply directly to trunk, please consider reviewing.
This seems to be the *only* change that is needed in this file. We can't take the GPLv3 version of config.guess, but we can take this change into our old version.