| 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 | // 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) |
|---|
| 9 | |
|---|
| 10 | // See http://www.boost.org for most recent version. |
|---|
| 11 | |
|---|
| 12 | // locate which compiler we are using and define |
|---|
| 13 | // BOOST_COMPILER_CONFIG as needed: |
|---|
| 14 | |
|---|
| 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" |
|---|
| 18 | |
|---|
| 19 | #elif defined __COMO__ |
|---|
| 20 | // Comeau C++ |
|---|
| 21 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp" |
|---|
| 22 | |
|---|
| 23 | #elif defined __DMC__ |
|---|
| 24 | // Digital Mars C++ |
|---|
| 25 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp" |
|---|
| 26 | |
|---|
| 27 | #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC) |
|---|
| 28 | // Intel |
|---|
| 29 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp" |
|---|
| 30 | |
|---|
| 31 | # elif defined __GNUC__ |
|---|
| 32 | // GNU C++: |
|---|
| 33 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp" |
|---|
| 34 | |
|---|
| 35 | #elif defined __KCC |
|---|
| 36 | // Kai C++ |
|---|
| 37 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp" |
|---|
| 38 | |
|---|
| 39 | #elif defined __sgi |
|---|
| 40 | // SGI MIPSpro C++ |
|---|
| 41 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp" |
|---|
| 42 | |
|---|
| 43 | #elif defined __DECCXX |
|---|
| 44 | // Compaq Tru64 Unix cxx |
|---|
| 45 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp" |
|---|
| 46 | |
|---|
| 47 | #elif defined __ghs |
|---|
| 48 | // Greenhills C++ |
|---|
| 49 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp" |
|---|
| 50 | |
|---|
| 51 | #elif defined __BORLANDC__ |
|---|
| 52 | // Borland |
|---|
| 53 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp" |
|---|
| 54 | |
|---|
| 55 | #elif defined __MWERKS__ |
|---|
| 56 | // Metrowerks CodeWarrior |
|---|
| 57 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp" |
|---|
| 58 | |
|---|
| 59 | #elif defined __SUNPRO_CC |
|---|
| 60 | // Sun Workshop Compiler C++ |
|---|
| 61 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp" |
|---|
| 62 | |
|---|
| 63 | #elif defined __HP_aCC |
|---|
| 64 | // HP aCC |
|---|
| 65 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp" |
|---|
| 66 | |
|---|
| 67 | #elif defined(__MRC__) || defined(__SC__) |
|---|
| 68 | // MPW MrCpp or SCpp |
|---|
| 69 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp" |
|---|
| 70 | |
|---|
| 71 | #elif defined(__IBMCPP__) |
|---|
| 72 | // IBM Visual Age |
|---|
| 73 | # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp" |
|---|
| 74 | |
|---|
| 75 | #elif defined _MSC_VER |
|---|
| 76 | // Microsoft Visual C++ |
|---|
| 77 | // |
|---|
| 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" |
|---|
| 81 | |
|---|
| 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)" |
|---|
| 86 | |
|---|
| 87 | #endif |
|---|