]> git.lyx.org Git - lyx.git/blob - boost/boost/config/select_compiler_config.hpp
Don't allow newline characters in document settings.
[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 // locate which compiler we are using and define
14 // BOOST_COMPILER_CONFIG as needed: 
15
16 #if defined(__GCCXML__)
17 // GCC-XML emulates other compilers, it has to appear first here!
18 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
19
20 #elif defined __CUDACC__
21 //  NVIDIA CUDA C++ compiler for GPU
22 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/nvcc.hpp"
23
24 #elif defined __COMO__
25 //  Comeau C++
26 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
27
28 #elif defined(__PATHSCALE__) && (__PATHCC__ >= 4)
29 // PathScale EKOPath compiler (has to come before clang and gcc)
30 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/pathscale.hpp"
31
32 #elif defined __clang__
33 //  Clang C++ emulates GCC, so it has to appear early.
34 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp"
35
36 #elif defined __DMC__
37 //  Digital Mars C++
38 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
39
40 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
41 //  Intel
42 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
43
44 # elif defined __GNUC__
45 //  GNU C++:
46 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
47
48 #elif defined __KCC
49 //  Kai C++
50 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
51
52 #elif defined __sgi
53 //  SGI MIPSpro C++
54 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
55
56 #elif defined __DECCXX
57 //  Compaq Tru64 Unix cxx
58 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
59
60 #elif defined __ghs
61 //  Greenhills C++
62 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
63
64 #elif defined __CODEGEARC__
65 //  CodeGear - must be checked for before Borland
66 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp"
67
68 #elif defined __BORLANDC__
69 //  Borland
70 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
71
72 #elif defined  __MWERKS__
73 //  Metrowerks CodeWarrior
74 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
75
76 #elif defined  __SUNPRO_CC
77 //  Sun Workshop Compiler C++
78 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
79
80 #elif defined __HP_aCC
81 //  HP aCC
82 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
83
84 #elif defined(__MRC__) || defined(__SC__)
85 //  MPW MrCpp or SCpp
86 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
87
88 #elif defined(__IBMCPP__)
89 //  IBM Visual Age
90 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
91
92 #elif defined(__PGI)
93 //  Portland Group Inc.
94 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp"
95
96 #elif defined _MSC_VER
97 //  Microsoft Visual C++
98 //
99 //  Must remain the last #elif since some other vendors (Metrowerks, for
100 //  example) also #define _MSC_VER
101 #   define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
102
103 #elif defined (BOOST_ASSERT_CONFIG)
104 // this must come last - generate an error if we don't
105 // recognise the compiler:
106 #  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)"
107
108 #endif