]> git.lyx.org Git - lyx.git/blob - boost/boost/config/select_compiler_config.hpp
update to boost 1.46.1. Tested on Win, Mac, Linux, GCC 4.2, 4.4, 4.5, 4.6
[lyx.git] / boost / boost / config / select_compiler_config.hpp
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
14 // one identification macro for each of the
15 // compilers we support:
16
17 #   define BOOST_CXX_GCCXML     0
18 #   define BOOST_CXX_NVCC       0
19 #   define BOOST_CXX_COMO       0
20 #   define BOOST_CXX_PATHSCALE  0
21 #   define BOOST_CXX_CLANG      0
22 #   define BOOST_CXX_DMC        0
23 #   define BOOST_CXX_INTEL      0
24 #   define BOOST_CXX_GNUC       0
25 #   define BOOST_CXX_KCC        0
26 #   define BOOST_CXX_SGI        0
27 #   define BOOST_CXX_TRU64      0
28 #   define BOOST_CXX_GHS        0
29 #   define BOOST_CXX_BORLAND    0
30 #   define BOOST_CXX_CW         0
31 #   define BOOST_CXX_SUNPRO     0
32 #   define BOOST_CXX_HPACC      0
33 #   define BOOST_CXX_MPW        0
34 #   define BOOST_CXX_IBMCPP     0
35 #   define BOOST_CXX_MSVC       0
36 #   define BOOST_CXX_PGI        0
37 #   define BOOST_CXX_NVCC       0
38
39
40 // locate which compiler we are using and define
41 // BOOST_COMPILER_CONFIG as needed: 
42
43 #if defined(__GCCXML__)
44 // GCC-XML emulates other compilers, it has to appear first here!
45 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
46
47 #elif defined __CUDACC__
48 //  NVIDIA CUDA C++ compiler for GPU
49 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/nvcc.hpp"
50
51 #elif defined __COMO__
52 //  Comeau C++
53 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
54
55 #elif defined(__PATHSCALE__) && (__PATHCC__ >= 4)
56 // PathScale EKOPath compiler (has to come before clang and gcc)
57 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/pathscale.hpp"
58
59 #elif defined __clang__
60 //  Clang C++ emulates GCC, so it has to appear early.
61 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp"
62
63 #elif defined __DMC__
64 //  Digital Mars C++
65 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
66
67 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
68 //  Intel
69 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
70
71 # elif defined __GNUC__
72 //  GNU C++:
73 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
74
75 #elif defined __KCC
76 //  Kai C++
77 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
78
79 #elif defined __sgi
80 //  SGI MIPSpro C++
81 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
82
83 #elif defined __DECCXX
84 //  Compaq Tru64 Unix cxx
85 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
86
87 #elif defined __ghs
88 //  Greenhills C++
89 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
90
91 #elif defined __CODEGEARC__
92 //  CodeGear - must be checked for before Borland
93 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp"
94
95 #elif defined __BORLANDC__
96 //  Borland
97 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
98
99 #elif defined  __MWERKS__
100 //  Metrowerks CodeWarrior
101 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
102
103 #elif defined  __SUNPRO_CC
104 //  Sun Workshop Compiler C++
105 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
106
107 #elif defined __HP_aCC
108 //  HP aCC
109 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
110
111 #elif defined(__MRC__) || defined(__SC__)
112 //  MPW MrCpp or SCpp
113 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
114
115 #elif defined(__IBMCPP__)
116 //  IBM Visual Age
117 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
118
119 #elif defined(__PGI)
120 //  Portland Group Inc.
121 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp"
122
123 #elif defined _MSC_VER
124 //  Microsoft Visual C++
125 //
126 //  Must remain the last #elif since some other vendors (Metrowerks, for
127 //  example) also #define _MSC_VER
128 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
129
130 #elif defined (BOOST_ASSERT_CONFIG)
131 // this must come last - generate an error if we don't
132 // recognise the compiler:
133 #  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)"
134
135 #endif