Update docs to exclude when sphinx-build is not available.
[awesomized/libmemcached] / m4 / ax_cxx_header_stdcxx_98.m4
1 # ===========================================================================
2 # http://www.gnu.org/software/autoconf-archive/ax_cxx_header_stdcxx_98.html
3 # ===========================================================================
4 #
5 # SYNOPSIS
6 #
7 # AX_CXX_HEADER_STDCXX_98
8 #
9 # DESCRIPTION
10 #
11 # Check for complete library coverage of the C++1998/2003 standard.
12 #
13 # LICENSE
14 #
15 # Copyright (c) 2008 Benjamin Kosnik <bkoz@redhat.com>
16 #
17 # Copying and distribution of this file, with or without modification, are
18 # permitted in any medium without royalty provided the copyright notice
19 # and this notice are preserved. This file is offered as-is, without any
20 # warranty.
21
22 #serial 7
23
24 AU_ALIAS([AC_CXX_HEADER_STDCXX_98], [AX_CXX_HEADER_STDCXX_98])
25 AC_DEFUN([AX_CXX_HEADER_STDCXX_98], [
26 AC_CACHE_CHECK([for ISO C++ 98 include files], [ax_cv_cxx_stdcxx_98], [
27 AC_LANG_PUSH([C++])
28 AC_COMPILE_IFELSE([
29 AC_LANG_PROGRAM([
30 #include <cassert>
31 #include <cctype>
32 #include <cerrno>
33 #include <cfloat>
34 #include <ciso646>
35 #include <climits>
36 #include <clocale>
37 #include <cmath>
38 #include <csetjmp>
39 #include <csignal>
40 #include <cstdarg>
41 #include <cstddef>
42 #include <cstdio>
43 #include <cstdlib>
44 #include <cstring>
45 #include <ctime>
46
47 #include <algorithm>
48 #include <bitset>
49 #include <complex>
50 #include <deque>
51 #include <exception>
52 #include <fstream>
53 #include <functional>
54 #include <iomanip>
55 #include <ios>
56 #include <iosfwd>
57 #include <iostream>
58 #include <istream>
59 #include <iterator>
60 #include <limits>
61 #include <list>
62 #include <locale>
63 #include <map>
64 #include <memory>
65 #include <new>
66 #include <numeric>
67 #include <ostream>
68 #include <queue>
69 #include <set>
70 #include <sstream>
71 #include <stack>
72 #include <stdexcept>
73 #include <streambuf>
74 #include <string>
75 #include <typeinfo>
76 #include <utility>
77 #include <valarray>
78 #include <vector>
79 ], [
80 int x
81 ]), [ax_cv_cxx_stdcxx_98=yes ], [ax_cv_cxx_stdcxx_98=no ]
82 ])
83
84 AC_LANG_POP
85
86 ])
87
88 if test "$ax_cv_cxx_stdcxx_98" = yes; then
89 AC_DEFINE(STDCXX_98_HEADERS,,[Define if ISO C++ 1998 header files are present. ])
90 fi
91 ])