From: guy Date: Fri, 2 May 2003 08:41:01 +0000 (+0000) Subject: Quote "$d" when testing it in "AC_LBL_LIBPCAP", so that if it's empty - X-Git-Tag: tcpdump-3.8-bp~157 X-Git-Url: https://git.tcpdump.org/tcpdump/commitdiff_plain/e49c5476b9fff1d0d6914e8d4b0c79284d84e50c?ds=sidebyside;hp=43bd16e9765c02f511857d7f539eeada018a5418 Quote "$d" when testing it in "AC_LBL_LIBPCAP", so that if it's empty - i.e., if no extraneous pcap header directory is found when using an installed libpcap - we don't die. --- diff --git a/aclocal.m4 b/aclocal.m4 index 64a3aac9..20d2effd 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.96 2003-05-01 21:20:52 guy Exp $ (LBL) +dnl @(#) $Header: /tcpdump/master/tcpdump/aclocal.m4,v 1.97 2003-05-02 08:41:01 guy Exp $ (LBL) dnl dnl Copyright (c) 1995, 1996, 1997, 1998 dnl The Regents of the University of California. All rights reserved. @@ -281,7 +281,7 @@ AC_DEFUN(AC_LBL_LIBPCAP, d="/usr/include/pcap" fi fi - if test -z $d ; then + if test -z "$d" ; then AC_MSG_RESULT(not found) else $2="-I$d $$2" diff --git a/configure b/configure index 728cccb9..54476792 100755 --- a/configure +++ b/configure @@ -3930,7 +3930,7 @@ echo "configure:3925: checking for extraneous pcap header directories" >&5 d="/usr/include/pcap" fi fi - if test -z $d ; then + if test -z "$d" ; then echo "$ac_t""not found" 1>&6 else V_INCLS="-I$d $V_INCLS"