summaryrefslogtreecommitdiff
path: root/m4/ax_cxx_compile_stdcxx_17.m4
diff options
context:
space:
mode:
authorKrzesimir Nowak <qdlacz@gmail.com>2016-10-20 21:26:59 +0200
committerPeter Simons <simons@cryp.to>2016-12-06 12:09:02 +0100
commit4928cfa78d922e94425bfde8940bd1a6855db525 (patch)
tree7f0cc23397d09cbd7f1355cd1a63d23d59265821 /m4/ax_cxx_compile_stdcxx_17.m4
parent2dc35ceb04e54749e01ddf451d2e053918c51128 (diff)
downloadautoconf-archive-4928cfa78d922e94425bfde8940bd1a6855db525.tar.gz
CXX_COMPILE_STDCXX: Add checks for C++17 compiler
Diffstat (limited to 'm4/ax_cxx_compile_stdcxx_17.m4')
-rw-r--r--m4/ax_cxx_compile_stdcxx_17.m435
1 files changed, 35 insertions, 0 deletions
diff --git a/m4/ax_cxx_compile_stdcxx_17.m4 b/m4/ax_cxx_compile_stdcxx_17.m4
new file mode 100644
index 0000000..20023a6
--- /dev/null
+++ b/m4/ax_cxx_compile_stdcxx_17.m4
@@ -0,0 +1,35 @@
+# ============================================================================
+# http://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 <moritz@klammler.eu>
+# Copyright (c) 2016 Krzesimir Nowak <qdlacz@gmail.com>
+#
+# 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 1
+
+AX_REQUIRE_DEFINED([AX_CXX_COMPILE_STDCXX])
+AC_DEFUN([AX_CXX_COMPILE_STDCXX_17], [AX_CXX_COMPILE_STDCXX([17], [$1], [$2])])