2018-07-28 02:37:28 -06:00
|
|
|
# =============================================================================
|
|
|
|
# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_11.html
|
|
|
|
# =============================================================================
|
2015-10-04 07:39:02 -06:00
|
|
|
#
|
|
|
|
# SYNOPSIS
|
|
|
|
#
|
2018-07-28 02:37:28 -06:00
|
|
|
# AX_CXX_COMPILE_STDCXX_11([ext|noext], [mandatory|optional])
|
2015-10-04 07:39:02 -06:00
|
|
|
#
|
|
|
|
# DESCRIPTION
|
|
|
|
#
|
|
|
|
# Check for baseline language coverage in the compiler for the C++11
|
2018-07-28 02:37:28 -06:00
|
|
|
# standard; if necessary, add switches to CXX and CXXCPP to enable
|
|
|
|
# support.
|
2015-10-04 07:39:02 -06:00
|
|
|
#
|
2018-07-28 02:37:28 -06:00
|
|
|
# This macro is a convenience alias for calling the AX_CXX_COMPILE_STDCXX
|
|
|
|
# macro with the version set to C++11. The two optional arguments are
|
|
|
|
# forwarded literally as the second and third argument respectively.
|
|
|
|
# Please see the documentation for the AX_CXX_COMPILE_STDCXX macro for
|
|
|
|
# more information. If you want to use this macro, you also need to
|
|
|
|
# download the ax_cxx_compile_stdcxx.m4 file.
|
2015-10-04 07:39:02 -06:00
|
|
|
#
|
|
|
|
# LICENSE
|
|
|
|
#
|
|
|
|
# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
|
|
|
|
# Copyright (c) 2012 Zack Weinberg <zackw@panix.com>
|
|
|
|
# Copyright (c) 2013 Roy Stogner <roystgnr@ices.utexas.edu>
|
|
|
|
# Copyright (c) 2014, 2015 Google Inc.; contributed by Alexey Sokolov <sokolov@google.com>
|
|
|
|
# Copyright (c) 2015 Paul Norman <penorman@mac.com>
|
2018-07-28 02:37:28 -06:00
|
|
|
# Copyright (c) 2015 Moritz Klammler <moritz@klammler.eu>
|
2015-10-04 07:39:02 -06:00
|
|
|
#
|
|
|
|
# Copying and distribution of this file, with or without modification, are
|
|
|
|
# permitted in any medium without royalty provided the copyright notice
|
|
|
|
# and this notice are preserved. This file is offered as-is, without any
|
|
|
|
# warranty.
|
|
|
|
|
2018-07-28 02:37:28 -06:00
|
|
|
#serial 18
|
2015-10-04 07:39:02 -06:00
|
|
|
|
2018-07-28 02:37:28 -06:00
|
|
|
AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX])
|
|
|
|
AC_DEFUN([AX_CXX_COMPILE_STDCXX_11], [AX_CXX_COMPILE_STDCXX([11], [$1], [$2])])
|