select_stdlib_config.hpp 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Boost compiler configuration selection header file
  2. // (C) Copyright John Maddock 2001 - 2003.
  3. // (C) Copyright Jens Maurer 2001 - 2002.
  4. // Use, modification and distribution are subject to the
  5. // Boost Software License, Version 1.0. (See accompanying file
  6. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  7. // See http://www.boost.org for most recent version.
  8. // locate which std lib we are using and define BOOST_STDLIB_CONFIG as needed:
  9. // First include <cstddef> to determine if some version of STLport is in use as the std lib
  10. // (do not rely on this header being included since users can short-circuit this header
  11. // if they know whose std lib they are using.)
  12. #include <cstddef>
  13. #if defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)
  14. // STLPort library; this _must_ come first, otherwise since
  15. // STLport typically sits on top of some other library, we
  16. // can end up detecting that first rather than STLport:
  17. # define BOOST_STDLIB_CONFIG "boost/config/stdlib/stlport.hpp"
  18. #else
  19. // If our std lib was not some version of STLport, then include <utility> as it is about
  20. // the smallest of the std lib headers that includes real C++ stuff. (Some std libs do not
  21. // include their C++-related macros in <cstddef> so this additional include makes sure
  22. // we get those definitions)
  23. // (again do not rely on this header being included since users can short-circuit this
  24. // header if they know whose std lib they are using.)
  25. #include <boost/config/no_tr1/utility.hpp>
  26. #if defined(__LIBCOMO__)
  27. // Comeau STL:
  28. #define BOOST_STDLIB_CONFIG "boost/config/stdlib/libcomo.hpp"
  29. #elif defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)
  30. // Rogue Wave library:
  31. # define BOOST_STDLIB_CONFIG "boost/config/stdlib/roguewave.hpp"
  32. #elif defined(__GLIBCPP__) || defined(__GLIBCXX__)
  33. // GNU libstdc++ 3
  34. # define BOOST_STDLIB_CONFIG "boost/config/stdlib/libstdcpp3.hpp"
  35. #elif defined(__STL_CONFIG_H)
  36. // generic SGI STL
  37. # define BOOST_STDLIB_CONFIG "boost/config/stdlib/sgi.hpp"
  38. #elif defined(__MSL_CPP__)
  39. // MSL standard lib:
  40. # define BOOST_STDLIB_CONFIG "boost/config/stdlib/msl.hpp"
  41. #elif defined(__IBMCPP__)
  42. // take the default VACPP std lib
  43. # define BOOST_STDLIB_CONFIG "boost/config/stdlib/vacpp.hpp"
  44. #elif defined(MSIPL_COMPILE_H)
  45. // Modena C++ standard library
  46. # define BOOST_STDLIB_CONFIG "boost/config/stdlib/modena.hpp"
  47. #elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
  48. // Dinkumware Library (this has to appear after any possible replacement libraries):
  49. # define BOOST_STDLIB_CONFIG "boost/config/stdlib/dinkumware.hpp"
  50. #elif defined (BOOST_ASSERT_CONFIG)
  51. // this must come last - generate an error if we don't
  52. // recognise the library:
  53. # error "Unknown standard library - please configure and report the results to boost.org"
  54. #endif
  55. #endif