diff options
author | Gert Wollny <[email protected]> | 2017-10-18 17:05:25 +0200 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2017-11-08 16:03:34 +0000 |
commit | 09ad2576ece2f813e5be9dda60fdb0b9598d0d23 (patch) | |
tree | 99d19fba1cb98bf7e057817e7942d87cd590ab45 /src/gallium | |
parent | 6dd56fafe2d6d55c8804a27de3b52fb53a4c98b0 (diff) |
configure: check for -std=c++11 support and enable st/mesa test accordingly
Add a check that tests whether the c++ compiler supports c++11, either
by default, by adding the compiler flag -std=c++11, or by adding a
compiler flag that the user has specified via the environment variable
CXX11_CXXFLAGS.
The test only does a very shallow check of c++11 support, i.e. it tests
whether the define __cplusplus >= 201103L to confirm language support
by the compiler, and it checks whether the header <tuple> is available
to test the availability of the c++11 standard library.
A make file conditional HAVE_STD_CXX11 is provided that is used in this
patch to enable the test in st/mesa if C++11 support is available.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102665
Acked-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions