]> The Tcpdump Group git mirrors - tcpdump/commitdiff
"if ! {command}" works in the Almquist shell (as used by FreeBSD), and
authorguy <guy>
Thu, 1 May 2003 21:20:52 +0000 (21:20 +0000)
committerguy <guy>
Thu, 1 May 2003 21:20:52 +0000 (21:20 +0000)
is also documented to work in Bash, but is not documented to work in the
real Bourne shell, and doesn't appear to work in the real Bourne shell.
Don't use it.

aclocal.m4
configure

index 9109877bc448fc71af9787cb5adbffe30d0980d5..64a3aac90064e591e90efe94bad93176651d5357 100644 (file)
@@ -1,4 +1,4 @@
-dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.95 2003-03-28 08:36:35 guy Exp $ (LBL)
+dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.96 2003-05-01 21:20:52 guy Exp $ (LBL)
 dnl
 dnl Copyright (c) 1995, 1996, 1997, 1998
 dnl    The Regents of the University of California.  All rights reserved.
@@ -273,8 +273,8 @@ AC_DEFUN(AC_LBL_LIBPCAP,
            dnl if so, add that subdirectory to the "-I" list.
            dnl
            AC_MSG_CHECKING(for extraneous pcap header directories)
-           if ! test \( -r /usr/local/include/pcap.h -o \
-                        -r /usr/include/pcap.h \); then
+           if test \( ! -r /usr/local/include/pcap.h \) -a \
+                       \( ! -r /usr/include/pcap.h \); then
                if test -r /usr/local/include/pcap/pcap.h; then
                    d="/usr/local/include/pcap"
                elif test -r /usr/include/pcap/pcap.h; then
index 61cddd701059bfbcf635af680e341e7b20dda877..f5897df82dae71b6c49137ee42191897e5fe57e1 100755 (executable)
--- a/configure
+++ b/configure
@@ -3921,8 +3921,8 @@ fi
            fi
                                                                                                                                    echo $ac_n "checking for extraneous pcap header directories""... $ac_c" 1>&6
 echo "configure:3924: checking for extraneous pcap header directories" >&5
-           if ! test \( -r /usr/local/include/pcap.h -o \
-                        -r /usr/include/pcap.h \); then
+           if test \( ! -r /usr/local/include/pcap.h \) -a \
+                       \( ! -r /usr/include/pcap.h \); then
                if test -r /usr/local/include/pcap/pcap.h; then
                    d="/usr/local/include/pcap"
                elif test -r /usr/include/pcap/pcap.h; then