pandora_header_stdcxx_98.m4 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. # ===========================================================================
  2. # http://autoconf-archive.cryp.to/ac_cxx_header_stdcxx_98.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AC_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.
  20. AC_DEFUN([AC_CXX_HEADER_STDCXX_98], [
  21. AC_CACHE_CHECK(for ISO C++ 98 include files,
  22. ac_cv_cxx_stdcxx_98,
  23. [AC_LANG_SAVE
  24. AC_LANG_CPLUSPLUS
  25. AC_TRY_COMPILE([
  26. #include <cassert>
  27. #include <cctype>
  28. #include <cerrno>
  29. #include <cfloat>
  30. #include <ciso646>
  31. #include <climits>
  32. #include <clocale>
  33. #include <cmath>
  34. #include <csetjmp>
  35. #include <csignal>
  36. #include <cstdarg>
  37. #include <cstddef>
  38. #include <cstdio>
  39. #include <cstdlib>
  40. #include <cstring>
  41. #include <ctime>
  42. #include <algorithm>
  43. #include <bitset>
  44. #include <complex>
  45. #include <deque>
  46. #include <exception>
  47. #include <fstream>
  48. #include <functional>
  49. #include <iomanip>
  50. #include <ios>
  51. #include <iosfwd>
  52. #include <iostream>
  53. #include <istream>
  54. #include <iterator>
  55. #include <limits>
  56. #include <list>
  57. #include <locale>
  58. #include <map>
  59. #include <memory>
  60. #include <new>
  61. #include <numeric>
  62. #include <ostream>
  63. #include <queue>
  64. #include <set>
  65. #include <sstream>
  66. #include <stack>
  67. #include <stdexcept>
  68. #include <streambuf>
  69. #include <string>
  70. #include <typeinfo>
  71. #include <utility>
  72. #include <valarray>
  73. #include <vector>
  74. ],,
  75. ac_cv_cxx_stdcxx_98=yes, ac_cv_cxx_stdcxx_98=no)
  76. AC_LANG_RESTORE
  77. ])
  78. if test "$ac_cv_cxx_stdcxx_98" = yes; then
  79. AC_DEFINE(STDCXX_98_HEADERS,,[Define if ISO C++ 1998 header files are present. ])
  80. fi
  81. ])