mirror of
https://github.com/boostorg/config.git
synced 2026-03-24 08:07:27 +01:00
Compare commits
2 Commits
boost-1.28
...
boost-1.27
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a56369f144 | ||
|
|
4189268f3e |
100
config.htm
100
config.htm
@@ -1,3 +1,4 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
|
||||
<head>
|
||||
@@ -11,8 +12,8 @@ content="C:\PROGRAM FILES\MICROSOFT OFFICE\OFFICE\html.dot">
|
||||
|
||||
<body bgcolor="#FFFFFF" link="#0000FF" vlink="#800080">
|
||||
|
||||
<p align="left"><img src="../../c++boost.gif" alt="Boost"
|
||||
width="277" height="86"></p>
|
||||
<p align="left"><img src="../../c++boost.gif" width="277"
|
||||
height="86" alt="Boost"></p>
|
||||
|
||||
<h1 align="center">Boost Configuration Reference</h1>
|
||||
|
||||
@@ -270,15 +271,6 @@ they are listed in the following table: </p>
|
||||
threading support, even if the compiler in its current
|
||||
translation mode supports multiple threads.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">BOOST_DISABLE_WIN32</td>
|
||||
<td>When defined, disables the use of Win32 specific
|
||||
API's, even when these are available. Also has the effect
|
||||
of setting BOOST_DISABLE_THREADS unless
|
||||
BOOST_HAS_PTHREADS is set. This option may be set
|
||||
automatically by the config system when it detects that
|
||||
the compiler is in "strict mode".</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<h4><a name="advanced_config"></a>Advanced configuration usage</h4>
|
||||
@@ -548,17 +540,6 @@ struct foo : {
|
||||
class X { ... };</pre>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top">BOOST_NO_EXCEPTIONS</td>
|
||||
<td valign="top">Compiler</td>
|
||||
<td>The compiler does not support exception handling (this
|
||||
setting is typically required by many C++ compilers for
|
||||
embedded platforms). Note that there is no requirement
|
||||
for boost libraries to honor this configuration setting -
|
||||
indeed doing so may be impossible in some cases. Those
|
||||
libraries that do honor this will typically abort if a
|
||||
critical error occurs - you have been warned!</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="51%">BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS</td>
|
||||
<td valign="top" width="16%">Compiler</td>
|
||||
@@ -598,9 +579,7 @@ f(&bar); // should choose #2.</pre>
|
||||
<td valign="top" width="51%">BOOST_NO_LIMITS</td>
|
||||
<td valign="top" width="16%">Standard library</td>
|
||||
<td valign="top" width="33%">The C++ implementation does
|
||||
not provide the <limits> header. Never check for
|
||||
this symbol in library code; always include <boost/limits.hpp>,
|
||||
which guarantees to provide <code>std::numeric_limits</code>.</td>
|
||||
not provide the <limits> header.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="51%">BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS</td>
|
||||
@@ -757,11 +736,9 @@ f(&bar); // should choose #2.</pre>
|
||||
<td valign="top" width="51%">BOOST_NO_USING_TEMPLATE</td>
|
||||
<td valign="top" width="16%">Compiler</td>
|
||||
<td valign="top" width="33%">The compiler will not accept
|
||||
a using declaration that imports a template class or
|
||||
function from another namespace. Originally a Borland
|
||||
specific problem with imports to/from the global
|
||||
namespace, extended to MSVC6 which has a specific issue
|
||||
with importing template classes (but not functions).</td>
|
||||
a using declaration that imports a template from the
|
||||
global namespace into a named namespace. Probably Borland
|
||||
specific.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="51%">BOOST_NO_VOID_RETURNS</td>
|
||||
@@ -795,33 +772,12 @@ present.</p>
|
||||
<td valign="top" width="37%">The platform supports BeOS
|
||||
style threads.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_CLOCK_GETTIME</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API clock_gettime.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_FTIME</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the Win32 API
|
||||
GetSystemTimeAsFileTime.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_GETTIMEOFDAY</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API gettimeofday.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_HASH</td>
|
||||
<td valign="top" width="15%">Standard library</td>
|
||||
<td valign="top" width="37%">The C++ implementation
|
||||
provides the (SGI) hash_set or hash_map classes.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_LONG_LONG</td>
|
||||
<td>Compiler</td>
|
||||
<td>The compiler supports the long long data type.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_MACRO_USE_FACET</td>
|
||||
<td valign="top" width="15%">Standard library</td>
|
||||
@@ -830,60 +786,18 @@ present.</p>
|
||||
that does the job. This is primarily for the Dinkumware
|
||||
std lib.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_MS_INT64</td>
|
||||
<td>Compiler</td>
|
||||
<td>The compiler supports the __int64 data type.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_NANOSLEEP</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API nanosleep.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_NL_TYPES_H</td>
|
||||
<td valign="top" width="15%">Platform</td>
|
||||
<td valign="top" width="37%">The platform has an
|
||||
<nl_types.h>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_PTHREAD_DELAY_NP</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API pthread_delay_np.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API
|
||||
pthread_mutexattr_settype.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_PTHREAD_YIELD</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API pthread_yield.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_PTHREADS</td>
|
||||
<td valign="top" width="15%">Platform</td>
|
||||
<td valign="top" width="37%">The platform support POSIX
|
||||
style threads.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_SCHED_YIELD</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has the POSIX API sched_yield.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_SGI_TYPE_TRAITS</td>
|
||||
<td>Compiler/standard library</td>
|
||||
<td>The compiler has native support for SGI style type
|
||||
traits.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>BOOST_HAS_STDINT_H</td>
|
||||
<td>Platform</td>
|
||||
<td>The platform has a <stdint.h></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" width="48%">BOOST_HAS_SLIST</td>
|
||||
<td valign="top" width="15%">Standard library</td>
|
||||
|
||||
@@ -7,60 +7,32 @@
|
||||
|
||||
// Borland C++ compiler setup:
|
||||
|
||||
// Version 5.0 and below:
|
||||
# if __BORLANDC__ <= 0x0550
|
||||
// Borland C++Builder 4 and 5:
|
||||
// Borland C++ Builder 4 and 5:
|
||||
# define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
# if __BORLANDC__ == 0x0550
|
||||
// Borland C++Builder 5, command-line compiler 5.5:
|
||||
// Borland C++ Builder 5, command-line compiler 5.5:
|
||||
# define BOOST_NO_OPERATORS_IN_NAMESPACE
|
||||
# endif
|
||||
# endif
|
||||
|
||||
// Version 5.51 and below:
|
||||
#if (__BORLANDC__ <= 0x551)
|
||||
# define BOOST_NO_CV_SPECIALIZATIONS
|
||||
# define BOOST_NO_CV_VOID_SPECIALIZATIONS
|
||||
# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
||||
#endif
|
||||
|
||||
// Version 6.0 and below:
|
||||
#if (__BORLANDC__ <= 0x560) || !defined(BOOST_STRICT_CONFIG)
|
||||
# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
# define BOOST_NO_PRIVATE_IN_AGGREGATE
|
||||
# define BOOST_NO_SWPRINTF
|
||||
# define BOOST_NO_USING_TEMPLATE
|
||||
// we shouldn't really need this - but too many things choke
|
||||
// without it, this needs more investigation:
|
||||
# define BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
||||
#endif
|
||||
|
||||
// Borland C++Builder 6 defaults to using STLPort. If _USE_OLD_RW_STL is
|
||||
// defined, then we have 0x560 or greater with the Rogue Wave implementation
|
||||
// which presumably has the std::DBL_MAX bug.
|
||||
#if ((__BORLANDC__ >= 0x550) && (__BORLANDC__ < 0x560)) || defined(_USE_OLD_RW_STL)
|
||||
// <climits> is partly broken, some macros define symbols that are really in
|
||||
#if (__BORLANDC__ >= 0x550)
|
||||
// <climits> is partly broken, some macos define symbols that are really in
|
||||
// namespace std, so you end up having to use illegal constructs like
|
||||
// std::DBL_MAX, as a fix we'll just include float.h and have done with:
|
||||
#include <float.h>
|
||||
#endif
|
||||
//
|
||||
// __int64:
|
||||
//
|
||||
#if __BORLANDC__ >= 0x530
|
||||
# define BOOST_HAS_MS_INT64
|
||||
|
||||
// Version 5.51:
|
||||
#if (__BORLANDC__ <= 0x551) || !defined(BOOST_STRICT_CONFIG)
|
||||
# define BOOST_NO_CV_SPECIALIZATIONS
|
||||
# define BOOST_NO_CV_VOID_SPECIALIZATIONS
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
# define BOOST_NO_PRIVATE_IN_AGGREGATE
|
||||
# define BOOST_NO_DEPENDENT_NESTED_DERIVATIONS
|
||||
# define BOOST_NO_SWPRINTF
|
||||
# define BOOST_NO_USING_TEMPLATE
|
||||
#endif
|
||||
//
|
||||
// check for exception handling support:
|
||||
//
|
||||
#ifndef _CPPUNWIND
|
||||
# define BOOST_NO_EXCEPTIONS
|
||||
#endif
|
||||
//
|
||||
// Disable Win32 support in ANSI mode:
|
||||
//
|
||||
#pragma defineonoption BOOST_DISABLE_WIN32 -A
|
||||
|
||||
#define BOOST_COMPILER "Borland C++ version " BOOST_STRINGIZE(__BORLANDC__)
|
||||
|
||||
@@ -71,8 +43,8 @@
|
||||
# error "Compiler not supported or configured - please reconfigure"
|
||||
#endif
|
||||
//
|
||||
// last known and checked version is 5.6:
|
||||
#if (__BORLANDC__ > 0x560)
|
||||
// last known and checked version is 5.51:
|
||||
#if (__BORLANDC__ > 0x551)
|
||||
# if defined(BOOST_ASSERT_CONFIG)
|
||||
# error "Unknown compiler version - please run the configure tests and report the results"
|
||||
# else
|
||||
@@ -81,3 +53,5 @@
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -12,37 +12,16 @@
|
||||
#if (__COMO_VERSION__ <= 4245) || !defined(BOOST_STRICT_CONFIG)
|
||||
# if defined(_MSC_VER) && _MSC_VER <= 1300
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
|
||||
# define BOOST_NO_SWPRINTF
|
||||
# if _MSC_VER > 100
|
||||
// only set this in non-strict mode:
|
||||
# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
|
||||
# endif
|
||||
# endif
|
||||
|
||||
// Void returns don't work when emulating VC 6 (Peter Dimov)
|
||||
|
||||
# if defined(_MSC_VER) && (_MSC_VER == 1200)
|
||||
# if defined(_MSC_VER) && (_MSC_VER <= 1200)
|
||||
# define BOOST_NO_VOID_RETURNS
|
||||
# endif
|
||||
|
||||
|
||||
#endif // version 4245
|
||||
|
||||
//
|
||||
// enable __int64 support in VC emulation mode
|
||||
// we should also set BOOST_HAS_LONG_LONG when that is
|
||||
// supported, but there is no way we can detect it:
|
||||
//
|
||||
# if defined(_MSC_VER) && (_MSC_VER >= 1200)
|
||||
# define BOOST_HAS_MS_INT64
|
||||
# endif
|
||||
|
||||
//
|
||||
// disable win32 support unless we are in VC emulation mode,
|
||||
// (what does this do to Como on top of Borland?):
|
||||
//
|
||||
#if defined(_WIN32) && (_MSC_VER+0 < 1000)
|
||||
# define BOOST_DISABLE_WIN32
|
||||
#endif
|
||||
|
||||
#define BOOST_COMPILER "Comeau compiler version " BOOST_STRINGIZE(__COMO_VERSION__)
|
||||
|
||||
@@ -48,16 +48,11 @@
|
||||
|
||||
#endif
|
||||
|
||||
#if _MSC_VER+0 >= 1000
|
||||
#ifdef _MSC_VER
|
||||
# ifndef _NATIVE_WCHAR_T_DEFINED
|
||||
# define BOOST_NO_INTRINSIC_WCHAR_T
|
||||
# endif
|
||||
# if _MSC_VER >= 1200
|
||||
# define BOOST_HAS_MS_INT64
|
||||
# endif
|
||||
# define BOOST_NO_SWPRINTF
|
||||
#elif defined(_WIN32)
|
||||
# define BOOST_DISABLE_WIN32
|
||||
#endif
|
||||
|
||||
|
||||
@@ -68,12 +63,12 @@
|
||||
# error "Compiler not supported or configured - please reconfigure"
|
||||
#endif
|
||||
//
|
||||
// last known and checked version is 600:
|
||||
#if (BOOST_INTEL_CXX_VERSION > 600)
|
||||
// last known and checked version is 500:
|
||||
#if (BOOST_INTEL_CXX_VERSION > 500)
|
||||
# if defined(BOOST_ASSERT_CONFIG)
|
||||
# error "Unknown compiler version - please run the configure tests and report the results"
|
||||
# elif defined(_MSC_VER)
|
||||
# pragma message("Unknown compiler version - please run the configure tests and report the results")
|
||||
# warning "Unknown compiler version - please run the configure tests and report the results"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
|
||||
#include "boost/config/compiler/common_edg.hpp"
|
||||
|
||||
//
|
||||
// Threading support:
|
||||
// Turn this on unconditionally here, it will get turned off again later
|
||||
// if no threading API is detected.
|
||||
//
|
||||
#define BOOST_HAS_THREADS
|
||||
//
|
||||
// version check:
|
||||
// probably nothing to do here?
|
||||
|
||||
|
||||
@@ -21,16 +21,14 @@
|
||||
// wrong, especially where the value is computed
|
||||
// from other constants (J Maddock 6th May 2001)
|
||||
# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
||||
# endif
|
||||
|
||||
# if (__SUNPRO_CC <= 0x530) || !defined(BOOST_STRICT_CONFIG)
|
||||
// Although sunpro 5.2 supports the syntax for
|
||||
// partial specialization, it often seems to
|
||||
// bind to the wrong specialization. Better
|
||||
// to disable it until suppport becomes more stable
|
||||
// (J Maddock 6th May 2001).
|
||||
# define BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||
# endif
|
||||
|
||||
# if (__SUNPRO_CC <= 0x530) || !defined(BOOST_STRICT_CONFIG)
|
||||
// SunPro 5.3 has better support for partial specialization,
|
||||
// but breaks when compiling std::less<shared_ptr<T> >
|
||||
// (Jens Maurer 4 Nov 2001).
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
// Visual Age (IBM) C++ compiler setup:
|
||||
|
||||
#define BOOST_NO_MEMBER_TEMPLATE_FRIENDS
|
||||
#define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
||||
|
||||
//
|
||||
// On AIX thread support seems to be indicated by _THREAD_SAFE:
|
||||
//
|
||||
|
||||
@@ -10,26 +10,16 @@
|
||||
#define BOOST_MSVC _MSC_VER
|
||||
|
||||
// turn off the warnings before we #include anything
|
||||
#pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
|
||||
#pragma warning( disable : 4503 ) // warning: decorated name length exceeded
|
||||
|
||||
#if _MSC_VER <= 1200 // 1200 == VC++ 6.0
|
||||
#pragma warning( disable : 4786 ) // ident trunc to '255' chars in debug info
|
||||
# define BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
|
||||
# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
||||
# define BOOST_NO_VOID_RETURNS
|
||||
// disable min/max macro defines on vc6:
|
||||
//
|
||||
# ifndef NOMINMAX
|
||||
# define NOMINMAX
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if (_MSC_VER <= 1300) // || !defined(BOOST_STRICT_CONFIG) // VC7 Beta 2 or later
|
||||
|
||||
#if !defined(_MSC_EXTENSIONS) && !defined(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS) // VC7 bug with /Za
|
||||
# define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
|
||||
#endif
|
||||
|
||||
#if (_MSC_VER <= 1300) || !defined(BOOST_STRICT_CONFIG) // VC7 Beta 2 or later
|
||||
# define BOOST_NO_INCLASS_MEMBER_INITIALIZATION
|
||||
# define BOOST_NO_PRIVATE_IN_AGGREGATE
|
||||
# define BOOST_NO_ARGUMENT_DEPENDENT_LOOKUP
|
||||
@@ -47,6 +37,7 @@
|
||||
# define BOOST_NO_FUNCTION_TEMPLATE_ORDERING
|
||||
# define BOOST_NO_USING_TEMPLATE
|
||||
# define BOOST_NO_SWPRINTF
|
||||
//# define BOOST_NO_POINTER_TO_MEMBER_CONST
|
||||
//
|
||||
// disable min/max macros if defined:
|
||||
//
|
||||
@@ -56,39 +47,17 @@
|
||||
# ifdef max
|
||||
# undef max
|
||||
# endif
|
||||
|
||||
#endif
|
||||
|
||||
#if _MSC_VER <= 1301
|
||||
# define BOOST_NO_SWPRINTF
|
||||
// disable min/max macro defines on vc6:
|
||||
//
|
||||
# ifndef NOMINMAX
|
||||
# define NOMINMAX
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#ifndef _NATIVE_WCHAR_T_DEFINED
|
||||
# define BOOST_NO_INTRINSIC_WCHAR_T
|
||||
#endif
|
||||
|
||||
//
|
||||
// check for exception handling support:
|
||||
#ifndef _CPPUNWIND
|
||||
# define BOOST_NO_EXCEPTIONS
|
||||
#endif
|
||||
|
||||
//
|
||||
// __int64 support:
|
||||
//
|
||||
#if (_MSC_VER >= 1200) && defined(_MSC_EXTENSIONS)
|
||||
# define BOOST_HAS_MS_INT64
|
||||
#endif
|
||||
//
|
||||
// disable Win32 API's if compiler extentions are
|
||||
// turned off:
|
||||
//
|
||||
#ifndef _MSC_EXTENSIONS
|
||||
# define BOOST_DISABLE_WIN32
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#define BOOST_COMPILER "Microsoft Visual C++ version " BOOST_STRINGIZE(_MSC_VER)
|
||||
|
||||
//
|
||||
@@ -98,14 +67,12 @@
|
||||
#error "Compiler not supported or configured - please reconfigure"
|
||||
#endif
|
||||
//
|
||||
// last known and checked version is 1301:
|
||||
#if (_MSC_VER > 1301)
|
||||
// last known and checked version is 1300:
|
||||
#if (_MSC_VER > 1300)
|
||||
# if defined(BOOST_ASSERT_CONFIG)
|
||||
# error "Unknown compiler version - please run the configure tests and report the results"
|
||||
# else
|
||||
# pragma message("Unknown compiler version - please run the configure tests and report the results")
|
||||
# warning "Unknown compiler version - please run the configure tests and report the results"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
|
||||
// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// See http://www.boost.org for most recent version.
|
||||
|
||||
#define BOOST_PLATFORM "AmigaOS"
|
||||
|
||||
#define BOOST_DISABLE_THREADS
|
||||
#define BOOST_NO_CWCHAR
|
||||
#define BOOST_NO_STD_WSTRING
|
||||
#define BOOST_NO_INTRINSIC_WCHAR_T
|
||||
|
||||
@@ -21,21 +21,13 @@
|
||||
|
||||
//
|
||||
// is this the correct version check?
|
||||
// FreeBSD has <nl_types.h> but does not
|
||||
// FreeBSD has <nl_type.h> but does not
|
||||
// advertise the fact in <unistd.h>:
|
||||
//
|
||||
#if defined(__FreeBSD__) && (__FreeBSD__ >= 3)
|
||||
#if defined(__FreeBSD__) && (__FreeBSD__ >= 4)
|
||||
# define BOOST_HAS_NL_TYPES_H
|
||||
#endif
|
||||
|
||||
//
|
||||
// FreeBSD 3.x has pthreads support, but defines _POSIX_THREADS in <pthread.h>
|
||||
// and not in <unistd.h>
|
||||
//
|
||||
#if defined(__FreeBSD__) && (__FreeBSD__ <= 3)
|
||||
# define BOOST_HAS_PTHREADS
|
||||
#endif
|
||||
|
||||
//
|
||||
// No wide character support in the BSD header files:
|
||||
//
|
||||
|
||||
@@ -10,15 +10,8 @@
|
||||
#define BOOST_PLATFORM "SGI Irix"
|
||||
|
||||
#define BOOST_NO_SWPRINTF
|
||||
//
|
||||
// these are not auto detected by POSIX feature tests:
|
||||
//
|
||||
#define BOOST_HAS_GETTIMEOFDAY
|
||||
#define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
|
||||
|
||||
|
||||
// boilerplate code:
|
||||
#define BOOST_HAS_UNISTD_H
|
||||
#include <boost/config/posix_features.hpp>
|
||||
|
||||
|
||||
|
||||
@@ -25,13 +25,6 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
//
|
||||
// como on linux doesn't have std:: c functions:
|
||||
//
|
||||
#ifdef __COMO__
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
#endif
|
||||
|
||||
//
|
||||
// If glibc is past version 2 then we definitely have
|
||||
// gettimeofday, earlier versions may or may not have it:
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
# define BOOST_NO_SWPRINTF
|
||||
#endif
|
||||
|
||||
#ifndef BOOST_DISABLE_WIN32
|
||||
//
|
||||
// Win32 will normally be using native Win32 threads,
|
||||
// but there is a pthread library avaliable as an option:
|
||||
@@ -35,5 +34,3 @@
|
||||
|
||||
// WEK: Added
|
||||
#define BOOST_HAS_FTIME
|
||||
|
||||
#endif
|
||||
|
||||
@@ -14,10 +14,6 @@
|
||||
// GNU C++:
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/gcc.hpp"
|
||||
|
||||
# elif defined __COMO__
|
||||
// Comeau C++
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
|
||||
|
||||
#elif defined __KCC
|
||||
// Kai C++
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/kai.hpp"
|
||||
@@ -62,6 +58,10 @@
|
||||
// IBM Visual Age
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/vacpp.hpp"
|
||||
|
||||
# elif defined __COMO__
|
||||
// Comeau C++
|
||||
# define BOOST_COMPILER_CONFIG "boost/config/compiler/comeau.hpp"
|
||||
|
||||
#elif defined _MSC_VER
|
||||
// Microsoft Visual C++
|
||||
//
|
||||
@@ -75,4 +75,3 @@
|
||||
# error "Unknown compiler - please configure and report the results to boost.org"
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -52,10 +52,6 @@
|
||||
// IBM
|
||||
# define BOOST_PLATFORM_CONFIG "boost/config/platform/aix.hpp"
|
||||
|
||||
#elif defined(__amigaos__)
|
||||
// AmigaOS
|
||||
# define BOOST_PLATFORM_CONFIG "boost/config/platform/amigaos.hpp"
|
||||
|
||||
#else
|
||||
|
||||
# if defined(unix) \
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
// if this lib version is set up for vc6 then there is no std::use_facet:
|
||||
# define BOOST_NO_STD_USE_FACET
|
||||
# define BOOST_HAS_TWO_ARG_USE_FACET
|
||||
// C lib functions aren't in namespace std either:
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
# endif
|
||||
// 3.06 appears to have (non-sgi versions of) <hash_set> & <hash_map>,
|
||||
// and no <slist> at all
|
||||
@@ -55,7 +53,7 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && (_MSC_VER <= 1200) || !defined(_CPPLIB_VER) || _CPPLIB_VER < 306
|
||||
#if defined(_MSC_VER) && (_MSC_VER <= 1200)
|
||||
// if we're using a dinkum lib that's
|
||||
// been configured for VC6 then there is
|
||||
// no iterator traits (true even for icl)
|
||||
|
||||
@@ -82,8 +82,6 @@
|
||||
# include <string>
|
||||
# if defined(__BASTRING__)
|
||||
# define BOOST_NO_LIMITS
|
||||
// Note: <boost/limits.hpp> will provide compile-time constants
|
||||
# undef BOOST_NO_LIMITS_COMPILE_TIME_CONSTANTS
|
||||
# define BOOST_NO_STD_WSTRING
|
||||
# endif
|
||||
#endif
|
||||
|
||||
@@ -49,10 +49,10 @@
|
||||
// If the streams are not native, and we have a "using ::x" compiler bug
|
||||
// then the io stream facets are not available in namespace std::
|
||||
//
|
||||
#if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__)
|
||||
#if !defined(_STLP_OWN_IOSTREAMS) && defined(_STLP_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE)
|
||||
# define BOOST_NO_STD_LOCALE
|
||||
#endif
|
||||
#if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE) && !defined(__BORLANDC__)
|
||||
#if !defined(__SGI_STL_OWN_IOSTREAMS) && defined(__STL_USE_NAMESPACES) && defined(BOOST_NO_USING_TEMPLATE)
|
||||
# define BOOST_NO_STD_LOCALE
|
||||
#endif
|
||||
|
||||
@@ -80,17 +80,10 @@
|
||||
// but doesn't always get them all, define BOOST_NO_STDC_NAMESPACE, since our
|
||||
// workaround does not conflict with STLports:
|
||||
//
|
||||
//
|
||||
// Harold Howe says:
|
||||
// Borland switched to STLport in BCB6. Defining BOOST_NO_STDC_NAMESPACE with
|
||||
// BCB6 does cause problems. If we detect BCB6, then don't define
|
||||
// BOOST_NO_STDC_NAMESPACE
|
||||
//
|
||||
#if !defined(__BORLANDC__) || (__BORLANDC__ < 0x560)
|
||||
# if defined(__STL_IMPORT_VENDOR_CSTD) || defined(__STL_USE_OWN_NAMESPACE) || defined(_STLP_IMPORT_VENDOR_CSTD) || defined(_STLP_USE_OWN_NAMESPACE)
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
# endif
|
||||
#if defined(__STL_IMPORT_VENDOR_CSTD) || defined(__STL_USE_OWN_NAMESPACE) || defined(_STLP_IMPORT_VENDOR_CSTD) || defined(_STLP_USE_OWN_NAMESPACE)
|
||||
# define BOOST_NO_STDC_NAMESPACE
|
||||
#endif
|
||||
|
||||
//
|
||||
// std::reverse_iterate behaves like VC6's under some circumstances:
|
||||
//
|
||||
@@ -119,17 +112,8 @@
|
||||
# define BOOST_NO_CWTYPE
|
||||
#endif
|
||||
|
||||
//
|
||||
// Borland ships a version of STLport with C++ Builder 6 that lacks
|
||||
// hashtables and the like:
|
||||
//
|
||||
#if defined(__BORLANDC__) && (__BORLANDC__ == 0x560)
|
||||
# undef BOOST_HAS_HASH
|
||||
#endif
|
||||
|
||||
|
||||
#define BOOST_STDLIB "STLPort standard library version " BOOST_STRINGIZE(__SGI_STL_PORT)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -32,9 +32,6 @@
|
||||
&& (defined(ULLONG_MAX) || defined(ULONG_LONG_MAX) || defined(ULONGLONG_MAX))
|
||||
# define BOOST_HAS_LONG_LONG
|
||||
#endif
|
||||
#if !defined(BOOST_HAS_LONG_LONG) && !defined(BOOST_NO_INTEGRAL_INT64_T)
|
||||
# define BOOST_NO_INTEGRAL_INT64_T
|
||||
#endif
|
||||
|
||||
// GCC 3.x will clean up all of those nasty macro definitions that
|
||||
// BOOST_NO_CTYPE_FUNCTIONS is intended to help work around, so undefine
|
||||
@@ -133,16 +130,6 @@
|
||||
# define BOOST_NO_SWPRINTF
|
||||
# endif
|
||||
|
||||
//
|
||||
// If Win32 support is turned off, then we must turn off
|
||||
// threading support also, unless there is some other
|
||||
// thread API enabled:
|
||||
//
|
||||
#if defined(BOOST_DISABLE_WIN32) && defined(_WIN32) \
|
||||
&& !defined(BOOST_DISABLE_THREADS) && !defined(BOOST_HAS_PTHREADS)
|
||||
# define BOOST_DISABLE_THREADS
|
||||
#endif
|
||||
|
||||
//
|
||||
// Turn on threading support if the compiler thinks that it's in
|
||||
// multithreaded mode. We put this here because there are only a
|
||||
@@ -218,25 +205,12 @@ namespace std {
|
||||
return __a < __b ? __b : __a;
|
||||
}
|
||||
# ifdef BOOST_MSVC
|
||||
// Apparently, something in the Microsoft libraries requires the "long"
|
||||
// overload, because it calls the min/max functions with arguments of
|
||||
// slightly different type. (If this proves to be incorrect, this
|
||||
// whole "BOOST_MSVC" section can be removed.)
|
||||
inline long min(long __a, long __b) {
|
||||
return __b < __a ? __b : __a;
|
||||
}
|
||||
inline long max(long __a, long __b) {
|
||||
return __a < __b ? __b : __a;
|
||||
}
|
||||
// The "long double" overload is required, otherwise user code calling
|
||||
// min/max for floating-point numbers will use the "long" overload.
|
||||
// (SourceForge bug #495495)
|
||||
inline long double min(long double __a, long double __b) {
|
||||
return __b < __a ? __b : __a;
|
||||
}
|
||||
inline long double max(long double __a, long double __b) {
|
||||
return __a < __b ? __b : __a;
|
||||
}
|
||||
# endif
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
// boost/config/user.hpp ---------------------------------------------------//
|
||||
|
||||
// (C) Copyright Boost.org 2001. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// (C) Copyright Boost.org 2001.
|
||||
// Do not check in modified versions of this file,
|
||||
// This file may be customized by the end user, but not by boost.
|
||||
|
||||
@@ -61,8 +55,4 @@
|
||||
// when available:
|
||||
// #define BOOST_DISABLE_THREADS
|
||||
|
||||
// define when you want to disable Win32 specific features
|
||||
// even when available:
|
||||
// #define BOOST_DISABLE_WIN32
|
||||
|
||||
|
||||
|
||||
@@ -92,16 +92,8 @@ enum float_denorm_style {
|
||||
static const __mem_type __mem_name = __mem_value
|
||||
#endif /* BOOST_NO_INCLASS_MEMBER_INITIALIZATION */
|
||||
|
||||
// Deal with min/max for MinGW
|
||||
#ifdef min
|
||||
# undef min
|
||||
#endif
|
||||
|
||||
#ifdef max
|
||||
# undef max
|
||||
#endif
|
||||
|
||||
// Base class for all specializations of numeric_limits.
|
||||
|
||||
template <class __number>
|
||||
class _Numeric_limits_base {
|
||||
public:
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
// BOOST_VERSION / 100 % 1000 is the minor version
|
||||
// BOOST_VERSION / 100000 is the major version
|
||||
|
||||
#define BOOST_VERSION 102800
|
||||
#define BOOST_VERSION 102700
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// MACRO: BOOST_HAS_MS_INT64
|
||||
// TITLE: __int64
|
||||
// DESCRIPTION: The platform supports Microsoft style __int64.
|
||||
|
||||
#include <cstdlib>
|
||||
|
||||
|
||||
namespace boost_has_ms_int64{
|
||||
|
||||
int test()
|
||||
{
|
||||
__int64 lli = 0i64;
|
||||
unsigned __int64 ulli = 0ui64;
|
||||
(void)lli;
|
||||
(void)ulli;
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// MACRO: BOOST_NO_EXCEPTIONS
|
||||
// TITLE: exception handling support
|
||||
// DESCRIPTION: The compiler in its current translation mode supports
|
||||
// exception handling.
|
||||
|
||||
|
||||
namespace boost_no_exceptions{
|
||||
|
||||
void throw_it(int i)
|
||||
{
|
||||
throw i;
|
||||
}
|
||||
|
||||
int test()
|
||||
{
|
||||
try
|
||||
{
|
||||
throw_it(2);
|
||||
}
|
||||
catch(int i)
|
||||
{
|
||||
return (i == 2) ? 0 : -1;
|
||||
}
|
||||
catch(...)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
// MACRO: BOOST_NO_USING_TEMPLATE
|
||||
// TITLE: using template declarations
|
||||
// DESCRIPTION: The compiler will not accept a using declaration
|
||||
// that imports a class or function template
|
||||
// into a named namespace. Probably Borland/MSVC6 specific.
|
||||
// that imports a template from the global namespace
|
||||
// into a named namespace. Probably Borland specific.
|
||||
|
||||
template <class T>
|
||||
int global_foo(T)
|
||||
@@ -41,4 +41,3 @@ int test()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -822,8 +822,6 @@ void print_boost_macros()
|
||||
{
|
||||
std::cout << "Boost version " << BOOST_STRINGIZE(BOOST_VERSION) << std::endl;
|
||||
PRINT_MACRO(BOOST_DECL);
|
||||
PRINT_MACRO(BOOST_DISABLE_THREADS);
|
||||
PRINT_MACRO(BOOST_DISABLE_WIN32);
|
||||
PRINT_MACRO(BOOST_HAS_BETHREADS);
|
||||
PRINT_MACRO(BOOST_HAS_CLOCK_GETTIME);
|
||||
PRINT_MACRO(BOOST_HAS_FTIME);
|
||||
@@ -831,7 +829,6 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_HAS_HASH);
|
||||
PRINT_MACRO(BOOST_HAS_LONG_LONG);
|
||||
PRINT_MACRO(BOOST_HAS_MACRO_USE_FACET);
|
||||
PRINT_MACRO(BOOST_HAS_MS_INT64);
|
||||
PRINT_MACRO(BOOST_HAS_NANOSLEEP);
|
||||
PRINT_MACRO(BOOST_HAS_NL_TYPES_H);
|
||||
PRINT_MACRO(BOOST_HAS_PTHREAD_DELAY_NP);
|
||||
@@ -860,7 +857,6 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_CWCTYPE);
|
||||
PRINT_MACRO(BOOST_NO_DEPENDENT_NESTED_DERIVATIONS);
|
||||
PRINT_MACRO(BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS);
|
||||
PRINT_MACRO(BOOST_NO_EXCEPTIONS);
|
||||
PRINT_MACRO(BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS);
|
||||
PRINT_MACRO(BOOST_NO_FUNCTION_TEMPLATE_ORDERING);
|
||||
PRINT_MACRO(BOOST_NO_HASH);
|
||||
@@ -878,20 +874,18 @@ void print_boost_macros()
|
||||
PRINT_MACRO(BOOST_NO_PRIVATE_IN_AGGREGATE);
|
||||
PRINT_MACRO(BOOST_NO_SLIST);
|
||||
PRINT_MACRO(BOOST_NO_STD_ALLOCATOR);
|
||||
PRINT_MACRO(BOOST_NO_STD_DISTANCE);
|
||||
PRINT_MACRO(BOOST_NO_STD_ITERATOR);
|
||||
PRINT_MACRO(BOOST_NO_STD_ITERATOR_TRAITS);
|
||||
PRINT_MACRO(BOOST_NO_STD_LOCALE);
|
||||
PRINT_MACRO(BOOST_NO_STD_MESSAGES);
|
||||
PRINT_MACRO(BOOST_NO_STD_MIN_MAX);
|
||||
PRINT_MACRO(BOOST_NO_STD_OUTPUT_ITERATOR_ASSIGN);
|
||||
PRINT_MACRO(BOOST_NO_STD_USE_FACET);
|
||||
PRINT_MACRO(BOOST_NO_STD_WSTRING);
|
||||
PRINT_MACRO(BOOST_NO_STDC_NAMESPACE);
|
||||
PRINT_MACRO(BOOST_NO_STRINGSTREAM);
|
||||
PRINT_MACRO(BOOST_NO_SWPRINTF);
|
||||
PRINT_MACRO(BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION);
|
||||
PRINT_MACRO(BOOST_NO_TEMPLATED_ITERATOR_CONSTRUCTORS);
|
||||
PRINT_MACRO(BOOST_DISABLE_THREADS);
|
||||
PRINT_MACRO(BOOST_NO_USING_TEMPLATE);
|
||||
PRINT_MACRO(BOOST_NO_VOID_RETURNS);
|
||||
PRINT_MACRO(BOOST_STD_EXTENSION_NAMESPACE);
|
||||
@@ -920,5 +914,3 @@ int main()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_*.cxx on
|
||||
// Mon May 6 12:58:50 BST 2002
|
||||
// Sun Feb 3 10:12:32 EST 2002
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#define BOOST_INCLUDE_MAIN
|
||||
@@ -62,11 +62,6 @@ namespace boost_no_dependent_nested_derivations = empty_boost;
|
||||
#else
|
||||
namespace boost_no_dependent_types_in_template_value_parameters = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
#include "boost_no_exceptions.cxx"
|
||||
#else
|
||||
namespace boost_no_exceptions = empty_boost;
|
||||
#endif
|
||||
#ifndef BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
|
||||
#include "boost_no_exp_func_tem_arg.cxx"
|
||||
#else
|
||||
@@ -365,7 +360,6 @@ int test_main( int, char *[] )
|
||||
BOOST_TEST(0 == boost_no_inclass_member_initialization::test());
|
||||
BOOST_TEST(0 == boost_no_function_template_ordering::test());
|
||||
BOOST_TEST(0 == boost_no_explicit_function_template_arguments::test());
|
||||
BOOST_TEST(0 == boost_no_exceptions::test());
|
||||
BOOST_TEST(0 == boost_no_dependent_types_in_template_value_parameters::test());
|
||||
BOOST_TEST(0 == boost_no_dependent_nested_derivations::test());
|
||||
BOOST_TEST(0 == boost_no_cwctype::test());
|
||||
@@ -400,4 +394,3 @@ int test_main( int, char *[] )
|
||||
BOOST_TEST(0 == boost_has_two_arg_use_facet::test());
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// Test file for macro BOOST_HAS_MS_INT64
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_HAS_MS_INT64 may be defined.
|
||||
// see boost_has_ms_int64.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_has_ms_int64.cxx on
|
||||
// Mon May 6 12:26:03 2002
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
#ifdef BOOST_ASSERT_CONFIG
|
||||
# undef BOOST_ASSERT_CONFIG
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef BOOST_HAS_MS_INT64
|
||||
#include "boost_has_ms_int64.cxx"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_ms_int64::test();
|
||||
}
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// Test file for macro BOOST_HAS_MS_INT64
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_HAS_MS_INT64 should not be defined.
|
||||
// see boost_has_ms_int64.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_has_ms_int64.cxx on
|
||||
// Mon May 6 12:26:03 2002
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
#ifdef BOOST_ASSERT_CONFIG
|
||||
# undef BOOST_ASSERT_CONFIG
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef BOOST_HAS_MS_INT64
|
||||
#include "boost_has_ms_int64.cxx"
|
||||
#else
|
||||
namespace boost_has_ms_int64 = empty_boost;
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_has_ms_int64::test();
|
||||
}
|
||||
|
||||
@@ -27,20 +27,11 @@
|
||||
*
|
||||
* Therefore, avoid explicit function template instantiations.
|
||||
*/
|
||||
#if defined(BOOST_MSVC) && (BOOST_MSVC <= 1200)
|
||||
template<typename T> inline T make_char_numeric_for_streaming(T x) { return x; }
|
||||
namespace fix{
|
||||
inline int make_char_numeric_for_streaming(char c) { return c; }
|
||||
inline int make_char_numeric_for_streaming(signed char c) { return c; }
|
||||
inline int make_char_numeric_for_streaming(unsigned char c) { return c; }
|
||||
}
|
||||
using namespace fix;
|
||||
#else
|
||||
|
||||
template<typename T> inline T make_char_numeric_for_streaming(T x) { return x; }
|
||||
inline int make_char_numeric_for_streaming(char c) { return c; }
|
||||
inline int make_char_numeric_for_streaming(signed char c) { return c; }
|
||||
inline int make_char_numeric_for_streaming(unsigned char c) { return c; }
|
||||
#endif
|
||||
|
||||
template<class T>
|
||||
void test_integral_limits(const T &, const char * msg)
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// Test file for macro BOOST_NO_EXCEPTIONS
|
||||
// This file should not compile, if it does then
|
||||
// BOOST_NO_EXCEPTIONS need not be defined.
|
||||
// see boost_no_exceptions.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_no_exceptions.cxx on
|
||||
// Fri Feb 8 11:29:25 2002
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
#ifdef BOOST_ASSERT_CONFIG
|
||||
# undef BOOST_ASSERT_CONFIG
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifdef BOOST_NO_EXCEPTIONS
|
||||
#include "boost_no_exceptions.cxx"
|
||||
#else
|
||||
#error "this file should not compile"
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_exceptions::test();
|
||||
}
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
|
||||
// (C) Copyright Boost.org 1999. Permission to copy, use, modify, sell and
|
||||
// distribute this software is granted provided this copyright notice appears
|
||||
// in all copies. This software is provided "as is" without express or implied
|
||||
// warranty, and with no claim as to its suitability for any purpose.
|
||||
|
||||
// Test file for macro BOOST_NO_EXCEPTIONS
|
||||
// This file should compile, if it does not then
|
||||
// BOOST_NO_EXCEPTIONS needs to be defined.
|
||||
// see boost_no_exceptions.cxx for more details
|
||||
|
||||
// Do not edit this file, it was generated automatically by
|
||||
// ../tools/generate from boost_no_exceptions.cxx on
|
||||
// Fri Feb 8 11:29:25 2002
|
||||
|
||||
// Must not have BOOST_ASSERT_CONFIG set; it defeats
|
||||
// the objective of this file:
|
||||
#ifdef BOOST_ASSERT_CONFIG
|
||||
# undef BOOST_ASSERT_CONFIG
|
||||
#endif
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/test/cpp_main.cpp>
|
||||
#include "test.hpp"
|
||||
|
||||
#ifndef BOOST_NO_EXCEPTIONS
|
||||
#include "boost_no_exceptions.cxx"
|
||||
#else
|
||||
namespace boost_no_exceptions = empty_boost;
|
||||
#endif
|
||||
|
||||
int cpp_main( int, char *[] )
|
||||
{
|
||||
return boost_no_exceptions::test();
|
||||
}
|
||||
|
||||
@@ -23,8 +23,6 @@ run libs/config/test/no_dep_nested_class_pass.cpp
|
||||
link-fail libs/config/test/no_dep_nested_class_fail.cpp
|
||||
run libs/config/test/no_dep_val_param_pass.cpp
|
||||
link-fail libs/config/test/no_dep_val_param_fail.cpp
|
||||
run libs/config/test/no_exceptions_pass.cpp
|
||||
link-fail libs/config/test/no_exceptions_fail.cpp
|
||||
run libs/config/test/no_exp_func_tem_arg_pass.cpp
|
||||
link-fail libs/config/test/no_exp_func_tem_arg_fail.cpp
|
||||
run libs/config/test/no_func_tmp_order_pass.cpp
|
||||
@@ -101,8 +99,6 @@ run libs/config/test/has_long_long_pass.cpp
|
||||
link-fail libs/config/test/has_long_long_fail.cpp
|
||||
run libs/config/test/has_macro_use_facet_pass.cpp
|
||||
link-fail libs/config/test/has_macro_use_facet_fail.cpp
|
||||
run libs/config/test/has_ms_int64_pass.cpp
|
||||
link-fail libs/config/test/has_ms_int64_fail.cpp
|
||||
run libs/config/test/has_nanosleep_pass.cpp
|
||||
link-fail libs/config/test/has_nanosleep_fail.cpp
|
||||
run libs/config/test/has_nl_types_h_pass.cpp
|
||||
|
||||
@@ -65,52 +65,6 @@ esac
|
||||
]
|
||||
)
|
||||
|
||||
dnl Set the boost main directory.
|
||||
AC_MSG_CHECKING(for boost main tree)
|
||||
boost_base=
|
||||
AC_ARG_WITH(boost,
|
||||
AC_HELP_STRING([--with-boost=DIR],[path to the boost main tree]),
|
||||
[
|
||||
#echo "--with boost is set"
|
||||
if test "x$withval" != "x"; then
|
||||
if test "x$withval" != no; then
|
||||
boost_base=`echo "$withval" | sed 's,//*,/,g' | sed 's,/$,,'`
|
||||
#echo boost_base=$boost_base
|
||||
if test -f "$boost_base/boost/config.hpp"; then
|
||||
if test -f "$boost_base/libs/config/configure"; then :; else
|
||||
boost_base=
|
||||
#echo "$boost_base/libs/config/configure" not found
|
||||
fi
|
||||
else
|
||||
#echo "$boost_base/boost/config.hpp" not found
|
||||
boost_base=
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
]
|
||||
)
|
||||
if test "x$boost_base" = "x"; then
|
||||
#echo '$0 = ' $0
|
||||
boost_base=`expr "x$0" : 'x\(.*\)/@<:@/@:>@*' \| '.'`
|
||||
boost_base="$boost_base/../.."
|
||||
#echo boost_base=$boost_base
|
||||
if test -f "$boost_base/boost/config.hpp"; then
|
||||
if test -f "$boost_base/libs/config/configure"; then :; else
|
||||
boost_base=
|
||||
fi
|
||||
else
|
||||
boost_base=
|
||||
fi
|
||||
fi
|
||||
if test "x$boost_base" != "x"; then
|
||||
AC_MSG_RESULT([$boost_base])
|
||||
else
|
||||
AC_MSG_RESULT([not found])
|
||||
AC_MSG_ERROR([The boost main tree was not found.
|
||||
Specify its location by the --with-boost option.])
|
||||
fi
|
||||
|
||||
|
||||
|
||||
# Save that, as it is being redefined several times
|
||||
use_ac_ext=$ac_ext
|
||||
@@ -121,9 +75,9 @@ ac_ext=$use_ac_ext
|
||||
AC_LANG_CPLUSPLUS
|
||||
|
||||
if test $enable_test = 'yes'; then
|
||||
CXXFLAGS="-I$boost_base -I$boost_base/libs/config/test $CXXFLAGS"
|
||||
CXXFLAGS="-I../../ -I./test $CXXFLAGS"
|
||||
else
|
||||
CXXFLAGS="-I$boost_base -I$boost_base/libs/config/test $CXXFLAGS -DBOOST_NO_CONFIG"
|
||||
CXXFLAGS="-I../../ -I./test $CXXFLAGS -DBOOST_NO_CONFIG"
|
||||
fi
|
||||
|
||||
dnl check for some standard libraries
|
||||
@@ -136,7 +90,7 @@ AC_HAVE_LIBRARY(rt)
|
||||
#
|
||||
# enumerate test files and test each one:
|
||||
#
|
||||
for file in $boost_base/libs/config/test/boost_no*.cxx; do
|
||||
for file in ./test/boost_no*.cxx; do
|
||||
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[[] []]*MACRO:' | sed 's/.*MACRO:[[] []]*\([[]_A-Z0-9[]]*\).*/\1/'`
|
||||
@@ -220,7 +174,7 @@ done
|
||||
#
|
||||
# enumerate optional test files and test each one:
|
||||
#
|
||||
for file in $boost_base/libs/config/test/boost_has*.cxx; do
|
||||
for file in ./test/boost_has*.cxx; do
|
||||
|
||||
basename=`echo $file | sed 's/.*boost_\(.*\)\.cxx/\1/'`
|
||||
macroname=`cat $file | grep '^//[[] []]*MACRO:' | sed 's/.*MACRO:[[] []]*\([[]_A-Z0-9[]]*\).*/\1/'`
|
||||
@@ -352,8 +306,6 @@ else
|
||||
|
||||
date_string=`date`
|
||||
|
||||
echo boost_base=$boost_base
|
||||
|
||||
cat > user.hpp << EOF
|
||||
// (C) Copyright Boost.org 2001.
|
||||
// Do not check in modified versions of this file,
|
||||
@@ -437,7 +389,3 @@ fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user