configure: work around bug in ash shell
authorMans Rullgard <mans@mansr.com>
Fri, 12 Oct 2012 21:40:07 +0000 (21:40 +0000)
committerMans Rullgard <mans@mansr.com>
Sat, 13 Oct 2012 13:05:55 +0000 (14:05 +0100)
The ash 'test' builtin misbehaves if the first operand of a binary
operator looks like a unary operator.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index 26cd7ea73ab355e4e6964996f1570e4b9f57651b..22becbff01ed0f36ac8cbd0d60b4c040b6bff42b 100755 (executable)
--- a/configure
+++ b/configure
@@ -593,7 +593,7 @@ print_config(){
 }
 
 print_enabled(){
-    test "$1" = -n && end=" " && shift || end="\n"
+    test x"$1" = x-n && end=" " && shift || end="\n"
     suf=$1
     shift
     for v; do