Let std::thread check pass even without pthreads
authorTom Tromey <tromey@adacore.com>
Thu, 31 Mar 2022 14:26:12 +0000 (08:26 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 14 Apr 2022 15:28:56 +0000 (09:28 -0600)
commitc560a5fbae3b6e0b7c2119e6fc276941517377fa
treee07887af60fda3b3e30d5b491501fc28e41fe24d
parent11d7dd3357997616427e22969ea8a929f5db59c9
Let std::thread check pass even without pthreads

Currently, the configure check for std::thread relies on pthreads
existing.  However, this means that if std::thread is implemented for
a non-pthreads host, then the check will yield the wrong answer.  This
happened in AdaCore internal builds.  Here, we have this GCC patch:

    https://gcc.gnu.org/legacy-ml/gcc-patches/2019-06/msg01840.html

... which adds mingw support to GCC's gthreads implementation, and
also to std::thread.

This configure change fixes this problem and enables threading for
gdb.
gdb/configure
gdbserver/configure
gdbsupport/common.m4
gdbsupport/configure