We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a3d448 commit 786eacaCopy full SHA for 786eaca
aclocal.m4
@@ -658,7 +658,14 @@ AC_DEFUN(AC_LBL_LIBPCAP,
658
# dependencies with --static-pcap-only.
659
#
660
AC_MSG_CHECKING([whether $PCAP_CONFIG supports --static-pcap-only])
661
- if grep -s -q "static-pcap-only" "$PCAP_CONFIG"
+ #
662
+ # On Solaris 10, only /usr/xpg4/bin/grep supports the -s and
663
+ # -q flags, so we silence it by sending the standard output
664
+ # and error to /dev/null. The autoconf documentation
665
+ # recmmends avoiding those options in favor of redirecting
666
+ # to /dev/null.
667
668
+ if grep "static-pcap-only" "$PCAP_CONFIG" >/dev/null 2>&1
669
then
670
AC_MSG_RESULT([yes])
671
static_opt="--static-pcap-only"
0 commit comments