Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | // (C) Copyright Noel Belcourt 2007. |
| 2 | // Use, modification and distribution are subject to the |
| 3 | // Boost Software License, Version 1.0. (See accompanying file |
| 4 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 5 | |
| 6 | // See http://www.boost.org for most recent version. |
| 7 | |
| 8 | // PGI C++ compiler setup: |
| 9 | |
| 10 | #define BOOST_COMPILER_VERSION __PGIC__##__PGIC_MINOR__ |
| 11 | #define BOOST_COMPILER "PGI compiler version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION) |
| 12 | |
| 13 | // |
| 14 | // Threading support: |
| 15 | // Turn this on unconditionally here, it will get turned off again later |
| 16 | // if no threading API is detected. |
| 17 | // |
| 18 | |
| 19 | #if __PGIC__ >= 11 |
| 20 | |
| 21 | // options requested by configure --enable-test |
| 22 | #define BOOST_HAS_PTHREADS |
| 23 | #define BOOST_HAS_THREADS |
| 24 | #define BOOST_HAS_PTHREAD_YIELD |
| 25 | #define BOOST_HAS_NRVO |
| 26 | #define BOOST_HAS_LONG_LONG |
| 27 | |
| 28 | // options --enable-test wants undefined |
| 29 | #undef BOOST_NO_STDC_NAMESPACE |
| 30 | #undef BOOST_NO_EXCEPTION_STD_NAMESPACE |
| 31 | #undef BOOST_DEDUCED_TYPENAME |
| 32 | |
| 33 | #define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL |
| 34 | #define BOOST_NO_TWO_PHASE_NAME_LOOKUP |
| 35 | #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS |
| 36 | #define BOOST_NO_CXX11_AUTO_DECLARATIONS |
| 37 | |
| 38 | #elif __PGIC__ >= 10 |
| 39 | |
| 40 | // options requested by configure --enable-test |
| 41 | #define BOOST_HAS_THREADS |
| 42 | #define BOOST_HAS_NRVO |
| 43 | #define BOOST_HAS_LONG_LONG |
| 44 | |
| 45 | // options --enable-test wants undefined |
| 46 | #undef BOOST_NO_STDC_NAMESPACE |
| 47 | #undef BOOST_NO_EXCEPTION_STD_NAMESPACE |
| 48 | #undef BOOST_DEDUCED_TYPENAME |
| 49 | |
| 50 | #elif __PGIC__ >= 7 |
| 51 | |
| 52 | #define BOOST_FUNCTION_SCOPE_USING_DECLARATION_BREAKS_ADL |
| 53 | #define BOOST_NO_TWO_PHASE_NAME_LOOKUP |
| 54 | #define BOOST_NO_SWPRINTF |
| 55 | #define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS |
| 56 | #define BOOST_NO_CXX11_AUTO_DECLARATIONS |
| 57 | |
| 58 | #else |
| 59 | |
| 60 | # error "Pgi compiler not configured - please reconfigure" |
| 61 | |
| 62 | #endif |
| 63 | // |
| 64 | // C++0x features |
| 65 | // |
| 66 | // See boost\config\suffix.hpp for BOOST_NO_LONG_LONG |
| 67 | // |
| 68 | #define BOOST_NO_CXX11_CHAR16_T |
| 69 | #define BOOST_NO_CXX11_CHAR32_T |
| 70 | #define BOOST_NO_CXX11_CONSTEXPR |
| 71 | #define BOOST_NO_CXX11_DECLTYPE |
| 72 | #define BOOST_NO_CXX11_DECLTYPE_N3276 |
| 73 | #define BOOST_NO_CXX11_DEFAULTED_FUNCTIONS |
| 74 | #define BOOST_NO_CXX11_DELETED_FUNCTIONS |
| 75 | #define BOOST_NO_CXX11_EXPLICIT_CONVERSION_OPERATORS |
| 76 | #define BOOST_NO_CXX11_EXTERN_TEMPLATE |
| 77 | #define BOOST_NO_CXX11_FUNCTION_TEMPLATE_DEFAULT_ARGS |
| 78 | #define BOOST_NO_CXX11_LAMBDAS |
| 79 | #define BOOST_NO_CXX11_LOCAL_CLASS_TEMPLATE_PARAMETERS |
| 80 | #define BOOST_NO_CXX11_NOEXCEPT |
| 81 | #define BOOST_NO_CXX11_NULLPTR |
| 82 | #define BOOST_NO_CXX11_NUMERIC_LIMITS |
| 83 | #define BOOST_NO_CXX11_RANGE_BASED_FOR |
| 84 | #define BOOST_NO_CXX11_RAW_LITERALS |
| 85 | #define BOOST_NO_CXX11_RVALUE_REFERENCES |
| 86 | #define BOOST_NO_CXX11_SCOPED_ENUMS |
| 87 | #define BOOST_NO_SFINAE_EXPR |
| 88 | #define BOOST_NO_CXX11_STATIC_ASSERT |
| 89 | #define BOOST_NO_SWPRINTF |
| 90 | #define BOOST_NO_CXX11_TEMPLATE_ALIASES |
| 91 | #define BOOST_NO_CXX11_UNICODE_LITERALS |
| 92 | #define BOOST_NO_CXX11_VARIADIC_TEMPLATES |
| 93 | #define BOOST_NO_CXX11_VARIADIC_MACROS |
| 94 | #define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX |
| 95 | |
| 96 | #define BOOST_NO_CXX11_HDR_UNORDERED_SET |
| 97 | #define BOOST_NO_CXX11_HDR_UNORDERED_MAP |
| 98 | #define BOOST_NO_CXX11_HDR_TYPEINDEX |
| 99 | #define BOOST_NO_CXX11_HDR_TYPE_TRAITS |
| 100 | #define BOOST_NO_CXX11_HDR_TUPLE |
| 101 | #define BOOST_NO_CXX11_HDR_THREAD |
| 102 | #define BOOST_NO_CXX11_HDR_SYSTEM_ERROR |
| 103 | #define BOOST_NO_CXX11_HDR_REGEX |
| 104 | #define BOOST_NO_CXX11_HDR_RATIO |
| 105 | #define BOOST_NO_CXX11_HDR_RANDOM |
| 106 | #define BOOST_NO_CXX11_HDR_MUTEX |
| 107 | #define BOOST_NO_CXX11_HDR_INITIALIZER_LIST |
| 108 | #define BOOST_NO_CXX11_HDR_FUTURE |
| 109 | #define BOOST_NO_CXX11_HDR_FORWARD_LIST |
| 110 | #define BOOST_NO_CXX11_HDR_CONDITION_VARIABLE |
| 111 | #define BOOST_NO_CXX11_HDR_CODECVT |
| 112 | #define BOOST_NO_CXX11_HDR_CHRONO |
| 113 | #define BOOST_NO_CXX11_HDR_ARRAY |
Jeff Thompson | a28eed8 | 2013-08-22 16:21:10 -0700 | [diff] [blame^] | 114 | #define BOOST_NO_CXX11_USER_DEFINED_LITERALS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 115 | |
| 116 | // |
| 117 | // version check: |
| 118 | // probably nothing to do here? |
| 119 | |