title: C++11 in CDT with autotools
body: <p>I've tried enabling C++11 in CDT by adding <code>AX_CXX_COMPILE_STDCXX_11</code> to my configure.ac file. I've tried moving it around in the file, this seems like the only place where it doesn't error out. I've even tried adding the optional <code>noext</code> flag, but that gives me a syntax error.</p>
  
  <p>The code I'm trying to compile is:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;memory&gt;
  
  void
  print_hello(){
      std::unique_ptr&lt;char[]&gt; cha;
      std::cout &lt;&lt; "11?" &lt;&lt; std::endl;
  }
  </code></pre>
  
  <p>Where unique_ptr is of course a c++11 feature.</p>
  
  <p>This is how my configure.ac looks:</p>
  
  <pre><code>dnl Process this file with autoconf to produce a configure script.
  
  AC_PREREQ(2.64)
  AC_INIT(fooProj, 1.0)
  
  AC_CANONICAL_SYSTEM
  
  AC_PROG_CXX
  AC_LANG([C++])
  AX_CXX_COMPILE_STDCXX_11
  
  dnl Initialize automake
  AM_INIT_AUTOMAKE
  
  dnl this allows us specify individual liking flags for each target
  AM_PROG_CC_C_O 
  
  dnl Initialize Libtool
  LT_INIT
  
  dnl Check if Libtool is present
  dnl Libtool is used for building share libraries 
  AC_PROG_LIBTOOL
  
  AC_CONFIG_FILES(Makefile
                  exampleProgram/Makefile
                  libTestLib/Makefile
                  include/Makefile)
  AC_OUTPUT
  </code></pre>