1 // Boost compiler configuration selection header file
3 // (C) Copyright John Maddock 2001 - 2003.
4 // (C) Copyright Martin Wille 2003.
5 // (C) Copyright Guillaume Melquiond 2003.
6 // Use, modification and distribution are subject to the
7 // Boost Software License, Version 1.0. (See accompanying file
8 // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 // See http://www.boost.org for most recent version.
12 // locate which compiler we are using and define
13 // BOOST_COMPILER_CONFIG as needed:
15 #if defined(__GCCXML__)
16 // GCC-XML emulates other compilers, it has to appear first here!
17 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
19 #elif defined __COMO__
21 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
25 # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
27 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
29 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
31 # elif defined __GNUC__
33 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
37 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
41 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
43 #elif defined __DECCXX
44 // Compaq Tru64 Unix cxx
45 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
49 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
51 #elif defined __BORLANDC__
53 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
55 #elif defined __MWERKS__
56 // Metrowerks CodeWarrior
57 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
59 #elif defined __SUNPRO_CC
60 // Sun Workshop Compiler C++
61 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
63 #elif defined __HP_aCC
65 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
67 #elif defined(__MRC__) || defined(__SC__)
69 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
71 #elif defined(__IBMCPP__)
73 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
75 #elif defined _MSC_VER
76 // Microsoft Visual C++
78 // Must remain the last #elif since some other vendors (Metrowerks, for
79 // example) also #define _MSC_VER
80 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
82 #elif defined (BOOST_ASSERT_CONFIG)
83 // this must come last - generate an error if we don't
84 // recognise the compiler:
85 # 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)"