On Solaris 10 /usr/bin/grep does not implement the -q flag:
checking for pcap-config... ../libpcap/pcap-config
grep: illegal option -- q
Usage: grep -hblcnsviw pattern file . . .
checking for pcap_loop... yes
Follow recommendation of the "Limitations of Usual Tools" section of GNU
Autoconf manual and use output redirection to fix it:
checking for pcap-config... ../libpcap/pcap-config
checking for pcap_loop... yes
libc (and document Solaris 9 as unsupported because of that).
Autoconf: Remove detection of early IPv6 stacks.
Detect OS IPv6 support using AF_INET6 only.
+ Fix --static-pcap-only test on Solaris 10.
DayOfTheWeek, Month DD, YYYY / The Tcpdump Group
Summary for 4.99.4 tcpdump release (so far!)
# statically linked, and provide only the direct
# dependencies with --static-pcap-only.
#
- if grep -s -q "static-pcap-only" "$PCAP_CONFIG"
+ if grep "static-pcap-only" "$PCAP_CONFIG" >/dev/null 2>&1
then
static_opt="--static-pcap-only"
else