From: Wei Liu Date: Tue, 2 Jun 2020 09:01:38 +0000 (+0100) Subject: ] m4: use test instead of [] X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~110 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e181db8ba4e0797b8f9b55996adfa71ffb5b4081;p=xen.git ] m4: use test instead of [] It is reported that [] was removed by autoconf, which caused the following error: ./configure: line 4681: -z: command not found Switch to test. That's what is used throughout our configure scripts. Also put the variable expansion in quotes. Signed-off-by: Wei Liu Reported-by: Bertrand Marquis Fixes: 8a6b1665d987 ("configure: also add EXTRA_PREFIX to {CPP/LD}FLAGS") Signed-off-by: Wei Liu Acked-by: Ian Jackson Release-acked-by: Paul Durrant Reviewed-by: Roger Pau Monné --- diff --git a/m4/set_cflags_ldflags.m4 b/m4/set_cflags_ldflags.m4 index 08f5c983cc..23706e256b 100644 --- a/m4/set_cflags_ldflags.m4 +++ b/m4/set_cflags_ldflags.m4 @@ -15,7 +15,7 @@ for ldflag in $APPEND_LIB do APPEND_LDFLAGS="$APPEND_LDFLAGS -L$ldflag" done -if [ ! -z $EXTRA_PREFIX ]; then +if test ! -z "$EXTRA_PREFIX" ; then CPPFLAGS="$CPPFLAGS -I$EXTRA_PREFIX/include" LDFLAGS="$LDFLAGS -L$EXTRA_PREFIX/lib" fi