From 69d070984f9d953211127de3a1e52dadcfff5de5 Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 29 Jun 2002 04:21:09 +0000 Subject: [PATCH] Put variables in quotes when testing them in "test" commands, so that the test doesn't get a syntax error if the variable isn't set or is set to a null string. --- aclocal.m4 | 8 ++++---- configure | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/aclocal.m4 b/aclocal.m4 index 9073012..83cbb61 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,4 +1,4 @@ -dnl @(#) $Header: /tcpdump/master/libpcap/aclocal.m4,v 1.76 2002-06-28 10:34:35 guy Exp $ (LBL) +dnl @(#) $Header: /tcpdump/master/libpcap/aclocal.m4,v 1.77 2002-06-29 04:21:09 guy Exp $ (LBL) dnl dnl Copyright (c) 1995, 1996, 1997, 1998 dnl The Regents of the University of California. All rights reserved. @@ -188,14 +188,14 @@ AC_DEFUN(AC_LBL_C_INLINE, return &xxx; }],ac_lbl_cc_inline=yes,) - if test $ac_lbl_cc_inline = yes ; then + if test "$ac_lbl_cc_inline" = yes ; then break; fi done - if test $ac_lbl_cc_inline = yes ; then + if test "$ac_lbl_cc_inline" = yes ; then ac_cv_lbl_inline=$i fi]) - if test ! -z $ac_cv_lbl_inline ; then + if test ! -z "$ac_cv_lbl_inline" ; then AC_MSG_RESULT($ac_cv_lbl_inline) else AC_MSG_RESULT(not supported) diff --git a/configure b/configure index 2803a4a..b7e8a03 100755 --- a/configure +++ b/configure @@ -1165,16 +1165,16 @@ else cat conftest.$ac_ext >&5 fi rm -f conftest* - if test $ac_lbl_cc_inline = yes ; then + if test "$ac_lbl_cc_inline" = yes ; then break; fi done - if test $ac_lbl_cc_inline = yes ; then + if test "$ac_lbl_cc_inline" = yes ; then ac_cv_lbl_inline=$i fi fi - if test ! -z $ac_cv_lbl_inline ; then + if test ! -z "$ac_cv_lbl_inline" ; then echo "$ac_t""$ac_cv_lbl_inline" 1>&6 else echo "$ac_t""not supported" 1>&6