• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching +full:- +full:wdeclaration +full:- +full:after +full:- +full:statement

18 # At minimum, we want C++/C99-style // comments.
25 # ourselves on pre-3.1 CMake, so we just do it ourselves on all versions
39 # We don't worry about MSVC; it doesn't have such a flag - either it
43 # XXX - this just tests whether the option works and adds it if it does.
52 string(REPLACE "=" "-" _temp_option_variable ${_option})
53 string(REGEX REPLACE "^-" "" _option_variable ${_temp_option_variable})
63 check_and_add_compiler_option("-std=gnu99")
67 # so we use -qlanglvl=extc99.
69 check_and_add_compiler_option("-qlanglvl=extc99")
71 check_and_add_compiler_option("-AC99")
73 check_and_add_compiler_option("-xc99")
75 check_and_add_compiler_option("-c99")
79 # Build all runtimes in the top-level binary directory; that way,
94 # kernel-mode code to support capturing.
146 string(REGEX MATCH "^([0-9]+)" SYSTEM_VERSION_MAJOR "${CMAKE_SYSTEM_VERSION}")
150 # Pre-Tiger. Build only for 32-bit PowerPC.
160 string(REGEX MATCH "^([0-9]+)" SYSTEM_VERSION_MINOR "${SYSTEM_MINOR_AND_PATCH_VERSION}")
163 # Prior to Intel support. Build for 32-bit
164 # PowerPC and 64-bit PowerPC, with 32-bit PowerPC
170 # With Intel support but prior to x86-64 support.
171 # Build for 32-bit PowerPC, 64-bit PowerPC, and x86,
172 # with 32-bit PowerPC first.
178 # With Intel support including x86-64 support.
179 # Build for 32-bit PowerPC, 64-bit PowerPC, x86,
180 # and x86-64, with 32-bit PowerPC first.
187 # Leopard. Build for 32-bit PowerPC, 64-bit
188 # PowerPC, x86, and x86-64, with 32-bit PowerPC
194 # Snow Leopard. Build for x86-64, x86, and
195 # 32-bit PowerPC, with x86-64 first. (That's
205 # Post-Snow Leopard. Build for x86-64 and
206 # x86, with x86-64 first. (That's probably what
208 # XXX - update if and when Apple drops support
209 # for 32-bit x86 code.
222 # We don't support D-Bus sniffing on macOS; see
227 option(DISABLE_DBUS "Disable D-Bus sniffing support" ON)
229 option(DISABLE_DBUS "Disable D-Bus sniffing support" OFF)
262 string(REGEX MATCH "^([0-9]+)" PACKAGE_VERSION_MAJOR "${PACKAGE_VERSION}")
265 string(REGEX MATCH "^([0-9]+.)?([0-9]+.)?([0-9]+)" PACKAGE_VERSION_NOSUFFIX "${PACKAGE_VERSION}")
283 add_definitions(-DHAVE_CONFIG_H)
316 add_definitions(-D__STDC__)
317 add_definitions(-D_CRT_SECURE_NO_WARNINGS)
331 set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc")
353 add_definitions(-DYY_NO_UNISTD_H)
407 # and getaddrinfo()/getnameinfo()-ish functions. We now require
422 # We use getaddrinfo() because we want a portable thread-safe way
484 # Yes - link with it as well.
490 # DLPI needs putmsg under HPUX so test for -lstr while we're at it
504 # thread-specific data on many platforms, but doesn't use it on
569 # thread-specific data on many platforms, but doesn't use it on
632 # XXX - there's no check_type() macro that's like check_type_size()
671 # in one of those libraries. That means we have to do this after
698 # Yes - we have it declared.
707 # No - how about <netinet/ether.h>, as on Linux?
715 # Yes - we have it declared.
725 # No - how about <sys/ethernet.h>, as on Solaris 10 and later?
733 # Yes - we have it declared.
751 # Yes - we have it declared.
773 # Yes - we have it declared.
779 # After all that, is ether_hostton() declared?
786 # XXX - there's no check_type() macro that's like check_type_size()
860 pcap-common.c
863 sf-pcapng.c
864 sf-pcap.c
879 # Determine the main pcap-XXX.c file to use, and the libraries with
927 # I.e., is it a header for an LBL/BSD-style capture
938 # requires that various BSD-style integer types
997 # Pre-SunOS 4.x non-STREAMS NIT.
1007 # DLPI on pre-Solaris 11 SunOS 5, HP-UX, possibly others.
1021 # Do capture-mechanism-dependent tests.
1036 # Needed for common functions used by pcap-[dlpi,libdlpi].c
1051 # Due to a gcc bug, the default search path for 32-bit libraries does
1055 # libdlpi will have to add "-L/lib" option to "configure".
1058 set(CMAKE_REQUIRED_FLAGS "-L/lib")
1064 # XXX - add -L/lib
1074 # XXX - there's no check_type() macro that's like check_type_size()
1097 set(CMAKE_REQUIRED_LIBRARIES nl-3)
1104 set(PCAP_LINK_LIBRARIES nl-genl-3 nl-3 ${PCAP_LINK_LIBRARIES})
1121 set(PCAP_LINK_LIBRARIES nl-genl nl ${PCAP_LINK_LIBRARIES})
1144 # If so then pcap-linux.c can use this to report proper statistics.
1146 # XXX - there's no check_type() macro that's like check_type_size()
1158 # Check whether we have the *BSD-style ioctls.
1165 # XXX - there's no check_type() macro that's like check_type_size()
1184 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-${PCAP_TYPE}.c)
1193 # UN*X - figure out what type of interface list mechanism we
1241 # We don't have the header - give up.
1242 # XXX - we could also fall back on some other
1258 # getifaddrs(), but in -lsocket, not in -lxnet, so we
1259 # won't find it if we link with -lxnet, which we want
1267 # avoids a not-all-that-useful middleman.)
1276 message(STATUS "Find-interfaces mechanism type: ${FINDALLDEVS_TYPE}")
1277 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} fad-${FINDALLDEVS_TYPE}.c)
1295 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-usb-linux.c)
1304 # Yes - include it when testing for <linux/usbdevice_fs.h>.
1355 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-netfilter-linux.c)
1364 # is defined, for example, as it includes a non-existent malloc.h
1379 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-netmap.c)
1389 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-bt-linux.c)
1416 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-bt-monitor-linux.c)
1426 # We don't support D-Bus sniffing on macOS; see
1431 …message(FATAL_ERROR "Due to freedesktop.org bug 74029, D-Bus capture support is not available on m…
1434 pkg_check_modules(DBUS dbus-1)
1437 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-dbus.c)
1451 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-rdmasniff.c)
1459 # Check for sniffing capabilities using third-party APIs.
1489 include_directories(AFTER ${DAG_INCLUDE_DIRS})
1490 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-dag.c)
1519 include_directories(AFTER ${SEPTEL_INCLUDE_DIRS})
1520 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-septel.c)
1540 include_directories(AFTER ${SNF_INCLUDE_DIRS})
1541 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-snf.c)
1561 include_directories(AFTER ${TC_INCLUDE_DIRS})
1562 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} pcap-tc.c)
1577 # which has those members, rather than the backwards-compatible
1580 # won't check the current directory, so we add the top-level
1590 pcap-new.c pcap-rpcap.c rpcap-protocol.c sockutils.c)
1611 check_and_add_compiler_option(-Wall)
1624 check_and_add_compiler_option(-wd4100)
1631 check_and_add_compiler_option(-wd4255)
1635 check_and_add_compiler_option(-wd4548)
1642 check_and_add_compiler_option(-wd4574)
1644 # The Windows headers also test not-defined values in #if, so
1647 check_and_add_compiler_option(-wd4668)
1652 check_and_add_compiler_option(-wd4710)
1653 check_and_add_compiler_option(-wd4711)
1655 # We do *not* care whether we're adding padding bytes after
1658 check_and_add_compiler_option(-wd4820)
1663 # they might support GCC-style -W options.
1665 check_and_add_compiler_option(-Wall)
1666 check_and_add_compiler_option(-Wsign-compare)
1667 check_and_add_compiler_option(-Wmissing-prototypes)
1668 check_and_add_compiler_option(-Wstrict-prototypes)
1669 check_and_add_compiler_option(-Wshadow)
1670 check_and_add_compiler_option(-Wdeclaration-after-statement)
1671 check_and_add_compiler_option(-Wused-but-marked-unused)
1672 check_and_add_compiler_option(-Wdocumentation)
1673 check_and_add_compiler_option(-Wcomma)
1674 check_and_add_compiler_option(-Wmissing-noreturn)
1676 # check_and_add_compiler_option(-Wcovered-switch-default)
1677 check_and_add_compiler_option(-Wmissing-variable-declarations)
1678 check_and_add_compiler_option(-Wunused-parameter)
1679 check_and_add_compiler_option(-Wformat-nonliteral)
1680 check_and_add_compiler_option(-Wunreachable-code)
1690 # have a non-void return type. That's because, on some
1695 check_and_add_compiler_option(-wd4646)
1710 # XXX - we don't use ADD_COMPILER_EXPORT_FLAGS, because, as of CMake
1721 check_and_add_compiler_option(-xldscope=hidden)
1728 check_and_add_compiler_option(-fvisibility=hidden)
1742 if(LEX_EXECUTABLE STREQUAL "LEX_EXECUTABLE-NOTFOUND")
1750 …COMMAND ${LEX_EXECUTABLE} -P pcap_ --header-file=scanner.h --nounput -o${CMAKE_CURRENT_BINARY_DIR}…
1774 if(YACC_EXECUTABLE STREQUAL "YACC_EXECUTABLE-NOTFOUND")
1786 set(YACC_COMPATIBILITY_FLAG "-y")
1791 …MAND ${YACC_EXECUTABLE} ${YACC_COMPATIBILITY_FLAG} -p pcap_ -o ${CMAKE_CURRENT_BINARY_DIR}/grammar…
1828 elseif(CMAKE_SYSTEM_NAME STREQUAL "HP-UX")
1829 if(CMAKE_SYSTEM_VERSION MATCHES "[A-Z.]*9\.[0-9]*")
1831 # HP-UX 9.x.
1834 elseif(CMAKE_SYSTEM_VERSION MATCHES "[A-Z.]*10\.0")
1836 # HP-UX 10.0.
1838 elseif(CMAKE_SYSTEM_VERSION MATCHES "[A-Z.]*10\.1")
1840 # HP-UX 10.1.
1844 # HP-UX 10.20 and later.
1872 elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.][0-9.]*")
1878 # Make sure errno is thread-safe, in case we're called in
1883 # is thread-safe (it wasn't thread-safe in some older versions).
1885 add_definitions(-D_TS_ERRNO)
1903 # Add pcap-dll.rc to the list of sources.
1905 set(PROJECT_SOURCE_LIST_C ${PROJECT_SOURCE_LIST_C} ${pcap_SOURCE_DIR}/pcap-dll.rc)
1909 # Add subdirectories after we've set various variables, so they pick up
1926 # http://public.kitware.com/pipermail/cmake/2013-August/055510.html
2046 set(LINK_COMMAND "\"${LINK_EXECUTABLE}\" \"-s\" \"${SOURCE}\" \"${TARGET}\"")
2051 … set(LINK_COMMAND "\"${CMAKE_COMMAND}\" \"-E\" \"create_symlink\" \"${SOURCE}\" \"${TARGET}\"")
2057 COMMAND \"${CMAKE_COMMAND}\" \"-E\" \"remove\" \"${TARGET}\"
2071 set(MAN1_NOEXPAND pcap-config.1)
2133 set(MANFILE_EXPAND pcap-savefile.manfile.in)
2135 pcap-filter.manmisc.in
2136 pcap-linktype.manmisc.in
2137 pcap-tstamp.manmisc.in
2147 # Install 64-bit code built with MSVC in the amd64 subdirectories,
2164 # Install 32-bit code, and 64-bit code not built with MSVC
2165 # in the top-level directories, as those are where they
2187 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcap-bpf.h DESTINATION include)
2188 install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/pcap-namedb.h DESTINATION include)
2191 # pcap-config and process man pages and arrange that they be installed.
2206 # or accepts command-line arguments like
2209 set(V_RPATH_OPT "-Wl,-rpath,")
2210 elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.][0-9.]*")
2214 # XXX - this assumes GCC is using the Sun linker,
2217 set(V_RPATH_OPT "-Wl,-R,")
2226 set(LIBS "${LIBS} -l${LIB}")
2228 configure_file(${CMAKE_SOURCE_DIR}/pcap-config.in ${CMAKE_CURRENT_BINARY_DIR}/pcap-config @ONLY)
2230 install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/pcap-config DESTINATION bin)
2296 COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake)