ax_cxx_compile_stdcxx_11.m4 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # ============================================================================
  2. # http://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
  3. # ============================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_CXX_COMPILE_STDCXX_11([ext|noext], [mandatory|optional])
  8. #
  9. # DESCRIPTION
  10. #
  11. # Check for baseline language coverage in the compiler for the C++11
  12. # standard; if necessary, add switches to CXXFLAGS to enable support.
  13. #
  14. # This macro is a convenience alias for calling the AX_CXX_COMPILE_STDCXX
  15. # macro with the version set to C++11. The two optional arguments are
  16. # forwarded literally as the second and third argument respectively.
  17. # Please see the documentation for the AX_CXX_COMPILE_STDCXX macro for
  18. # more information. If you want to use this macro, you also need to
  19. # download the ax_cxx_compile_stdcxx.m4 file.
  20. #
  21. # LICENSE
  22. #
  23. # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
  24. # Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
  25. # Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
  26. # Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
  27. # Copyright (c) 2015 Paul Norman <penorman@mac.com>
  28. # Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
  29. #
  30. # Copying and distribution of this file, with or without modification, are
  31. # permitted in any medium without royalty provided the copyright notice
  32. # and this notice are preserved. This file is offered as-is, without any
  33. # warranty.
  34. #serial 14
  35. include([ax_cxx_compile_stdcxx.m4])
  36. AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [AX_CXX_COMPILE_STDCXX([11], [$1], [$2])])