blob: 9ddaf2d03a3d7ac10259537b70b26ad6431344c6 [file] [log] [blame]
Jeff Thompson2277ce52013-08-01 17:34:11 -07001// 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 Thompson3d613fd2013-10-15 15:39:04 -070014// NDNBOOST_COMPILER_CONFIG as needed:
Jeff Thompson2277ce52013-08-01 17:34:11 -070015
16#if defined(__GCCXML__)
17// GCC-XML emulates other compilers, it has to appear first here!
Jeff Thompson3d613fd2013-10-15 15:39:04 -070018# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/gcc_xml.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070019
20#elif defined(_CRAYC)
21// EDG based Cray compiler:
Jeff Thompson3d613fd2013-10-15 15:39:04 -070022# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/cray.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070023
24#elif defined __CUDACC__
25// NVIDIA CUDA C++ compiler for GPU
Jeff Thompson3d613fd2013-10-15 15:39:04 -070026# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/nvcc.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070027
28#elif defined __COMO__
29// Comeau C++
Jeff Thompson3d613fd2013-10-15 15:39:04 -070030# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/comeau.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070031
32#elif defined(__PATHSCALE__) && (__PATHCC__ >= 4)
33// PathScale EKOPath compiler (has to come before clang and gcc)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070034# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/pathscale.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070035
Jeff Thompsona28eed82013-08-22 16:21:10 -070036#elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
37// Intel
Jeff Thompson3d613fd2013-10-15 15:39:04 -070038# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/intel.hpp"
Jeff Thompsona28eed82013-08-22 16:21:10 -070039
Jeff Thompson2277ce52013-08-01 17:34:11 -070040#elif defined __clang__
41// Clang C++ emulates GCC, so it has to appear early.
Jeff Thompson3d613fd2013-10-15 15:39:04 -070042# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/clang.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070043
44#elif defined __DMC__
45// Digital Mars C++
Jeff Thompson3d613fd2013-10-15 15:39:04 -070046# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/digitalmars.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070047
Jeff Thompson2277ce52013-08-01 17:34:11 -070048# elif defined __GNUC__
49// GNU C++:
Jeff Thompson3d613fd2013-10-15 15:39:04 -070050# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/gcc.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070051
52#elif defined __KCC
53// Kai C++
Jeff Thompson3d613fd2013-10-15 15:39:04 -070054# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/kai.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070055
56#elif defined __sgi
57// SGI MIPSpro C++
Jeff Thompson3d613fd2013-10-15 15:39:04 -070058# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/sgi_mipspro.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070059
60#elif defined __DECCXX
61// Compaq Tru64 Unix cxx
Jeff Thompson3d613fd2013-10-15 15:39:04 -070062# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/compaq_cxx.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070063
64#elif defined __ghs
65// Greenhills C++
Jeff Thompson3d613fd2013-10-15 15:39:04 -070066# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/greenhills.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070067
68#elif defined __CODEGEARC__
69// CodeGear - must be checked for before Borland
Jeff Thompson3d613fd2013-10-15 15:39:04 -070070# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/codegear.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070071
72#elif defined __BORLANDC__
73// Borland
Jeff Thompson3d613fd2013-10-15 15:39:04 -070074# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/borland.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070075
76#elif defined __MWERKS__
77// Metrowerks CodeWarrior
Jeff Thompson3d613fd2013-10-15 15:39:04 -070078# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/metrowerks.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070079
80#elif defined __SUNPRO_CC
81// Sun Workshop Compiler C++
Jeff Thompson3d613fd2013-10-15 15:39:04 -070082# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/sunpro_cc.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070083
84#elif defined __HP_aCC
85// HP aCC
Jeff Thompson3d613fd2013-10-15 15:39:04 -070086# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/hp_acc.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070087
88#elif defined(__MRC__) || defined(__SC__)
89// MPW MrCpp or SCpp
Jeff Thompson3d613fd2013-10-15 15:39:04 -070090# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/mpw.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070091
92#elif defined(__IBMCPP__)
93// IBM Visual Age
Jeff Thompson3d613fd2013-10-15 15:39:04 -070094# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/vacpp.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070095
96#elif defined(__PGI)
97// Portland Group Inc.
Jeff Thompson3d613fd2013-10-15 15:39:04 -070098# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/pgi.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -070099
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 Thompson3d613fd2013-10-15 15:39:04 -0700105# define NDNBOOST_COMPILER_CONFIG "ndnboost/config/compiler/visualc.hpp"
Jeff Thompson2277ce52013-08-01 17:34:11 -0700106
Jeff Thompson3d613fd2013-10-15 15:39:04 -0700107#elif defined (NDNBOOST_ASSERT_CONFIG)
Jeff Thompson2277ce52013-08-01 17:34:11 -0700108// 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