blob: e540a2eb3baa4da9401387a29aecada426149148 [file] [log] [blame]
Jeff Thompsonf7d49942013-08-01 16:47:40 -07001// (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 Thompson3d613fd2013-10-15 15:39:04 -070014#define NDNBOOST_PLATFORM "HP-UX"
Jeff Thompsonf7d49942013-08-01 16:47:40 -070015
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 Thompson3d613fd2013-10-15 15:39:04 -070021# define NDNBOOST_HAS_STDINT_H
Jeff Thompsonf7d49942013-08-01 16:47:40 -070022#endif
23
24#if !(defined(__HP_aCC) || !defined(_INCLUDE__STDC_A1_SOURCE))
Jeff Thompson3d613fd2013-10-15 15:39:04 -070025# define NDNBOOST_NO_SWPRINTF
Jeff Thompsonf7d49942013-08-01 16:47:40 -070026#endif
27#if defined(__HP_aCC) && !defined(_INCLUDE__STDC_A1_SOURCE)
Jeff Thompson3d613fd2013-10-15 15:39:04 -070028# define NDNBOOST_NO_CWCTYPE
Jeff Thompsonf7d49942013-08-01 16:47:40 -070029#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 Thompson3d613fd2013-10-15 15:39:04 -070034# define NDNBOOST_DISABLE_THREADS
35# elif !defined(NDNBOOST_DISABLE_THREADS)
Jeff Thompsonf7d49942013-08-01 16:47:40 -070036 // threads supported from gcc-3.3 onwards:
Jeff Thompson3d613fd2013-10-15 15:39:04 -070037# define NDNBOOST_HAS_THREADS
38# define NDNBOOST_HAS_PTHREADS
Jeff Thompsonf7d49942013-08-01 16:47:40 -070039# endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070040#elif defined(__HP_aCC) && !defined(NDNBOOST_DISABLE_THREADS)
41# define NDNBOOST_HAS_PTHREADS
Jeff Thompsonf7d49942013-08-01 16:47:40 -070042#endif
43
44// boilerplate code:
Jeff Thompson3d613fd2013-10-15 15:39:04 -070045#define NDNBOOST_HAS_UNISTD_H
Jeff Thompson2277ce52013-08-01 17:34:11 -070046#include <ndnboost/config/posix_features.hpp>
Jeff Thompsonf7d49942013-08-01 16:47:40 -070047
48// the following are always available:
Jeff Thompson3d613fd2013-10-15 15:39:04 -070049#ifndef NDNBOOST_HAS_GETTIMEOFDAY
50# define NDNBOOST_HAS_GETTIMEOFDAY
Jeff Thompsonf7d49942013-08-01 16:47:40 -070051#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070052#ifndef NDNBOOST_HAS_SCHED_YIELD
53# define NDNBOOST_HAS_SCHED_YIELD
Jeff Thompsonf7d49942013-08-01 16:47:40 -070054#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070055#ifndef NDNBOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
56# define NDNBOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
Jeff Thompsonf7d49942013-08-01 16:47:40 -070057#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070058#ifndef NDNBOOST_HAS_NL_TYPES_H
59# define NDNBOOST_HAS_NL_TYPES_H
Jeff Thompsonf7d49942013-08-01 16:47:40 -070060#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070061#ifndef NDNBOOST_HAS_NANOSLEEP
62# define NDNBOOST_HAS_NANOSLEEP
Jeff Thompsonf7d49942013-08-01 16:47:40 -070063#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070064#ifndef NDNBOOST_HAS_GETTIMEOFDAY
65# define NDNBOOST_HAS_GETTIMEOFDAY
Jeff Thompsonf7d49942013-08-01 16:47:40 -070066#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070067#ifndef NDNBOOST_HAS_DIRENT_H
68# define NDNBOOST_HAS_DIRENT_H
Jeff Thompsonf7d49942013-08-01 16:47:40 -070069#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070070#ifndef NDNBOOST_HAS_CLOCK_GETTIME
71# define NDNBOOST_HAS_CLOCK_GETTIME
Jeff Thompsonf7d49942013-08-01 16:47:40 -070072#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070073#ifndef NDNBOOST_HAS_SIGACTION
74# define NDNBOOST_HAS_SIGACTION
Jeff Thompsonf7d49942013-08-01 16:47:40 -070075#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070076#ifndef NDNBOOST_HAS_NRVO
Jeff Thompsonf7d49942013-08-01 16:47:40 -070077# ifndef __parisc
Jeff Thompson3d613fd2013-10-15 15:39:04 -070078# define NDNBOOST_HAS_NRVO
Jeff Thompsonf7d49942013-08-01 16:47:40 -070079# endif
80#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070081#ifndef NDNBOOST_HAS_LOG1P
82# define NDNBOOST_HAS_LOG1P
Jeff Thompsonf7d49942013-08-01 16:47:40 -070083#endif
Jeff Thompson3d613fd2013-10-15 15:39:04 -070084#ifndef NDNBOOST_HAS_EXPM1
85# define NDNBOOST_HAS_EXPM1
Jeff Thompsonf7d49942013-08-01 16:47:40 -070086#endif
87