3 /* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
6 #define PACKAGE "wireshark"
8 /* Version number of package */
9 #define VERSION "${CPACK_PACKAGE_VERSION}"
10 #define VERSION_MAJOR ${PROJECT_MAJOR_VERSION}
11 #define VERSION_MINOR ${PROJECT_MINOR_VERSION}
12 #define VERSION_MICRO ${PROJECT_PATCH_VERSION}
14 /* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */
15 /* Directory for data */
16 #define DATAFILE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}"
18 /* Build wsutil with SIMD optimization */
19 #cmakedefine HAVE_SSE4_2 1
21 /* Define to 1 if we want to enable plugins */
22 #cmakedefine HAVE_PLUGINS 1
24 /* Link plugins statically into Wireshark */
25 #cmakedefine ENABLE_STATIC 1
28 #cmakedefine HAVE_AIRPCAP 1
30 /* Define to 1 if you have the <arpa/inet.h> header file. */
31 #cmakedefine HAVE_ARPA_INET_H 1
33 /* Define to 1 if you have the <arpa/nameser.h> header file. */
34 #cmakedefine HAVE_ARPA_NAMESER_H 1
36 /* Define to 1 if you have the `bpf_image' function. */
37 #cmakedefine HAVE_BPF_IMAGE 1
39 /* Define to use c-ares library */
40 #cmakedefine HAVE_C_ARES 1
42 /* Define to 1 if you have the <direct.h> header file. */
43 #cmakedefine HAVE_DIRECT_H 1
45 /* Define to 1 if you have the <dirent.h> header file. */
46 #cmakedefine HAVE_DIRENT_H 1
48 /* Define to 1 if you have the `dladdr' function. */
49 #cmakedefine HAVE_DLADDR 1
51 /* Define to 1 if you have the <dlfcn.h> header file. */
52 #cmakedefine HAVE_DLFCN_H 1
54 /* Define to 1 if you have the <fcntl.h> header file. */
55 #cmakedefine HAVE_FCNTL_H 1
57 /* Define to use GeoIP library */
58 #cmakedefine HAVE_GEOIP 1
60 /* Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later) */
61 #cmakedefine HAVE_GEOIP_V6 1
63 /* Define to 1 if you have the `gethostbyname2' function. */
64 #cmakedefine HAVE_GETHOSTBYNAME2 1
66 /* Define to 1 if you have the getopt function. */
67 #cmakedefine HAVE_GETOPT 1
69 /* Define to 1 if you have the <getopt.h> header file. */
70 #cmakedefine HAVE_GETOPT_H 1
72 /* Define to 1 if you have the `getprotobynumber' function. */
73 #cmakedefine HAVE_GETPROTOBYNUMBER 1
75 /* Define to use GNU ADNS library */
76 #cmakedefine HAVE_GNU_ADNS 1
78 /* Define to 1 if you have the <grp.h> header file. */
79 #cmakedefine HAVE_GRP_H 1
81 /* Define to use heimdal kerberos */
82 #cmakedefine HAVE_HEIMDAL_KERBEROS 1
84 /* Define unless inet/aton.h needs to be included */
85 #cmakedefine HAVE_INET_ATON_H 1
87 /* Define if inet_ntop() prototype exists */
88 #cmakedefine HAVE_INET_NTOP_PROTO 1
90 /* Define to 1 if you have the `inflatePrime' function. */
91 #cmakedefine HAVE_INFLATEPRIME 1
93 /* Define to 1 if you have the <inttypes.h> header file. */
94 #cmakedefine HAVE_INTTYPES_H 1
96 /* Define to 1 if you have the `issetugid' function. */
97 #cmakedefine HAVE_ISSETUGID 1
99 /* Define to use kerberos */
100 #cmakedefine HAVE_KERBEROS 1
102 /* Define if krb5.h defines KEYTYPE_ARCFOUR_56 */
103 #cmakedefine HAVE_KEYTYPE_ARCFOUR_56 1
105 /* Define to use the libcap library */
106 #cmakedefine HAVE_LIBCAP 1
108 /* Define to use libgcrypt */
109 #cmakedefine HAVE_LIBGCRYPT 1
111 /* Define to use GnuTLS library */
112 #cmakedefine HAVE_LIBGNUTLS 1
114 /* Enable libnl support */
115 #cmakedefine HAVE_LIBNL 1
117 /* libnl version 1 */
118 #cmakedefine HAVE_LIBNL1 1
120 /* libnl version 2 */
121 #cmakedefine HAVE_LIBNL2 1
123 /* libnl version 3 */
124 #cmakedefine HAVE_LIBNL3 1
126 /* Define to use libpcap library */
127 #cmakedefine HAVE_LIBPCAP 1
129 /* Define to use libportaudio library */
130 #cmakedefine HAVE_LIBPORTAUDIO 1
132 /* Define to 1 if you have the `smi' library (-lsmi). */
133 #cmakedefine HAVE_LIBSMI 1
135 /* Define to use libz library */
136 #cmakedefine HAVE_LIBZ 1
138 /* Define to use Lua */
139 #cmakedefine HAVE_LUA 1
141 /* Define to 1 if you have the <lua.h> header file. */
142 #cmakedefine HAVE_LUA_H 1
144 /* Define to 1 if you have the <memory.h> header file. */
145 #cmakedefine HAVE_MEMORY_H 1
147 /* Define to use MIT kerberos */
148 #cmakedefine HAVE_MIT_KERBEROS 1
150 /* Define to 1 if you have the `mkdtemp' function. */
151 #cmakedefine HAVE_MKDTEMP 1
153 /* Define to 1 if you have the `mkstemp' function. */
154 #cmakedefine HAVE_MKSTEMP 1
156 /* Define to 1 if you have the `mmap' function. */
157 #cmakedefine HAVE_MMAP 1
159 /* Define to 1 if you have the `mprotect' function. */
160 #cmakedefine HAVE_MPROTECT 1
162 /* Define to 1 if you have the <netdb.h> header file. */
163 #cmakedefine HAVE_NETDB_H 1
165 /* Define to 1 if you have the <netinet/in.h> header file. */
166 #cmakedefine HAVE_NETINET_IN_H 1
168 /* nl80211.h is new enough */
169 #cmakedefine HAVE_NL80211 1
171 /* SET_CHANNEL is supported */
172 #cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
174 /* Define to 1 if you have the <Ntddndis.h> header file. */
175 #cmakedefine HAVE_NTDDNDIS_H 1
177 /* Define to 1 if you have OS X frameworks */
178 #cmakedefine HAVE_OS_X_FRAMEWORKS 1
180 /* Define if pcap_breakloop is known */
181 #cmakedefine HAVE_PCAP_BREAKLOOP 1
183 /* Define to 1 if you have the `pcap_create' function. */
184 #cmakedefine HAVE_PCAP_CREATE 1
186 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
187 #cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
189 /* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
190 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
192 /* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
193 #cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
195 /* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
196 declares pcap_if_t. */
197 #cmakedefine HAVE_PCAP_FINDALLDEVS 1
199 /* Define to 1 if you have the `pcap_freecode' function. */
200 #cmakedefine HAVE_PCAP_FREECODE 1
202 /* Define to 1 if you have the `pcap_free_datalinks' function. */
203 #cmakedefine HAVE_PCAP_FREE_DATALINKS 1
205 /* Define to 1 if you have the `pcap_get_selectable_fd' function. */
206 #cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
208 /* Define to 1 if you have the `pcap_lib_version' function. */
209 #cmakedefine HAVE_PCAP_LIB_VERSION 1
211 /* Define to 1 if you have the `pcap_list_datalinks' function. */
212 #cmakedefine HAVE_PCAP_LIST_DATALINKS 1
214 /* Define to 1 if you have the `pcap_open_dead' function. */
215 #cmakedefine HAVE_PCAP_OPEN_DEAD 1
217 /* Define to 1 if you have WinPcap remote capturing support and prefer to use
218 these new API features. */
219 #cmakedefine HAVE_PCAP_REMOTE 1
221 /* Define to 1 if you have the `pcap_set_datalink' function. */
222 #cmakedefine HAVE_PCAP_SET_DATALINK 1
224 /* Define to 1 if you have the <portaudio.h> header file. */
225 #cmakedefine HAVE_PORTAUDIO_H 1
227 /* Define to 1 if you have the <pwd.h> header file. */
228 #cmakedefine HAVE_PWD_H 1
230 /* Define if python devel package available */
231 #cmakedefine HAVE_PYTHON 1
233 /* Define to 1 to enable remote capturing feature in WinPcap library */
234 #cmakedefine HAVE_REMOTE 1
236 /* Define if sa_len field exists in struct sockaddr */
237 #cmakedefine HAVE_SA_LEN 1
239 /* Define to 1 if you want to playing SBC by standalone BlueZ SBC library */
240 #cmakedefine HAVE_SBC 1
242 /* Define to 1 if you have the `setresgid' function. */
243 #cmakedefine HAVE_SETRESGID 1
245 /* Define to 1 if you have the `setresuid' function. */
246 #cmakedefine HAVE_SETRESUID 1
248 /* Define to 1 if you have the <stdarg.h> header file. */
249 #cmakedefine HAVE_STDARG_H 1
251 /* Define to 1 if you have the <stddef.h> header file. */
252 #cmakedefine HAVE_STDDEF_H 1
254 /* Define to 1 if you have the <stdint.h> header file. */
255 #cmakedefine HAVE_STDINT_H 1
257 /* Define to 1 if you have the <stdlib.h> header file. */
258 #cmakedefine HAVE_STDLIB_H 1
260 /* Define to 1 if you have the <strings.h> header file. */
261 #cmakedefine HAVE_STRINGS_H 1
263 /* Define to 1 if you have the <string.h> header file. */
264 #cmakedefine HAVE_STRING_H 1
266 /* Define if st_flags field exists in struct stat */
267 #cmakedefine HAVE_ST_FLAGS 1
269 /* Define to 1 if you have the `sysconf' function. */
270 #cmakedefine HAVE_SYSCONF 1
272 /* Define to 1 if you have the <sys/ioctl.h> header file. */
273 #cmakedefine HAVE_SYS_IOCTL_H 1
275 /* Define to 1 if you have the <sys/param.h> header file. */
276 #cmakedefine HAVE_SYS_PARAM_H 1
278 /* Define to 1 if you have the <sys/socket.h> header file. */
279 #cmakedefine HAVE_SYS_SOCKET_H 1
281 /* Define to 1 if you have the <sys/sockio.h> header file. */
282 #cmakedefine HAVE_SYS_SOCKIO_H 1
284 /* Define to 1 if you have the <sys/stat.h> header file. */
285 #cmakedefine HAVE_SYS_STAT_H 1
287 /* Define to 1 if you have the <sys/time.h> header file. */
288 #cmakedefine HAVE_SYS_TIME_H 1
290 /* Define to 1 if you have the <sys/types.h> header file. */
291 #cmakedefine HAVE_SYS_TYPES_H 1
293 /* Define to 1 if you have the <sys/utsname.h> header file. */
294 #cmakedefine HAVE_SYS_UTSNAME_H 1
296 /* Define to 1 if you have the <sys/wait.h> header file. */
297 #cmakedefine HAVE_SYS_WAIT_H 1
299 /* Define if tm_zone field exists in struct tm */
300 #cmakedefine HAVE_TM_ZONE 1
302 /* Define if tzname array exists */
303 #cmakedefine HAVE_TZNAME 1
305 /* Define to 1 if you have the <unistd.h> header file. */
306 #cmakedefine HAVE_UNISTD_H 1
308 /* Define to 1 if you have the <windows.h> header file. */
309 #cmakedefine HAVE_WINDOWS_H 1
311 /* Define to 1 if you have the <winsock2.h> header file. */
312 #cmakedefine HAVE_WINSOCK2_H 1
314 /* HTML viewer, e.g. mozilla */
315 #cmakedefine HTML_VIEWER
317 /* Define if inet/v6defs.h needs to be included */
318 #cmakedefine NEED_INET_V6DEFS_H 1
320 /* Define if strptime.h needs to be included */
321 #cmakedefine NEED_STRPTIME_H 1
323 /* Name of package */
326 /* Define to the address where bug reports for this package should be sent. */
327 #cmakedefine PACKAGE_BUGREPORT
329 /* Define to the full name of this package. */
330 #cmakedefine PACKAGE_NAME
332 /* Define to the full name and version of this package. */
333 #cmakedefine PACKAGE_STRING
335 /* Define to the one symbol short name of this package. */
336 #cmakedefine PACKAGE_TARNAME
338 /* Define to the version of this package. */
339 #cmakedefine PACKAGE_VERSION
341 /* Support for pcap-ng */
342 #cmakedefine PCAP_NG_DEFAULT 1
344 /* Plugin installation directory */
345 #cmakedefine PLUGIN_INSTALL_DIR "${PLUGIN_INSTALL_DIR}"
347 /* Define if we are using version of of the Portaudio library API */
348 #cmakedefine PORTAUDIO_API_1 1
350 /* Define if we have QtMacExtras */
351 #cmakedefine QT_MACEXTRAS_LIB 1
353 /* Define to 1 if your processor stores words with the most significant byte
354 first (like Motorola and SPARC, unlike Intel and VAX). */
355 #cmakedefine WORDS_BIGENDIAN 1
357 /* Large file support */
358 #cmakedefine _LARGEFILE_SOURCE
359 #cmakedefine _LARGEFILE64_SOURCE
360 #cmakedefine _LARGE_FILES
361 #cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
363 /* Define WS_MSVC_NORETURN appropriately for declarations of routines that
364 never return (just like Charlie on the MTA).
366 Note that MSVC++ expects __declspec(noreturn) to precede the function
367 name and GCC, as far as I know, expects __attribute__((noreturn)) to
368 follow the function name, so we need two different flavors of
370 #define WS_MSVC_NORETURN @WS_MSVC_NORETURN@
372 /* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
374 /* Note: not use in the code */
375 #cmakedefine YYTEXT_POINTER
377 /* _U_ isn't needed for C++, simply don't name the variable.
378 However, we do need it for some headers that are shared between C and C++. */
379 #define _U_ ${C_UNUSED}
385 /* WpdPack/INclude/pcap/pcap.h checks for "#if defined(WIN32)" */
390 # if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
394 /* FIXME: Detection doesn't work */
395 # define HAVE_NTDDNDIS_H 1
396 /* Visual C 9 (2008), Visual C 10 (2010) and Visual C 11 (2012) need these
398 * XXX: Can we use MSC_VER >= 1500 ?? */
399 # if _MSC_VER == 1500 || _MSC_VER == 1600 || _MSC_VER == 1700
400 # define NTDDI_VERSION NTDDI_WIN2K
401 # define _WIN32_WINNT _WIN32_WINNT_WIN2K
405 * Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
407 # define YY_NO_UNISTD_H
410 # define strncasecmp strnicmp
411 # define popen _popen
412 # define pclose _pclose
417 /* Use Unicode in Windows runtime functions. */
422 # define NEED_INET_V6DEFS_H 1
423 # define NEED_STRPTIME_H 1