Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 1 | // (C) Copyright John Maddock 2001 - 2003. |
| 2 | // (C) Copyright Jens Maurer 2001 - 2003. |
| 3 | // (C) Copyright David Abrahams 2002. |
| 4 | // (C) Copyright Toon Knapen 2003. |
| 5 | // (C) Copyright Boris Gubenko 2006 - 2007. |
| 6 | // Use, modification and distribution are subject to the |
| 7 | // Boost Software License, Version 1.0. (See accompanying file |
| 8 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 9 | |
| 10 | // See http://www.boost.org for most recent version. |
| 11 | |
| 12 | // hpux specific config options: |
| 13 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 14 | #define NDNBOOST_PLATFORM "HP-UX" |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 15 | |
| 16 | // In principle, HP-UX has a nice <stdint.h> under the name <inttypes.h> |
| 17 | // However, it has the following problem: |
| 18 | // Use of UINT32_C(0) results in "0u l" for the preprocessed source |
| 19 | // (verifyable with gcc 2.95.3) |
| 20 | #if (defined(__GNUC__) && (__GNUC__ >= 3)) || defined(__HP_aCC) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 21 | # define NDNBOOST_HAS_STDINT_H |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 22 | #endif |
| 23 | |
| 24 | #if !(defined(__HP_aCC) || !defined(_INCLUDE__STDC_A1_SOURCE)) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 25 | # define NDNBOOST_NO_SWPRINTF |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 26 | #endif |
| 27 | #if defined(__HP_aCC) && !defined(_INCLUDE__STDC_A1_SOURCE) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 28 | # define NDNBOOST_NO_CWCTYPE |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 29 | #endif |
| 30 | |
| 31 | #if defined(__GNUC__) |
| 32 | # if (__GNUC__ < 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ < 3)) |
| 33 | // GNU C on HP-UX does not support threads (checked up to gcc 3.3) |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 34 | # define NDNBOOST_DISABLE_THREADS |
| 35 | # elif !defined(NDNBOOST_DISABLE_THREADS) |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 36 | // threads supported from gcc-3.3 onwards: |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 37 | # define NDNBOOST_HAS_THREADS |
| 38 | # define NDNBOOST_HAS_PTHREADS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 39 | # endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 40 | #elif defined(__HP_aCC) && !defined(NDNBOOST_DISABLE_THREADS) |
| 41 | # define NDNBOOST_HAS_PTHREADS |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 42 | #endif |
| 43 | |
| 44 | // boilerplate code: |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 45 | #define NDNBOOST_HAS_UNISTD_H |
Jeff Thompson | 2277ce5 | 2013-08-01 17:34:11 -0700 | [diff] [blame] | 46 | #include <ndnboost/config/posix_features.hpp> |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 47 | |
| 48 | // the following are always available: |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 49 | #ifndef NDNBOOST_HAS_GETTIMEOFDAY |
| 50 | # define NDNBOOST_HAS_GETTIMEOFDAY |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 51 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 52 | #ifndef NDNBOOST_HAS_SCHED_YIELD |
| 53 | # define NDNBOOST_HAS_SCHED_YIELD |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 54 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 55 | #ifndef NDNBOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE |
| 56 | # define NDNBOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 57 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 58 | #ifndef NDNBOOST_HAS_NL_TYPES_H |
| 59 | # define NDNBOOST_HAS_NL_TYPES_H |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 60 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 61 | #ifndef NDNBOOST_HAS_NANOSLEEP |
| 62 | # define NDNBOOST_HAS_NANOSLEEP |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 63 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 64 | #ifndef NDNBOOST_HAS_GETTIMEOFDAY |
| 65 | # define NDNBOOST_HAS_GETTIMEOFDAY |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 66 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 67 | #ifndef NDNBOOST_HAS_DIRENT_H |
| 68 | # define NDNBOOST_HAS_DIRENT_H |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 69 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 70 | #ifndef NDNBOOST_HAS_CLOCK_GETTIME |
| 71 | # define NDNBOOST_HAS_CLOCK_GETTIME |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 72 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 73 | #ifndef NDNBOOST_HAS_SIGACTION |
| 74 | # define NDNBOOST_HAS_SIGACTION |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 75 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 76 | #ifndef NDNBOOST_HAS_NRVO |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 77 | # ifndef __parisc |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 78 | # define NDNBOOST_HAS_NRVO |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 79 | # endif |
| 80 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 81 | #ifndef NDNBOOST_HAS_LOG1P |
| 82 | # define NDNBOOST_HAS_LOG1P |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 83 | #endif |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 84 | #ifndef NDNBOOST_HAS_EXPM1 |
| 85 | # define NDNBOOST_HAS_EXPM1 |
Jeff Thompson | f7d4994 | 2013-08-01 16:47:40 -0700 | [diff] [blame] | 86 | #endif |
| 87 | |