annotate DEPENDENCIES/generic/include/boost/config/select_compiler_config.hpp @ 16:2665513ce2d3

Add boost headers
author Chris Cannam
date Tue, 05 Aug 2014 11:11:38 +0100
parents
children c530137014c0
rev   line source
Chris@16 1 // Boost compiler configuration selection header file
Chris@16 2
Chris@16 3 // (C) Copyright John Maddock 2001 - 2003.
Chris@16 4 // (C) Copyright Martin Wille 2003.
Chris@16 5 // (C) Copyright Guillaume Melquiond 2003.
Chris@16 6 //
Chris@16 7 // Distributed under the Boost Software License, Version 1.0.
Chris@16 8 // (See accompanying file LICENSE_1_0.txt or copy at
Chris@16 9 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 10
Chris@16 11 // See http://www.boost.org/ for most recent version.
Chris@16 12
Chris@16 13 // locate which compiler we are using and define
Chris@16 14 // BOOST_COMPILER_CONFIG as needed:
Chris@16 15
Chris@16 16 #if defined __CUDACC__
Chris@16 17 // NVIDIA CUDA C++ compiler for GPU
Chris@16 18 # include "boost/config/compiler/nvcc.hpp"
Chris@16 19
Chris@16 20 #endif
Chris@16 21
Chris@16 22 #if defined(__GCCXML__)
Chris@16 23 // GCC-XML emulates other compilers, it has to appear first here!
Chris@16 24 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
Chris@16 25
Chris@16 26 #elif defined(_CRAYC)
Chris@16 27 // EDG based Cray compiler:
Chris@16 28 # define BOOST_COMPILER_CONFIG "boost/config/compiler/cray.hpp"
Chris@16 29
Chris@16 30 #elif defined __COMO__
Chris@16 31 // Comeau C++
Chris@16 32 # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
Chris@16 33
Chris@16 34 #elif defined(__PATHSCALE__) && (__PATHCC__ >= 4)
Chris@16 35 // PathScale EKOPath compiler (has to come before clang and gcc)
Chris@16 36 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pathscale.hpp"
Chris@16 37
Chris@16 38 #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
Chris@16 39 // Intel
Chris@16 40 # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
Chris@16 41
Chris@16 42 #elif defined __clang__
Chris@16 43 // Clang C++ emulates GCC, so it has to appear early.
Chris@16 44 # define BOOST_COMPILER_CONFIG "boost/config/compiler/clang.hpp"
Chris@16 45
Chris@16 46 #elif defined __DMC__
Chris@16 47 // Digital Mars C++
Chris@16 48 # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
Chris@16 49
Chris@16 50 # elif defined __GNUC__
Chris@16 51 // GNU C++:
Chris@16 52 # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
Chris@16 53
Chris@16 54 #elif defined __KCC
Chris@16 55 // Kai C++
Chris@16 56 # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
Chris@16 57
Chris@16 58 #elif defined __sgi
Chris@16 59 // SGI MIPSpro C++
Chris@16 60 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
Chris@16 61
Chris@16 62 #elif defined __DECCXX
Chris@16 63 // Compaq Tru64 Unix cxx
Chris@16 64 # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
Chris@16 65
Chris@16 66 #elif defined __ghs
Chris@16 67 // Greenhills C++
Chris@16 68 # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
Chris@16 69
Chris@16 70 #elif defined __CODEGEARC__
Chris@16 71 // CodeGear - must be checked for before Borland
Chris@16 72 # define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp"
Chris@16 73
Chris@16 74 #elif defined __BORLANDC__
Chris@16 75 // Borland
Chris@16 76 # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
Chris@16 77
Chris@16 78 #elif defined __MWERKS__
Chris@16 79 // Metrowerks CodeWarrior
Chris@16 80 # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
Chris@16 81
Chris@16 82 #elif defined __SUNPRO_CC
Chris@16 83 // Sun Workshop Compiler C++
Chris@16 84 # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
Chris@16 85
Chris@16 86 #elif defined __HP_aCC
Chris@16 87 // HP aCC
Chris@16 88 # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
Chris@16 89
Chris@16 90 #elif defined(__MRC__) || defined(__SC__)
Chris@16 91 // MPW MrCpp or SCpp
Chris@16 92 # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
Chris@16 93
Chris@16 94 #elif defined(__IBMCPP__)
Chris@16 95 // IBM Visual Age
Chris@16 96 # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
Chris@16 97
Chris@16 98 #elif defined(__PGI)
Chris@16 99 // Portland Group Inc.
Chris@16 100 # define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp"
Chris@16 101
Chris@16 102 #elif defined _MSC_VER
Chris@16 103 // Microsoft Visual C++
Chris@16 104 //
Chris@16 105 // Must remain the last #elif since some other vendors (Metrowerks, for
Chris@16 106 // example) also #define _MSC_VER
Chris@16 107 # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
Chris@16 108
Chris@16 109 #elif defined (BOOST_ASSERT_CONFIG)
Chris@16 110 // this must come last - generate an error if we don't
Chris@16 111 // recognise the compiler:
Chris@16 112 # 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)"
Chris@16 113
Chris@16 114 #endif