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.
This commit is contained in:
parent
f6bcb3d546
commit
69d070984f
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in New Issue