~drizzle-trunk/drizzle/development

236.1.10 by Monty Taylor
Changed C++ check to actually check for CXX98 instead (since the plain C++ check can't be trusted)
1
dnl Copyright © 2008 Benjamin Kosnik <bkoz@redhat.com>
2
3
dnl 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.
4
5
6
AC_DEFUN([AC_CXX_HEADER_STDCXX_98], [
7
  AC_CACHE_CHECK(for ISO C++ 98 include files,
8
  ac_cv_cxx_stdcxx_98,
9
  [AC_LANG_SAVE
10
  AC_LANG_CPLUSPLUS
11
  AC_TRY_COMPILE([
12
    #include <cassert>
13
    #include <cctype>
14
    #include <cerrno>
15
    #include <cfloat>
16
    #include <ciso646>
17
    #include <climits>
18
    #include <clocale>
19
    #include <cmath>
20
    #include <csetjmp>
21
    #include <csignal>
22
    #include <cstdarg>
23
    #include <cstddef>
24
    #include <cstdio>
25
    #include <cstdlib>
26
    #include <cstring>
27
    #include <ctime>
28
29
    #include <algorithm>
30
    #include <bitset>
31
    #include <complex>
32
    #include <deque>
33
    #include <exception>
34
    #include <fstream>
35
    #include <functional>
36
    #include <iomanip>
37
    #include <ios>
38
    #include <iosfwd>
39
    #include <iostream>
40
    #include <istream>
41
    #include <iterator>
42
    #include <limits>
43
    #include <list>
44
    #include <locale>
45
    #include <map>
46
    #include <memory>
47
    #include <new>
48
    #include <numeric>
49
    #include <ostream>
50
    #include <queue>
51
    #include <set>
52
    #include <sstream>
53
    #include <stack>
54
    #include <stdexcept>
55
    #include <streambuf>
56
    #include <string>
57
    #include <typeinfo>
58
    #include <utility>
59
    #include <valarray>
60
    #include <vector>
61
  ],,
62
  ac_cv_cxx_stdcxx_98=yes, ac_cv_cxx_stdcxx_98=no)
63
  AC_LANG_RESTORE
64
  ])
65
  if test "$ac_cv_cxx_stdcxx_98" = yes; then
66
    AC_DEFINE(STDCXX_98_HEADERS,,[Define if ISO C++ 1998 header files are present. ])
67
  fi
68
])