qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2] configure: avoid basename usage message


From: Scott Wood
Subject: [Qemu-devel] [PATCH v2] configure: avoid basename usage message
Date: Fri, 8 Apr 2011 14:15:50 -0500
User-agent: Mutt/1.5.20 (2009-06-14)

basename prints a missing-argument error when sdlconfig is empty
and we're cross-compiling.

Signed-off-by: Scott Wood <address@hidden>
---
v2: quote the input to basename rather than introduce an extra test,
as suggested by Stefan.

 configure |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/configure b/configure
index ae97e11..2bb3faa 100755
--- a/configure
+++ b/configure
@@ -1233,7 +1233,7 @@ else
   fi
   sdl=no
 fi
-if test -n "$cross_prefix" && test "`basename $sdlconfig`" = sdl-config; then
+if test -n "$cross_prefix" && test "$(basename "$sdlconfig")" = sdl-config; 
then
   echo warning: using "\"$sdlconfig\"" to detect cross-compiled sdl >&2
 fi
 
-- 
1.7.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]