The AX macro tests for a few C++11 features (not just support for the command-line flag) but it isn't comprehensive. Still, this looks like good progress. AFAIK, Xcode 5.0 would be needed for full C++11 support.
Do you know which is the earliest OS X version that will run Xcode 4.6?
AV
On 25 August 2015 at 08:46, su_v <suv@...2204...> wrote:
On 2015-08-25 09:16 (+0200), su_v wrote:
On 2015-05-02 02:04 (+0200), su_v wrote:
On 2015-05-02 01:39 (+0200), Alex Valavanis wrote:
My test branch has an autotools test for basic C++11 compatibility (no new . Before I start adding any new features, please could some of the OS X or legacy support testers have a go at running the configure script on that branch and let me know how it goes? I suspect we'll need much more fine-grained feature tests if we're hoping to support older compilers
Branch is at
lp:~valavanisalex/inkscape/cpp11-port http://code.launchpad.net/~valavanisalex/inkscape/cpp11-port
Mac OS X 10.7.5, Xcode 4.3.2:
- i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
checking whether llvm-g++-4.2 supports C++11 features by default... no checking whether llvm-g++-4.2 supports C++11 features with -std=gnu++11... no checking whether llvm-g++-4.2 supports C++11 features with -std=gnu++0x... no checking whether llvm-g++-4.2 supports C++11 features with -std=c++11... no checking whether llvm-g++-4.2 supports C++11 features with -std=c++0x... no configure: error: *** A compiler with support for C++11 language features is required.
- Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn)
checking whether /usr/bin/clang++ supports C++11 features by default... no checking whether /usr/bin/clang++ supports C++11 features with -std=gnu++11... no checking whether /usr/bin/clang++ supports C++11 features with -std=gnu++0x... no checking whether /usr/bin/clang++ supports C++11 features with -std=c++11... no checking whether /usr/bin/clang++ supports C++11 features with -std=c++0x... no configure: error: *** A compiler with support for C++11 language features is required.
After upgrading to Xcode 4.6.3 (latest Xcode release for OS X 10.7.5):
- $ clang --version Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Default configure output ($CXX is /usr/bin/clang++):
checking whether /usr/bin/clang++ supports C++11 features by default... no checking whether /usr/bin/clang++ supports C++11 features with -std=gnu++11... yes
If configure is run with "-std=c++11 -stdlib=libstdc++" added to CXXFLAGS:
checking whether /usr/bin/clang++ supports C++11 features by default... yes
It appears that this specific AX macro detects C++11 support with the newer clang version shipped with Xcode 4.6.3, but I don't know how that would work out if Inkscape actually used them freely (C++ runtime is still libstdc++ from GCC 4.2.1, in either case). Any chance for more fine-grained tests, based on specific C++11 features?
IIUC Cmake 3.3.x runs internal compiler tests for supported c++98 and C++11 features - the C++11-related snippet from ${cmake_build_dir}/CMakeFiles/CMakeOutput.log is attached.
Again - I'm uncertain what to make of this...
Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel