X-Git-Url: http://git.samba.org/samba.git/?p=obnox%2Fwireshark%2Fwip.git;a=blobdiff_plain;f=cmakeconfig.h.in;h=8578ef05be8f641e83b9eb59e0850f4b1587665f;hp=577d7f290177dfa00c89c80d61249f93561ad343;hb=026686c075b547eb4b5d80bb6ba6a8249284e0e1;hpb=5c75f8c0d2df5b229152239bcbbee499102eddea diff --git a/cmakeconfig.h.in b/cmakeconfig.h.in index 577d7f2901..8578ef05be 100644 --- a/cmakeconfig.h.in +++ b/cmakeconfig.h.in @@ -1,255 +1,317 @@ /* 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}" + +/* FIXME: Move the path stuff to the CMakeInstallDirs.cmake file */ /* Directory for data */ -#cmakedefine DATAFILE_DIR +#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 use pcap-ng as our default file format */ +#cmakedefine PCAP_NG_DEFAULT 1 + +/* Define to 1 if we want to enable plugins */ +#cmakedefine HAVE_PLUGINS 1 /* Link plugins statically into Wireshark */ -#cmakedefine ENABLE_STATIC +#cmakedefine ENABLE_STATIC 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_ARPA_INET_H +#cmakedefine HAVE_ARPA_INET_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_ARPA_NAMESER_H +#cmakedefine HAVE_ARPA_NAMESER_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_DIRECT_H +#cmakedefine HAVE_DIRECT_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_DIRENT_H +#cmakedefine HAVE_DIRENT_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_DLFCN_H +#cmakedefine HAVE_DLFCN_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_FCNTL_H +#cmakedefine HAVE_FCNTL_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_GETOPT 1 + +/* Define to 1 if you have the `chown' function. */ +#cmakedefine HAVE_CHOWN 1 /* Define to 1 if you have the `gethostbyname2' function. */ -#cmakedefine HAVE_GETHOSTBYNAME2 +#cmakedefine HAVE_GETHOSTBYNAME2 1 /* Define to 1 if you have the `getprotobynumber' function. */ -#cmakedefine HAVE_GETPROTOBYNUMBER +#cmakedefine HAVE_GETPROTOBYNUMBER 1 + +/* Define to use the airpcap library */ +#cmakedefine HAVE_AIRPCAP 1 + +/* Define to use C ares library */ +#cmakedefine HAVE_C_ARES 1 + +/* Define to use SMI SNMP library */ +#cmakedefine HAVE_LIBSMI 1 + +/* Define to use GEOIP library */ +#cmakedefine HAVE_GEOIP 1 + +/* Define if GEOIP library supports IPv6 (GeoIP 1.4.5 and later) */ +#cmakedefine HAVE_GEOIP_V6 1 + +/* Define to use capabilities library */ +#cmakedefine HAVE_LIBCAP 1 /* Define to use GNU ADNS library */ -#cmakedefine HAVE_GNU_ADNS +#cmakedefine HAVE_GNU_ADNS 1 /* Define to use heimdal kerberos */ -#cmakedefine HAVE_HEIMDAL_KERBEROS - -/* Define if you have the iconv() function. */ -#cmakedefine HAVE_ICONV +#cmakedefine HAVE_HEIMDAL_KERBEROS 1 /* Define if inet_ntop() prototype exists */ -#cmakedefine HAVE_INET_NTOP_PROTO +#cmakedefine HAVE_INET_NTOP_PROTO 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_INTTYPES_H +#cmakedefine HAVE_INTTYPES_H 1 /* Define to 1 if you have the `issetugid' function. */ -#cmakedefine HAVE_ISSETUGID +#cmakedefine HAVE_ISSETUGID 1 /* Define to use kerberos */ -#cmakedefine HAVE_KERBEROS +#cmakedefine HAVE_KERBEROS 1 /* Define if krb5.h defines KEYTYPE_ARCFOUR_56 */ -#cmakedefine HAVE_KEYTYPE_ARCFOUR_56 +#cmakedefine HAVE_KEYTYPE_ARCFOUR_56 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_LAUXLIB_H +#cmakedefine HAVE_LAUXLIB_H 1 /* Define to use libgcrypt */ -#cmakedefine HAVE_LIBGCRYPT +#cmakedefine HAVE_LIBGCRYPT 1 /* Define to use gnutls library */ -#cmakedefine HAVE_LIBGNUTLS +#cmakedefine HAVE_LIBGNUTLS 1 /* Define to use libpcap library */ -#cmakedefine HAVE_LIBPCAP +#cmakedefine HAVE_LIBPCAP 1 -/* Define to use libpcre library */ -#cmakedefine HAVE_LIBPCRE +/* Define to use dbus-glib library */ +#cmakedefine HAVE_LIBDBUS 1 /* Define to use libportaudio library */ -#cmakedefine HAVE_LIBPORTAUDIO +#cmakedefine HAVE_LIBPORTAUDIO 1 /* Define to use libz library */ -#cmakedefine HAVE_LIBZ +#cmakedefine HAVE_LIBZ 1 + +/* Define to 1 if you have the `inflatePrime' function */ +#cmakedefine HAVE_INFLATEPRIME 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_LUA5_1_LAUXLIB_H +#cmakedefine HAVE_LUA5_1_LAUXLIB_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_LUA5_1_LUALIB_H +#cmakedefine HAVE_LUA5_1_LUALIB_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_LUA5_1_LUA_H +#cmakedefine HAVE_LUA5_1_LUA_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_LUALIB_H +#cmakedefine HAVE_LUALIB_H 1 /* Define to use Lua 5.1 */ -#cmakedefine HAVE_LUA_5_1 +#cmakedefine HAVE_LUA_5_1 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_LUA_H +#cmakedefine HAVE_LUA_H 1 + +/* Define to 1 if you have libpython. */ +#cmakedefine HAVE_PYTHON 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_MEMORY_H +#cmakedefine HAVE_MEMORY_H 1 /* Define to use MIT kerberos */ -#cmakedefine HAVE_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 +#cmakedefine HAVE_MMAP 1 /* Define to 1 if you have the `mprotect' function. */ -#cmakedefine HAVE_MPROTECT +#cmakedefine HAVE_MPROTECT 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_NETDB_H +#cmakedefine HAVE_NETDB_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_NETINET_IN_H +#cmakedefine HAVE_NETINET_IN_H 1 /* Define to enable support for Net-SNMP */ -#cmakedefine HAVE_NET_SNMP +#cmakedefine HAVE_NET_SNMP 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_NET_SNMP_LIBRARY_DEFAULT_STORE_H +#cmakedefine HAVE_NET_SNMP_LIBRARY_DEFAULT_STORE_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_NET_SNMP_NET_SNMP_CONFIG_H +#cmakedefine HAVE_NET_SNMP_NET_SNMP_CONFIG_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_NTDDNDIS_H 1 /* Define to 1 if you have OS X frameworks */ -#cmakedefine HAVE_OS_X_FRAMEWORKS +#cmakedefine HAVE_OS_X_FRAMEWORKS 1 /* Define to 1 if you have the `pcap_breakloop' function. */ -#cmakedefine HAVE_PCAP_BREAKLOOP +#cmakedefine HAVE_PCAP_BREAKLOOP 1 + +/* Define to 1 if you have the `pcap_create' function. */ +#cmakedefine HAVE_PCAP_CREATE 1 /* Define to 1 if you have the `pcap_datalink_name_to_val' function. */ -#cmakedefine HAVE_PCAP_DATALINK_NAME_TO_VAL +#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 +#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 +#cmakedefine HAVE_PCAP_FINDALLDEVS 1 /* Define to 1 if you have the `pcap_freecode' function. */ -#cmakedefine HAVE_PCAP_FREECODE +#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 +#cmakedefine HAVE_PCAP_GET_SELECTABLE_FD 1 /* Define to 1 if you have the `pcap_lib_version' function. */ -#cmakedefine HAVE_PCAP_LIB_VERSION +#cmakedefine HAVE_PCAP_LIB_VERSION 1 /* Define to 1 if you have the `pcap_list_datalinks' function. */ -#cmakedefine HAVE_PCAP_LIST_DATALINKS +#cmakedefine HAVE_PCAP_LIST_DATALINKS 1 /* Define to 1 if you have the `pcap_open_dead' function. */ -#cmakedefine HAVE_PCAP_OPEN_DEAD +#cmakedefine HAVE_PCAP_OPEN_DEAD 1 /* Define to 1 if you have the `pcap_set_datalink' function. */ -#cmakedefine HAVE_PCAP_SET_DATALINK +#cmakedefine HAVE_PCAP_SET_DATALINK 1 /* Define if libpcap version is known */ -#cmakedefine HAVE_PCAP_VERSION +#cmakedefine HAVE_PCAP_VERSION 1 /* Define if plugins are enabled */ -#cmakedefine HAVE_PLUGINS +#cmakedefine HAVE_PLUGINS 1 + +/* Define if rpcap:// type remote capture is supported */ +#cmakedefine HAVE_PCAP_REMOTE 1 +#cmakedefine HAVE_REMOTE 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_PORTAUDIO_H +#cmakedefine HAVE_PORTAUDIO_H 1 /* Define if sa_len field exists in struct sockaddr */ -#cmakedefine HAVE_SA_LEN - -/* Define to 1 if some SNMP support is to be used */ -#cmakedefine HAVE_SOME_SNMP +#cmakedefine HAVE_SA_LEN 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDARG_H +#cmakedefine HAVE_STDARG_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDDEF_H +#cmakedefine HAVE_STDDEF_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDINT_H +#cmakedefine HAVE_STDINT_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STDLIB_H +#cmakedefine HAVE_STDLIB_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STRINGS_H +#cmakedefine HAVE_STRINGS_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_STRING_H +#cmakedefine HAVE_STRING_H 1 /* Define to 1 if you have the `sysconf' function. */ -#cmakedefine HAVE_SYSCONF +#cmakedefine HAVE_SYSCONF 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_IOCTL_H +#cmakedefine HAVE_SYS_IOCTL_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_PARAM_H +#cmakedefine HAVE_SYS_PARAM_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_SOCKET_H +#cmakedefine HAVE_SYS_SOCKET_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_SOCKIO_H +#cmakedefine HAVE_SYS_SOCKIO_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_STAT_H +#cmakedefine HAVE_SYS_STAT_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_TIME_H +#cmakedefine HAVE_SYS_TIME_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_TYPES_H +#cmakedefine HAVE_SYS_TYPES_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_UTSNAME_H +#cmakedefine HAVE_SYS_UTSNAME_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_SYS_WAIT_H - -/* Define to enable support for UCD-SNMP */ -#cmakedefine HAVE_UCD_SNMP +#cmakedefine HAVE_SYS_WAIT_H 1 /* Define to 1 if you have the header file. */ -#cmakedefine HAVE_UNISTD_H +#cmakedefine HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_WINDOWS_H 1 + +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_WINSOCK2_H 1 /* HTML viewer, e.g. mozilla */ #cmakedefine HTML_VIEWER -/* Define as const if the declaration of iconv() needs const. */ -#cmakedefine ICONV_CONST - /* Define if defines PRI[doxu]64 macros */ -#cmakedefine INTTYPES_H_DEFINES_FORMATS - -/* Define if getopt.h needs to be included */ -#cmakedefine NEED_GETOPT_H +/* Note: always defines PRI[doxu]64 macros so inttypes.h becomes useless.*/ +#cmakedefine INTTYPES_H_DEFINES_FORMATS 1 /* Define if g_ascii_strtoull.h needs to be included */ -#cmakedefine NEED_G_ASCII_STRTOULL_H +#cmakedefine NEED_G_ASCII_STRTOULL_H 1 /* Define if inet/aton.h needs to be included */ -#cmakedefine NEED_INET_ATON_H +#cmakedefine NEED_INET_ATON_H 1 /* Define if inet/v6defs.h needs to be included */ -#cmakedefine NEED_INET_V6DEFS_H - -/* Define if strerror.h needs to be included */ -#cmakedefine NEED_STRERROR_H +#cmakedefine NEED_INET_V6DEFS_H 1 /* Define if strptime.h needs to be included */ -#cmakedefine NEED_STRPTIME_H +#cmakedefine NEED_STRPTIME_H 1 /* Name of package */ #cmakedefine PACKAGE @@ -273,37 +335,43 @@ #cmakedefine PLUGIN_DIR /* Define if we are using version of of the Portaudio library API */ -#cmakedefine PORTAUDIO_API_1 - -/* Format for printing 64-bit unsigned hexadecimal numbers (upper-case) */ -#cmakedefine PRIX64 - -/* Format for printing 64-bit signed decimal numbers */ -#cmakedefine PRId64 +#cmakedefine PORTAUDIO_API_1 1 -/* Format for printing 64-bit unsigned octal numbers */ -#cmakedefine PRIo64 +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_PWD_H 1 -/* Format for printing 64-bit unsigned decimal numbers */ -#cmakedefine PRIu64 - -/* Format for printing 64-bit unsigned hexadecimal numbers (lower-case) */ -#cmakedefine PRIx64 +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_GRP_H 1 /* Define to 1 if you have the ANSI C header files. */ -#cmakedefine STDC_HEADERS - -/* Version number of package */ -#cmakedefine VERSION +/* Note: not use in the code */ +#cmakedefine STDC_HEADERS 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 +#cmakedefine WORDS_BIGENDIAN 1 /* Define as the string to precede external variable declarations in dynamically-linked libraries */ -#cmakedefine WS_VAR_IMPORT +#define WS_VAR_IMPORT @WS_VAR_IMPORT@ + +/* 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. + Also, running moc with -D_U_... breaks cmake's auto escaping magic. */ +#ifndef __cplusplus +# define _U_ ${C_UNUSED} +#endif +