Lines Matching +full:work +full:- +full:around

6 # lib subdirectories for pcap.dll (e.g WpdPack or npcap-sdk).
8 # (e.g cmake -DPCAP_ROOT=C:\path\to\pcap [...])
15 # libpcap isn't set up to install .pc files or pcap-config on Windows,
16 # and it's not clear that either of them would work without a lot
32 # The 64-bit Packet.lib is located under /x64
35 # For the WinPcap and Npcap SDKs, the Lib subdirectory of the top-level
36 # directory contains 32-bit libraries; the 64-bit libraries are in the
71 # because, if pkg-config isn't found, or it is but it has no .pc
73 # libpcap isn't available - not all systems ship pkg-config, and
81 # First, try pkg-config.
88 # CMake on some "long-term support" version, predating
96 # which is "Distributed under the OSI-approved BSD 3-Clause License."
106 # Save it, so we can restore it after we run pkg-config.
112 # Convert it to a CMake-style path, before we add additional
185 # That didn't work. Try pcap-config.
187 find_program(PCAP_CONFIG pcap-config)
190 # We have pcap-config; use it.
193 message(STATUS "Found pcap-config")
197 # If this is a vendor-supplied pcap-config, which we define as
198 # being "a pcap-config in /usr/bin or /usr/ccs/bin" (the latter
200 # Work around them.
202 if("${PCAP_CONFIG}" STREQUAL /usr/bin/pcap-config OR
203 "${PCAP_CONFIG}" STREQUAL /usr/ccs/bin/pcap-config)
205 # It's vendor-supplied.
209 # This is macOS or another Darwin-based OS.
211 # That means that /usr/bin/pcap-config it may provide
212 # -I/usr/local/include with --cflags and -L/usr/local/lib
213 # with --libs; if there's no pcap installed under /usr/local,
219 elseif(CMAKE_SYSTEM_NAME STREQUAL "SunOS" AND CMAKE_SYSTEM_VERSION MATCHES "5[.][0-9.]*")
223 # At least on Solaris 11; there's /usr/bin/pcap-config, which
224 # reports -L/usr/lib with --libs, causing the 32-bit libraries
225 # to be found, and there's /usr/bin/{64bitarch}/pcap-config,
226 # where {64bitarch} is a name for the 64-bit version of the
227 # instruction set, which reports -L /usr/lib/{64bitarch},
228 # causing the 64-bit libraries to be found.
230 # So if we're building 64-bit targets, we replace PCAP_CONFIG
232 # output of "isainfo -n".
235 execute_process(COMMAND "isainfo" "-n"
242 # Success - change PCAP_CONFIG.
253 execute_process(COMMAND "${PCAP_CONFIG}" "--cflags"
259 message(FATAL_ERROR "pcap-config --cflags failed")
264 if(_arg MATCHES "^-I")
266 # Extract the directory by removing the -I.
268 string(REGEX REPLACE "-I" "" _dir ${_arg})
270 # Work around macOS (and probably other Darwin) brokenness,
272 # Apple pcap-config.
285 execute_process(COMMAND "${PCAP_CONFIG}" "--libs"
291 message(FATAL_ERROR "pcap-config --libs failed")
297 if(_arg MATCHES "^-L")
299 # Extract the directory by removing the -L.
301 string(REGEX REPLACE "-L" "" _dir ${_arg})
303 # Work around macOS (and probably other Darwin) brokenness,
305 # Apple pcap-config.
312 elseif(_arg MATCHES "^-l")
313 string(REGEX REPLACE "-l" "" _lib ${_arg})
321 execute_process(COMMAND "${PCAP_CONFIG}" "--libs" "--static"
326 message(FATAL_ERROR "pcap-config --libs --static failed")
332 if(_arg MATCHES "^-L")
334 # Extract the directory by removing the -L.
336 string(REGEX REPLACE "-L" "" _dir ${_arg})
338 # Work around macOS (and probably other Darwin) brokenness,
340 # Apple pcap-config.
347 elseif(_arg MATCHES "^-l")
348 string(REGEX REPLACE "-l" "" _lib ${_arg})
366 # If CONFIG_PCAP_FOUND is set, we have information from pkg-config and
367 # pcap-config; we need to convert library names to library full paths.
411 # We found libpcap using pkg-config or pcap-config.
416 # We didn't have pkg-config, or we did but it didn't have .pc files
417 # for libpcap, and we don't have pkg-config, so we have to look for
433 # Try to find the static library (XXX - what about AIX?)