configure: Auto-detect and enable C++11 support if available
authorBradley T. Hughes <bradley.hughes@nokia.com>
Tue, 29 May 2012 05:10:09 +0000 (07:10 +0200)
committerQt by Nokia <qt-info@nokia.com>
Tue, 5 Jun 2012 10:30:13 +0000 (12:30 +0200)
commitbf84d1a1fe1550fb7cb86d686bf0138c1c41e87b
tree83ca6ac60c54ae23592ac1dc96efa39e94f945ba
parenta6d6719c26a6d8e43250d05e2b587dbcc3e59366
configure: Auto-detect and enable C++11 support if available

Enabling support for C++11 adds CONFIG+=c++11 to the Qt build. Projects
using Qt can check for C++11 support using contains(QT_CONFIG, c++11) in
their .pr[iof] files.

The QMAKE_CXXFLAGS_CXX11 and QMAKE_LFLAGS_CXX11 qmake varibles contain
any arguments the compiler needs to enable C++11. CONFIG+=c++11 adds
these arguments to the build.

Support for clang, g++, and the Intel C++ Compiler for Linux are
included in this commit.

Change-Id: Id77f86d7ad4d5c740b890446a40b105879a0d327
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
config.tests/unix/c++11/c++11.cpp [new file with mode: 0644]
config.tests/unix/c++11/c++11.pro [new file with mode: 0644]
configure
dist/changes-5.0.0
mkspecs/common/clang.conf
mkspecs/common/g++-base.conf
mkspecs/features/c++11.prf [new file with mode: 0644]
mkspecs/features/qt_module_config.prf
mkspecs/features/qt_plugin.prf
mkspecs/linux-icc/qmake.conf