Uncommented beaudio code
[pwlib.git] / include / ptbuildopts.h.in
blobde8aa9852d4d59c4d454613ff0050b408f9108a2
1 /*
2 * buildopts.h
4 * Build options generated by the configure script.
6 * Portable Windows Library
8 * Copyright (c) 2003 Equivalence Pty. Ltd.
10 * The contents of this file are subject to the Mozilla Public License
11 * Version 1.0 (the "License"); you may not use this file except in
12 * compliance with the License. You may obtain a copy of the License at
13 * http://www.mozilla.org/MPL/
15 * Software distributed under the License is distributed on an "AS IS"
16 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
17 * the License for the specific language governing rights and limitations
18 * under the License.
20 * The Original Code is Portable Windows Library.
22 * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24 * Contributor(s): ______________________________________.
26 * $Log$
27 * Revision 1.26 2004/03/23 04:56:23 csoutheren
28 * Added patches to use XPG6 threading under Linux if available
29 * Thanks to Matthew Hodgson
31 * Revision 1.25 2004/02/04 02:34:38 csoutheren
32 * Added many new flags to configure to allow disabling of various features
33 * Fixed "swab" detection
34 * Improved detection of long double type
36 * Revision 1.24 2004/01/30 00:52:58 csoutheren
37 * Moved P_USE_PRAGMA back to the compiler flags as this cannot be
38 * put into a include file due to the way gcc implements vtable closure
40 * Revision 1.23 2004/01/29 13:43:59 csoutheren
41 * Moved some preprocessor symbols from the command line to include files
42 * Modified to set P_HAS_SEMAPHORES to 0 for Linux kernels >= 2.6
43 * Applied patches for Solaris thanks to Michal Zygmuntowicz
45 * Revision 1.22 2004/01/27 10:50:29 csoutheren
46 * Added versio information to ptbuildopts.h
48 * Revision 1.21 2003/12/02 08:34:44 rogerhardiman
49 * Tidy some comments
51 * Revision 1.20 2003/11/12 03:29:51 csoutheren
52 * Initial version of plugin code from Snark of GnomeMeeting with changes
53 * by Craig Southeren of Post Increment
55 * Revision 1.19 2003/11/06 09:13:20 rjongbloed
56 * Improved the Windows configure system to allow multiple defines based on file existence. Needed for SDL support of two different distros.
58 * Revision 1.18 2003/10/30 11:23:53 rjongbloed
59 * Added direcetory name for Speech API under Windows.
60 * Added automatic inclusion of Winsock2 library.
62 * Revision 1.17 2003/10/27 03:42:15 csoutheren
63 * Added support for QoS detection
65 * Revision 1.16 2003/10/23 20:43:38 dereksmithies
66 * Add fix for SDL video on Visual C. Thanks to Walter Whitlock.
68 * Revision 1.15 2003/10/20 23:13:26 csoutheren
69 * Restored after deletion by Damien
71 * Revision 1.13 2003/09/17 09:00:59 csoutheren
72 * Moved PSmartPointer and PNotifier into seperate files
73 * Added detection for system regex libraries on all platforms
75 * Revision 1.12 2003/07/29 11:25:23 csoutheren
76 * Added support for system swab function
78 * Revision 1.11 2003/06/23 15:17:20 ykiryanov
79 * Modified for WinCE compatibility - Undef'd P_HAS_IPV6 in case of WinCE build
81 * Revision 1.10 2003/05/22 12:20:16 dsandras
83 * Define or not TRY_1394AVC/TRY_1394DC after execution of the configure script.
85 * Revision 1.9 2003/05/17 03:22:47 rjongbloed
86 * Removed need to do strange things with main() function.
88 * Revision 1.8 2003/05/05 06:25:33 robertj
89 * Corrections to external libraries
91 * Revision 1.7 2003/04/28 08:32:01 craigs
92 * Added Linux SDL detection
94 * Revision 1.6 2003/04/28 07:27:38 craigs
95 * Added SDL libs
97 * Revision 1.5 2003/04/28 07:04:45 craigs
98 * Added SDL detection
100 * Revision 1.4 2003/04/17 06:14:31 robertj
101 * Changed link of openssl to be static.
103 * Revision 1.3 2003/04/17 01:22:29 craigs
104 * Fixed problem with OpenLDAP and OpenSSL-0.9.7
106 * Revision 1.2 2003/04/16 08:00:19 robertj
107 * Windoes psuedo autoconf support
109 * Revision 1.1 2003/04/16 07:15:59 craigs
110 * Initial version
114 #ifndef _PT_BUILDOPTS_H
115 #define _PT_BUILDOPTS_H
118 /////////////////////////////////////////////////
120 // host type
123 #undef P_LINUX
124 #undef P_FREEBSD
125 #undef P_OPENBSD
126 #undef P_NETBSD
127 #undef P_SOLARIS
128 #undef P_MACOSX
129 #undef P_UNKNOWN_OS
131 /////////////////////////////////////////////////
133 // Processor endianess
136 #undef PBYTE_ORDER
139 /////////////////////////////////////////////////
141 // IP v6 Support
144 #ifndef _WIN32_WCE
145 #undef P_HAS_IPV6
146 #endif // _WIN32_WCE
148 #if defined(_MSC_VER) && P_HAS_IPV6
150 #pragma include_alias(<winsock2.h>, <@IPV6_DIR@/winsock2.h>)
151 #pragma include_alias(<ws2tcpip.h>, <@IPV6_DIR@/ws2tcpip.h>)
153 #define P_WINSOCK2_LIBRARY "ws2_32.lib"
155 #endif
158 /////////////////////////////////////////////////
160 // QoS Support
164 #ifndef _WIN32_WCE
165 #undef P_HAS_QOS
166 #endif // _WIN32_WCE
168 #if defined(_MSC_VER) && P_HAS_QOS
170 #pragma include_alias(<qossp.h>, <@QOS_DIR@/qossp.h>)
172 #define P_WINSOCK2_LIBRARY "ws2_32.lib"
174 #endif
177 /////////////////////////////////////////////////
179 // OpenSSL library for secure sockets layer
182 #undef P_SSL
184 #if defined(_MSC_VER) && P_SSL
186 #pragma include_alias(<openssl/ssl.h>, <@SSL_DIR@/inc32/openssl/ssl.h>)
187 #pragma include_alias(<openssl/safestack.h>, <@SSL_DIR@/inc32/openssl/safestack.h>)
188 #pragma include_alias(<openssl/stack.h>, <@SSL_DIR@/inc32/openssl/stack.h>)
189 #pragma include_alias(<openssl/crypto.h>, <@SSL_DIR@/inc32/openssl/crypto.h>)
190 #pragma include_alias(<openssl/opensslv.h>, <@SSL_DIR@/inc32/openssl/opensslv.h>)
191 #pragma include_alias(<openssl/lhash.h>, <@SSL_DIR@/inc32/openssl/lhash.h>)
192 #pragma include_alias(<openssl/buffer.h>, <@SSL_DIR@/inc32/openssl/buffer.h>)
193 #pragma include_alias(<openssl/bio.h>, <@SSL_DIR@/inc32/openssl/bio.h>)
194 #pragma include_alias(<openssl/pem.h>, <@SSL_DIR@/inc32/openssl/pem.h>)
195 #pragma include_alias(<openssl/evp.h>, <@SSL_DIR@/inc32/openssl/evp.h>)
196 #pragma include_alias(<openssl/md2.h>, <@SSL_DIR@/inc32/openssl/md2.h>)
197 #pragma include_alias(<openssl/opensslconf.h>,<@SSL_DIR@/inc32/openssl/opensslconf.h>)
198 #pragma include_alias(<openssl/md5.h>, <@SSL_DIR@/inc32/openssl/md5.h>)
199 #pragma include_alias(<openssl/sha.h>, <@SSL_DIR@/inc32/openssl/sha.h>)
200 #pragma include_alias(<openssl/ripemd.h>, <@SSL_DIR@/inc32/openssl/ripemd.h>)
201 #pragma include_alias(<openssl/des.h>, <@SSL_DIR@/inc32/openssl/des.h>)
202 #pragma include_alias(<openssl/e_os2.h>, <@SSL_DIR@/inc32/openssl/e_os2.h>)
203 #pragma include_alias(<openssl/rc4.h>, <@SSL_DIR@/inc32/openssl/rc4.h>)
204 #pragma include_alias(<openssl/rc2.h>, <@SSL_DIR@/inc32/openssl/rc2.h>)
205 #pragma include_alias(<openssl/rc5.h>, <@SSL_DIR@/inc32/openssl/rc5.h>)
206 #pragma include_alias(<openssl/blowfish.h>, <@SSL_DIR@/inc32/openssl/blowfish.h>)
207 #pragma include_alias(<openssl/cast.h>, <@SSL_DIR@/inc32/openssl/cast.h>)
208 #pragma include_alias(<openssl/idea.h>, <@SSL_DIR@/inc32/openssl/idea.h>)
209 #pragma include_alias(<openssl/mdc2.h>, <@SSL_DIR@/inc32/openssl/mdc2.h>)
210 #pragma include_alias(<openssl/rsa.h>, <@SSL_DIR@/inc32/openssl/rsa.h>)
211 #pragma include_alias(<openssl/bn.h>, <@SSL_DIR@/inc32/openssl/bn.h>)
212 #pragma include_alias(<openssl/dsa.h>, <@SSL_DIR@/inc32/openssl/dsa.h>)
213 #pragma include_alias(<openssl/dh.h>, <@SSL_DIR@/inc32/openssl/dh.h>)
214 #pragma include_alias(<openssl/objects.h>, <@SSL_DIR@/inc32/openssl/objects.h>)
215 #pragma include_alias(<openssl/asn1.h>, <@SSL_DIR@/inc32/openssl/asn1.h>)
216 #pragma include_alias(<openssl/x509.h>, <@SSL_DIR@/inc32/openssl/x509.h>)
217 #pragma include_alias(<openssl/x509_vfy.h>, <@SSL_DIR@/inc32/openssl/x509_vfy.h>)
218 #pragma include_alias(<openssl/pkcs7.h>, <@SSL_DIR@/inc32/openssl/pkcs7.h>)
219 #pragma include_alias(<openssl/pem2.h>, <@SSL_DIR@/inc32/openssl/pem2.h>)
220 #pragma include_alias(<openssl/ssl2.h>, <@SSL_DIR@/inc32/openssl/ssl2.h>)
221 #pragma include_alias(<openssl/ssl3.h>, <@SSL_DIR@/inc32/openssl/ssl3.h>)
222 #pragma include_alias(<openssl/tls1.h>, <@SSL_DIR@/inc32/openssl/tls1.h>)
223 #pragma include_alias(<openssl/ssl23.h>, <@SSL_DIR@/inc32/openssl/ssl23.h>)
224 #pragma include_alias(<openssl/err.h>, <@SSL_DIR@/inc32/openssl/err.h>)
225 #pragma include_alias(<openssl/rand.h>, <@SSL_DIR@/inc32/openssl/rand.h>)
226 #pragma include_alias(<openssl/symhacks.h>, <@SSL_DIR@/inc32/openssl/symhacks.h>)
227 #pragma include_alias(<openssl/comp.h>, <@SSL_DIR@/inc32/openssl/comp.h>)
228 #pragma include_alias(<openssl/ossl_typ.h>, <@SSL_DIR@/inc32/openssl/ossl_typ.h>)
229 #pragma include_alias(<openssl/md4.h>, <@SSL_DIR@/inc32/openssl/md4.h>)
230 #pragma include_alias(<openssl/des_old.h>, <@SSL_DIR@/inc32/openssl/des_old.h>)
231 #pragma include_alias(<openssl/ui_compat.h>, <@SSL_DIR@/inc32/openssl/ui_compat.h>)
232 #pragma include_alias(<openssl/ui.h>, <@SSL_DIR@/inc32/openssl/ui.h>)
233 #pragma include_alias(<openssl/aes.h>, <@SSL_DIR@/inc32/openssl/aes.h>)
234 #pragma include_alias(<openssl/obj_mac.h>, <@SSL_DIR@/inc32/openssl/obj_mac.h>)
235 #pragma include_alias(<openssl/kssl.h>, <@SSL_DIR@/inc32/openssl/kssl.h>)
237 #ifdef _DEBUG
238 #define P_SSL_LIBDIR "out32.dbg"
239 #else
240 #define P_SSL_LIBDIR "out32"
241 #endif
243 #define P_SSL_LIB1 "@SSL_DIR@/" P_SSL_LIBDIR "/ssleay32.lib"
244 #define P_SSL_LIB2 "@SSL_DIR@/" P_SSL_LIBDIR "/libeay32.lib"
246 #endif
249 /////////////////////////////////////////////////
251 // EXPAT library for XML parsing
254 #undef P_EXPAT
256 #if defined(_MSC_VER) && P_EXPAT
258 #pragma include_alias(<expat.h>, <@EXPAT_DIR@/lib/expat.h>)
260 #ifdef _DEBUG
261 #define P_EXPAT_LIBDIR "Debug"
262 #else
263 #define P_EXPAT_LIBDIR "Release"
264 #endif
266 #define P_EXPAT_LIBRARY "@EXPAT_DIR@/" P_EXPAT_LIBDIR "/expat.lib"
268 #endif
271 /////////////////////////////////////////////////
273 // OpenLDAP
276 #undef P_LDAP
278 #if defined(_MSC_VER) && P_LDAP
280 #pragma include_alias(<ldap.h>, <@LDAP_DIR@/include/ldap.h>)
281 #pragma include_alias(<lber.h>, <@LDAP_DIR@/include/lber.h>)
282 #pragma include_alias(<lber_types.h>, <@LDAP_DIR@/include/lber_types.h>)
283 #pragma include_alias(<ldap_features.h>, <@LDAP_DIR@/include/ldap_features.h>)
284 #pragma include_alias(<ldap_cdefs.h>, <@LDAP_DIR@/include/ldap_cdefs.h>)
286 #ifdef _DEBUG
287 #define P_LDAP_LIBRARY "@LDAP_DIR@/DLLDebug/openldapd.lib"
288 #else
289 #define P_LDAP_LIBRARY "@LDAP_DIR@/DLLRelease/openldap.lib"
290 #endif
292 #endif
295 /////////////////////////////////////////////////
297 // DNS resolver
300 #undef P_DNS
302 #if defined(_MSC_VER) && P_DNS
304 #pragma include_alias(<windns.h>, <@DNS_DIR@/Include/windns.h>)
306 #define P_DNS_LIBRARY "@DNS_DIR@/Lib/DnsAPI.Lib"
308 #endif
312 /////////////////////////////////////////////////
314 // SAPI speech API (Windows only)
317 #undef P_SAPI
319 #if defined(_MSC_VER) && P_SAPI
321 #pragma include_alias(<sphelper.h>, <@SAPI_DIR@/include/sphelper.h>)
322 #pragma include_alias(<sapi.h>, <@SAPI_DIR@/include/sapi.h>)
323 #pragma include_alias(<sapiddk.h>, <@SAPI_DIR@/include/sapiddk.h>)
324 #pragma include_alias(<SPError.h>, <@SAPI_DIR@/include/SPError.h>)
325 #pragma include_alias(<SPDebug.h>, <@SAPI_DIR@/include/SPDebug.h>)
327 #define P_SAPI_LIBRARY "@SAPI_DIR@/Lib/i386/sapi.lib"
329 #endif
333 /////////////////////////////////////////////////
335 // SDL toolkit
338 #undef P_SDL
340 #if defined(_MSC_VER) && P_SDL
341 #pragma include_alias(<SDL/SDL.h>, <@SDL_DIR@/include/SDL.h>)
343 #undef P_SDL_LIBDIR
345 #ifndef P_SDL_LIBDIR
346 #ifdef _DEBUG
347 #define P_SDL_LIBDIR "VisualC/SDL/Debug"
348 #else
349 #define P_SDL_LIBDIR "VisualC/SDL/Release"
350 #endif
351 #endif
353 #define P_SDL_LIBRARY "@SDL_DIR@/" P_SDL_LIBDIR "/SDL.lib"
355 #endif
358 /////////////////////////////////////////////////
360 // Runtime dynamic link libraries
363 #undef P_DYNALINK
364 #undef P_HAS_PLUGINS
365 #undef P_DEFAULT_PLUGIN_DIR
367 /////////////////////////////////////////////////
369 // Regex library
372 #undef P_REGEX
374 /////////////////////////////////////////////////
376 // Video capture (Linux and xBSD)
379 #undef NO_VIDEO_CAPTURE
382 /////////////////////////////////////////////////
384 // Firewire (Linux only)
387 #undef TRY_1394AVC
388 #undef TRY_1394DC
391 /////////////////////////////////////////////////
393 // PThreads and related vars
396 #undef P_PTHREADS
397 #undef P_HAS_SEMAPHORES
398 #undef P_PTHREADS_XPG6
399 #undef P_HAS_SEMAPHORES_XPG6
401 /////////////////////////////////////////////////
403 // various functions
405 #undef USE_SYSTEM_SWAB
407 #undef PWLIB_MAJOR
408 #undef PWLIB_MINOR
409 #undef PWLIB_BUILD
410 #undef PWLIB_VERSION
412 // following features migrated from makefile
413 #undef P_64BIT
414 #undef PHAS_TEMPLATES
415 #undef PNO_LONG_DOUBLE
417 #endif // _PT_BUILDOPTS_H
420 // End Of File ///////////////////////////////////////////////////////////////