epan/dissectors/pidl/drsuapi/drsuapi.cnf disable debugging
[wireshark-sm.git] / cmakeconfig.h.in
blob3c042ad2a78af787e9d5be1d4ae2f672480f4b98
1 /* cmakeconfig.h.in */
3 #ifndef __CONFIG_H__
4 #define __CONFIG_H__
6 /* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
8 /* Name of package */
9 #define PACKAGE "wireshark"
11 #define VERSION_EXTRA "$ENV{WIRESHARK_VERSION_EXTRA}"
13 /* Version number of Wireshark and associated utilities */
14 #define VERSION "${PROJECT_VERSION}${VERSION_EXTRA}"
15 #define VERSION_MAJOR ${PROJECT_MAJOR_VERSION}
16 #define VERSION_MINOR ${PROJECT_MINOR_VERSION}
17 #define VERSION_MICRO ${PROJECT_PATCH_VERSION}
19 /* Version number of Stratoshark and associated utilities */
20 #define LOG_VERSION "${LOG_PROJECT_VERSION}${VERSION_EXTRA}"
22 #define PLUGIN_PATH_ID "${PLUGIN_PATH_ID}"
23 #define VERSION_FLAVOR "${VERSION_FLAVOR}"
25 /* Build wsutil with SIMD optimization */
26 #cmakedefine HAVE_SSE4_2 1
28 /* Define to 1 if we want to enable plugins */
29 #cmakedefine HAVE_PLUGINS 1
31 /* Define to 1 if we check hf conflict */
32 #cmakedefine ENABLE_CHECK_FILTER 1
34 /* Link Wireshark libraries statically */
35 #cmakedefine ENABLE_STATIC 1
37 /* Enable AddressSanitizer (and LeakSanitizer on clang/gcc) */
38 #cmakedefine ENABLE_ASAN 1
40 /* Enable LeakSanitizer standalone */
41 #cmakedefine ENABLE_LSAN 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 `clock_gettime` function. */
47 #cmakedefine HAVE_CLOCK_GETTIME 1
49 /* Define to 1 if you have the `timespec_get` function. */
50 #cmakedefine HAVE_TIMESPEC_GET 1
52 /* Define to 1 if you have the `localtime_r` function. */
53 #cmakedefine HAVE_LOCALTIME_R 1
55 /* Define to 1 if you have the `gmtime_r` function. */
56 #cmakedefine HAVE_GMTIME_R 1
58 /* Define to 1 if you have the `timegm` function. */
59 #cmakedefine HAVE_TIMEGM 1
61 /* Define to 1 if you have the `tzset` function. */
62 #cmakedefine HAVE_TZSET 1
64 /* Define to use the MaxMind DB library */
65 #cmakedefine HAVE_MAXMINDDB 1
67 /* Define to 1 if you have the <ifaddrs.h> header file. */
68 #cmakedefine HAVE_IFADDRS_H 1
70 /* Define to 1 if yu have the `fseeko` function. */
71 #cmakedefine HAVE_FSEEKO 1
73 /* Define to 1 if you have the `getexecname' function. */
74 #cmakedefine HAVE_GETEXECNAME 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 you have the 'dlget' function. */
83 #cmakedefine HAVE_DLGET 1
85 /* Define to 1 if you have the <grp.h> header file. */
86 #cmakedefine HAVE_GRP_H 1
88 /* Define to use heimdal kerberos */
89 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
91 /* Define to 1 if you have the `krb5_pac_verify' function. */
92 #cmakedefine HAVE_KRB5_PAC_VERIFY 1
94 /* Define to 1 if you have the `krb5_c_fx_cf2_simple' function. */
95 #cmakedefine HAVE_KRB5_C_FX_CF2_SIMPLE 1
97 /* Define to 1 if you have the `decode_krb5_enc_tkt_part' function. */
98 #cmakedefine HAVE_DECODE_KRB5_ENC_TKT_PART 1
100 /* Define to 1 if you have the `encode_krb5_enc_tkt_part' function. */
101 #cmakedefine HAVE_ENCODE_KRB5_ENC_TKT_PART 1
103 /* Define to 1 if you have the `inflatePrime' function. */
104 #cmakedefine HAVE_INFLATEPRIME 1
106 /* Define to 1 if you have the `zng_gzopen' function. */
107 #cmakedefine WITH_GZFILEOP 1
109 /* Define to 1 if you have the `issetugid' function. */
110 #cmakedefine HAVE_ISSETUGID 1
112 /* Define to use kerberos */
113 #cmakedefine HAVE_KERBEROS 1
115 /* Define to use nghttp2 */
116 #cmakedefine HAVE_NGHTTP2 1
118 /* Define to use nghttp3 */
119 #cmakedefine HAVE_NGHTTP3 1
121 /* Define to use the libcap library */
122 #cmakedefine HAVE_LIBCAP 1
124 /* Define to use GnuTLS library */
125 #cmakedefine HAVE_LIBGNUTLS 1
127 /* Define to 1 if GnuTLS was built with pkcs11 support. */
128 #cmakedefine HAVE_GNUTLS_PKCS11 1
130 /* Enable libnl support */
131 #cmakedefine HAVE_LIBNL 1
133 /* libnl version 1 */
134 #cmakedefine HAVE_LIBNL1 1
136 /* libnl version 2 */
137 #cmakedefine HAVE_LIBNL2 1
139 /* libnl version 3 */
140 #cmakedefine HAVE_LIBNL3 1
142 /* Define to use libpcap library */
143 #cmakedefine HAVE_LIBPCAP 1
145 /* Define to 1 if you have the `smi' library (-lsmi). */
146 #cmakedefine HAVE_LIBSMI 1
148 /* Define to 1 if libsmi exports a version string (and that symbol is visible). */
149 #cmakedefine HAVE_SMI_VERSION_STRING 1
151 /* Define to use zlib library */
152 #cmakedefine HAVE_ZLIB 1
154 /* Define to use zlib-ng library */
155 #cmakedefine HAVE_ZLIBNG 1
156 #define ZLIBNG_VERSION_STRING "${ZLIBNG_VERSION_STRING}"
158 /* Define to use the minizip library */
159 #cmakedefine HAVE_MINIZIP 1
160 #define MINIZIP_VERSION "${MINIZIP_VERSION}"
162 /* Define to use the minizip-ng library */
163 #cmakedefine HAVE_MINIZIPNG 1
164 #define MINIZIPNG_VERSION "${MINIZIPNG_VERSION}"
166 /* Define if `dos_date' (with underscore) field exists in `zip_fileinfo' */
167 #cmakedefine HAVE_MZCOMPAT_DOS_DATE 1
169 /* Define to use brotli library */
170 #cmakedefine HAVE_BROTLI 1
172 /* Define to use lz4 library */
173 #cmakedefine HAVE_LZ4 1
175 /* Check for lz4frame */
176 #cmakedefine HAVE_LZ4FRAME_H 1
178 /* Define to use snappy library */
179 #cmakedefine HAVE_SNAPPY 1
181 /* Define to use zstd library */
182 #cmakedefine HAVE_ZSTD 1
184 /* Define to 1 if you have the <linux/sockios.h> header file. */
185 #cmakedefine HAVE_LINUX_SOCKIOS_H 1
187 /* Define to 1 if you have the <linux/if_bonding.h> header file. */
188 #cmakedefine HAVE_LINUX_IF_BONDING_H 1
190 /* Define to use Lua */
191 #cmakedefine HAVE_LUA 1
193 /* Define to 1 if we have Lua with Unicode for Windows patches. */
194 #cmakedefine HAVE_LUA_UNICODE 1
196 /* The size of the lua_Integer type, if we have Lua. */
197 #cmakedefine LUA_INTEGER_SIZE ${LUA_INTEGER_SIZE}
199 /* Define to use MIT kerberos */
200 #cmakedefine HAVE_MIT_KERBEROS 1
202 /* Define to 1 if you have the <netdb.h> header file. */
203 #cmakedefine HAVE_NETDB_H 1
205 /* Define to 1 if you have the <netinet/in.h> header file. */
206 #cmakedefine HAVE_NETINET_IN_H 1
208 /* nl80211.h is new enough */
209 #cmakedefine HAVE_NL80211 1
211 /* SET_CHANNEL is supported */
212 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
214 /* SPLIT_WIPHY_DUMP is supported */
215 #cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1
217 /* VHT_CAPABILITY is supported */
218 #cmakedefine HAVE_NL80211_VHT_CAPABILITY 1
220 /* Define to 1 if you have macOS frameworks */
221 #cmakedefine HAVE_MACOS_FRAMEWORKS 1
223 /* Define to 1 if you have the macOS CFPropertyListCreateWithStream function */
224 #cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1
226 /* Define to 1 if you have the `pcap_create' function. */
227 #cmakedefine HAVE_PCAP_CREATE 1
229 /* Define to 1 if the capture buffer size can be set. */
230 #cmakedefine CAN_SET_CAPTURE_BUFFER_SIZE 1
232 /* Define to 1 if you have the `pcap_freecode' function. */
233 #cmakedefine HAVE_PCAP_FREECODE 1
235 /* Define to 1 if you have the `pcap_free_datalinks' function. */
236 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
238 /* Define to 1 if you have the `pcap_open' function. */
239 #cmakedefine HAVE_PCAP_OPEN 1
241 /* Define to 1 if you have libpcap/WinPcap/Npcap remote capturing support. */
242 #cmakedefine HAVE_PCAP_REMOTE 1
244 /* Define to 1 if you have the `pcap_setsampling' function. */
245 #cmakedefine HAVE_PCAP_SETSAMPLING 1
247 /* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
248 #cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1
250 /* Define to 1 if you have the `pcap_set_tstamp_type' function. */
251 #cmakedefine HAVE_PCAP_SET_TSTAMP_TYPE 1
253 /* Define to 1 if you have the `PCAP_ERROR_PROMISC_PERM_DENIED' symbol. */
254 #cmakedefine HAVE_PCAP_ERROR_PROMISC_PERM_DENIED 1
256 /* Define to 1 if you have the `PCAP_WARNING_TSTAMP_TYPE_NOTSUP' symbol. */
257 #cmakedefine HAVE_PCAP_WARNING_TSTAMP_TYPE_NOTSUP 1
259 /* Define to 1 if you have the <pwd.h> header file. */
260 #cmakedefine HAVE_PWD_H 1
262 /* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
263 #cmakedefine HAVE_SBC 1
265 /* Define to 1 if you have the SpanDSP library. */
266 #cmakedefine HAVE_SPANDSP 1
268 /* Define to 1 if you have the bcg729 library. */
269 #cmakedefine HAVE_BCG729 1
271 /* Define to 1 if you have the opencore-amrnb library. */
272 #cmakedefine HAVE_AMRNB 1
274 /* Define to 1 if you have the ilbc library. */
275 #cmakedefine HAVE_ILBC 1
277 /* Define to 1 if you have the opus library. */
278 #cmakedefine HAVE_OPUS 1
280 /* Define to 1 if you have the lixbml2 library. */
281 #cmakedefine HAVE_LIBXML2 1
283 /* Define to 1 if you have the `setresgid' function. */
284 #cmakedefine HAVE_SETRESGID 1
286 /* Define to 1 if you have the `setresuid' function. */
287 #cmakedefine HAVE_SETRESUID 1
289 /* Define to 1 if you have the Sparkle or WinSparkle library */
290 #cmakedefine HAVE_SOFTWARE_UPDATE 1
292 /* Define if you have the 'strptime' function. */
293 #cmakedefine HAVE_STRPTIME 1
295 /* Define if you have the 'memmem' function. */
296 #cmakedefine HAVE_MEMMEM 1
298 /* Define if you have the 'memrchr' function. */
299 #cmakedefine HAVE_MEMRCHR 1
301 /* Define if you have the 'strerrorname_np' function. */
302 #cmakedefine HAVE_STRERRORNAME_NP 1
304 /* Define if you have the 'vasprintf' function. */
305 #cmakedefine HAVE_VASPRINTF 1
307 /* Define to 1 if `st_birthtime' is a member of `struct stat'. */
308 #cmakedefine HAVE_STRUCT_STAT_ST_BIRTHTIME 1
310 /* Define if st_blksize field exists in struct stat */
311 #cmakedefine HAVE_STRUCT_STAT_ST_BLKSIZE 1
313 /* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
314 #cmakedefine HAVE_STRUCT_STAT___ST_BIRTHTIME 1
316 /* Define to 1 if you have the <sys/socket.h> header file. */
317 #cmakedefine HAVE_SYS_SOCKET_H 1
319 /* Define to 1 if you have the <sys/time.h> header file. */
320 #cmakedefine HAVE_SYS_TIME_H 1
322 /* Define to 1 if you have the <sys/utsname.h> header file. */
323 #cmakedefine HAVE_SYS_UTSNAME_H 1
325 /* Define to 1 if you have the <sys/wait.h> header file. */
326 #cmakedefine HAVE_SYS_WAIT_H 1
328 /* Define if tm_gmtoff field exists in struct tm */
329 #cmakedefine HAVE_STRUCT_TM_TM_GMTOFF 1
331 /* Define if tm_zone field exists in struct tm */
332 #cmakedefine HAVE_STRUCT_TM_TM_ZONE 1
334 /* Define if tzname array exists */
335 #cmakedefine HAVE_TZNAME 1
337 /* Define to 1 if you have the <unistd.h> header file. */
338 #cmakedefine HAVE_UNISTD_H 1
340 /* Define if we have QtMultimedia */
341 #cmakedefine QT_MULTIMEDIA_LIB 1
343 /* Define if we have QtDBus */
344 #cmakedefine QT_DBUS_LIB 1
346 /* Build androiddump with libpcap instead of wireshark stuff */
347 #cmakedefine ANDROIDDUMP_USE_LIBPCAP 1
349 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
350 `char[]'. */
351 /* Note: not use in the code */
352 #cmakedefine YYTEXT_POINTER
354 /* Define to 1 if the 'ssize_t' type exists. */
355 #cmakedefine HAVE_SSIZE_T 1
357 /* Define to 1 if we are using the msys2 environment to build. */
358 #cmakedefine HAVE_MSYSTEM 1
360 /* Define if we have sinsp and scap */
361 #cmakedefine HAVE_SINSP 1
363 #ifdef HAVE_SINSP
364 #define SINSP_VERSION_MAJOR ${SINSP_VERSION_MAJOR}
365 #define SINSP_VERSION_MINOR ${SINSP_VERSION_MINOR}
366 #define SINSP_VERSION_MICRO ${SINSP_VERSION_MICRO}
367 #endif
369 #if defined(_MSC_VER)
370 # define strncasecmp strnicmp
371 # define popen _popen
372 # define pclose _pclose
373 #endif
375 #if defined(_WIN32)
377 * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
379 # define YY_NO_UNISTD_H
381 # ifndef __STDC__
382 # define __STDC__ 0
383 # endif
386 * Make sure everyone is using the same API and that it's sufficient
387 * for our needs.
388 * This should match the following:
389 * - The <compatibility><application> section in resources\wireshark.exe.manifest.in
390 * - The WinVer parts of packaging\nsis\wireshark.nsi
391 * - The VersionNT parts of packaging\wix\Prerequisites.wxi
393 # ifndef NTDDI_VERSION
394 # define NTDDI_VERSION NTDDI_WIN10
395 # endif
397 # ifndef _WIN32_WINNT
398 # define _WIN32_WINNT _WIN32_WINNT_WIN10
399 # endif
400 #endif
402 #define PCRE2_CODE_UNIT_WIDTH 8
405 * If HAVE_PCAP_REMOTE is defined, it forces the WinPcap header files to
406 * define things required for remote capture, by defining HAVE_REMOTE.
408 * With all versions of the WinPcap SDK, if:
410 * 1) you are building with any current WinPcap SDK;
411 * 2) you do not define HAVE_REMOTE before including pcap.h (or
412 * pcap/pcap.h);
413 * 3) you define a struct pcap_stat and pass it to a call to
414 * pcap_stats();
415 * 4) the system you're running on has WinPcap, rather than Npcap,
416 * installed;
418 * whatever is in memory after the struct pcap_stat may get overwritten,
419 * with unpredictable results, because the pcap_stats() implementation for
420 * WinPcap will assume that the structure has the additional members that
421 * are added if and only if HAVE_REMOTE is defined, and will fill them in,
422 * even if they're not there.
424 * Yes, this is q WinPcap bug; if your project has a public header file
425 * that checks or otherwise uses a #define that's defined by your project's
426 * configuration process, and don't ensure that it's always defined
427 * appropriately when that header file is included, before its first use,
428 * you have made a mistake.
430 * In libpcap 1.7.0 and later, the pcap_stats() implementation for WinPcap
431 * will not fill those fields in; however, no WinPcap implementation was
432 * based on that recent a libpcap release, so they all have the bug.
434 * Npcap was originally based on libpcap 1.8.0, and later releases are
435 * based on later releases of libpcap, so they will not overwrite memory
436 * past the end of the structure.
438 * The header file bug is fixed in libpcap 1.9.0 or later - the fields
439 * are present on Windows, regardless of whether HAVE_REMOTE is defined
440 * or not when the header is included (and are not present on UN*X), so
441 * if you build with an SDK with libpcap 1.9.0 or later headers, you
442 * do not need to define HAVE_REMOTE before including pcap.h (including it
443 * will make no difference).
445 * No version of the WinPcap SDK provided libpcap 1.9.0-or-later headers.
446 * The Npcap SDK, as of SDK version 1.04, provides them, so this is
447 * only necessary for building with the WinPcap SDK.
449 #ifdef HAVE_PCAP_REMOTE
450 #define HAVE_REMOTE
451 #endif
453 #include <ws_log_defs.h>
455 #endif /* __CONFIG_H__ */