diff options
author | Reuben Thomas <rrt@sc3d.org> | 2009-08-06 22:39:54 +0100 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2009-08-06 22:39:54 +0100 |
commit | 3ea011f8cd6c4c47bdd8e9779169efe2ad05caa6 (patch) | |
tree | b985d888c9fc54bb8bbf7a7b7b6c3178fc58bb11 /m4/ax_cxx_header_stdcxx_98.m4 | |
parent | 2ff01bdb018a1a1bc9e5800314d70e06972192cc (diff) | |
download | autoconf-archive-3ea011f8cd6c4c47bdd8e9779169efe2ad05caa6.tar.gz |
Rename AC_ prefixes to AX_ (only in names of aa macros!).
Diffstat (limited to 'm4/ax_cxx_header_stdcxx_98.m4')
-rw-r--r-- | m4/ax_cxx_header_stdcxx_98.m4 | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/m4/ax_cxx_header_stdcxx_98.m4 b/m4/ax_cxx_header_stdcxx_98.m4 new file mode 100644 index 0000000..ed3eff2 --- /dev/null +++ b/m4/ax_cxx_header_stdcxx_98.m4 @@ -0,0 +1,83 @@ +# =========================================================================== +# http://www.nongnu.org/autoconf-archive/ax_cxx_header_stdcxx_98.html +# =========================================================================== +# +# SYNOPSIS +# +# AX_CXX_HEADER_STDCXX_98 +# +# DESCRIPTION +# +# Check for complete library coverage of the C++1998/2003 standard. +# +# LICENSE +# +# Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.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. + +AC_DEFUN([AX_CXX_HEADER_STDCXX_98], [ + AC_CACHE_CHECK(for ISO C++ 98 include files, + ac_cv_cxx_stdcxx_98, + [AC_LANG_SAVE + AC_LANG_CPLUSPLUS + AC_TRY_COMPILE([ + #include <cassert> + #include <cctype> + #include <cerrno> + #include <cfloat> + #include <ciso646> + #include <climits> + #include <clocale> + #include <cmath> + #include <csetjmp> + #include <csignal> + #include <cstdarg> + #include <cstddef> + #include <cstdio> + #include <cstdlib> + #include <cstring> + #include <ctime> + + #include <algorithm> + #include <bitset> + #include <complex> + #include <deque> + #include <exception> + #include <fstream> + #include <functional> + #include <iomanip> + #include <ios> + #include <iosfwd> + #include <iostream> + #include <istream> + #include <iterator> + #include <limits> + #include <list> + #include <locale> + #include <map> + #include <memory> + #include <new> + #include <numeric> + #include <ostream> + #include <queue> + #include <set> + #include <sstream> + #include <stack> + #include <stdexcept> + #include <streambuf> + #include <string> + #include <typeinfo> + #include <utility> + #include <valarray> + #include <vector> + ],, + ac_cv_cxx_stdcxx_98=yes, ac_cv_cxx_stdcxx_98=no) + AC_LANG_RESTORE + ]) + if test "$ac_cv_cxx_stdcxx_98" = yes; then + AC_DEFINE(STDCXX_98_HEADERS,,[Define if ISO C++ 1998 header files are present. ]) + fi +]) |