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)
6 #ifndef BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED
7 # define BOOST_TR1_DETAIL_CONFIG_HPP_INCLUDED
11 #if (defined(__GNUC__) && !(defined(linux) || defined(__linux) || defined(__linux__))) \
12 || (!defined(__FreeBSD__) && defined(__GNUC__)) \
13 || (!defined(_AIX) && defined(__IBMCPP__) && (__IBMCPP__ >= 800))
14 // Disable use of #include_next on Linux as typically we are installed in a
15 // directory that is searched *after* the std lib include path.
16 #if !defined(BOOST_HAS_INCLUDE_NEXT)
17 # define BOOST_HAS_INCLUDE_NEXT
19 // Need to find out if we're using GLIBC:
20 #ifdef BOOST_TR1_UTILITY_INCLUDED
21 // Oops we're in a recursive include path!!
22 // Need to include utility, or some std lib header,
23 // but *not* via <utility> or <boost/config/no_tr1/utility.hpp>
24 # ifndef BOOST_TR1_NO_RECURSION
25 # define BOOST_TR1_NO_RECURSION
26 # define BOOST_TR1_NO_CONFIG_RECURSION
28 # if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT)
29 # include_next <utility>
31 # include BOOST_TR1_STD_HEADER(utility)
33 # ifdef BOOST_TR1_NO_CONFIG_RECURSION
34 # undef BOOST_TR1_NO_CONFIG_RECURSION
35 # undef BOOST_TR1_NO_RECURSION
38 #include <boost/config/no_tr1/utility.hpp>
42 #if defined(__GLIBCXX__) && !defined(BOOST_TR1_PATH)
43 # define BOOST_TR1_PATH(name) tr1/name
45 #if !defined(BOOST_TR1_PATH)
46 # define BOOST_TR1_PATH(name) name
49 #define BOOST_TR1_HEADER(name) <BOOST_TR1_PATH(name)>
51 // Can't use BOOST_WORKAROUND here, it leads to recursive includes:
52 #if (defined(__BORLANDC__) && (__BORLANDC__ <= 0x600))
53 # define BOOST_TR1_USE_OLD_TUPLE
57 // turn on support for everything:
58 # define BOOST_HAS_TR1
61 #ifdef __GXX_EXPERIMENTAL_CXX0X__
62 # define BOOST_HAS_TR1_COMPLEX_OVERLOADS
63 # define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
67 // turn on support for everything:
68 # define BOOST_HAS_TR1_ARRAY
69 # define BOOST_HAS_TR1_COMPLEX_OVERLOADS
70 # define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
71 # define BOOST_HAS_TR1_REFERENCE_WRAPPER
72 # define BOOST_HAS_TR1_RESULT_OF
73 # define BOOST_HAS_TR1_MEM_FN
74 # define BOOST_HAS_TR1_BIND
75 # define BOOST_HAS_TR1_FUNCTION
76 # define BOOST_HAS_TR1_HASH
77 # define BOOST_HAS_TR1_SHARED_PTR
78 # define BOOST_HAS_TR1_RANDOM
79 # define BOOST_HAS_TR1_REGEX
80 # define BOOST_HAS_TR1_TUPLE
81 # define BOOST_HAS_TR1_TYPE_TRAITS
82 # define BOOST_HAS_TR1_UTILITY
83 # define BOOST_HAS_TR1_UNORDERED_MAP
84 # define BOOST_HAS_TR1_UNORDERED_SET
85 # define BOOST_HAS_TR1_CMATH
89 #if defined(__MWERKS__) && (__MWERKS__ >= 0x3205)
91 // Very preliminary MWCW support, may not be right:
93 # define BOOST_HAS_TR1_SHARED_PTR
94 # define BOOST_HAS_TR1_REFERENCE_WRAPPER
95 # define BOOST_HAS_TR1_FUNCTION
96 # define BOOST_HAS_TR1_TUPLE
97 # define BOOST_HAS_TR1_RESULT_OF
100 #ifdef BOOST_HAS_GCC_TR1
101 // turn on support for everything in gcc 4.0.x:
102 # define BOOST_HAS_TR1_ARRAY
103 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 403
104 //# define BOOST_HAS_TR1_COMPLEX_OVERLOADS
105 # define BOOST_HAS_TR1_COMPLEX_INVERSE_TRIG
107 # define BOOST_HAS_TR1_REFERENCE_WRAPPER
108 # define BOOST_HAS_TR1_RESULT_OF
109 # define BOOST_HAS_TR1_MEM_FN
110 # define BOOST_HAS_TR1_BIND
111 # define BOOST_HAS_TR1_FUNCTION
112 # define BOOST_HAS_TR1_HASH
113 # define BOOST_HAS_TR1_SHARED_PTR
114 #if (__GNUC__ * 100 + __GNUC_MINOR__) >= 403
115 # define BOOST_HAS_TR1_RANDOM
116 //# define BOOST_HAS_TR1_REGEX
117 #ifdef _GLIBCXX_USE_C99_MATH_TR1
118 # define BOOST_HAS_TR1_CMATH
121 # define BOOST_HAS_TR1_TUPLE
122 # define BOOST_HAS_TR1_TYPE_TRAITS
123 # define BOOST_HAS_TR1_UTILITY
124 # define BOOST_HAS_TR1_UNORDERED_MAP
125 # define BOOST_HAS_TR1_UNORDERED_SET
129 #if defined(_MSC_VER) && (_MSC_VER >= 1500) \
130 && defined(_MSC_FULL_VER) && \
131 !defined(__SGI_STL_PORT) && \
132 !defined(_STLPORT_VERSION) && \
133 !defined(_RWSTD_VER_STR) && \
136 // MSVC-9.0 defines a not-quite TR1 conforming hash
137 // function object in <functional>, so we must define
138 // this here, in addition the feature pack for VC9
139 // provides a more or less full TR1 implementation:
141 # if (defined(_HAS_TR1) && (_HAS_TR1 + 0)) || (_CPPLIB_VER >= 540)
142 # define BOOST_HAS_TR1_ARRAY
143 # define BOOST_HAS_TR1_REFERENCE_WRAPPER
144 # define BOOST_HAS_TR1_RESULT_OF
145 # define BOOST_HAS_TR1_MEM_FN
146 # define BOOST_HAS_TR1_BIND
147 # define BOOST_HAS_TR1_FUNCTION
148 # define BOOST_HAS_TR1_HASH
149 # define BOOST_HAS_TR1_SHARED_PTR
150 # define BOOST_HAS_TR1_RANDOM
151 # define BOOST_HAS_TR1_REGEX
152 # define BOOST_HAS_TR1_TUPLE
153 # define BOOST_HAS_TR1_TYPE_TRAITS
154 # define BOOST_HAS_TR1_UTILITY
155 # define BOOST_HAS_TR1_UNORDERED_MAP
156 # define BOOST_HAS_TR1_UNORDERED_SET
158 # define BOOST_HAS_TR1_HASH
160 # if _MSC_VER >= 1600
161 # define BOOST_HAS_CPP_0X
163 # if _MSC_VER >= 1700
164 # define BOOST_HAS_TR1_COMPLEX_OVERLOADS
168 #include <boost/config.hpp>