comparison DEPENDENCIES/generic/include/boost/config/select_compiler_config.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
comparison
equal deleted inserted replaced
15:663ca0da4350 16:2665513ce2d3
1 // Boost compiler configuration selection header file
2
3 // (C) Copyright John Maddock 2001 - 2003.
4 // (C) Copyright Martin Wille 2003.
5 // (C) Copyright Guillaume Melquiond 2003.
6 //
7 // Distributed under the Boost Software License, Version 1.0.
8 // (See accompanying file LICENSE_1_0.txt or copy at
9 // http://www.boost.org/LICENSE_1_0.txt)
10
11 // See http://www.boost.org/ for most recent version.
12
13 // locate which compiler we are using and define
14 // BOOST_COMPILER_CONFIG as needed:
15
16 #if defined __CUDACC__
17 // NVIDIA CUDA C++ compiler for GPU
18 # include "boost/config/compiler/nvcc.hpp"
19
20 #endif
21
22 #if defined(__GCCXML__)
23 // GCC-XML emulates other compilers, it has to appear first here!
24 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
25
26 #elif defined(_CRAYC)
27 // EDG based Cray compiler:
28 # define BOOST_COMPILER_CONFIG "boost/config/compiler/cray.hpp"
29
30 #elif defined __COMO__
31 // Comeau C++
32 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
33
34 #elif defined(__PATHSCALE__) && (__PATHCC__ >= 4)
35 // PathScale EKOPath compiler (has to come before clang and gcc)
36 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pathscale.hpp"
37
38 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
39 // Intel
40 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
41
42 #elif defined __clang__
43 // Clang C++ emulates GCC, so it has to appear early.
44 # define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp"
45
46 #elif defined __DMC__
47 // Digital Mars C++
48 # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
49
50 # elif defined __GNUC__
51 // GNU C++:
52 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
53
54 #elif defined __KCC
55 // Kai C++
56 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
57
58 #elif defined __sgi
59 // SGI MIPSpro C++
60 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
61
62 #elif defined __DECCXX
63 // Compaq Tru64 Unix cxx
64 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
65
66 #elif defined __ghs
67 // Greenhills C++
68 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
69
70 #elif defined __CODEGEARC__
71 // CodeGear - must be checked for before Borland
72 # define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp"
73
74 #elif defined __BORLANDC__
75 // Borland
76 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
77
78 #elif defined __MWERKS__
79 // Metrowerks CodeWarrior
80 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
81
82 #elif defined __SUNPRO_CC
83 // Sun Workshop Compiler C++
84 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
85
86 #elif defined __HP_aCC
87 // HP aCC
88 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
89
90 #elif defined(__MRC__) || defined(__SC__)
91 // MPW MrCpp or SCpp
92 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
93
94 #elif defined(__IBMCPP__)
95 // IBM Visual Age
96 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
97
98 #elif defined(__PGI)
99 // Portland Group Inc.
100 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp"
101
102 #elif defined _MSC_VER
103 // Microsoft Visual C++
104 //
105 // Must remain the last #elif since some other vendors (Metrowerks, for
106 // example) also #define _MSC_VER
107 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
108
109 #elif defined (BOOST_ASSERT_CONFIG)
110 // this must come last - generate an error if we don't
111 // recognise the compiler:
112 # error "Unknown compiler - please configure (http://www.boost.org/libs/config/config.htm#configuring) and report the results to the main boost mailing list (http://www.boost.org/more/mailing_lists.htm#main)"
113
114 #endif