Fix Wai dissector
[metze/wireshark/wip.git] / cmakeconfig.h.in
1 /* cmakeconfig.h.in */
2
3 /* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
4
5 /* Name of package */
6 #define PACKAGE "wireshark"
7
8 #define VERSION_EXTRA "$ENV{WIRESHARK_VERSION_EXTRA}"
9
10 /* Version number of package */
11 #define VERSION "${CPACK_PACKAGE_VERSION}${VERSION_EXTRA}"
12 #define VERSION_MAJOR ${PROJECT_MAJOR_VERSION}
13 #define VERSION_MINOR ${PROJECT_MINOR_VERSION}
14 #define VERSION_MICRO ${PROJECT_PATCH_VERSION}
15
16 #define VERSION_FLAVOR "${VERSION_FLAVOR}"
17
18 /* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */
19 /* Directory for data */
20 #define DATAFILE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}"
21
22 /* Build wsutil with SIMD optimization */
23 #cmakedefine HAVE_SSE4_2 1
24
25 /* Directory where extcap hooks reside */
26 #define EXTCAP_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/extcap/"
27
28 /* Define to 1 if we want to enable extcap */
29 #cmakedefine HAVE_EXTCAP 1
30
31 /* Define to 1 if we want to enable plugins */
32 #cmakedefine HAVE_PLUGINS 1
33
34 /* Link plugins statically into Wireshark */
35 #cmakedefine ENABLE_STATIC 1
36
37 /* Enable AirPcap */
38 #cmakedefine HAVE_AIRPCAP 1
39
40 /* Define to 1 if you have the <arpa/inet.h> header file. */
41 #cmakedefine HAVE_ARPA_INET_H 1
42
43 /* Define to 1 if you have the <arpa/nameser.h> header file. */
44 #cmakedefine HAVE_ARPA_NAMESER_H 1
45
46 /* Define to 1 if you have the `bpf_image' function. */
47 #cmakedefine HAVE_BPF_IMAGE 1
48
49 /* Define to use c-ares library */
50 #cmakedefine HAVE_C_ARES 1
51
52 /* Define to 1 if you have the `dladdr' function. */
53 #cmakedefine HAVE_DLADDR 1
54
55 /* Define to 1 if you have the <dlfcn.h> header file. */
56 #cmakedefine HAVE_DLFCN_H 1
57
58 /* Define to 1 if you have the <fcntl.h> header file. */
59 #cmakedefine HAVE_FCNTL_H 1
60
61 /* Define to use GeoIP library */
62 #cmakedefine HAVE_GEOIP 1
63
64 /* Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later) */
65 #cmakedefine HAVE_GEOIP_V6 1
66
67 /* Define if you have the 'floorl' function. */
68 #cmakedefine HAVE_FLOORL 1
69
70 /* Define to 1 if you have the `getaddrinfo' function. */
71 #cmakedefine HAVE_GETADDRINFO 1
72
73 /* Define to 1 if you have the `gethostbyname' function. */
74 #cmakedefine HAVE_GETHOSTBYNAME 1
75
76 /* Define to 1 if you have the `gethostbyname2' function. */
77 #cmakedefine HAVE_GETHOSTBYNAME2 1
78
79 /* Define to 1 if you have the getopt_long function. */
80 #cmakedefine HAVE_GETOPT_LONG 1
81
82 /* Define to 1 if you have the <getopt.h> header file. */
83 #cmakedefine HAVE_GETOPT_H 1
84
85 /* Define if GLib's printf functions support thousands grouping. */
86 #cmakedefine HAVE_GLIB_PRINTF_GROUPING 1
87
88 /* Define to 1 if you have the `getprotobynumber' function. */
89 #cmakedefine HAVE_GETPROTOBYNUMBER 1
90
91 /* Define to use GNU ADNS library */
92 #cmakedefine HAVE_GNU_ADNS 1
93
94 /* Define to 1 if you have the <grp.h> header file. */
95 #cmakedefine HAVE_GRP_H 1
96
97 /* Define to use heimdal kerberos */
98 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
99
100 /* Define unless inet/aton.h needs to be included */
101 #cmakedefine HAVE_INET_ATON_H 1
102
103 /* Define if inet_ntop() prototype exists */
104 #cmakedefine HAVE_INET_NTOP_PROTO 1
105
106 /* Define to 1 if you have the `inflatePrime' function. */
107 #cmakedefine HAVE_INFLATEPRIME 1
108
109 /* Define to 1 if you have the <inttypes.h> header file. */
110 #cmakedefine HAVE_INTTYPES_H 1
111
112 /* Define to 1 if you have the `issetugid' function. */
113 #cmakedefine HAVE_ISSETUGID 1
114
115 /* Define to use kerberos */
116 #cmakedefine HAVE_KERBEROS 1
117
118 /* Define if krb5.h defines KEYTYPE_ARCFOUR_56 */
119 #cmakedefine HAVE_KEYTYPE_ARCFOUR_56 1
120
121 /* Define to use the libcap library */
122 #cmakedefine HAVE_LIBCAP 1
123
124 /* Define to use libgcrypt */
125 #cmakedefine HAVE_LIBGCRYPT 1
126
127 /* Define to use GnuTLS library */
128 #cmakedefine HAVE_LIBGNUTLS 1
129
130 /* Enable libnl support */
131 #cmakedefine HAVE_LIBNL 1
132
133 /* libnl version 1 */
134 #cmakedefine HAVE_LIBNL1 1
135
136 /* libnl version 2 */
137 #cmakedefine HAVE_LIBNL2 1
138
139 /* libnl version 3 */
140 #cmakedefine HAVE_LIBNL3 1
141
142 /* Define to use libpcap library */
143 #cmakedefine HAVE_LIBPCAP 1
144
145 /* Define to use libportaudio library */
146 #cmakedefine HAVE_LIBPORTAUDIO 1
147
148 /* Define to 1 if you have the `smi' library (-lsmi). */
149 #cmakedefine HAVE_LIBSMI 1
150
151 /* Define to use libz library */
152 #cmakedefine HAVE_LIBZ 1
153
154 /* Define to use Lua */
155 #cmakedefine HAVE_LUA 1
156
157 /* Define to 1 if you have the <lua.h> header file. */
158 #cmakedefine HAVE_LUA_H 1
159
160 /* Define to 1 if you have the <memory.h> header file. */
161 #cmakedefine HAVE_MEMORY_H 1
162
163 /* Define to use MIT kerberos */
164 #cmakedefine HAVE_MIT_KERBEROS 1
165
166 /* Define to 1 if you have the `mkdtemp' function. */
167 #cmakedefine HAVE_MKDTEMP 1
168
169 /* Define to 1 if you have the `mkstemp' function. */
170 #cmakedefine HAVE_MKSTEMP 1
171
172 /* Define to 1 if you have the `mmap' function. */
173 #cmakedefine HAVE_MMAP 1
174
175 /* Define to 1 if you have the `mprotect' function. */
176 #cmakedefine HAVE_MPROTECT 1
177
178 /* Define to 1 if you have the <netdb.h> header file. */
179 #cmakedefine HAVE_NETDB_H 1
180
181 /* Define to 1 if you have the <netinet/in.h> header file. */
182 #cmakedefine HAVE_NETINET_IN_H 1
183
184 /* nl80211.h is new enough */
185 #cmakedefine HAVE_NL80211 1
186
187 /* SET_CHANNEL is supported */
188 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
189
190 /* SPLIT_WIPHY_DUMP is supported */
191 #cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
192
193 /* Define to 1 if you have the <Ntddndis.h> header file. */
194 #cmakedefine HAVE_NTDDNDIS_H 1
195
196 /* Define to 1 if you have OS X frameworks */
197 #cmakedefine HAVE_OS_X_FRAMEWORKS 1
198
199 /* Define to 1 if you have the OS X CFPropertyListCreateWithStream function */
200 #cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
201
202 /* Define if pcap_breakloop is known */
203 #cmakedefine HAVE_PCAP_BREAKLOOP 1
204
205 /* Define to 1 if you have the `pcap_create' function. */
206 #cmakedefine HAVE_PCAP_CREATE 1
207
208 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
209 #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
210
211 /* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
212 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
213
214 /* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
215 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
216
217 /* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
218    declares pcap_if_t. */
219 #cmakedefine HAVE_PCAP_FINDALLDEVS 1
220
221 /* Define to 1 if you have the `pcap_freecode' function. */
222 #cmakedefine HAVE_PCAP_FREECODE 1
223
224 /* Define to 1 if you have the `pcap_free_datalinks' function. */
225 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
226
227 /* Define to 1 if you have the `pcap_get_selectable_fd' function. */
228 #cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
229
230 /* Define to 1 if you have the `pcap_lib_version' function. */
231 #cmakedefine HAVE_PCAP_LIB_VERSION 1
232
233 /* Define to 1 if you have the `pcap_list_datalinks' function. */
234 #cmakedefine HAVE_PCAP_LIST_DATALINKS 1
235
236 /* Define to 1 if you have the `pcap_open' function. */
237 #cmakedefine HAVE_PCAP_OPEN 1
238
239 /* Define to 1 if you have the `pcap_open_dead' function. */
240 #cmakedefine HAVE_PCAP_OPEN_DEAD 1
241
242 /* Define to 1 if you have WinPcap remote capturing support and prefer to use
243    these new API features. */
244 #cmakedefine HAVE_PCAP_REMOTE 1
245
246 /* Define to 1 if you have the `pcap_set_datalink' function. */
247 #cmakedefine HAVE_PCAP_SET_DATALINK 1
248
249 /* Define to 1 if you have the `pcap_setsampling' function. */
250 #cmakedefine HAVE_PCAP_SETSAMPLING 1
251
252 /* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
253 #cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1
254
255 /* Define to 1 if you have the popcount function. */
256 #cmakedefine HAVE_POPCOUNT 1
257
258 /* Define to 1 if you have the <portaudio.h> header file. */
259 #cmakedefine HAVE_PORTAUDIO_H 1
260
261 /* Define to 1 if you have the <pwd.h> header file. */
262 #cmakedefine HAVE_PWD_H 1
263
264 /* Define to 1 if you have the optreset variable */
265 #cmakedefine HAVE_OPTRESET 1
266
267 /* Define to 1 to enable remote capturing feature in WinPcap library */
268 #cmakedefine HAVE_REMOTE 1
269
270 /* Define if sa_len field exists in struct sockaddr */
271 #cmakedefine HAVE_SA_LEN 1
272
273 /* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
274 #cmakedefine HAVE_SBC 1
275
276 /* Define to 1 if you have the `setresgid' function. */
277 #cmakedefine HAVE_SETRESGID 1
278
279 /* Define to 1 if you have the `setresuid' function. */
280 #cmakedefine HAVE_SETRESUID 1
281
282 /* Define to 1 if you have the WinSparkle library */
283 #cmakedefine HAVE_SOFTWARE_UPDATE 1
284
285 /* Define to 1 if you have the <stdint.h> header file. */
286 #cmakedefine HAVE_STDINT_H 1
287
288 /* Define to 1 if you have the <strings.h> header file. */
289 #cmakedefine HAVE_STRINGS_H 1
290
291 /* Define if you have the 'strptime' function. */
292 #cmakedefine HAVE_STRPTIME 1
293
294 /* Define if st_flags field exists in struct stat */
295 #cmakedefine HAVE_ST_FLAGS 1
296
297 /* Define to 1 if you have the `sysconf' function. */
298 #cmakedefine HAVE_SYSCONF 1
299
300 /* Define to 1 if you have the <sys/ioctl.h> header file. */
301 #cmakedefine HAVE_SYS_IOCTL_H 1
302
303 /* Define to 1 if you have the <sys/param.h> header file. */
304 #cmakedefine HAVE_SYS_PARAM_H 1
305
306 /* Define to 1 if you have the <sys/socket.h> header file. */
307 #cmakedefine HAVE_SYS_SOCKET_H 1
308
309 /* Define to 1 if you have the <sys/sockio.h> header file. */
310 #cmakedefine HAVE_SYS_SOCKIO_H 1
311
312 /* Define to 1 if you have the <sys/stat.h> header file. */
313 #cmakedefine HAVE_SYS_STAT_H 1
314
315 /* Define to 1 if you have the <sys/time.h> header file. */
316 #cmakedefine HAVE_SYS_TIME_H 1
317
318 /* Define to 1 if you have the <sys/types.h> header file. */
319 #cmakedefine HAVE_SYS_TYPES_H 1
320
321 /* Define to 1 if you have the <sys/utsname.h> header file. */
322 #cmakedefine HAVE_SYS_UTSNAME_H 1
323
324 /* Define to 1 if you have the <sys/wait.h> header file. */
325 #cmakedefine HAVE_SYS_WAIT_H 1
326
327 /* Define if tm_zone field exists in struct tm */
328 #cmakedefine HAVE_TM_ZONE 1
329
330 /* Define if tzname array exists */
331 #cmakedefine HAVE_TZNAME 1
332
333 /* Define to 1 if you have the <unistd.h> header file. */
334 #cmakedefine HAVE_UNISTD_H 1
335
336 /* Define to 1 if you have the <windows.h> header file. */
337 #cmakedefine HAVE_WINDOWS_H 1
338
339 /* Define to 1 if you have the <winsock2.h> header file. */
340 #cmakedefine HAVE_WINSOCK2_H 1
341
342 /* HTML viewer, e.g. mozilla */
343 #cmakedefine HTML_VIEWER "${HTML_VIEWER_EXECUTABLE}"
344
345 /* Define if inet/v6defs.h needs to be included */
346 #cmakedefine NEED_INET_V6DEFS_H 1
347
348 /* Name of package */
349 #cmakedefine PACKAGE
350
351 /* Define to the address where bug reports for this package should be sent. */
352 #cmakedefine PACKAGE_BUGREPORT
353
354 /* Define to the full name of this package. */
355 #cmakedefine PACKAGE_NAME
356
357 /* Define to the full name and version of this package. */
358 #cmakedefine PACKAGE_STRING
359
360 /* Define to the one symbol short name of this package. */
361 #cmakedefine PACKAGE_TARNAME
362
363 /* Define to the version of this package. */
364 #cmakedefine PACKAGE_VERSION
365
366 /* Support for pcap-ng */
367 #cmakedefine PCAP_NG_DEFAULT 1
368
369 /* Plugin installation directory */
370 #cmakedefine PLUGIN_INSTALL_DIR "${PLUGIN_INSTALL_DIR}"
371
372 /* Define if we are using version of of the Portaudio library API */
373 #cmakedefine PORTAUDIO_API_1 1
374
375 /* Define if we have QtMultimediaWidgets */
376 #cmakedefine QT_MULTIMEDIAWIDGETS_LIB 1
377
378 /* Define if we have QtMacExtras */
379 #cmakedefine QT_MACEXTRAS_LIB 1
380
381 /* Define if we have QtWinExtras */
382 /* #cmakedefine QT_WINEXTRAS_LIB 1 */
383
384 /* Support for packet editor */
385 #cmakedefine WANT_PACKET_EDITOR 1
386
387 /* Define to 1 if your processor stores words with the most significant byte
388    first (like Motorola and SPARC, unlike Intel and VAX). */
389 #cmakedefine WORDS_BIGENDIAN 1
390
391 /* Large file support */
392 #cmakedefine _LARGEFILE_SOURCE
393 #cmakedefine _LARGEFILE64_SOURCE
394 #cmakedefine _LARGE_FILES
395 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
396
397 /* Define WS_MSVC_NORETURN appropriately for declarations of routines that
398    never return (just like Charlie on the MTA).
399
400    Note that MSVC++ expects __declspec(noreturn) to precede the function
401    name and GCC, as far as I know, expects __attribute__((noreturn)) to
402    follow the function name, so we need two different flavors of
403    noreturn tag.  */
404 #define WS_MSVC_NORETURN @WS_MSVC_NORETURN@
405
406 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
407    `char[]'. */
408 /* Note: not use in the code */
409 #cmakedefine YYTEXT_POINTER
410
411 /* _U_ isn't needed for C++, simply don't name the variable.
412    However, we do need it for some headers that are shared between C and C++. */
413 #define _U_ ${C_UNUSED}
414
415 /* We don't bother checking for IPv6 support; the checks done in the
416    autoconf script are relics of a bygone age, where IPv6 support in
417    OSes was sometimes present by default, sometimes provided by
418    third-party add-ons, and sometimes completely absent, and where the
419    particular flavor of IPv6 support mattered to us.  We'll just wire it
420    on, unless and until that becomes an issue on platforms where people
421    use CMake. */
422 #define INET6 1
423
424 #if defined(_WIN32)
425
426    /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
427 #  ifndef WIN32
428 #    define WIN32       1
429 #  endif
430
431 #  if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
432    typedef int ssize_t;
433 #  endif
434
435    /* FIXME: Detection doesn't work */
436 #  define HAVE_NTDDNDIS_H 1
437    /* Visual C 9 (2008), Visual C 10 (2010), Visual C 11 (2012) and Visual C 12 (2013)
438     *  need these prototypes
439     * XXX: Can we use MSC_VER >= 1500 ?? */
440 #  if _MSC_VER == 1500 || _MSC_VER == 1600 || _MSC_VER == 1700 || _MSC_VER == 1800
441 #    define NTDDI_VERSION NTDDI_WINXPSP3
442 #    define _WIN32_WINNT _WIN32_WINNT_WINXP
443 #  endif
444
445    /*
446     * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
447     */
448 #  define YY_NO_UNISTD_H
449
450
451 #  define strncasecmp strnicmp
452 #  define popen       _popen
453 #  define pclose      _pclose
454
455 #  ifndef __STDC__
456 #    define __STDC__ 0
457 #  endif
458    /* Use Unicode in Windows runtime functions. */
459 #  define UNICODE 1
460 #  define _UNICODE 1
461
462 #  define NEED_INET_V6DEFS_H 1
463 #  define NEED_STRPTIME_H 1
464 #endif