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