select_compiler_config.hpp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // Boost compiler configuration selection header file
  2. // (C) Copyright John Maddock 2001 - 2003.
  3. // (C) Copyright Martin Wille 2003.
  4. // (C) Copyright Guillaume Melquiond 2003.
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // (See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt)
  9. // See http://www.boost.org/ for most recent version.
  10. // one identification macro for each of the
  11. // compilers we support:
  12. # define BOOST_CXX_GCCXML 0
  13. # define BOOST_CXX_COMO 0
  14. # define BOOST_CXX_DMC 0
  15. # define BOOST_CXX_INTEL 0
  16. # define BOOST_CXX_GNUC 0
  17. # define BOOST_CXX_KCC 0
  18. # define BOOST_CXX_SGI 0
  19. # define BOOST_CXX_TRU64 0
  20. # define BOOST_CXX_GHS 0
  21. # define BOOST_CXX_BORLAND 0
  22. # define BOOST_CXX_CW 0
  23. # define BOOST_CXX_SUNPRO 0
  24. # define BOOST_CXX_HPACC 0
  25. # define BOOST_CXX_MPW 0
  26. # define BOOST_CXX_IBMCPP 0
  27. # define BOOST_CXX_MSVC 0
  28. # define BOOST_CXX_PGI 0
  29. // locate which compiler we are using and define
  30. // BOOST_COMPILER_CONFIG as needed:
  31. #if defined(__GCCXML__)
  32. // GCC-XML emulates other compilers, it has to appear first here!
  33. # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc_xml.hpp"
  34. #elif defined __COMO__
  35. // Comeau C++
  36. # define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
  37. #elif defined __DMC__
  38. // Digital Mars C++
  39. # define BOOST_COMPILER_CONFIG "boost/config/compiler/digitalmars.hpp"
  40. #elif defined(__INTEL_COMPILER) || defined(__ICL) || defined(__ICC) || defined(__ECC)
  41. // Intel
  42. # define BOOST_COMPILER_CONFIG "boost/config/compiler/intel.hpp"
  43. # elif defined __GNUC__
  44. // GNU C++:
  45. # define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
  46. #elif defined __KCC
  47. // Kai C++
  48. # define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
  49. #elif defined __sgi
  50. // SGI MIPSpro C++
  51. # define BOOST_COMPILER_CONFIG "boost/config/compiler/sgi_mipspro.hpp"
  52. #elif defined __DECCXX
  53. // Compaq Tru64 Unix cxx
  54. # define BOOST_COMPILER_CONFIG "boost/config/compiler/compaq_cxx.hpp"
  55. #elif defined __ghs
  56. // Greenhills C++
  57. # define BOOST_COMPILER_CONFIG "boost/config/compiler/greenhills.hpp"
  58. #elif defined __CODEGEARC__
  59. // CodeGear - must be checked for before Borland
  60. # define BOOST_COMPILER_CONFIG "boost/config/compiler/codegear.hpp"
  61. #elif defined __BORLANDC__
  62. // Borland
  63. # define BOOST_COMPILER_CONFIG "boost/config/compiler/borland.hpp"
  64. #elif defined __MWERKS__
  65. // Metrowerks CodeWarrior
  66. # define BOOST_COMPILER_CONFIG "boost/config/compiler/metrowerks.hpp"
  67. #elif defined __SUNPRO_CC
  68. // Sun Workshop Compiler C++
  69. # define BOOST_COMPILER_CONFIG "boost/config/compiler/sunpro_cc.hpp"
  70. #elif defined __HP_aCC
  71. // HP aCC
  72. # define BOOST_COMPILER_CONFIG "boost/config/compiler/hp_acc.hpp"
  73. #elif defined(__MRC__) || defined(__SC__)
  74. // MPW MrCpp or SCpp
  75. # define BOOST_COMPILER_CONFIG "boost/config/compiler/mpw.hpp"
  76. #elif defined(__IBMCPP__)
  77. // IBM Visual Age
  78. # define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
  79. #elif defined(__PGI)
  80. // Portland Group Inc.
  81. # define BOOST_COMPILER_CONFIG "boost/config/compiler/pgi.hpp"
  82. #elif defined _MSC_VER
  83. // Microsoft Visual C++
  84. //
  85. // Must remain the last #elif since some other vendors (Metrowerks, for
  86. // example) also #define _MSC_VER
  87. # define BOOST_COMPILER_CONFIG "boost/config/compiler/visualc.hpp"
  88. #elif defined (BOOST_ASSERT_CONFIG)
  89. // this must come last - generate an error if we don't
  90. // recognise the compiler:
  91. # 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)"
  92. #endif