]> git.donarmstrong.com Git - rsem.git/blob - boost/tr1/detail/config.hpp
RSEM Source Codes
[rsem.git] / boost / tr1 / detail / config.hpp
1 //  (C) Copyright John Maddock 2005-7.
2 //  Use, modification and distribution are subject to the
3 //  Boost Software License, Version 1.0. (See accompanying file
4 //  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6 #ifndef BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED
7 #  define BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED
8
9 #include <cstddef>
10
11 #if (defined(__GNUC__) && !(defined(linux) || defined(__linux) || defined(__linux__))) \
12    || (!defined(_AIX) && defined(__IBMCPP__)  && (__IBMCPP__ >= 800)) 
13    // Disable use of #include_next on Linux as typically we are installed in a 
14    // directory that is searched *after* the std lib include path.
15 #if !defined(BOOST_HAS_INCLUDE_NEXT)
16 #  define BOOST_HAS_INCLUDE_NEXT
17 #endif
18 // Need to find out if we're using GLIBC:
19 #ifdef BOOST_TR1_UTILITY_INCLUDED
20 // Oops we're in a recursive include path!!
21 // Need to include utility, or some std lib header,
22 // but *not* via <utility> or <boost/config/no_tr1/utility.hpp>
23 #  ifndef BOOST_TR1_NO_RECURSION
24 #     define BOOST_TR1_NO_RECURSION
25 #     define BOOST_TR1_NO_CONFIG_RECURSION
26 #  endif
27 #  if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT)
28 #     include_next <utility>
29 #  else
30 #     include BOOST_TR1_STD_HEADER(utility)
31 #  endif
32 #  ifdef BOOST_TR1_NO_CONFIG_RECURSION
33 #     undef BOOST_TR1_NO_CONFIG_RECURSION
34 #     undef BOOST_TR1_NO_RECURSION
35 #  endif
36 #else
37 #include <boost/config/no_tr1/utility.hpp>
38 #endif
39 #endif
40
41 #if defined(__GLIBCXX__) && !defined(BOOST_TR1_PATH)
42 #  define BOOST_TR1_PATH(name) tr1/name
43 #endif
44 #if !defined(BOOST_TR1_PATH)
45 #  define BOOST_TR1_PATH(name) name
46 #endif
47
48 #define BOOST_TR1_HEADER(name) <BOOST_TR1_PATH(name)>
49
50 // Can't use BOOST_WORKAROUND here, it leads to recursive includes:
51 #if (defined(__BORLANDC__) && (__BORLANDC__ <= 0x600)) || (defined(_MSC_VER) && (_MSC_VER < 1310))
52 #  define BOOST_TR1_USE_OLD_TUPLE
53 #endif
54
55 #ifdef __IBMCPP_TR1__
56    // turn on support for everything:
57 #  define BOOST_HAS_TR1
58 #endif
59
60 #ifdef __GXX_EXPERIMENTAL_CXX0X__
61 #  define BOOST_HAS_TR1_COMPLEX_OVERLOADS
62 #  define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
63 #endif
64
65 #ifdef BOOST_HAS_TR1
66    // turn on support for everything:
67 #  define BOOST_HAS_TR1_ARRAY
68 #  define BOOST_HAS_TR1_COMPLEX_OVERLOADS
69 #  define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
70 #  define BOOST_HAS_TR1_REFERENCE_WRAPPER
71 #  define BOOST_HAS_TR1_RESULT_OF
72 #  define BOOST_HAS_TR1_MEM_FN
73 #  define BOOST_HAS_TR1_BIND
74 #  define BOOST_HAS_TR1_FUNCTION
75 #  define BOOST_HAS_TR1_HASH
76 #  define BOOST_HAS_TR1_SHARED_PTR
77 #  define BOOST_HAS_TR1_RANDOM
78 #  define BOOST_HAS_TR1_REGEX
79 #  define BOOST_HAS_TR1_TUPLE
80 #  define BOOST_HAS_TR1_TYPE_TRAITS
81 #  define BOOST_HAS_TR1_UTILITY
82 #  define BOOST_HAS_TR1_UNORDERED_MAP
83 #  define BOOST_HAS_TR1_UNORDERED_SET
84 #  define BOOST_HAS_TR1_CMATH
85
86 #endif
87
88 #if defined(__MWERKS__) && (__MWERKS__ >= 0x3205)
89 //
90 // Very preliminary MWCW support, may not be right:
91 //
92 #  define BOOST_HAS_TR1_SHARED_PTR
93 #  define BOOST_HAS_TR1_REFERENCE_WRAPPER
94 #  define BOOST_HAS_TR1_FUNCTION
95 #  define BOOST_HAS_TR1_TUPLE
96 #  define BOOST_HAS_TR1_RESULT_OF
97 #endif
98
99 #ifdef BOOST_HAS_GCC_TR1
100    // turn on support for everything in gcc 4.0.x:
101 #  define BOOST_HAS_TR1_ARRAY
102 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 403
103 //#  define BOOST_HAS_TR1_COMPLEX_OVERLOADS
104 #  define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
105 #endif
106 #  define BOOST_HAS_TR1_REFERENCE_WRAPPER
107 #  define BOOST_HAS_TR1_RESULT_OF
108 #  define BOOST_HAS_TR1_MEM_FN
109 #  define BOOST_HAS_TR1_BIND
110 #  define BOOST_HAS_TR1_FUNCTION
111 #  define BOOST_HAS_TR1_HASH
112 #  define BOOST_HAS_TR1_SHARED_PTR
113 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 403
114 #  define BOOST_HAS_TR1_RANDOM
115 //#  define BOOST_HAS_TR1_REGEX
116 #ifdef _GLIBCXX_USE_C99_MATH_TR1
117 #  define BOOST_HAS_TR1_CMATH
118 #endif
119 #endif
120 #  define BOOST_HAS_TR1_TUPLE
121 #  define BOOST_HAS_TR1_TYPE_TRAITS
122 #  define BOOST_HAS_TR1_UTILITY
123 #  define BOOST_HAS_TR1_UNORDERED_MAP
124 #  define BOOST_HAS_TR1_UNORDERED_SET
125
126 #endif
127
128 #if defined(_MSC_VER) && (_MSC_VER >= 1500) \
129    && defined(_MSC_FULL_VER) && \
130    !defined(__SGI_STL_PORT) && \
131    !defined(_STLPORT_VERSION) && \
132    !defined(_RWSTD_VER_STR) && \
133    !defined(_RWSTD_VER)
134 //
135 // MSVC-9.0 defines a not-quite TR1 conforming hash
136 // function object in <functional>, so we must define
137 // this here, in addition the feature pack for VC9
138 // provides a more or less full TR1 implementation:
139 //
140 #  if defined(_HAS_TR1) && (_HAS_TR1 + 0)
141 #    define BOOST_HAS_TR1_ARRAY
142 #    define BOOST_HAS_TR1_REFERENCE_WRAPPER
143 #    define BOOST_HAS_TR1_RESULT_OF
144 #    define BOOST_HAS_TR1_MEM_FN
145 #    define BOOST_HAS_TR1_BIND
146 #    define BOOST_HAS_TR1_FUNCTION
147 #    define BOOST_HAS_TR1_HASH
148 #    define BOOST_HAS_TR1_SHARED_PTR
149 #    define BOOST_HAS_TR1_RANDOM
150 #    define BOOST_HAS_TR1_REGEX
151 #    define BOOST_HAS_TR1_TUPLE
152 #    define BOOST_HAS_TR1_TYPE_TRAITS
153 #    define BOOST_HAS_TR1_UTILITY
154 #    define BOOST_HAS_TR1_UNORDERED_MAP
155 #    define BOOST_HAS_TR1_UNORDERED_SET
156 #  else
157 #    define BOOST_HAS_TR1_HASH
158 #  endif
159 #  if _MSC_VER >= 1600
160 #     define BOOST_HAS_CPP_0X
161 #  endif
162 #endif
163
164 #include <boost/config.hpp>
165
166 #endif
167
168
169