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 # if (__GNUC__ == 3 && __GNUC_MINOR__ == 3)
13 // Size of long double in GCC 3.3 is 8.
14 # define ACE_SIZEOF_LONG_DOUBLE 8
15 # else // Else, the compiler is GCC4
16 // For GCC4, the size is 16.
17 # define ACE_SIZEOF_LONG_DOUBLE 16
19 #endif // ACE_SIZEOF_LONG_DOUBLE
21 #if defined (__GNUG__)
22 # include "ace/config-g++-common.h"
25 #define ACE_HAS_WORKING_EXPLICIT_TEMPLATE_DESTRUCTOR
27 #define ACE_SIZE_T_FORMAT_SPECIFIER_ASCII "%lu"
29 #if !defined (__i386__)
30 # if defined (ACE_HAS_PENTIUM)
31 # undef ACE_HAS_PENTIUM
32 # endif /* ACE_HAS_PENTIUM */
34 # define ACE_HAS_PENTIUM
37 #if !defined (_THREAD_SAFE)
39 #endif /* _THREAD_SAFE */
42 #define ACE_HAS_POSIX_SEM
44 #define ACE_HAS_SUNOS4_GETTIMEOFDAY
46 #define ACE_LACKS_STROPTS_H
50 #define ACE_SIZEOF_WCHAR 4
53 #define ACE_HAS_3_PARAM_WCSTOK
54 #define ACE_LACKS_ITOW
55 #define ACE_LACKS_WCSICMP
56 #define ACE_LACKS_WCSNICMP
57 #define ACE_LACKS_WCSDUP
59 // Mac lacks the following pthread features
60 #define ACE_LACKS_MUTEXATTR_PSHARED
61 #define ACE_LACKS_CONDATTR_PSHARED
63 // Compiler/platform defines the sig_atomic_t typedef.
64 #define ACE_HAS_SIG_ATOMIC_T
66 // Compiler/platform supports SVR4 signal typedef
67 #define ACE_HAS_SVR4_SIGNAL_T
69 //Platform/compiler has the sigwait(2) prototype
70 #define ACE_HAS_SIGWAIT
72 #define ACE_HAS_AIO_CALLS
74 //Platform supports sigsuspend()
75 #define ACE_HAS_SIGSUSPEND
77 #define ACE_LACKS_GETPGID
78 #define ACE_LACKS_RWLOCK_T
80 // Optimize ACE_Handle_Set for select().
81 #define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
83 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
85 #define ACE_NEEDS_SCHED_H
87 #define ACE_LACKS_MALLOC_H
89 #define ACE_HAS_ALT_CUSERID
91 // Platform supports POSIX timers via struct timespec.
92 #define ACE_HAS_POSIX_TIME
93 #define ACE_HAS_UALARM
95 // Platform defines struct timespec but not timespec_t
96 #define ACE_LACKS_TIMESPEC_T
98 #define ACE_LACKS_STRRECVFD
100 #define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
102 // Platform supports System V IPC (most versions of UNIX, but not Win32)
103 #define ACE_HAS_SYSV_IPC
105 // Compiler/platform contains the <sys/syscall.h> file.
106 #define ACE_HAS_SYS_SYSCALL_H
108 #define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
110 // Compiler/platform supports alloca().
111 // Although ACE does have alloca() on this compiler/platform combination, it is
112 // disabled by default since it can be dangerous. Uncomment the following line
113 // if you ACE to use it.
114 //#define ACE_HAS_ALLOCA
116 // Compiler/platform correctly calls init()/fini() for shared libraries.
117 #define ACE_HAS_AUTOMATIC_INIT_FINI
119 // platform supports POSIX O_NONBLOCK semantics
120 #define ACE_HAS_POSIX_NONBLOCK
122 // platform supports IP multicast
123 #define ACE_HAS_IP_MULTICAST
124 #define ACE_LACKS_PERFECT_MULTICAST_FILTERING 1
126 // Compiler/platform has the getrusage() system call.
127 #define ACE_HAS_GETRUSAGE
129 // Compiler supports the ssize_t typedef.
130 #define ACE_HAS_SSIZE_T
132 // Compiler/platform provides the sockio.h file.
133 #define ACE_HAS_SYS_SOCKIO_H
135 // Compiler/platform provides the socklen_t type.
136 #define ACE_HAS_SOCKLEN_T
138 // Defines the page size of the system.
139 #define ACE_HAS_GETPAGESIZE
141 // Platform provides <sys/filio.h> header.
142 #define ACE_HAS_SYS_FILIO_H
144 // Platform/compiler supports timezone * as second parameter to gettimeofday().
145 #define ACE_HAS_TIMEZONE_GETTIMEOFDAY
147 #define ACE_LACKS_SYS_MSG_H
148 #define ACE_LACKS_SYSV_MSQ_PROTOS
150 #define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
151 #define ACE_HAS_NONCONST_MSGSND
153 #if !defined (ACE_MT_SAFE)
154 # define ACE_MT_SAFE 1
158 // Yes, we do have threads.
159 # define ACE_HAS_THREADS
160 // And they're even POSIX pthreads
161 # define ACE_HAS_PTHREADS
162 # define ACE_HAS_PTHREAD_SCHEDPARAM
163 # define ACE_HAS_THREAD_SPECIFIC_STORAGE
164 #endif /* ACE_MT_SAFE == 1 */
166 #define ACE_LACKS_THREAD_PROCESS_SCOPING
168 #define ACE_HAS_DIRENT
169 #define ACE_LACKS_POLL_H
170 #define ACE_LACKS_SEARCH_H
172 #define ACE_LACKS_SETSCHED
173 //#define ACE_HAS_RECURSIVE_MUTEXES
175 // Platform has POSIX terminal interface.
176 #define ACE_HAS_TERMIOS
178 #define ACE_HAS_SEMUN
179 #define ACE_HAS_SIGINFO_T
180 #define ACE_LACKS_SIGINFO_H
181 #define ACE_HAS_UCONTEXT_T
182 #define ACE_HAS_GETIFADDRS
183 #define ACE_LACKS_STATIC_DATA_MEMBER_TEMPLATES
184 #define ACE_LACKS_UNNAMED_SEMAPHORE
186 // dlcompat package (not part of base Darwin) is needed for dlopen().
187 // You may download directly from sourceforge and install or use fink
188 // Fink installer puts libraries in /sw/lib and headers in /sw/include
189 // In order to install dlcompat do the following:
190 // - download fink from http://fink.sf.net
192 // fink install dlcompat
193 // as of Dec 2002, if you use fink you will need to uncomment the next line
194 // #define ACE_NEEDS_DL_UNDERSCORE
195 #define ACE_HAS_SVR4_DYNAMIC_LINKING
196 #define ACE_LD_SEARCH_PATH ACE_TEXT ("DYLD_LIBRARY_PATH")
197 #define ACE_DLL_SUFFIX ACE_TEXT (".dylib")
198 //#define ACE_LACKS_DLCLOSE
200 // gperf seems to need this
201 //#define ACE_HAS_NONSTATIC_OBJECT_MANAGER
203 #define ACE_LACKS_UNSETENV
204 #define ACE_LACKS_ISCTYPE
206 #if defined(__APPLE_CC__) && (__APPLE_CC__ < 1173)
207 #error "Compiler must be upgraded, see http://developer.apple.com"
208 #endif /* __APPLE_CC__ */
210 #endif /* ACE_CONFIG_MACOSX_TIGER_H */