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