forked from hotosm/underpass
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test GCC standards compliance for C++17
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# ============================================================================= | ||
# https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx_17.html | ||
# ============================================================================= | ||
# | ||
# SYNOPSIS | ||
# | ||
# AX_CXX_COMPILE_STDCXX_17([ext|noext], [mandatory|optional]) | ||
# | ||
# DESCRIPTION | ||
# | ||
# Check for baseline language coverage in the compiler for the C++17 | ||
# standard; if necessary, add switches to CXX and CXXCPP to enable | ||
# support. | ||
# | ||
# This macro is a convenience alias for calling the AX_CXX_COMPILE_STDCXX | ||
# macro with the version set to C++17. 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. | ||
# | ||
# LICENSE | ||
# | ||
# Copyright (c) 2015 Moritz Klammler <[email protected]> | ||
# Copyright (c) 2016 Krzesimir Nowak <[email protected]> | ||
# | ||
# 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. | ||
|
||
#serial 2 | ||
|
||
AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX]) | ||
AC_DEFUN([AX_CXX_COMPILE_STDCXX_17], [AX_CXX_COMPILE_STDCXX([17], [$1], [$2])]) |