2 // This configuration file is designed to work with the MacOS X operating system.
4 #ifndef ACE_CONFIG_MACOSX_TIGER_H
5 #define ACE_CONFIG_MACOSX_TIGER_H
7 #if ! defined (__ACE_INLINE__)
9 #endif /* ! __ACE_INLINE__ */
11 #if !defined (ACE_SIZEOF_LONG_DOUBLE)
12 # define ACE_SIZEOF_LONG_DOUBLE __SIZEOF_LONG_DOUBLE__
13 #endif // ACE_SIZEOF_LONG_DOUBLE
15 #if defined (__GNUG__)
16 # include "ace/config-g++-common.h"
19 #define ACE_SIZE_T_FORMAT_SPECIFIER_ASCII "%lu"
21 #if !defined (__i386__)
22 # if defined (ACE_HAS_PENTIUM)
23 # undef ACE_HAS_PENTIUM
24 # endif /* ACE_HAS_PENTIUM */
26 # define ACE_HAS_PENTIUM
29 #if !defined (_THREAD_SAFE)
31 #endif /* _THREAD_SAFE */
34 #define ACE_HAS_POSIX_SEM
36 #define ACE_HAS_SUNOS4_GETTIMEOFDAY
38 #define ACE_LACKS_STROPTS_H
42 #define ACE_SIZEOF_WCHAR 4
45 #define ACE_HAS_3_PARAM_WCSTOK
46 #define ACE_LACKS_ITOW
47 #define ACE_LACKS_WCSICMP
48 #define ACE_LACKS_WCSNICMP
49 #define ACE_LACKS_WCSDUP
51 // Mac lacks the following pthread features
52 #define ACE_LACKS_MUTEXATTR_PSHARED
53 #define ACE_LACKS_CONDATTR_PSHARED
55 // Compiler/platform defines the sig_atomic_t typedef.
56 #define ACE_HAS_SIG_ATOMIC_T
58 // Compiler/platform supports SVR4 signal typedef
59 #define ACE_HAS_SVR4_SIGNAL_T
61 //Platform/compiler has the sigwait(2) prototype
62 #define ACE_HAS_SIGWAIT
64 #define ACE_HAS_AIO_CALLS
66 //Platform supports sigsuspend()
67 #define ACE_HAS_SIGSUSPEND
69 #define ACE_LACKS_GETPGID
70 #define ACE_LACKS_RWLOCK_T
72 // Optimize ACE_Handle_Set for select().
73 #define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
75 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
77 #define ACE_NEEDS_SCHED_H
79 #define ACE_HAS_ALT_CUSERID
81 // Platform supports POSIX timers via struct timespec.
82 #define ACE_HAS_POSIX_TIME
83 #define ACE_HAS_UALARM
85 // Platform defines struct timespec but not timespec_t
86 #define ACE_LACKS_TIMESPEC_T
88 #define ACE_LACKS_STRRECVFD
90 #define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
92 // Platform supports System V IPC (most versions of UNIX, but not Win32)
93 #define ACE_HAS_SYSV_IPC
95 // Compiler/platform contains the <sys/syscall.h> file.
96 #define ACE_HAS_SYS_SYSCALL_H
98 #define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
100 // Compiler/platform supports alloca().
101 // Although ACE does have alloca() on this compiler/platform combination, it is
102 // disabled by default since it can be dangerous. Uncomment the following line
103 // if you ACE to use it.
104 //#define ACE_HAS_ALLOCA
106 // Compiler/platform correctly calls init()/fini() for shared libraries.
107 #define ACE_HAS_AUTOMATIC_INIT_FINI
109 // platform supports POSIX O_NONBLOCK semantics
110 #define ACE_HAS_POSIX_NONBLOCK
112 // platform supports IP multicast
113 #define ACE_HAS_IP_MULTICAST
114 #define ACE_LACKS_PERFECT_MULTICAST_FILTERING 1
116 // Compiler/platform has the getrusage() system call.
117 #define ACE_HAS_GETRUSAGE
119 // Compiler supports the ssize_t typedef.
120 #define ACE_HAS_SSIZE_T
122 // Compiler/platform provides the sockio.h file.
123 #define ACE_HAS_SYS_SOCKIO_H
125 // Compiler/platform provides the socklen_t type.
126 #define ACE_HAS_SOCKLEN_T
128 // Defines the page size of the system.
129 #define ACE_HAS_GETPAGESIZE
131 // Platform provides <sys/filio.h> header.
132 #define ACE_HAS_SYS_FILIO_H
134 // Platform/compiler supports timezone * as second parameter to gettimeofday().
135 #define ACE_HAS_TIMEZONE_GETTIMEOFDAY
137 #define ACE_LACKS_SYS_MSG_H
138 #define ACE_LACKS_SYSV_MSQ_PROTOS
140 #define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
141 #define ACE_HAS_NONCONST_MSGSND
143 #if !defined (ACE_MT_SAFE)
144 # define ACE_MT_SAFE 1
148 // Yes, we do have threads.
149 # define ACE_HAS_THREADS
150 // And they're even POSIX pthreads
151 # define ACE_HAS_PTHREADS
152 # define ACE_HAS_PTHREAD_SCHEDPARAM
153 # define ACE_HAS_THREAD_SPECIFIC_STORAGE
154 #endif /* ACE_MT_SAFE == 1 */
156 #define ACE_LACKS_THREAD_PROCESS_SCOPING
158 #define ACE_HAS_DIRENT
159 #define ACE_LACKS_POLL_H
160 #define ACE_LACKS_SEARCH_H
162 #define ACE_LACKS_SETSCHED
163 //#define ACE_HAS_RECURSIVE_MUTEXES
165 // Platform has POSIX terminal interface.
166 #define ACE_HAS_TERMIOS
168 #define ACE_HAS_SEMUN
169 #define ACE_HAS_SIGINFO_T
170 #define ACE_LACKS_SIGINFO_H
171 #define ACE_HAS_UCONTEXT_T
172 #define ACE_HAS_GETIFADDRS
173 #define ACE_LACKS_UNNAMED_SEMAPHORE
175 // dlcompat package (not part of base Darwin) is needed for dlopen().
176 // You may download directly from sourceforge and install or use fink
177 // Fink installer puts libraries in /sw/lib and headers in /sw/include
178 // In order to install dlcompat do the following:
179 // - download fink from http://fink.sf.net
181 // fink install dlcompat
182 // as of Dec 2002, if you use fink you will need to uncomment the next line
183 // #define ACE_NEEDS_DL_UNDERSCORE
184 #define ACE_HAS_SVR4_DYNAMIC_LINKING
185 #define ACE_LD_SEARCH_PATH ACE_TEXT ("DYLD_LIBRARY_PATH")
186 #define ACE_DLL_SUFFIX ACE_TEXT (".dylib")
187 //#define ACE_LACKS_DLCLOSE
189 // gperf seems to need this
190 //#define ACE_HAS_NONSTATIC_OBJECT_MANAGER
192 #define ACE_LACKS_UNSETENV
193 #define ACE_LACKS_ISCTYPE
195 #if defined(__APPLE_CC__) && (__APPLE_CC__ < 1173)
196 #error "Compiler must be upgraded, see http://developer.apple.com"
197 #endif /* __APPLE_CC__ */
199 #endif /* ACE_CONFIG_MACOSX_TIGER_H */