3 /* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
6 #define PACKAGE "wireshark"
8 #define VERSION_EXTRA "$ENV{WIRESHARK_VERSION_EXTRA}"
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}
16 #define VERSION_FLAVOR "${VERSION_FLAVOR}"
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}"
22 /* Build wsutil with SIMD optimization */
23 #cmakedefine HAVE_SSE4_2 1
25 /* Directory where extcap hooks reside */
26 #define EXTCAP_DIR "${EXTCAP_DIR}"
28 /* Define to 1 if we want to enable extcap */
29 #cmakedefine HAVE_EXTCAP 1
31 /* Define to 1 if we want to enable plugins */
32 #cmakedefine HAVE_PLUGINS 1
34 /* Define to 1 if we check hf conflict */
35 #cmakedefine ENABLE_CHECK_FILTER 1
37 /* Link plugins statically into Wireshark */
38 #cmakedefine ENABLE_STATIC 1
41 #cmakedefine HAVE_AIRPCAP 1
43 /* Define to 1 if you have the <arpa/inet.h> header file. */
44 #cmakedefine HAVE_ARPA_INET_H 1
46 /* Define to 1 if you have the <arpa/nameser.h> header file. */
47 #cmakedefine HAVE_ARPA_NAMESER_H 1
49 /* Define to 1 if you have the `bpf_image' function. */
50 #cmakedefine HAVE_BPF_IMAGE 1
52 /* Define to use c-ares library */
53 #cmakedefine HAVE_C_ARES 1
55 /* Define to 1 if you have the `dladdr' function. */
56 #cmakedefine HAVE_DLADDR 1
58 /* Define to 1 if you have the <dlfcn.h> header file. */
59 #cmakedefine HAVE_DLFCN_H 1
61 /* Define to 1 if you have the <fcntl.h> header file. */
62 #cmakedefine HAVE_FCNTL_H 1
64 /* Define to use GeoIP library */
65 #cmakedefine HAVE_GEOIP 1
67 /* Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later) */
68 #cmakedefine HAVE_GEOIP_V6 1
70 /* Define if GeoIP has GeoIP_free (not available upstream with 1.6.10 or earlier) */
71 #cmakedefine HAVE_GEOIP_FREE 1
73 /* Define to 1 if you have the <ifaddrs.h> header file. */
74 #cmakedefine HAVE_IFADDRS_H 1
76 /* Define to 1 if you have the `getifaddrs' function. */
77 #cmakedefine HAVE_GETIFADDRS 1
79 /* Define if LIBSSH support is enabled */
80 #cmakedefine HAVE_LIBSSH 1
82 /* Define if LIBSSH has ssh_userauth_agent() function */
83 #cmakedefine HAVE_SSH_USERAUTH_AGENT 1
85 /* Define if you have the 'floorl' function. */
86 #cmakedefine HAVE_FLOORL 1
88 /* Define if you have the 'lrint' function. */
89 #cmakedefine HAVE_LRINT 1
91 /* Define to 1 if you have the getopt_long function. */
92 #cmakedefine HAVE_GETOPT_LONG 1
94 /* Define to 1 if you have the <getopt.h> header file. */
95 #cmakedefine HAVE_GETOPT_H 1
97 /* Define if GLib's printf functions support thousands grouping. */
98 #cmakedefine HAVE_GLIB_PRINTF_GROUPING 1
100 /* Define to 1 if you have the `getprotobynumber' function. */
101 #cmakedefine HAVE_GETPROTOBYNUMBER 1
103 /* Define to 1 if you have the <grp.h> header file. */
104 #cmakedefine HAVE_GRP_H 1
106 /* Define to use heimdal kerberos */
107 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
109 /* Define to 1 if you have the `inet_aton' function. */
110 #cmakedefine HAVE_INET_ATON 1
112 /* Define to 1 if you have the `inet_ntop' function. */
113 #cmakedefine HAVE_INET_NTOP 1
115 /* Define to 1 if you have the `inet_pton' function. */
116 #cmakedefine HAVE_INET_PTON 1
118 /* Define to 1 if you have the `inflatePrime' function. */
119 #cmakedefine HAVE_INFLATEPRIME 1
121 /* Define to 1 if you have the <inttypes.h> header file. */
122 #cmakedefine HAVE_INTTYPES_H 1
124 /* Define to 1 if you have the `issetugid' function. */
125 #cmakedefine HAVE_ISSETUGID 1
127 /* Define to use kerberos */
128 #cmakedefine HAVE_KERBEROS 1
130 /* Define to use nghttp2 */
131 #cmakedefine HAVE_NGHTTP2 1
133 /* Define to use the libcap library */
134 #cmakedefine HAVE_LIBCAP 1
136 /* Define to use GnuTLS library */
137 #cmakedefine HAVE_LIBGNUTLS 1
139 /* Enable libnl support */
140 #cmakedefine HAVE_LIBNL 1
142 /* libnl version 1 */
143 #cmakedefine HAVE_LIBNL1 1
145 /* libnl version 2 */
146 #cmakedefine HAVE_LIBNL2 1
148 /* libnl version 3 */
149 #cmakedefine HAVE_LIBNL3 1
151 /* Define to use libpcap library */
152 #cmakedefine HAVE_LIBPCAP 1
154 /* Define to use libportaudio library */
155 #cmakedefine HAVE_LIBPORTAUDIO 1
157 /* Define to 1 if you have the `smi' library (-lsmi). */
158 #cmakedefine HAVE_LIBSMI 1
160 /* Define to use zlib library */
161 #cmakedefine HAVE_ZLIB 1
163 /* Define to use lz4 library */
164 #cmakedefine HAVE_LZ4 1
166 /* Define to use snappy library */
167 #cmakedefine HAVE_SNAPPY 1
169 /* Define to 1 if you have the <linux/sockios.h> header file. */
170 #cmakedefine HAVE_LINUX_SOCKIOS_H 1
172 /* Define to 1 if you have the <linux/if_bonding.h> header file. */
173 #cmakedefine HAVE_LINUX_IF_BONDING_H 1
175 /* Define to use Lua */
176 #cmakedefine HAVE_LUA 1
178 /* Define to 1 if you have the <lua.h> header file. */
179 #cmakedefine HAVE_LUA_H 1
181 /* Define to 1 if you have the <memory.h> header file. */
182 #cmakedefine HAVE_MEMORY_H 1
184 /* Define to use MIT kerberos */
185 #cmakedefine HAVE_MIT_KERBEROS 1
187 /* Define to 1 if you have the `mkdtemp' function. */
188 #cmakedefine HAVE_MKDTEMP 1
190 /* Define to 1 if you have the `mkstemps' function. */
191 #cmakedefine HAVE_MKSTEMPS 1
193 /* Define to 1 if you have the `mmap' function. */
194 #cmakedefine HAVE_MMAP 1
196 /* Define to 1 if you have the `mprotect' function. */
197 #cmakedefine HAVE_MPROTECT 1
199 /* Define to 1 if you have the <netdb.h> header file. */
200 #cmakedefine HAVE_NETDB_H 1
202 /* Define to 1 if you have the <netinet/in.h> header file. */
203 #cmakedefine HAVE_NETINET_IN_H 1
205 /* nl80211.h is new enough */
206 #cmakedefine HAVE_NL80211 1
208 /* SET_CHANNEL is supported */
209 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
211 /* SPLIT_WIPHY_DUMP is supported */
212 #cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
214 /* VHT_CAPABILITY is supported */
215 #cmakedefine HAVE_NL80211_VHT_CAPABILITY 1
217 /* Define to 1 if you have the <Ntddndis.h> header file. */
218 #cmakedefine HAVE_NTDDNDIS_H 1
220 /* Define to 1 if you have macOS frameworks */
221 #cmakedefine HAVE_OS_X_FRAMEWORKS 1
223 /* Define to 1 if you have the macOS CFPropertyListCreateWithStream function */
224 #cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
226 /* Define if pcap_breakloop is known */
227 #cmakedefine HAVE_PCAP_BREAKLOOP 1
229 /* Define to 1 if you have the `pcap_create' function. */
230 #cmakedefine HAVE_PCAP_CREATE 1
232 /* Define to 1 if the capture buffer size can be set. */
233 #cmakedefine CAN_SET_CAPTURE_BUFFER_SIZE 1
235 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
236 #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
238 /* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
239 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
241 /* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
242 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
244 /* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
245 declares pcap_if_t. */
246 #cmakedefine HAVE_PCAP_FINDALLDEVS 1
248 /* Define to 1 if you have the `pcap_freecode' function. */
249 #cmakedefine HAVE_PCAP_FREECODE 1
251 /* Define to 1 if you have the `pcap_free_datalinks' function. */
252 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
254 /* Define to 1 if you have the `pcap_get_selectable_fd' function. */
255 #cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
257 /* Define to 1 if you have the `pcap_lib_version' function. */
258 #cmakedefine HAVE_PCAP_LIB_VERSION 1
260 /* Define to 1 if you have the `pcap_list_datalinks' function. */
261 #cmakedefine HAVE_PCAP_LIST_DATALINKS 1
263 /* Define to 1 if you have the `pcap_open' function. */
264 #cmakedefine HAVE_PCAP_OPEN 1
266 /* Define to 1 if you have the `pcap_open_dead' function. */
267 #cmakedefine HAVE_PCAP_OPEN_DEAD 1
269 /* Define to 1 if you have libpcap/WinPcap remote capturing support. */
270 #cmakedefine HAVE_PCAP_REMOTE 1
272 /* Define to 1 if you have the `pcap_set_datalink' function. */
273 #cmakedefine HAVE_PCAP_SET_DATALINK 1
275 /* Define to 1 if you have the `pcap_setsampling' function. */
276 #cmakedefine HAVE_PCAP_SETSAMPLING 1
278 /* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
279 #cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1
281 /* Define to 1 if you have the popcount function. */
282 #cmakedefine HAVE_POPCOUNT 1
284 /* Define to 1 if you have the <portaudio.h> header file. */
285 #cmakedefine HAVE_PORTAUDIO_H 1
287 /* Define to 1 if you have the <pwd.h> header file. */
288 #cmakedefine HAVE_PWD_H 1
290 /* Define to 1 if you have the optreset variable */
291 #cmakedefine HAVE_OPTRESET 1
293 /* Define if sa_len field exists in struct sockaddr */
294 #cmakedefine HAVE_STRUCT_SOCKADDR_SA_LEN 1
296 /* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
297 #cmakedefine HAVE_SBC 1
299 /* Define to 1 if you have the SpanDSP library. */
300 #cmakedefine HAVE_SPANDSP 1
302 /* Define to 1 if you have the lixbml2 library. */
303 #cmakedefine HAVE_LIBXML2 1
305 /* Define to 1 if you have the `setresgid' function. */
306 #cmakedefine HAVE_SETRESGID 1
308 /* Define to 1 if you have the `setresuid' function. */
309 #cmakedefine HAVE_SETRESUID 1
311 /* Define to 1 if you have the WinSparkle library */
312 #cmakedefine HAVE_SOFTWARE_UPDATE 1
314 /* Define to 1 if you have the <stdint.h> header file. */
315 #cmakedefine HAVE_STDINT_H 1
317 /* Define to 1 if you have the <strings.h> header file. */
318 #cmakedefine HAVE_STRINGS_H 1
320 /* Define if you have the 'strptime' function. */
321 #cmakedefine HAVE_STRPTIME 1
323 /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
324 #cmakedefine HAVE_STRUCT_STAT_ST_BIRTHTIME 1
326 /* Define if st_flags field exists in struct stat */
327 #cmakedefine HAVE_STRUCT_STAT_ST_FLAGS 1
329 /* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
330 #cmakedefine HAVE_STRUCT_STAT___ST_BIRTHTIME 1
332 /* Define to 1 if you have the `sysconf' function. */
333 #cmakedefine HAVE_SYSCONF 1
335 /* Define to 1 if you have the <sys/ioctl.h> header file. */
336 #cmakedefine HAVE_SYS_IOCTL_H 1
338 /* Define to 1 if you have the <sys/param.h> header file. */
339 #cmakedefine HAVE_SYS_PARAM_H 1
341 /* Define to 1 if you have the <sys/socket.h> header file. */
342 #cmakedefine HAVE_SYS_SOCKET_H 1
344 /* Define to 1 if you have the <sys/sockio.h> header file. */
345 #cmakedefine HAVE_SYS_SOCKIO_H 1
347 /* Define to 1 if you have the <sys/stat.h> header file. */
348 #cmakedefine HAVE_SYS_STAT_H 1
350 /* Define to 1 if you have the <sys/time.h> header file. */
351 #cmakedefine HAVE_SYS_TIME_H 1
353 /* Define to 1 if you have the <sys/types.h> header file. */
354 #cmakedefine HAVE_SYS_TYPES_H 1
356 /* Define to 1 if you have the <sys/utsname.h> header file. */
357 #cmakedefine HAVE_SYS_UTSNAME_H 1
359 /* Define to 1 if you have the <sys/wait.h> header file. */
360 #cmakedefine HAVE_SYS_WAIT_H 1
362 /* Define if tm_zone field exists in struct tm */
363 #cmakedefine HAVE_STRUCT_TM_TM_ZONE 1
365 /* Define if tzname array exists */
366 #cmakedefine HAVE_TZNAME 1
368 /* Define to 1 if you have the <unistd.h> header file. */
369 #cmakedefine HAVE_UNISTD_H 1
371 /* Define to 1 if you have the <windows.h> header file. */
372 #cmakedefine HAVE_WINDOWS_H 1
374 /* Define to 1 if you have the <winsock2.h> header file. */
375 #cmakedefine HAVE_WINSOCK2_H 1
377 /* Name of package */
380 /* Define to the address where bug reports for this package should be sent. */
381 #cmakedefine PACKAGE_BUGREPORT
383 /* Define to the full name of this package. */
384 #cmakedefine PACKAGE_NAME
386 /* Define to the full name and version of this package. */
387 #cmakedefine PACKAGE_STRING
389 /* Define to the one symbol short name of this package. */
390 #cmakedefine PACKAGE_TARNAME
392 /* Define to the version of this package. */
393 #cmakedefine PACKAGE_VERSION
395 /* Support for pcap-ng */
396 #cmakedefine PCAP_NG_DEFAULT 1
398 /* Plugin installation directory */
399 #cmakedefine PLUGIN_INSTALL_DIR "${PLUGIN_INSTALL_DIR}"
401 /* Define if we are using version of of the Portaudio library API */
402 #cmakedefine PORTAUDIO_API_1 1
404 /* Define if we have QtMultimedia */
405 #cmakedefine QT_MULTIMEDIA_LIB 1
407 /* Define if we have QtMacExtras */
408 #cmakedefine QT_MACEXTRAS_LIB 1
410 /* Define if we have QtWinExtras */
411 /* #cmakedefine QT_WINEXTRAS_LIB 1 */
413 /* Support for packet editor */
414 #cmakedefine WANT_PACKET_EDITOR 1
416 /* Define to 1 if your processor stores words with the most significant byte
417 first (like Motorola and SPARC, unlike Intel and VAX). */
418 #cmakedefine WORDS_BIGENDIAN 1
420 /* Build androiddump with libpcap instead of wireshark stuff */
421 #cmakedefine ANDROIDDUMP_USE_LIBPCAP 1
423 /* Large file support */
424 #cmakedefine _LARGEFILE_SOURCE
425 #cmakedefine _LARGEFILE64_SOURCE
426 #cmakedefine _LARGE_FILES
427 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
429 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
431 /* Note: not use in the code */
432 #cmakedefine YYTEXT_POINTER
434 /* _U_ isn't needed for C++, simply don't name the variable.
435 However, we do need it for some headers that are shared between C and C++. */
436 #define _U_ ${C_UNUSED}
438 /* Hint to the compiler that a function never returns */
439 #define WS_NORETURN @WS_NORETURN@
443 /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
448 # if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
452 /* FIXME: Detection doesn't work */
453 # define HAVE_NTDDNDIS_H 1
454 /* Visual C 9 (2008), Visual C 10 (2010), Visual C 11 (2012) and Visual C 12 (2013)
455 * need these prototypes
456 * XXX: Can we use MSC_VER >= 1500 ?? */
457 # if _MSC_VER == 1500 || _MSC_VER == 1600 || _MSC_VER == 1700 || _MSC_VER == 1800
458 # define NTDDI_VERSION NTDDI_WINXPSP3
459 # define _WIN32_WINNT _WIN32_WINNT_WINXP
463 * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
465 # define YY_NO_UNISTD_H
468 # define strncasecmp strnicmp
469 # define popen _popen
470 # define pclose _pclose
475 /* Use Unicode in Windows runtime functions. */
479 # define NEED_STRPTIME_H 1
482 #include <ws_diag_control.h>