sl@0
|
1 |
// (C) Copyright John Maddock 2001.
|
sl@0
|
2 |
// (C) Copyright Peter Dimov 2001.
|
sl@0
|
3 |
// (C) Copyright Jens Maurer 2001.
|
sl@0
|
4 |
// (C) Copyright David Abrahams 2002 - 2003.
|
sl@0
|
5 |
// (C) Copyright Aleksey Gurtovoy 2002 - 2003.
|
sl@0
|
6 |
// (C) Copyright Guillaume Melquiond 2002 - 2003.
|
sl@0
|
7 |
// (C) Copyright Beman Dawes 2003.
|
sl@0
|
8 |
// (C) Copyright Martin Wille 2003.
|
sl@0
|
9 |
// Use, modification and distribution are subject to the
|
sl@0
|
10 |
// Boost Software License, Version 1.0. (See accompanying file
|
sl@0
|
11 |
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
sl@0
|
12 |
|
sl@0
|
13 |
// See http://www.boost.org for most recent version.
|
sl@0
|
14 |
|
sl@0
|
15 |
// Intel compiler setup:
|
sl@0
|
16 |
|
sl@0
|
17 |
#include "boost/config/compiler/common_edg.hpp"
|
sl@0
|
18 |
|
sl@0
|
19 |
#if defined(__INTEL_COMPILER)
|
sl@0
|
20 |
# define BOOST_INTEL_CXX_VERSION __INTEL_COMPILER
|
sl@0
|
21 |
#elif defined(__ICL)
|
sl@0
|
22 |
# define BOOST_INTEL_CXX_VERSION __ICL
|
sl@0
|
23 |
#elif defined(__ICC)
|
sl@0
|
24 |
# define BOOST_INTEL_CXX_VERSION __ICC
|
sl@0
|
25 |
#elif defined(__ECC)
|
sl@0
|
26 |
# define BOOST_INTEL_CXX_VERSION __ECC
|
sl@0
|
27 |
#endif
|
sl@0
|
28 |
|
sl@0
|
29 |
#define BOOST_COMPILER "Intel C++ version " BOOST_STRINGIZE(BOOST_INTEL_CXX_VERSION)
|
sl@0
|
30 |
#define BOOST_INTEL BOOST_INTEL_CXX_VERSION
|
sl@0
|
31 |
|
sl@0
|
32 |
#if defined(_WIN32) || defined(_WIN64)
|
sl@0
|
33 |
# define BOOST_INTEL_WIN BOOST_INTEL
|
sl@0
|
34 |
#else
|
sl@0
|
35 |
# define BOOST_INTEL_LINUX BOOST_INTEL
|
sl@0
|
36 |
#endif
|
sl@0
|
37 |
|
sl@0
|
38 |
#if (BOOST_INTEL_CXX_VERSION <= 500) && defined(_MSC_VER)
|
sl@0
|
39 |
# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
|
sl@0
|
40 |
# define BOOST_NO_TEMPLATE_TEMPLATES
|
sl@0
|
41 |
#endif
|
sl@0
|
42 |
|
sl@0
|
43 |
#if (BOOST_INTEL_CXX_VERSION <= 600)
|
sl@0
|
44 |
|
sl@0
|
45 |
# if defined(_MSC_VER) && (_MSC_VER <= 1300) // added check for <= VC 7 (Peter Dimov)
|
sl@0
|
46 |
|
sl@0
|
47 |
// Boost libraries assume strong standard conformance unless otherwise
|
sl@0
|
48 |
// indicated by a config macro. As configured by Intel, the EDG front-end
|
sl@0
|
49 |
// requires certain compiler options be set to achieve that strong conformance.
|
sl@0
|
50 |
// Particularly /Qoption,c,--arg_dep_lookup (reported by Kirk Klobe & Thomas Witt)
|
sl@0
|
51 |
// and /Zc:wchar_t,forScope. See boost-root/tools/build/intel-win32-tools.jam for
|
sl@0
|
52 |
// details as they apply to particular versions of the compiler. When the
|
sl@0
|
53 |
// compiler does not predefine a macro indicating if an option has been set,
|
sl@0
|
54 |
// this config file simply assumes the option has been set.
|
sl@0
|
55 |
// Thus BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP will not be defined, even if
|
sl@0
|
56 |
// the compiler option is not enabled.
|
sl@0
|
57 |
|
sl@0
|
58 |
# define BOOST_NO_SWPRINTF
|
sl@0
|
59 |
# endif
|
sl@0
|
60 |
|
sl@0
|
61 |
// Void returns, 64 bit integrals don't work when emulating VC 6 (Peter Dimov)
|
sl@0
|
62 |
|
sl@0
|
63 |
# if defined(_MSC_VER) && (_MSC_VER <= 1200)
|
sl@0
|
64 |
# define BOOST_NO_VOID_RETURNS
|
sl@0
|
65 |
# define BOOST_NO_INTEGRAL_INT64_T
|
sl@0
|
66 |
# endif
|
sl@0
|
67 |
|
sl@0
|
68 |
#endif
|
sl@0
|
69 |
|
sl@0
|
70 |
#if (BOOST_INTEL_CXX_VERSION <= 710) && defined(_WIN32)
|
sl@0
|
71 |
# define BOOST_NO_POINTER_TO_MEMBER_TEMPLATE_PARAMETERS
|
sl@0
|
72 |
#endif
|
sl@0
|
73 |
|
sl@0
|
74 |
// See http://aspn.activestate.com/ASPN/Mail/Message/boost/1614864
|
sl@0
|
75 |
#if BOOST_INTEL_CXX_VERSION < 600
|
sl@0
|
76 |
# define BOOST_NO_INTRINSIC_WCHAR_T
|
sl@0
|
77 |
#else
|
sl@0
|
78 |
// We should test the macro _WCHAR_T_DEFINED to check if the compiler
|
sl@0
|
79 |
// supports wchar_t natively. *BUT* there is a problem here: the standard
|
sl@0
|
80 |
// headers define this macro if they typedef wchar_t. Anyway, we're lucky
|
sl@0
|
81 |
// because they define it without a value, while Intel C++ defines it
|
sl@0
|
82 |
// to 1. So we can check its value to see if the macro was defined natively
|
sl@0
|
83 |
// or not.
|
sl@0
|
84 |
// Under UNIX, the situation is exactly the same, but the macro _WCHAR_T
|
sl@0
|
85 |
// is used instead.
|
sl@0
|
86 |
# if ((_WCHAR_T_DEFINED + 0) == 0) && ((_WCHAR_T + 0) == 0)
|
sl@0
|
87 |
# define BOOST_NO_INTRINSIC_WCHAR_T
|
sl@0
|
88 |
# endif
|
sl@0
|
89 |
#endif
|
sl@0
|
90 |
|
sl@0
|
91 |
#if defined(__GNUC__) && !defined(BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL)
|
sl@0
|
92 |
//
|
sl@0
|
93 |
// Figure out when Intel is emulating this gcc bug
|
sl@0
|
94 |
// (All Intel versions prior to 9.0.26, and versions
|
sl@0
|
95 |
// later than that if they are set up to emulate gcc 3.2
|
sl@0
|
96 |
// or earlier):
|
sl@0
|
97 |
//
|
sl@0
|
98 |
# if ((__GNUC__ == 3) && (__GNUC_MINOR__ <= 2)) || (BOOST_INTEL < 900) || (__INTEL_COMPILER_BUILD_DATE < 20050912)
|
sl@0
|
99 |
# define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL
|
sl@0
|
100 |
# endif
|
sl@0
|
101 |
#endif
|
sl@0
|
102 |
|
sl@0
|
103 |
//
|
sl@0
|
104 |
// Verify that we have actually got BOOST_NO_INTRINSIC_WCHAR_T
|
sl@0
|
105 |
// set correctly, if we don't do this now, we will get errors later
|
sl@0
|
106 |
// in type_traits code among other things, getting this correct
|
sl@0
|
107 |
// for the Intel compiler is actually remarkably fragile and tricky:
|
sl@0
|
108 |
//
|
sl@0
|
109 |
#if defined(BOOST_NO_INTRINSIC_WCHAR_T)
|
sl@0
|
110 |
#include <cwchar>
|
sl@0
|
111 |
template< typename T > struct assert_no_intrinsic_wchar_t;
|
sl@0
|
112 |
template<> struct assert_no_intrinsic_wchar_t<wchar_t> { typedef void type; };
|
sl@0
|
113 |
// if you see an error here then you need to unset BOOST_NO_INTRINSIC_WCHAR_T
|
sl@0
|
114 |
// where it is defined above:
|
sl@0
|
115 |
typedef assert_no_intrinsic_wchar_t<unsigned short>::type assert_no_intrinsic_wchar_t_;
|
sl@0
|
116 |
#else
|
sl@0
|
117 |
template< typename T > struct assert_intrinsic_wchar_t;
|
sl@0
|
118 |
template<> struct assert_intrinsic_wchar_t<wchar_t> {};
|
sl@0
|
119 |
// if you see an error here then define BOOST_NO_INTRINSIC_WCHAR_T on the command line:
|
sl@0
|
120 |
template<> struct assert_intrinsic_wchar_t<unsigned short> {};
|
sl@0
|
121 |
#endif
|
sl@0
|
122 |
|
sl@0
|
123 |
#if _MSC_VER+0 >= 1000
|
sl@0
|
124 |
# if _MSC_VER >= 1200
|
sl@0
|
125 |
# define BOOST_HAS_MS_INT64
|
sl@0
|
126 |
# endif
|
sl@0
|
127 |
# define BOOST_NO_SWPRINTF
|
sl@0
|
128 |
#elif defined(_WIN32)
|
sl@0
|
129 |
# define BOOST_DISABLE_WIN32
|
sl@0
|
130 |
#endif
|
sl@0
|
131 |
|
sl@0
|
132 |
// I checked version 6.0 build 020312Z, it implements the NRVO.
|
sl@0
|
133 |
// Correct this as you find out which version of the compiler
|
sl@0
|
134 |
// implemented the NRVO first. (Daniel Frey)
|
sl@0
|
135 |
#if (BOOST_INTEL_CXX_VERSION >= 600)
|
sl@0
|
136 |
# define BOOST_HAS_NRVO
|
sl@0
|
137 |
#endif
|
sl@0
|
138 |
|
sl@0
|
139 |
//
|
sl@0
|
140 |
// versions check:
|
sl@0
|
141 |
// we don't support Intel prior to version 5.0:
|
sl@0
|
142 |
#if BOOST_INTEL_CXX_VERSION < 500
|
sl@0
|
143 |
# error "Compiler not supported or configured - please reconfigure"
|
sl@0
|
144 |
#endif
|
sl@0
|
145 |
//
|
sl@0
|
146 |
// last known and checked version:
|
sl@0
|
147 |
#if (BOOST_INTEL_CXX_VERSION > 910)
|
sl@0
|
148 |
# if defined(BOOST_ASSERT_CONFIG)
|
sl@0
|
149 |
# error "Unknown compiler version - please run the configure tests and report the results"
|
sl@0
|
150 |
# elif defined(_MSC_VER)
|
sl@0
|
151 |
# pragma message("Unknown compiler version - please run the configure tests and report the results")
|
sl@0
|
152 |
# endif
|
sl@0
|
153 |
#endif
|
sl@0
|
154 |
|
sl@0
|
155 |
|
sl@0
|
156 |
|
sl@0
|
157 |
|
sl@0
|
158 |
|