basename prints a missing-argument error when sdlconfig is empty and we're cross-compiling.
Signed-off-by: Scott Wood <scottw...@freescale.com> --- configure | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/configure b/configure index ae97e11..c5b85fe 100755 --- a/configure +++ b/configure @@ -1233,7 +1233,8 @@ else fi sdl=no fi -if test -n "$cross_prefix" && test "`basename $sdlconfig`" = sdl-config; then +if test -n "$cross_prefix" -a -n "$sdlconfig" && \ + test "`basename $sdlconfig`" = sdl-config; then echo warning: using "\"$sdlconfig\"" to detect cross-compiled sdl >&2 fi -- 1.7.1