OPAL  Version 3.12.9
buildopts.h
Go to the documentation of this file.
1 /* include/opal/buildopts.h. Generated from buildopts.h.in by configure. */
2 /*
3  * buildopts.h
4  *
5  * Build options generated by the configure script.
6  *
7  * Portable Windows Library
8  *
9  * Copyright (c) 2003 Equivalence Pty. Ltd.
10  *
11  * The contents of this file are subject to the Mozilla Public License
12  * Version 1.0 (the "License"); you may not use this file except in
13  * compliance with the License. You may obtain a copy of the License at
14  * http://www.mozilla.org/MPL/
15  *
16  * Software distributed under the License is distributed on an "AS IS"
17  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
18  * the License for the specific language governing rights and limitations
19  * under the License.
20  *
21  * The Original Code is Portable Windows Library.
22  *
23  * The Initial Developer of the Original Code is Equivalence Pty. Ltd.
24  *
25  * Contributor(s): ______________________________________.
26  *
27  * $Revision: 29727 $
28  * $Author: rjongbloed $
29  * $Date: 2013-05-16 12:11:54 +1000 (Thu, 16 May 2013) $
30  */
31 
32 #ifndef OPAL_BUILDOPTS_H
33 #define OPAL_BUILDOPTS_H
34 
35 #include <ptbuildopts.h>
36 
38 //
39 // OPAL Version
40 //
41 
42 #define OPAL_MAJOR 3
43 #define OPAL_MINOR 12
44 #define OPAL_BUILD 9
45 #define OPAL_VERSION "3.12.9"
46 
47 #define OPAL_CHECK_VERSION(major,minor,build) \
48  (PTLIB_VERSION_INT(OPAL_MAJOR,OPAL_MINOR,OPAL_BUILD) >= PTLIB_VERSION_INT(major,minor,build))
49 
50 /* #undef OPAL_PTLIB_SSL */
51 /* #undef OPAL_PTLIB_ASN */
52 /* #undef OPAL_PTLIB_EXPAT */
53 /* #undef OPAL_PTLIB_AUDIO */
54 /* #undef OPAL_PTLIB_VIDEO */
55 /* #undef OPAL_PTLIB_WAVFILE */
56 /* #undef OPAL_PTLIB_DTMF */
57 /* #undef OPAL_PTLIB_IPV6 */
58 #ifndef _WIN32_WCE
59 /* #undef OPAL_PTLIB_DNS_RESOLVER */
60 #endif
61 #ifndef P_IPHONEOS
62 /* #undef OPAL_PTLIB_LDAP */
63 #endif
64 /* #undef OPAL_PTLIB_VXML */
65 /* #undef OPAL_PTLIB_CONFIG_FILE */
66 #define OPAL_AEC 1
67 
68 
69 // If a "configure" did not set these variables above then they get set from PTlib variables
70 
71 #if defined(P_SSL) && !defined(OPAL_PTLIB_SSL)
72  #define OPAL_PTLIB_SSL P_SSL
73 #endif
74 #if defined(P_ASN) && !defined(OPAL_PTLIB_ASN)
75  #define OPAL_PTLIB_ASN P_ASN
76 #endif
77 #if defined(P_EXPAT) && !defined(OPAL_PTLIB_EXPAT)
78  #define OPAL_PTLIB_EXPAT P_EXPAT
79 #endif
80 #if defined(P_AUDIO) && !defined(OPAL_PTLIB_AUDIO)
81  #define OPAL_PTLIB_AUDIO P_AUDIO
82 #endif
83 #if defined(P_VIDEO) && !defined(OPAL_PTLIB_VIDEO)
84  #define OPAL_PTLIB_VIDEO P_VIDEO
85 #endif
86 #if defined(P_WAVFILE) && !defined(OPAL_PTLIB_WAVFILE)
87  #define OPAL_PTLIB_WAVFILE P_WAVFILE
88 #endif
89 #if defined(P_DTMF) && !defined(OPAL_PTLIB_DTMF)
90  #define OPAL_PTLIB_DTMF P_DTMF
91 #endif
92 #if defined(P_HAS_IPV6) && !defined(OPAL_PTLIB_IPV6)
93  #define OPAL_PTLIB_IPV6 P_HAS_IPV6
94 #endif
95 #if defined(P_DNS_RESOLVER) && !defined(OPAL_PTLIB_DNS_RESOLVER)
96  #define OPAL_PTLIB_DNS_RESOLVER P_DNS_RESOLVER
97 #endif
98 #if defined(P_LDAP) && !defined(OPAL_PTLIB_LDAP)
99  #define OPAL_PTLIB_LDAP P_LDAP
100 #endif
101 #if defined(P_VXML) && !defined(OPAL_PTLIB_VXML)
102  #define OPAL_PTLIB_VXML P_VXML
103 #endif
104 #if defined(P_CONFIG_FILE) && !defined(OPAL_PTLIB_CONFIG_FILE)
105  #define OPAL_PTLIB_CONFIG_FILE P_CONFIG_FILE
106 #endif
107 
108 #define OPAL_PLUGIN_DIR "/usr/local/lib_linux_x86_64/opal-3.12.9"
109 
110 // Video
111 #if P_VIDEO
112  #define OPAL_VIDEO 1
113 #endif
114 
115 
117 //
118 // Protocol support
119 //
120 
121 #define OPAL_IAX2 1
122 #define OPAL_SIP 1
123 #if P_ASN
124  #define OPAL_H323 1
125 #endif
126 #define OPAL_LID 1
127 #define OPAL_CAPI 1
128 /* #undef OPAL_DAHDI */
129 /* #undef OPAL_T120DATA */
130 
131 #if OPAL_PTLIB_VXML
132  #define OPAL_IVR 1
133 #endif
134 
135 #if OPAL_H323
136  #if OPAL_VIDEO
137  #define OPAL_H239 1
138  #endif
139  #define OPAL_H501 1
140 
141  #define OPAL_H450 1
142  #if OPAL_H450
143  #define H323_H450 OPAL_H450
144  #endif
145 
146  #define OPAL_H460 1
147  #if OPAL_H460 && P_NAT
148  #define OPAL_H460_NAT 1
149  #endif
150 #else // OPAL_H323
151  #define H323_DISABLE_H225 1
152  #define H323_DISABLE_H235 1
153  #define H323_DISABLE_H245 1
154 #endif // OPAL_H323
155 
156 
157 #if !OPAL_H450
158  #define H323_DISABLE_X880 1
159  #define H323_DISABLE_H4501 1
160  #define H323_DISABLE_H4502 1
161  #define H323_DISABLE_H4503 1
162  #define H323_DISABLE_H4504 1
163  #define H323_DISABLE_H4505 1
164  #define H323_DISABLE_H4506 1
165  #define H323_DISABLE_H4507 1
166  #define H323_DISABLE_H4508 1
167  #define H323_DISABLE_H4509 1
168  #define H323_DISABLE_H45010 1
169  #define H323_DISABLE_H45011 1
170 #endif
171 
172 #if !OPAL_H460_NAT
173  #define H323_DISABLE_H46018 1
174  #define H323_DISABLE_H46019 1
175  #define H323_DISABLE_H46024B 1
176 #endif
177 
178 
179 #if !OPAL_T120DATA
180  #define H323_DISABLE_GCC 1
181  #define H323_DISABLE_MCS 1
182 #endif // OPAL_T120DATA
183 
184 
185 #if !OPAL_H501
186  #define H323_DISABLE_H501 1
187 #endif
188 
189 
191 //
192 // Various options
193 //
194 
195 #define OPAL_STATISTICS 1
196 #define OPAL_RTCP_XR 1
197 /* #undef GCC_HAS_CLZ */
198 
199 #define OPAL_HAS_MIXER 1
200 #if OPAL_PTLIB_AUDIO
201  #define OPAL_HAS_PCSS 1
202 #endif
203 
204 #define OPAL_SCRIPT 1
205 
206 
208 //
209 // Media support
210 //
211 
212 // G.711 Packet Loss Concealment
213 #define OPAL_G711PLC 1
214 
215 #if OPAL_VIDEO
216  // Uncompressed video over RTP
217  #define OPAL_RFC4175 1
218 
219  // JPEG over RTP
220 /* #undef OPAL_RFC2435 */
221 
222  #if OPAL_RFC2435
223  #if defined(_MSC_VER)
224  #define JPEGLIB_LIBRARY "@JPEGLIB_DIR@/../lib/jpeg.lib"
225  #pragma include_alias(<jpeglib.h>, <@JPEGLIB_DIR@/jpeglib.h>)
226  #endif
227  #endif
228 #endif
229 
230 
231 // T.38 Fax
232 #define OPAL_T38_CAPABILITY 1
233 
234 #if OPAL_T38_CAPABILITY && OPAL_PTLIB_ASN && OPAL_STATISTICS
235  #define OPAL_FAX 1
236 #endif
237 
238 #if !OPAL_FAX
239  #define H323_DISABLE_T38 1
240 #endif
241 
242 
243 // Presence
244 #if OPAL_PTLIB_EXPAT
245  #define OPAL_HAS_PRESENCE 1
246 
247  #if OPAL_HAS_PRESENCE && OPAL_SIP
248  #define OPAL_SIP_PRESENCE 1
249  #endif
250 #endif
251 
252 
253 // Instant Messaging
254 #define OPAL_HAS_MSRP 1
255 #if OPAL_SIP
256  #define OPAL_HAS_SIPIM 1
257 #endif
258 #define OPAL_HAS_RFC4103 1
259 
260 #define OPAL_HAS_IM (OPAL_HAS_SIPIM || OPAL_HAS_MSRP || OPAL_HAS_RFC4103)
261 
262 
263 // Far end camera control
264 /* #undef OPAL_HAS_H224 */
265 /* #undef OPAL_HAS_H281 */
266 
267 
268 // Use system Speex audio codec
269 #define OPAL_SYSTEM_SPEEX 1
270 #define OPAL_HAVE_SPEEX_SPEEX_H 1
271 /* #undef OPAL_SPEEX_FLOAT_NOISE */
272 
273 
275 //
276 // VoiceTronic VPB Line Interface Devide support
277 //
278 
279 #if OPAL_LID
280 /* #undef HAS_VPB */
281 
282  #if HAS_VPB
283  #if defined(_MSC_VER)
284  #pragma include_alias(<vpbapi.h>, <@VPB_DIR@/src/vpbapi.h>)
285  #define VPB_LIBRARY "@VPB_DIR@/win32/libvpb/Debug/libvpb.lib"
286  #endif
287  #endif
288 #endif
289 
290 
292 //
293 // libSRTP support
294 //
295 
296 #if OPAL_PTLIB_SSL
297  #define OPAL_SRTP 1
298 #endif
299 
300 
302 //
303 // libZRTP support
304 //
305 
306 /* Temporarily disabled as is currently broken, doesn't work,
307  probably doesn't even compile, need to sort out API to enable/disable as
308  well as getting the pass code back to user, and link into libzrtp
309 */
310 //#undef HAS_LIBZRTP
311 
312 #if defined(OPAL_SRTP) && defined(HAS_LIBZRTP) && !defined(_WIN32_WCE)
313 
314  #define OPAL_ZRTP 1
315 
316  #if defined(_MSC_VER)
317 
318  #ifdef _DEBUG
319  #define LIBZRTP_LIBRARY "@LIBZRTP_DIR@/Debug/libzrtp.lib"
320  #else
321  #define LIBZRTP_LIBRARY "@LIBZRTP_DIR@/Release/libzrtp.lib"
322  #endif
323 
324  #pragma comment(lib, LIBZRTP_LIBRARY)
325 
326  #pragma include_alias("WINCONFIG/config.h", "@LIBZRTP_DIR@/srtp_win32k/WINCONFIG/config.h")
327  #pragma include_alias("WINCONFIG\config.h", "@LIBZRTP_DIR@/srtp_win32k/WINCONFIG/config.h")
328 
329  #pragma include_alias(<zrtp.h>, <@LIBZRTP_DIR@/include/zrtp.h>)
330  #pragma include_alias(<zrtp_log.h>, <@LIBZRTP_DIR@/include/zrtp_log.h>)
331  #pragma include_alias(<zrtp_types.h>, <@LIBZRTP_DIR@/include/zrtp_types.h>)
332  #pragma include_alias(<zrtp_crypto.h>, <@LIBZRTP_DIR@/include/zrtp_crypto.h>)
333  #pragma include_alias(<zrtp_protocol.h>, <@LIBZRTP_DIR@/include/zrtp_protocol.h>)
334  #pragma include_alias(<zrtp_string.h>, <@LIBZRTP_DIR@/include/zrtp_string.h>)
335  #pragma include_alias(<zrtp_iface.h>, <@LIBZRTP_DIR@/include/zrtp_iface.h>)
336  #pragma include_alias(<zrtp_error.h>, <@LIBZRTP_DIR@/include/zrtp_error.h>)
337  #pragma include_alias(<zrtp_net.h>, <@LIBZRTP_DIR@/include/zrtp_net.h>)
338  #pragma include_alias(<zrtp_system.h>, <@LIBZRTP_DIR@/include/zrtp_system.h>)
339  #pragma include_alias("bn.h", "@LIBZRTP_DIR@/bnlib/bn.h")
340  #pragma include_alias(<bn.h>, <@LIBZRTP_DIR@/bnlib/bn.h>)
341  #pragma include_alias("bnsize00.h", "@LIBZRTP_DIR@/bnlib/bnsize00.h")
342  #pragma include_alias(<bnsize00.h>, <@LIBZRTP_DIR@/bnlib/bnsize00.h>)
343 
344  #pragma include_alias("aes.h", "@LIBZRTP_DIR@/bgaes/aes.h")
345  #pragma include_alias("sha2.h", "@LIBZRTP_DIR@/bgaes/sha2.h")
346 
347  #pragma include_alias("zrtp_win_config.h", "@LIBZRTP_DIR@/config/zrtp_win_config.h")
348 
349 
350  // ZRTP includes SRTP, so include SRTP headers
351 
352  #pragma include_alias("srtp.h", "@LIBZRTP_DIR@/srtp_win32k/include/srtp.h")
353  #pragma include_alias(<srtp.h>, <@LIBZRTP_DIR@/srtp_win32k/include/srtp.h>)
354  #pragma include_alias("srtp/srtp.h", "@LIBZRTP_DIR@/srtp_win32k/include/srtp.h")
355  #pragma include_alias(<srtp/include/srtp.h>, <@LIBZRTP_DIR@/srtp_win32k/include/srtp.h>)
356  #pragma include_alias("crypto_kernel.h", "@LIBZRTP_DIR@/srtp_win32k/crypto/include/crypto_kernel.h")
357  #pragma include_alias("rdbx.h", "@LIBZRTP_DIR@/srtp_win32k/crypto/include/rdbx.h")
358  #pragma include_alias("rdb.h", "@LIBZRTP_DIR@/srtp_win32k/crypto/include/rdb.h")
359  #pragma include_alias("integers.h", "@LIBZRTP_DIR@/srtp_win32k/crypto/include/integers.h")
360 
361  // end of SRTP headers
362 
363  #endif
364 #endif
365 
366 
368 //
369 // Java JNI support
370 //
371 
372 /* #undef OPAL_JAVA */
373 
374 #if OPAL_JAVA
375  #if defined(_MSC_VER)
376  #pragma include_alias(<jni.h>, <@JAVA_DIR@/include/jni.h>)
377  #pragma include_alias("jni_md.h", "@JAVA_DIR@/include/win32/jni_md.h")
378  #endif
379 #endif
380 
381 
383 //
384 // Ruby support
385 //
386 
387 #if !defined(_WIN32_WCE)
388 /* #undef OPAL_RUBY */
389 #endif
390 
391 #if OPAL_RUBY
392 
393  #if defined(_MSC_VER)
394  #define RUBY_MSC_VER 1200
395 
396  #pragma include_alias(<ruby.h>, <@RUBY_DIR@/ruby.h>)
397  #pragma include_alias("ruby/config.h", "@RUBY_DIR@/i386-mswin32/ruby/config.h")
398  #pragma include_alias("ruby/io.h", "@RUBY_DIR@/ruby/io.h")
399  #pragma include_alias("ruby/encoding.h", "@RUBY_DIR@/ruby/encoding.h")
400  #pragma include_alias("ruby/oniguruma.h", "@RUBY_DIR@/ruby/oniguruma.h")
401 
402  #define RUBY_LIBRARY "@RUBY_DIR@/../../lib/msvcrt-ruby191.lib"
403  #endif
404 
405 #endif
406 
407 
408 #endif // OPAL_BUILDOPTS_H
409 
410 
411 // End Of File ///////////////////////////////////////////////////////////////