Lines Matching full:we
3 # We need 3.12 or later, so that we can set policy CMP0074; see
16 # otherwise, require 3.5, so we don't get messages warning
29 # neither do we with autotools; don't do so with CMake, either, and
45 # WE KNOW WHAT WE'RE DOING, WE'RE DOING EVERYTHING THE WAY THAT NEWER
53 # We want find_file() and find_library() to honor {packagename}_ROOT,
63 # We want check_include_file() to honor CMAKE_REQUIRED_LIBRARIES; see
74 # We explicitly indicate what languages are used in libpcap to avoid
113 # shipping a pre-built shared library cache, at least), and we do the
147 # system library, which we do *NOT* want to put in our libpcap.pc and
150 # So we just run pkg-config ourselves, so that we get its output
158 # We force PKG_CONFIG_ALLOW_SYSTEM_LIBS to be undefined, as
174 # package for it to find. XXX - what do we do here?
196 # package for it to find. XXX - what do we do here?
226 # be CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES, so that's what we use
227 # when we're trying to construct a -L argument, for insertion into
228 # pcap-config and libpcap.pc, for a library upon which we depend.
250 # Show the bit width for which we're compiling.
254 # libraries that we might use (looking at *you*, Oracle Studio!).
267 # there are two separate .pc files, so if we're doing a 32-bit build we
268 # should make sure we look in /usr/lib/pkgconfig for .pc files and if
269 # we're doing a 64-bit build we should make sure we look in
275 # as an argument, so we set a variable and then use set() to set
339 # If we're building with Visual Studio, we require Visual Studio 2015,
354 # We assume that UTF-8 source is OK with other compilers and with
378 # Try to enable as many C99 features as we can.
379 # At minimum, we want C++/C99-style // comments.
385 # so, unless and until we require CMake 3.1 or later, we have to do it
386 # ourselves on pre-3.1 CMake, so we just do it ourselves on all versions
393 # support for HP C. Therefore, even if we use CMAKE_C_STANDARD with
394 # compilers for which CMake supports it, we may still have to do it
401 # and adds it if it does. We don't test whether it's necessary in order
402 # to get the C99 features that we use, or whether, if it's used, it
403 # enables all the features that we require.
410 # We want support for extensions picked up for GNU C compatibility,
411 # so we use -qlanglvl=extc99.
424 # If we're building with MinGW, we need to specify _WIN32_WINNT as
426 # in order to get the full IPv6 API, including inet_ntop(), and we
482 # can explicitly specify it and, if they don't, we'll pick an
512 # We don't support D-Bus sniffing on macOS; see
593 # Check whether we have the NPcap PacketIsLoopbackAdapter()
644 # Windows, we skip tests for UN*X-only headers and functions.
672 # We can't use check_function_exists(), as it tries to declare
676 # We don't use check_symbol_exists(), as it expects a header
680 # So we use check_c_source_compiles().
708 # We have strerror_r; if we define _GNU_SOURCE, is it a
730 # We don't have strerror_r; do we have _wcserror_s?
736 # Make sure we have vsnprintf() and snprintf(); we require them.
737 # We use check_symbol_exists(), as they aren't necessarily external
760 # Look for various networking-related libraries that we may need.
762 # We need getaddrinfo() to translate host names in filters to IP
763 # addresses. We use getaddrinfo() because we want a portable
768 # We may also need socket() and other socket functions to support:
778 # We may also need getnameinfo() for packet capture from services
791 # We need winsock2.h and ws2tcpip.h.
808 # Most UN*Xes have getaddrinfo(), and the other routines we may
813 # variable that's been set, it skips the test, so we need different
821 # In some versions of Solaris, we need to link with libsocket
826 # we need.
834 # OK, we found it in libsocket.
845 # Linking with libnetwork will find all the routines we
851 # OK, we found it in libnetwork.
859 # We didn't find it.
866 # We require a version of recvmsg() that conforms to the Single
867 # UNIX Specification, so that we can check whether a datagram
875 # the SUS, and we need the version in libxnet, which does
879 # if it does, link with libxnet before we link with libsocket,
900 # DLPI needs putmsg under HP-UX, so test for -lstr while we're at it.
926 # If we don't find one, we just use getnetbyname(), which uses
931 # Only do the check if we have a declaration of getnetbyname_r();
932 # without it, we can't check which API it has. (We assume that
991 # If we don't find one, we just use getprotobyname(), which uses
996 # Only do the check if we have a declaration of getprotobyname_r();
997 # without it, we can't check which API it has. (We assume that
1057 # so we use check_type_size() and ignore the size.
1079 # Do we have ffs(), and is it declared in <strings.h>?
1084 # OK, we have ffs(). Is it declared in <strings.h>?
1086 # This test fails if we don't have <strings.h> or if we do
1093 # This requires the libraries that we require, as ether_hostton might be
1094 # in one of those libraries. That means we have to do this after
1095 # we check for those libraries.
1113 # OK, we have ether_hostton(). Is it declared in <net/ethernet.h>?
1115 # This test fails if we don't have <net/ethernet.h> or if we do
1121 # Yes - we have it declared.
1132 # This test fails if we don't have <netinet/ether.h>
1133 # or if we do but it doesn't declare ether_hostton().
1138 # Yes - we have it declared.
1150 # This test fails if we don't have <sys/ethernet.h>
1151 # or if we do but it doesn't declare ether_hostton().
1156 # Yes - we have it declared.
1168 # This test fails if we don't have <arpa/inet.h>
1169 # or if we do but it doesn't declare ether_hostton().
1174 # Yes - we have it declared.
1186 # <netinet/in.h>, and we always include it with
1189 # This test fails if we don't have <netinet/if_ether.h>
1190 # and the headers we include before it, or if we do but
1196 # Yes - we have it declared.
1206 # No, we'll have to declare it ourselves.
1207 # Do we have "struct ether_addr" if we include <netinet/if_ether.h>?
1211 # so we use check_type_size() and ignore the size.
1253 # We might need them, because some libraries we use might use them,
1254 # but we don't necessarily need them.
1255 # That's only on UN*X; on Windows, if they use threads, we assume
1263 # If it's not pthreads, we won't use it; we use it for libraries
1310 # obvious CMake debugging flag reveals, it doesn't realize that if we
1316 # CMake idiom, as far as I can tell; we only discovered this because
1320 # We thus also allow a setting of OFF to mean "no sanitizers" and ON to
1321 # mean "all supported sanitizers that we know about and that can all
1397 # We want to treat "not set" and "set to one of the false constants"
1400 # We want to treat "set to a list of one or more sanitizers" as
1403 # This requires that we distinguish between those two cases.
1410 # We already know it's "not one of the true constants", so
1411 # we treat it as a list of sanitizers.
1430 # so we don't enable any sanitizers.
1447 # We have OpenSSL.
1455 # pkg-config or not. We need to know that as, if it was found with
1456 # pkg-config, we should set the Requires.private value in libpcap.pc
1457 # to include its package name, openssl, otherwise we should add the
1461 # it doesn't appear to be documented as doing so; therefore, we don't
1462 # assume that, if we got here, we have pkg-config.
1464 # So we use pkg_get_link_info() to run pkg-config ourselves, both
1468 # it wouldn't be what we want anyway.
1477 # best we can do. XXX - need list of -l and -L flags to add....
1493 # (See comment above on why we use that.)
1622 # First, check whether we're building with OpenSSL.
1629 …message(WARNING "We're assuming the OpenSSL libraries are 64-bit only, so we're not compiling for …
1632 # Now, check whether we *can* build for i386.
1650 # We can't build fat; suggest that the user install the
1688 # If we're building with libssl, make sure
1689 # we can build fat with it (i.e., that it
1690 # was built fat); if we can't, don't set
1692 # build for the host we're on.
1702 # We must test whether this compiles and links, so
1706 # to be the real function to call, so we have to
1767 # We add the character set conversion routines; they're Windows-only
1770 # We assume we don't have asprintf(), and provide an implementation
1792 # which we need to link libpcap, if any.
1803 # Check whether we have packet.dll.
1807 # We have packet.dll.
1813 # We don't have any capture type we know about.
1834 # Figure out what type of packet capture mechanism we have, and
1835 # what libraries we'd need to link libpcap with, if any.
1856 # We need:
1866 # sys/ioctl.h and, if we have it, sys/ioccom.h,
1897 # Check this before DLPI, so that we pick BPF on
1943 # We don't have any capture type we know about.
1994 # not include /lib, we add it explicitly here.
2021 # so we use check_type_size() and ignore the size.
2029 # Do we have the wireless extensions?
2035 # Do we have libnl?
2036 # We only want version 3. Version 2 was, apparently,
2039 # these days, everybody's using version 3. We're
2062 # Yes, we have libnl 3.x.
2078 # Check whether we have the *BSD-style ioctls.
2083 # Check whether we have struct BPF_TIMEVAL.
2087 # so we use check_type_size() and ignore the size.
2102 # we assume we have the "any" device (that's a
2140 # Now figure out how we get a list of interfaces and addresses,
2141 # if we support capturing. Don't bother if we don't support
2146 # UN*X - figure out what type of interface list mechanism we
2149 # If the capture type is null, that means we can't capture,
2150 # so we can't open any capture devices, so we won't return
2160 # It's not in the libraries that, at this point, we've
2161 # found we need to link libpcap with.
2164 # as long as we're not linking with libxnet, check there.
2168 # so we need different variables.
2183 # We have "getifaddrs()"; make sure we have <ifaddrs.h>
2191 # We have the header, so we use "getifaddrs()" to
2197 # We don't have the header - give up.
2198 # XXX - we could also fall back on some other
2200 # problem so that we can at least try to figure
2203 # we can do on those systems.
2209 # Well, we don't have "getifaddrs()", at least not with the
2210 # libraries with which we've decided we need to link
2211 # libpcap with, so we have to use some other mechanism.
2214 # getifaddrs(), but in -lsocket, not in -lxnet, so we
2215 # won't find it if we link with -lxnet, which we want
2218 # For now, we use either the SIOCGIFCONF ioctl or the
2219 # SIOCGLIFCONF ioctl, preferring the latter if we have
2255 # Do we have a version of <linux/compiler.h> available?
2256 # If so, we might need it for <linux/usbdevice_fs.h>.
2344 # We call rte_eth_dev_count_avail(), and older versions of DPDK
2378 "We couldn't find DPDK with pkg-config. If you want DPDK support,
2414 # Yes, so we can also support Bluetooth monitor
2429 # We don't support D-Bus sniffing on macOS; see
2457 # Try to find this library, so we get its full path.
2499 # If not, we should only use pkg-config for it.
2519 # usable, we need to link with -libverbs.
2551 # Did we succeed?
2595 # Do we have the msg.h header?
2621 # Did we succeed?
2645 # Did we succeed?
2666 # Did we succeed?
2686 # We need to include ftmacros.h on some platforms, to make sure we
2691 # won't check the current directory, so we add the top-level
2692 # source directory to the list of include directories when we do
2709 # Check and add warning options if we have a .devel file.
2719 # front end and their code generator ("Clang/C2"), so we
2737 # In theory, we care whether somebody uses f() rather than
2740 # that appear to do that, so we squelch that warning.
2744 # Windows FD_SET() generates this, so we suppress it.
2750 # not, and Microsoft does that in its headers, so we squelch
2756 # we don't want warnings about that, either.
2760 # We do *not* care whether some function is, or isn't, going to be
2766 # We do *not* care whether we're adding padding bytes after
2771 # We do *not* care about every single place the compiler would
2772 # have inserted Spectre mitigation if only we had told it to
2774 # Bison-generated code that we don't control.
2787 # Microsoft's code generator. We currently treat them as if
2817 # Suppress some warnings we get with MSVC even without /Wall.
2821 # Yes, we have some functions that never return but that
2842 # XXX - we don't use ADD_COMPILER_EXPORT_FLAGS, because, as of CMake
3030 # If we're using BPF, we need libodm and libcfg, as
3031 # we use them to load the BPF module.
3089 # Make sure errno is thread-safe, in case we're called in
3090 # a multithreaded program. We don't guarantee that two
3126 # Add subdirectories after we've set various variables, so they pick up
3170 # in a Windows build - the symbol to define to indicate that we're
3172 # and thus that we're exporting functions defined in our public
3257 # If this is macOS and we've picked the default architectures on
3272 # If this is macOS and we've picked the default architectures on
3308 # If we haven't found an ln executable with MinGW, we don't try
3309 # generating and installing the man pages, so if we get here,
3310 # we've found that executable.
3473 # If this is a platform where we need to have the .pc file and
3476 # prefix /usr (meaning we're not installing a system library),
3479 # (We must check CMAKE_INSTALL_PREFIX, as the library directory
3486 # In AIX, do we have to do this?
3489 # which the program was linked are stored in the executable, so we
3493 # default, added to the run-time search path, so we don't need to
3503 # there's a GCC-compatible compiler and a vendor compiler, we need
3542 # For each section of the manual for which we have man pages
3545 # If this is MinGW, maybe we have a UN*X-style ln command and
3546 # maybe we don't. (No, we do *NOT* require MSYS!) If we don't