I use AX_CXX_COMPILE_STDCXX_0X (can be found in the autoconf archive) to test the capabilities of the C ++ 11 compiler. It correctly determines that -std=c++0x is required, but does not add it to CXXFLAGS . I looked at the source of the macro and it checks, but then restores the previous flags.
What should I do to set CXXFLAGS ability to compile a C ++ 11 source?
Just adding -std=c++0x to AM_CXXFLAGS not a good solution because I would like to take responsibility for the compiler compiling in C ++ 11 from autoconf developers, not mine.
c ++ c ++ 11 autotools autoconf
KAction Aug 10 2018-12-21T00: 00Z
source share