3179493814
check whether we have Lua or not. Get rid of the cmakedefines for those two headers. (The autoconf script should perhaps do the check differently.) svn path=/trunk/; revision=52533
425 lines
12 KiB
C
425 lines
12 KiB
C
/* cmakeconfig.h.in */
|
|
|
|
/* Note: You cannot use earlier #defines in later #cmakedefines (cmake 2.6.2). */
|
|
|
|
/* Name of package */
|
|
#define PACKAGE "wireshark"
|
|
|
|
/* Version number of package */
|
|
#define VERSION "${CPACK_PACKAGE_VERSION}"
|
|
#define VERSION_MAJOR "${PROJECT_MAJOR_VERSION}"
|
|
#define VERSION_MINOR "${PROJECT_MINOR_VERSION}"
|
|
#define VERSION_MICRO "${PROJECT_PATCH_VERSION}"
|
|
|
|
/* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */
|
|
/* Directory for data */
|
|
#define DATAFILE_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}"
|
|
|
|
/* Path to Python. */
|
|
#cmakedefine PYTHON_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DATADIR}/${CPACK_PACKAGE_NAME}/python/${CPACK_PACKAGE_VERSION}"
|
|
|
|
/* Directory where plugins reside */
|
|
#define PLUGIN_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/@CPACK_PACKAGE_NAME@/plugins/${CPACK_PACKAGE_VERSION}"
|
|
|
|
/* Define to 1 if we want to enable plugins */
|
|
#cmakedefine HAVE_PLUGINS 1
|
|
|
|
/* Link plugins statically into Wireshark */
|
|
#cmakedefine ENABLE_STATIC 1
|
|
|
|
/* Enable AirPcap */
|
|
#cmakedefine HAVE_AIRPCAP 1
|
|
|
|
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
|
#cmakedefine HAVE_ARPA_INET_H 1
|
|
|
|
/* Define to 1 if you have the <arpa/nameser.h> header file. */
|
|
#cmakedefine HAVE_ARPA_NAMESER_H 1
|
|
|
|
/* Define to 1 if you have the `bpf_image' function. */
|
|
#cmakedefine HAVE_BPF_IMAGE 1
|
|
|
|
/* Define to use c-ares library */
|
|
#cmakedefine HAVE_C_ARES 1
|
|
|
|
/* Define to 1 if you have the <direct.h> header file. */
|
|
#cmakedefine HAVE_DIRECT_H 1
|
|
|
|
/* Define to 1 if you have the <dirent.h> header file. */
|
|
#cmakedefine HAVE_DIRENT_H 1
|
|
|
|
/* Define to 1 if you have the `dladdr' function. */
|
|
#cmakedefine HAVE_DLADDR 1
|
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
#cmakedefine HAVE_DLFCN_H 1
|
|
|
|
/* Define to 1 if you have the <fcntl.h> header file. */
|
|
#cmakedefine HAVE_FCNTL_H 1
|
|
|
|
/* Define to use GeoIP library */
|
|
#cmakedefine HAVE_GEOIP 1
|
|
|
|
/* Define if GeoIP supports IPv6 (GeoIP 1.4.5 and later) */
|
|
#cmakedefine HAVE_GEOIP_V6 1
|
|
|
|
/* Define to 1 if you have the `gethostbyname2' function. */
|
|
#cmakedefine HAVE_GETHOSTBYNAME2 1
|
|
|
|
/* Define to 1 if you have the getopt function. */
|
|
#cmakedefine HAVE_GETOPT 1
|
|
|
|
/* Define to 1 if you have the <getopt.h> header file. */
|
|
#cmakedefine HAVE_GETOPT_H 1
|
|
|
|
/* Define to 1 if you have the `getprotobynumber' function. */
|
|
#cmakedefine HAVE_GETPROTOBYNUMBER 1
|
|
|
|
/* Define to use GNU ADNS library */
|
|
#cmakedefine HAVE_GNU_ADNS 1
|
|
|
|
/* Define to 1 if you have the <grp.h> header file. */
|
|
#cmakedefine HAVE_GRP_H 1
|
|
|
|
/* Define to use heimdal kerberos */
|
|
#cmakedefine HAVE_HEIMDAL_KERBEROS 1
|
|
|
|
/* Define unless inet/aton.h needs to be included */
|
|
#cmakedefine HAVE_INET_ATON_H 1
|
|
|
|
/* Define if inet_ntop() prototype exists */
|
|
#cmakedefine HAVE_INET_NTOP_PROTO 1
|
|
|
|
/* Define to 1 if you have the `inflatePrime' function. */
|
|
#cmakedefine HAVE_INFLATEPRIME 1
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
#cmakedefine HAVE_INTTYPES_H 1
|
|
|
|
/* Define to 1 if you have the `issetugid' function. */
|
|
#cmakedefine HAVE_ISSETUGID 1
|
|
|
|
/* Define to use kerberos */
|
|
#cmakedefine HAVE_KERBEROS 1
|
|
|
|
/* Define if krb5.h defines KEYTYPE_ARCFOUR_56 */
|
|
#cmakedefine HAVE_KEYTYPE_ARCFOUR_56 1
|
|
|
|
/* Define to use the libcap library */
|
|
#cmakedefine HAVE_LIBCAP 1
|
|
|
|
/* Define to use libgcrypt */
|
|
#cmakedefine HAVE_LIBGCRYPT 1
|
|
|
|
/* Define to use GnuTLS library */
|
|
#cmakedefine HAVE_LIBGNUTLS 1
|
|
|
|
/* 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
|
|
|
|
/* Define to use libpcap library */
|
|
#cmakedefine HAVE_LIBPCAP 1
|
|
|
|
/* Define to use libportaudio library */
|
|
#cmakedefine HAVE_LIBPORTAUDIO 1
|
|
|
|
/* Define to 1 if you have the `smi' library (-lsmi). */
|
|
#cmakedefine HAVE_LIBSMI 1
|
|
|
|
/* Define to use libz library */
|
|
#cmakedefine HAVE_LIBZ 1
|
|
|
|
/* Define to use Lua */
|
|
#cmakedefine HAVE_LUA 1
|
|
|
|
/* Define to 1 if you have the <lua.h> header file. */
|
|
#cmakedefine HAVE_LUA_H 1
|
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
#cmakedefine HAVE_MEMORY_H 1
|
|
|
|
/* Define to use MIT kerberos */
|
|
#cmakedefine HAVE_MIT_KERBEROS 1
|
|
|
|
/* Define to 1 if you have the `mkdtemp' function. */
|
|
#cmakedefine HAVE_MKDTEMP 1
|
|
|
|
/* Define to 1 if you have the `mkstemp' function. */
|
|
#cmakedefine HAVE_MKSTEMP 1
|
|
|
|
/* Define to 1 if you have the `mmap' function. */
|
|
#cmakedefine HAVE_MMAP 1
|
|
|
|
/* Define to 1 if you have the `mprotect' function. */
|
|
#cmakedefine HAVE_MPROTECT 1
|
|
|
|
/* Define to 1 if you have the <netdb.h> header file. */
|
|
#cmakedefine HAVE_NETDB_H 1
|
|
|
|
/* Define to 1 if you have the <netinet/in.h> header file. */
|
|
#cmakedefine HAVE_NETINET_IN_H 1
|
|
|
|
/* nl80211.h is new enough */
|
|
#cmakedefine HAVE_NL80211 1
|
|
|
|
/* SET_CHANNEL is supported */
|
|
#cmakedefine HAVE_NL80211_CMD_SET_CHANNEL 1
|
|
|
|
/* Define to 1 if you have the <Ntddndis.h> header file. */
|
|
#cmakedefine HAVE_NTDDNDIS_H 1
|
|
|
|
/* Define to 1 if you have OS X frameworks */
|
|
#cmakedefine HAVE_OS_X_FRAMEWORKS 1
|
|
|
|
/* Define if pcap_breakloop is known */
|
|
#cmakedefine HAVE_PCAP_BREAKLOOP 1
|
|
|
|
/* FIXME: The code (at least) in dumpcap assumes that PCAP_CREATE is not
|
|
* available on Windows - but we detect it in winpcap */
|
|
#ifndef _WIN32
|
|
/* Define to 1 if you have the `pcap_create' function. */
|
|
#cmakedefine HAVE_PCAP_CREATE 1
|
|
#endif
|
|
|
|
/* Define to 1 if you have the `pcap_datalink_name_to_val' function. */
|
|
#cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL 1
|
|
|
|
/* Define to 1 if you have the `pcap_datalink_val_to_description' function. */
|
|
#cmakedefine HAVE_PCAP_DATALINK_VAL_TO_DESCRIPTION 1
|
|
|
|
/* Define to 1 if you have the `pcap_datalink_val_to_name' function. */
|
|
#cmakedefine HAVE_PCAP_DATALINK_VAL_TO_NAME 1
|
|
|
|
/* Define to 1 if you have the `pcap_findalldevs' function and a pcap.h that
|
|
declares pcap_if_t. */
|
|
#cmakedefine HAVE_PCAP_FINDALLDEVS 1
|
|
|
|
/* Define to 1 if you have the `pcap_freecode' function. */
|
|
#cmakedefine HAVE_PCAP_FREECODE 1
|
|
|
|
/* Define to 1 if you have the `pcap_free_datalinks' function. */
|
|
#cmakedefine HAVE_PCAP_FREE_DATALINKS 1
|
|
|
|
/* Define to 1 if you have the `pcap_get_selectable_fd' function. */
|
|
#cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1
|
|
|
|
/* Define to 1 if you have the `pcap_lib_version' function. */
|
|
#cmakedefine HAVE_PCAP_LIB_VERSION 1
|
|
|
|
/* Define to 1 if you have the `pcap_list_datalinks' function. */
|
|
#cmakedefine HAVE_PCAP_LIST_DATALINKS 1
|
|
|
|
/* Define to 1 if you have the `pcap_open_dead' function. */
|
|
#cmakedefine HAVE_PCAP_OPEN_DEAD 1
|
|
|
|
/* Define to 1 if you have WinPcap remote capturing support and prefer to use
|
|
these new API features. */
|
|
#cmakedefine HAVE_PCAP_REMOTE 1
|
|
|
|
/* Define to 1 if you have the `pcap_set_datalink' function. */
|
|
#cmakedefine HAVE_PCAP_SET_DATALINK 1
|
|
|
|
/* Define if plugins are enabled */
|
|
#cmakedefine HAVE_PLUGINS 1
|
|
|
|
/* Define to 1 if you have the <portaudio.h> header file. */
|
|
#cmakedefine HAVE_PORTAUDIO_H 1
|
|
|
|
/* Define to 1 if you have the <pwd.h> header file. */
|
|
#cmakedefine HAVE_PWD_H 1
|
|
|
|
/* Define if python devel package available */
|
|
#cmakedefine HAVE_PYTHON 1
|
|
|
|
/* Define to 1 to enable remote capturing feature in WinPcap library */
|
|
#cmakedefine HAVE_REMOTE 1
|
|
|
|
/* Define if sa_len field exists in struct sockaddr */
|
|
#cmakedefine HAVE_SA_LEN 1
|
|
|
|
/* 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
|
|
|
|
/* Define to 1 if you have the <stdarg.h> header file. */
|
|
#cmakedefine HAVE_STDARG_H 1
|
|
|
|
/* Define to 1 if you have the <stddef.h> header file. */
|
|
#cmakedefine HAVE_STDDEF_H 1
|
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
#cmakedefine HAVE_STDINT_H 1
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
#cmakedefine HAVE_STDLIB_H 1
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
#cmakedefine HAVE_STRINGS_H 1
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
#cmakedefine HAVE_STRING_H 1
|
|
|
|
/* Define if st_flags field exists in struct stat */
|
|
#cmakedefine HAVE_ST_FLAGS 1
|
|
|
|
/* Define to 1 if you have the `sysconf' function. */
|
|
#cmakedefine HAVE_SYSCONF 1
|
|
|
|
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
|
#cmakedefine HAVE_SYS_IOCTL_H 1
|
|
|
|
/* Define to 1 if you have the <sys/param.h> header file. */
|
|
#cmakedefine HAVE_SYS_PARAM_H 1
|
|
|
|
/* Define to 1 if you have the <sys/socket.h> header file. */
|
|
#cmakedefine HAVE_SYS_SOCKET_H 1
|
|
|
|
/* Define to 1 if you have the <sys/sockio.h> header file. */
|
|
#cmakedefine HAVE_SYS_SOCKIO_H 1
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
#cmakedefine HAVE_SYS_STAT_H 1
|
|
|
|
/* Define to 1 if you have the <sys/time.h> header file. */
|
|
#cmakedefine HAVE_SYS_TIME_H 1
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
#cmakedefine HAVE_SYS_TYPES_H 1
|
|
|
|
/* Define to 1 if you have the <sys/utsname.h> header file. */
|
|
#cmakedefine HAVE_SYS_UTSNAME_H 1
|
|
|
|
/* Define to 1 if you have the <sys/wait.h> header file. */
|
|
#cmakedefine HAVE_SYS_WAIT_H 1
|
|
|
|
/* Define if tm_zone field exists in struct tm */
|
|
#cmakedefine HAVE_TM_ZONE 1
|
|
|
|
/* Define if tzname array exists */
|
|
#cmakedefine HAVE_TZNAME 1
|
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
#cmakedefine HAVE_UNISTD_H 1
|
|
|
|
/* Define to 1 if you have the <windows.h> header file. */
|
|
#cmakedefine HAVE_WINDOWS_H 1
|
|
|
|
/* Define to 1 if you have the <winsock2.h> header file. */
|
|
#cmakedefine HAVE_WINSOCK2_H 1
|
|
|
|
/* HTML viewer, e.g. mozilla */
|
|
#cmakedefine HTML_VIEWER
|
|
|
|
/* Define if inet/v6defs.h needs to be included */
|
|
#cmakedefine NEED_INET_V6DEFS_H 1
|
|
|
|
/* Define if strptime.h needs to be included */
|
|
#cmakedefine NEED_STRPTIME_H 1
|
|
|
|
/* 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
|
|
|
|
/* Support for pcap-ng */
|
|
#cmakedefine PCAP_NG_DEFAULT 1
|
|
|
|
/* Plugin installation directory */
|
|
#cmakedefine PLUGIN_DIR
|
|
|
|
/* Define if we are using version of of the Portaudio library API */
|
|
#cmakedefine PORTAUDIO_API_1 1
|
|
|
|
/* Define if we have QtMacExtras */
|
|
#cmakedefine QT_MACEXTRAS_LIB 1
|
|
|
|
/* Define to 1 if your processor stores words with the most significant byte
|
|
first (like Motorola and SPARC, unlike Intel and VAX). */
|
|
#cmakedefine WORDS_BIGENDIAN 1
|
|
|
|
/* Large file support */
|
|
#cmakedefine _LARGEFILE_SOURCE
|
|
#cmakedefine _LARGEFILE64_SOURCE
|
|
#cmakedefine _LARGE_FILES
|
|
#cmakedefine _FILE_OFFSET_BITS @_FILE_OFFSET_BITS@
|
|
|
|
/* Define WS_MSVC_NORETURN appropriately for declarations of routines that
|
|
never return (just like Charlie on the MTA).
|
|
|
|
Note that MSVC++ expects __declspec(noreturn) to precede the function
|
|
name and GCC, as far as I know, expects __attribute__((noreturn)) to
|
|
follow the function name, so we need two different flavors of
|
|
noreturn tag. */
|
|
#define WS_MSVC_NORETURN @WS_MSVC_NORETURN@
|
|
|
|
/* Define to 1 if `lex' declares `yytext' as a `char *' by default, not a
|
|
`char[]'. */
|
|
/* Note: not use in the code */
|
|
#cmakedefine YYTEXT_POINTER
|
|
|
|
/* _U_ isn't needed for C++, simply don't name the variable.
|
|
However, we do need it for some headers that are shared between C and C++. */
|
|
#define _U_ ${C_UNUSED}
|
|
|
|
#if defined(_WIN32)
|
|
# if !defined(QT_VERSION) || !defined(_SSIZE_T_DEFINED)
|
|
typedef int ssize_t;
|
|
# endif
|
|
|
|
/* FIXME: Detection doesn't work */
|
|
# define HAVE_NTDDNDIS_H 1
|
|
/* Visual C 9 (2008), Visual C 10 (2010) and Visual C 11 (2012) need these
|
|
* prototypes
|
|
* XXX: Can we use MSC_VER >= 1500 ?? */
|
|
# if _MSC_VER == 1500 || _MSC_VER == 1600 || _MSC_VER == 1700
|
|
# define NTDDI_VERSION NTDDI_WIN2K
|
|
# define _WIN32_WINNT _WIN32_WINNT_WIN2K
|
|
# endif
|
|
|
|
/*
|
|
* Flex (v 2.5.35) uses this symbol to "exclude" unistd.h
|
|
*/
|
|
# define YY_NO_UNISTD_H
|
|
|
|
|
|
# define strncasecmp strnicmp
|
|
# define popen _popen
|
|
# define pclose _pclose
|
|
|
|
# ifndef __STDC__
|
|
# define __STDC__ 0
|
|
# endif
|
|
/* Use Unicode in Windows runtime functions. */
|
|
# define UNICODE 1
|
|
# define _UNICODE 1
|
|
|
|
# define INET6 1
|
|
# define NEED_INET_V6DEFS_H 1
|
|
# define HTML_VIEWER "mozilla"
|
|
# define NEED_STRPTIME_H 1
|
|
#endif
|