cmakeconfig.h.in 11.8 KB
Newer Older
Jörg Mayer's avatar
Jörg Mayer committed
1 2
/* cmakeconfig.h.in */

3 4 5
#ifndef __CONFIG_H__
#define __CONFIG_H__

Jörg Mayer's avatar
Jörg Mayer committed
6 7
/* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */

8 9 10
/* Name of package */
#define PACKAGE "wireshark"

11 12
#define VERSION_EXTRA "$ENV{WIRESHARK_VERSION_EXTRA}"

13
/* Version number of package */
14
#define VERSION "${CPACK_PACKAGE_VERSION}${VERSION_EXTRA}"
15 16 17
#define VERSION_MAJOR ${PROJECT_MAJOR_VERSION}
#define VERSION_MINOR ${PROJECT_MINOR_VERSION}
#define VERSION_MICRO ${PROJECT_PATCH_VERSION}
18

19
#define VERSION_RELEASE "${PROJECT_RELEASE_VERSION}"
20 21
#define VERSION_FLAVOR "${VERSION_FLAVOR}"

Jörg Mayer's avatar
Jörg Mayer committed
22
/* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */
Jörg Mayer's avatar
Jörg Mayer committed
23
/* Directory for data */
Jörg Mayer's avatar
Jörg Mayer committed
24
#define DATAFILE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}"
Jörg Mayer's avatar
Jörg Mayer committed
25

26 27 28
/* Build wsutil with SIMD optimization */
#cmakedefine HAVE_SSE4_2 1

Roland Knall's avatar
Roland Knall committed
29
/* Directory where extcap hooks reside */
30
#define EXTCAP_DIR "${EXTCAP_DIR}"
Roland Knall's avatar
Roland Knall committed
31

Jörg Mayer's avatar
Jörg Mayer committed
32 33
/* Define to 1 if we want to enable plugins */
#cmakedefine HAVE_PLUGINS 1
34

35 36 37
/*  Define to 1 if we check hf conflict */
#cmakedefine ENABLE_CHECK_FILTER 1

38
/* Link Wireshark libraries statically */
39
#cmakedefine ENABLE_STATIC 1
Jörg Mayer's avatar
Jörg Mayer committed
40

41 42 43
/* Enable AirPcap */
#cmakedefine HAVE_AIRPCAP 1

44 45 46
/* Define to 1 if you have the <alloca.h> header file. */
#cmakedefine HAVE_ALLOCA_H 1

Jörg Mayer's avatar
Jörg Mayer committed
47
/* Define to 1 if you have the <arpa/inet.h> header file. */
48
#cmakedefine HAVE_ARPA_INET_H 1
Jörg Mayer's avatar
Jörg Mayer committed
49

50 51 52
/* Define to 1 if you have the `bpf_image' function. */
#cmakedefine HAVE_BPF_IMAGE 1

53 54 55 56 57 58
/* Define to use c-ares library */
#cmakedefine HAVE_C_ARES 1

/* Define to 1 if you have the `dladdr' function. */
#cmakedefine HAVE_DLADDR 1

Jörg Mayer's avatar
Jörg Mayer committed
59
/* Define to 1 if you have the <fcntl.h> header file. */
60
#cmakedefine HAVE_FCNTL_H 1
Jörg Mayer's avatar
Jörg Mayer committed
61

62 63
/* Define to use the MaxMind DB library */
#cmakedefine HAVE_MAXMINDDB 1
64

65 66 67
/* Define to 1 if you have the <ifaddrs.h> header file. */
#cmakedefine HAVE_IFADDRS_H 1

68 69 70
/* Define to 1 if you have the `getexecname' function. */
#cmakedefine HAVE_GETEXECNAME 1

71 72 73
/* Define to 1 if you have the `getifaddrs' function. */
#cmakedefine HAVE_GETIFADDRS 1

Dario Lombardo's avatar
Dario Lombardo committed
74 75 76 77 78 79
/* Define if LIBSSH support is enabled */
#cmakedefine HAVE_LIBSSH 1

/* Define if LIBSSH has ssh_userauth_agent() function */
#cmakedefine HAVE_SSH_USERAUTH_AGENT 1

Guy Harris's avatar
Guy Harris committed
80 81 82
/* Define if you have the 'floorl' function. */
#cmakedefine HAVE_FLOORL 1

83 84 85
/* Define if you have the 'lrint' function. */
#cmakedefine HAVE_LRINT 1

86 87
/* Define to 1 if you have the getopt_long function. */
#cmakedefine HAVE_GETOPT_LONG 1
88

89 90
/* Define to 1 if you have the <getopt.h> header file. */
#cmakedefine HAVE_GETOPT_H 1
91

92 93 94
/* Define to 1 if you have the <grp.h> header file. */
#cmakedefine HAVE_GRP_H 1

Jörg Mayer's avatar
Jörg Mayer committed
95
/* Define to use heimdal kerberos */
96
#cmakedefine HAVE_HEIMDAL_KERBEROS 1
Jörg Mayer's avatar
Jörg Mayer committed
97

98 99 100
/* Define to 1 if you have the `inflatePrime' function. */
#cmakedefine HAVE_INFLATEPRIME 1

Jörg Mayer's avatar
Jörg Mayer committed
101
/* Define to 1 if you have the `issetugid' function. */
102
#cmakedefine HAVE_ISSETUGID 1
Jörg Mayer's avatar
Jörg Mayer committed
103 104

/* Define to use kerberos */
105
#cmakedefine HAVE_KERBEROS 1
Jörg Mayer's avatar
Jörg Mayer committed
106

107 108 109
/* Define to use nghttp2 */
#cmakedefine HAVE_NGHTTP2 1

110 111 112 113
/* Define to use the libcap library */
#cmakedefine HAVE_LIBCAP 1

/* Define to use GnuTLS library */
114
#cmakedefine HAVE_LIBGNUTLS 1
Jörg Mayer's avatar
Jörg Mayer committed
115

116 117 118 119 120 121 122 123 124 125 126 127
/* Enable libnl support */
#cmakedefine HAVE_LIBNL 1

/* libnl version 1 */
#cmakedefine HAVE_LIBNL1 1

/* libnl version 2 */
#cmakedefine HAVE_LIBNL2 1

/* libnl version 3 */
#cmakedefine HAVE_LIBNL3 1

Jörg Mayer's avatar
Jörg Mayer committed
128
/* Define to use libpcap library */
129
#cmakedefine HAVE_LIBPCAP 1
Jörg Mayer's avatar
Jörg Mayer committed
130

131 132 133
/* Define to 1 if you have the `smi' library (-lsmi). */
#cmakedefine HAVE_LIBSMI 1

João Valverde's avatar
João Valverde committed
134 135
/* Define to use zlib library */
#cmakedefine HAVE_ZLIB 1
Jörg Mayer's avatar
Jörg Mayer committed
136

137 138 139 140 141 142
/* Define to use lz4 library */
#cmakedefine HAVE_LZ4 1

/* Define to use snappy library */
#cmakedefine HAVE_SNAPPY 1

143 144 145 146 147 148
/* Define to 1 if you have the <linux/sockios.h> header file. */
#cmakedefine HAVE_LINUX_SOCKIOS_H 1

/* Define to 1 if you have the <linux/if_bonding.h> header file. */
#cmakedefine HAVE_LINUX_IF_BONDING_H 1

149 150 151
/* Define to use Lua */
#cmakedefine HAVE_LUA 1

Jörg Mayer's avatar
Jörg Mayer committed
152
/* Define to 1 if you have the <lua.h> header file. */
153
#cmakedefine HAVE_LUA_H 1
Jörg Mayer's avatar
Jörg Mayer committed
154 155

/* Define to 1 if you have the <memory.h> header file. */
156
#cmakedefine HAVE_MEMORY_H 1
Jörg Mayer's avatar
Jörg Mayer committed
157 158

/* Define to use MIT kerberos */
159
#cmakedefine HAVE_MIT_KERBEROS 1
Jörg Mayer's avatar
Jörg Mayer committed
160

161 162
/* Define to 1 if you have the `mkstemps' function. */
#cmakedefine HAVE_MKSTEMPS 1
163

Jörg Mayer's avatar
Jörg Mayer committed
164
/* Define to 1 if you have the `mmap' function. */
165
#cmakedefine HAVE_MMAP 1
Jörg Mayer's avatar
Jörg Mayer committed
166 167

/* Define to 1 if you have the `mprotect' function. */
168
#cmakedefine HAVE_MPROTECT 1
Jörg Mayer's avatar
Jörg Mayer committed
169 170

/* Define to 1 if you have the <netdb.h> header file. */
171
#cmakedefine HAVE_NETDB_H 1
Jörg Mayer's avatar
Jörg Mayer committed
172 173

/* Define to 1 if you have the <netinet/in.h> header file. */
174
#cmakedefine HAVE_NETINET_IN_H 1
Jörg Mayer's avatar
Jörg Mayer committed
175

176 177
/* nl80211.h is new enough */
#cmakedefine HAVE_NL80211 1
Jörg Mayer's avatar
Jörg Mayer committed
178

179 180
/* SET_CHANNEL is supported */
#cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
Jörg Mayer's avatar
Jörg Mayer committed
181

182 183 184
/* SPLIT_WIPHY_DUMP is supported */
#cmakedefine HAVE_NL80211_SPLIT_WIPHY_DUMP 1

185 186 187
/* VHT_CAPABILITY is supported */
#cmakedefine HAVE_NL80211_VHT_CAPABILITY 1

188
/* Define to 1 if you have macOS frameworks */
189
#cmakedefine HAVE_MACOS_FRAMEWORKS 1
Jörg Mayer's avatar
Jörg Mayer committed
190

191
/* Define to 1 if you have the macOS CFPropertyListCreateWithStream function */
192 193
#cmakedefine HAVE_CFPROPERTYLISTCREATEWITHSTREAM 1

194
/* Define if pcap_breakloop is known */
195
#cmakedefine HAVE_PCAP_BREAKLOOP 1
Jörg Mayer's avatar
Jörg Mayer committed
196

197 198 199
/* Define to 1 if you have the `pcap_create' function. */
#cmakedefine HAVE_PCAP_CREATE 1

200 201 202
/* Define to 1 if the capture buffer size can be set. */
#cmakedefine CAN_SET_CAPTURE_BUFFER_SIZE 1

Jörg Mayer's avatar
Jörg Mayer committed
203
/* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
204
#cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
Jörg Mayer's avatar
Jörg Mayer committed
205

206 207 208
/* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
#cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1

Jörg Mayer's avatar
Jörg Mayer committed
209
/* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
210
#cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
Jörg Mayer's avatar
Jörg Mayer committed
211 212 213

/* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
   declares pcap_if_t. */
214
#cmakedefine HAVE_PCAP_FINDALLDEVS 1
Jörg Mayer's avatar
Jörg Mayer committed
215 216

/* Define to 1 if you have the `pcap_freecode' function. */
217
#cmakedefine HAVE_PCAP_FREECODE 1
Jörg Mayer's avatar
Jörg Mayer committed
218

219 220 221
/* Define to 1 if you have the `pcap_free_datalinks' function. */
#cmakedefine HAVE_PCAP_FREE_DATALINKS 1

Jörg Mayer's avatar
Jörg Mayer committed
222
/* Define to 1 if you have the `pcap_get_selectable_fd' function. */
223
#cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
Jörg Mayer's avatar
Jörg Mayer committed
224 225

/* Define to 1 if you have the `pcap_lib_version' function. */
226
#cmakedefine HAVE_PCAP_LIB_VERSION 1
Jörg Mayer's avatar
Jörg Mayer committed
227 228

/* Define to 1 if you have the `pcap_list_datalinks' function. */
229
#cmakedefine HAVE_PCAP_LIST_DATALINKS 1
Jörg Mayer's avatar
Jörg Mayer committed
230

231 232 233
/* Define to 1 if you have the `pcap_open' function. */
#cmakedefine HAVE_PCAP_OPEN 1

Jörg Mayer's avatar
Jörg Mayer committed
234
/* Define to 1 if you have the `pcap_open_dead' function. */
235
#cmakedefine HAVE_PCAP_OPEN_DEAD 1
Jörg Mayer's avatar
Jörg Mayer committed
236

237
/* Define to 1 if you have libpcap/WinPcap remote capturing support. */
238 239
#cmakedefine HAVE_PCAP_REMOTE 1

Jörg Mayer's avatar
Jörg Mayer committed
240
/* Define to 1 if you have the `pcap_set_datalink' function. */
241
#cmakedefine HAVE_PCAP_SET_DATALINK 1
Jörg Mayer's avatar
Jörg Mayer committed
242

243
/* Define to 1 if you have the `pcap_setsampling' function. */
244 245
#cmakedefine HAVE_PCAP_SETSAMPLING 1

246 247 248
/* Define to 1 if you have the `pcap_set_tstamp_precision' function. */
#cmakedefine HAVE_PCAP_SET_TSTAMP_PRECISION 1

249 250 251
/* Define to 1 if you have the `pcap_set_tstamp_type' function. */
#cmakedefine HAVE_PCAP_SET_TSTAMP_TYPE 1

252 253 254
/* Define to 1 if you have the <pwd.h> header file. */
#cmakedefine HAVE_PWD_H 1

255 256 257
/* Define to 1 if you have the optreset variable */
#cmakedefine HAVE_OPTRESET 1

Jörg Mayer's avatar
Jörg Mayer committed
258
/* Define if sa_len field exists in struct sockaddr */
259
#cmakedefine HAVE_STRUCT_SOCKADDR_SA_LEN 1
Jörg Mayer's avatar
Jörg Mayer committed
260

261 262 263
/* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
#cmakedefine HAVE_SBC 1

264
/* Define to 1 if you have the SpanDSP library. */
265 266
#cmakedefine HAVE_SPANDSP 1

267 268 269
/* Define to 1 if you have the bcg729 library. */
#cmakedefine HAVE_BCG729 1

270 271 272
/* Define to 1 if you have the lixbml2 library. */
#cmakedefine HAVE_LIBXML2 1

273 274 275 276 277 278
/* Define to 1 if you have the `setresgid' function. */
#cmakedefine HAVE_SETRESGID 1

/* Define to 1 if you have the `setresuid' function. */
#cmakedefine HAVE_SETRESUID 1

279 280 281
/* Define to 1 if you have the WinSparkle library */
#cmakedefine HAVE_SOFTWARE_UPDATE 1

Guy Harris's avatar
Guy Harris committed
282 283 284
/* Define if you have the 'strptime' function. */
#cmakedefine HAVE_STRPTIME 1

285 286 287
/* Define to 1 if `st_birthtime' is a member of `struct stat'. */
#cmakedefine HAVE_STRUCT_STAT_ST_BIRTHTIME 1

288
/* Define if st_flags field exists in struct stat */
289
#cmakedefine HAVE_STRUCT_STAT_ST_FLAGS 1
290

291 292 293
/* Define to 1 if `__st_birthtime' is a member of `struct stat'. */
#cmakedefine HAVE_STRUCT_STAT___ST_BIRTHTIME 1

Jörg Mayer's avatar
Jörg Mayer committed
294
/* Define to 1 if you have the <sys/ioctl.h> header file. */
295
#cmakedefine HAVE_SYS_IOCTL_H 1
Jörg Mayer's avatar
Jörg Mayer committed
296 297

/* Define to 1 if you have the <sys/socket.h> header file. */
298
#cmakedefine HAVE_SYS_SOCKET_H 1
Jörg Mayer's avatar
Jörg Mayer committed
299 300

/* Define to 1 if you have the <sys/sockio.h> header file. */
301
#cmakedefine HAVE_SYS_SOCKIO_H 1
Jörg Mayer's avatar
Jörg Mayer committed
302 303

/* Define to 1 if you have the <sys/stat.h> header file. */
304
#cmakedefine HAVE_SYS_STAT_H 1
Jörg Mayer's avatar
Jörg Mayer committed
305 306

/* Define to 1 if you have the <sys/time.h> header file. */
307
#cmakedefine HAVE_SYS_TIME_H 1
Jörg Mayer's avatar
Jörg Mayer committed
308 309

/* Define to 1 if you have the <sys/types.h> header file. */
310
#cmakedefine HAVE_SYS_TYPES_H 1
Jörg Mayer's avatar
Jörg Mayer committed
311 312

/* Define to 1 if you have the <sys/utsname.h> header file. */
313
#cmakedefine HAVE_SYS_UTSNAME_H 1
Jörg Mayer's avatar
Jörg Mayer committed
314 315

/* Define to 1 if you have the <sys/wait.h> header file. */
316
#cmakedefine HAVE_SYS_WAIT_H 1
Jörg Mayer's avatar
Jörg Mayer committed
317

318
/* Define if tm_zone field exists in struct tm */
João Valverde's avatar
João Valverde committed
319
#cmakedefine HAVE_STRUCT_TM_TM_ZONE 1
320 321 322 323

/* Define if tzname array exists */
#cmakedefine HAVE_TZNAME 1

Jörg Mayer's avatar
Jörg Mayer committed
324
/* Define to 1 if you have the <unistd.h> header file. */
325
#cmakedefine HAVE_UNISTD_H 1
Jörg Mayer's avatar
Jörg Mayer committed
326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344

/* Name of package */
#cmakedefine PACKAGE

/* Define to the address where bug reports for this package should be sent. */
#cmakedefine PACKAGE_BUGREPORT

/* Define to the full name of this package. */
#cmakedefine PACKAGE_NAME

/* Define to the full name and version of this package. */
#cmakedefine PACKAGE_STRING

/* Define to the one symbol short name of this package. */
#cmakedefine PACKAGE_TARNAME

/* Define to the version of this package. */
#cmakedefine PACKAGE_VERSION

345
/* Support for pcapng */
346 347
#cmakedefine PCAP_NG_DEFAULT 1

Jörg Mayer's avatar
Jörg Mayer committed
348
/* Define if we are using version of of the Portaudio library API */
349
#cmakedefine PORTAUDIO_API_1 1
Jörg Mayer's avatar
Jörg Mayer committed
350

Gerald Combs's avatar
Gerald Combs committed
351 352
/* Define if we have QtMultimedia */
#cmakedefine QT_MULTIMEDIA_LIB 1
353

354 355
/* Define if we have QtMacExtras */
#cmakedefine QT_MACEXTRAS_LIB 1
Jörg Mayer's avatar
Jörg Mayer committed
356

357 358 359
/* Define if we have QtWinExtras */
/* #cmakedefine QT_WINEXTRAS_LIB 1 */

360 361 362
/* Build androiddump with libpcap instead of wireshark stuff */
#cmakedefine ANDROIDDUMP_USE_LIBPCAP 1

363 364 365 366 367 368
/* Large file support */
#cmakedefine _LARGEFILE_SOURCE
#cmakedefine _LARGEFILE64_SOURCE
#cmakedefine _LARGE_FILES
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@

Jörg Mayer's avatar
Jörg Mayer committed
369 370
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
   `char[]'. */
371
/* Note: not use in the code */
Jörg Mayer's avatar
Jörg Mayer committed
372
#cmakedefine YYTEXT_POINTER
373

374
#if defined(_WIN32)
375 376 377 378 379 380 381 382
   /*
    * Make sure everyone is using the same API and that it's sufficient
    * for our needs.
    * This should match the following:
    * - The <compatibility><application> section in image\wireshark.exe.manifest.in
    * - The GetWindowsVersion parts of packaging\nsis\wireshark.nsi
    * - The VersionNT parts of packaging\wix\Prerequisites.wxi
    */
383 384 385
#  if defined(NTDDI_VERSION)
#    error NTDDI_VERSION already defined.
#  endif
386
#  define NTDDI_VERSION NTDDI_WIN7
387 388 389
#  if defined(_WIN32_WINNT)
#    error _WIN32_WINNT already defined.
#  endif
390
#  define _WIN32_WINNT _WIN32_WINNT_WIN7
391 392 393 394 395 396

   /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
#  ifndef WIN32
#    define WIN32	1
#  endif

397 398 399
#  if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
   typedef int ssize_t;
#  endif
400 401 402 403 404 405

   /*
    * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
    */
#  define YY_NO_UNISTD_H

406
#  define strncasecmp strnicmp
407 408 409
#  define popen       _popen
#  define pclose      _pclose

410 411 412 413 414 415
#  ifndef __STDC__
#    define __STDC__ 0
#  endif
   /* Use Unicode in Windows runtime functions. */
#  define UNICODE 1
#  define _UNICODE 1
416

417
#  define NEED_STRPTIME_H 1
418
#endif
419

420 421 422 423 424 425 426 427
#if defined(__APPLE__)
   /* This is to trigger the integration of objective-c
    * code builds for removing unnecessary menu entries
    * in 10.12 > and Qt 5.3 >
    */
#  define CMAKE_BUILD 1
#endif

428
#include <ws_diag_control.h>
429 430

#endif /* __CONFIG_H__ */