Chris@16: // (C) Copyright John Maddock 2005. Chris@16: // Use, modification and distribution are subject to the Chris@16: // Boost Software License, Version 1.0. (See accompanying file Chris@16: // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: Chris@16: /* Chris@16: * The gcc include path logic is derived from STLport: Chris@16: * Chris@16: * Copyright (c) 1994 Chris@16: * Hewlett-Packard Company Chris@16: * Chris@16: * Copyright (c) 1996-1999 Chris@16: * Silicon Graphics Computer Systems, Inc. Chris@16: * Chris@16: * Copyright (c) 1997 Chris@16: * Moscow Center for SPARC Technology Chris@16: * Chris@16: * Copyright (c) 1999-2003 Chris@16: * Boris Fomitchev Chris@16: * Chris@16: * This material is provided "as is", with absolutely no warranty expressed Chris@16: * or implied. Any use is at your own risk. Chris@16: * Chris@16: * Permission to use or copy this software for any purpose is hereby granted Chris@16: * without fee, provided the above notices are retained on all copies. Chris@16: * Permission to modify the code and to distribute modified code is granted, Chris@16: * provided the above notices are retained, and a notice that the code was Chris@16: * modified is included with the above copyright notice. Chris@16: * Chris@16: */ Chris@16: Chris@16: #ifndef BOOST_TR1_DETAIL_CONFIG_ALL_HPP_INCLUDED Chris@16: # define BOOST_TR1_DETAIL_CONFIG_ALL_HPP_INCLUDED Chris@16: Chris@16: // Chris@16: // IMPORTANT: we must figure out the basics, such as how to Chris@16: // forward to the real std lib headers *without* including Chris@16: // boost/config.hpp or any of the std lib headers. A classic Chris@16: // chicken and the egg problem.... Chris@16: // Chris@16: // Including at least lets us detect STLport: Chris@16: // Chris@16: #include Chris@16: Chris@16: // Including allows us to use __GLIBCXX__ to Chris@16: // determine the version of the stdc++ library in use Chris@16: // under Darwin. Chris@16: #include Chris@16: Chris@16: # if defined(_RWSTD_VER) && _RWSTD_VER >= 0x04010200 Chris@16: # if !defined (__SUNPRO_CC) && !defined (__DECCXX) Chris@16: # define BOOST_TR1_STD_CHEADER(name) <../include/ansi/name> Chris@16: # endif Chris@16: # endif Chris@16: Chris@101: #ifdef __ANDROID__ Chris@101: # define BOOST_TR1_GCC_INCLUDE_PATH include Chris@101: #endif Chris@101: Chris@16: Chris@16: # if (defined(__SGI_STL_PORT) || defined(_STLPORT_VERSION)) && !defined(__BORLANDC__) Chris@16: # ifdef __SUNPRO_CC Chris@16: // can't use <../stlport/name> since some compilers put stlport in a different directory: Chris@16: # define BOOST_TR1_STD_HEADER(name) <../stlport4/name> Chris@16: # elif defined(__PGI) Chris@16: # define BOOST_TR1_STD_HEADER(name) <../CC/name> Chris@16: # else Chris@16: # define BOOST_TR1_STD_HEADER(name) <../stlport/name> Chris@16: # endif Chris@16: # elif defined(__PATHSCALE__) && (defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)) Chris@16: # define BOOST_TR1_STD_HEADER(name) <../include/name> Chris@16: Chris@16: # elif defined(__SUNPRO_CC) && (defined(__STD_RWCOMPILER_H__) || defined(_RWSTD_VER)) Chris@16: # define BOOST_TR1_STD_HEADER(name) <../stdcxx4/name> Chris@16: Chris@16: # elif defined(__HP_aCC) Chris@16: // HP aCC include path: Chris@16: # define BOOST_TR1_STD_HEADER(name) <../include_std/name> Chris@16: Chris@16: # elif defined(__DECCXX) Chris@16: # define BOOST_TR1_STD_HEADER(name) <../cxx/name> Chris@16: Chris@16: # elif defined(__BORLANDC__) && __BORLANDC__ >= 0x570 Chris@16: # define BOOST_TR1_STD_HEADER(name) <../include/dinkumware/name> Chris@16: Chris@16: # elif defined(__clang__) Chris@16: # define BOOST_TR1_STD_HEADER(name) <../include/name> Chris@16: Chris@101: # elif defined(_CRAYC) Chris@101: # define BOOST_TR1_STD_HEADER(name) <../include/name> Chris@101: Chris@101: # elif defined(__GNUC__) Chris@16: # if defined(BOOST_TR1_GCC_INCLUDE_PATH) Chris@16: # define BOOST_TR1_STD_HEADER(name) <../BOOST_TR1_GCC_INCLUDE_PATH/name> Chris@101: # elif (defined(__FreeBSD__)) Chris@101: # define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__/name> Chris@16: # else Chris@101: # if ( (__GNUC__ == 3) && (defined(__APPLE_CC__) || defined(__CYGWIN__))) Chris@16: # define BOOST_TR1_STD_HEADER(name) <../c++/name> Chris@16: # elif ((__GLIBCXX__ == 20050421) && defined(__APPLE_CC__)) Chris@16: // Some Darwin tools fix libstdc++ at 4.0.0 irrespective of the actual Chris@16: // compiler version: Chris@16: # define BOOST_TR1_STD_HEADER(name) <../4.0.0/name> Chris@16: /* Chris@16: * Before version 3.4.0 the 0 patch level was not part of the include path: Chris@16: */ Chris@16: # elif defined (__GNUC_PATCHLEVEL__) && ((__GNUC_PATCHLEVEL__ > 0) || \ Chris@16: (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ Chris@16: (__GNUC__ > 3)) Chris@16: # define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__.__GNUC_PATCHLEVEL__/name> Chris@16: # else Chris@16: # define BOOST_TR1_STD_HEADER(name) <../__GNUC__.__GNUC_MINOR__/name> Chris@16: # endif Chris@16: # endif Chris@16: Chris@16: # if !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT) && !defined(__ICC) \ Chris@101: && (defined(__FreeBSD__) || defined(linux) || defined(__linux) || defined(__linux__) || defined(__GNU__) || defined(__GLIBC__)) Chris@16: // Disable use of #include_next on Linux as typically we are installed in a directory that is searched Chris@16: // *after* the std lib include path: Chris@16: # define BOOST_TR1_DISABLE_INCLUDE_NEXT Chris@16: # endif Chris@16: Chris@16: # else Chris@16: # define BOOST_TR1_STD_HEADER(name) <../include/name> Chris@16: # endif Chris@16: Chris@16: #if !defined(BOOST_TR1_STD_CHEADER) Chris@16: # define BOOST_TR1_STD_CHEADER(name) BOOST_TR1_STD_HEADER(name) Chris@16: #endif Chris@16: Chris@16: #if defined(__GNUC__) && !defined(BOOST_HAS_INCLUDE_NEXT) Chris@16: # define BOOST_HAS_INCLUDE_NEXT Chris@16: #endif Chris@16: #ifdef __GXX_EXPERIMENTAL_CXX0X__ Chris@16: # define BOOST_HAS_CPP_0X Chris@16: #endif Chris@16: #if defined(_MSC_VER) && (_MSC_VER >= 1600) && !defined(BOOST_HAS_CPP_0X) Chris@16: # define BOOST_HAS_CPP_0X Chris@16: #endif Chris@16: // Chris@16: // We may be in the middle of parsing boost/config.hpp Chris@16: // when this header is included, so don't rely on config Chris@16: // stuff in the rest of this header... Chris@16: // Chris@16: // Find our actual std lib: Chris@16: // Chris@16: #if defined(BOOST_HAS_INCLUDE_NEXT) && !defined(BOOST_TR1_DISABLE_INCLUDE_NEXT) Chris@16: // Chris@16: // We don't take this branch if BOOST_TR1_DISABLE_INCLUDE_NEXT Chris@16: // is defined as we may be installed in Chris@16: // /usr/include, in which case #include_next won't work as our Chris@16: // include path will occur AFTER the regular std lib one :-( Chris@16: // Chris@16: # ifndef BOOST_TR1_NO_RECURSION Chris@16: # define BOOST_TR1_NO_RECURSION Chris@16: # define BOOST_TR1_NO_CONFIG_ALL_RECURSION Chris@16: # endif Chris@16: # include_next Chris@16: # ifdef BOOST_TR1_NO_CONFIG_ALL_RECURSION Chris@16: # undef BOOST_TR1_NO_CONFIG_ALL_RECURSION Chris@16: # undef BOOST_TR1_NO_RECURSION Chris@16: # endif Chris@16: #else Chris@16: # include BOOST_TR1_STD_HEADER(utility) Chris@16: #endif Chris@16: Chris@16: #include Chris@16: Chris@16: #endif Chris@16: Chris@16: