[patch #8950] Fix AX_CXX_COMPILE_STDCXX for "noext" mode

Neil Conway <[email protected]> Thu, 17 Mar 2016 18:43:49 +0000
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
URL:
  <http://savannah.gnu.org/patch/?8950>

                 Summary: Fix AX_CXX_COMPILE_STDCXX for "noext" mode
                 Project: GNU Autoconf Archive
            Submitted by: neilconway
            Submitted on: Thu 17 Mar 2016 06:43:48 PM GMT
                Priority: 5 - Normal
                  Status: None
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

AX_CXX_COMPILE_STDCXX first checks to see if the compiler can build the test
program without any special flags. If the build succeeds, CXX is not modified.
This is incorrect if:

(a) the user requests "noext" mode
(b) the compiler defaults to supporting GNU extensions

(b) is true of some compilers: notably GCC6 defaults to "-std=g++14". The
current behavior is broken even if "noext" isn't specified if the user wants
to enable C++11 features but _not_ C++14 ones.



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Thu 17 Mar 2016 06:43:48 PM GMT  Name:
cxx_compile_stdcxx_noext_gcc6.patch  Size: 2kB   By: neilconway

<http://savannah.gnu.org/patch/download.php?file_id=36673>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?8950>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/