HP-UX: Enable compilation of CMake with GCC 4.9 or higher
Revise the early rejection checks added by !1105 (merged) to allow compiling on HP-UX with GCC 4.9 or higher.
Port CMake to compile on HP-UX with GCC 4.9 (this includes a partial implementation of libuv on HP-UX).
For now we leave in the early rejection checks because we do not have nightly testing.
After manually removing those locally, with these changes one can bootstrap like this:
$ env CC=gcc CXX=g++ CXXFLAGS="-D_GLIBCXX_USE_C99" ../cmake/bootstrap
The -D_GLIBCXX_USE_C99
definition is needed to make C++11 std::to_string
available in GCC 4.9 on this platform.
Original Description
You need to run bootstrap like this:
$ env CC=gcc CXX=g++ CXXFLAGS="-D_GLIBCXX_USE_C99 -std=gnu++11" CFLAGS=-D_XOPEN_SOURCE_EXTENDED ./bootstrap
I'm not sure the best way to set those -Defines in either bootstrap or elsewhere. bootstrap will evaluate GCC 4.9.3 as having C++14, but it only has partial support so you need to specify specifically C++11.
Issue: #17137