How to use C++11 features with Autoconf?

lvella picture lvella · Nov 2, 2011 · Viewed 14.8k times · Source

I have a project configured via Autoconf, and I want to start using C++11 features in this project. How to have the "-std=gnu++0x" switch always enabled and support for the features checked while configuring?

Answer

Geoffroy picture Geoffroy · Jan 20, 2013

Have you checked ax_cxx_compile_stdcxx_11 ?

I think this is exactly what you want.

There is a big macro library on gnu website.