summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2011-04-08 14:15:50 -0500
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-04-09 10:57:52 +0100
commit29e5badadffe2cc70a911a95e258d1fb01f2db71 (patch)
treefaf1d0cd372780cfec74066119fe94b4356d026a
parent72b310e99a5752d520af82d641c6cafa5b1058ea (diff)
downloadfocaccia-qemu-29e5badadffe2cc70a911a95e258d1fb01f2db71.tar.gz
focaccia-qemu-29e5badadffe2cc70a911a95e258d1fb01f2db71.zip
configure: avoid basename usage message
basename prints a missing-argument error when sdlconfig is empty
and we're cross-compiling.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index ae97e11a97..2bb3faa07e 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