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:
17 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
21 # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
23 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
25 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
27 # elif defined __GNUC__
29 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
33 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
37 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
39 #elif defined __DECCXX
40 // Compaq Tru64 Unix cxx
41 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
45 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
47 #elif defined __BORLANDC__
49 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
51 #elif defined __MWERKS__
52 // Metrowerks CodeWarrior
53 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
55 #elif defined __SUNPRO_CC
56 // Sun Workshop Compiler C++
57 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
59 #elif defined __HP_aCC
61 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
63 #elif defined(__MRC__) || defined(__SC__)
65 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
67 #elif defined(__IBMCPP__)
69 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
71 #elif defined _MSC_VER
72 // Microsoft Visual C++
74 // Must remain the last #elif since some other vendors (Metrowerks, for
75 // example) also #define _MSC_VER
76 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
78 #elif defined (BOOST_ASSERT_CONFIG)
79 // this must come last - generate an error if we don't
80 // recognise the compiler:
81 # 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)"