Fix C++11 check when --with-cxx=11 is used
AX_CXX_COMPILE_STDCXX() macro does not define HAVE_CXX11 when C++11 is required (and not optional, as with --enable-cxx11), so the build was broken when --with-cxx=11 was used under OS X as -stdlib=libc++ was not used. Fix this and also leave only a single AX_CXX_COMPILE_STDCXX() check for C++11, this saves us ~1000 lines in configure.
This commit is contained in: