Michael ABBOTT reported that Ubuntu had problems running menuconfig.
author"Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jul 22 09:16:07 2008 +0000 (2008-07-22)
changeset 706607277e3cdab
parent 705 4d3d1e85e7d7
child 707 54a54765e827
Michael ABBOTT reported that Ubuntu had problems running menuconfig.
Turned out that a POSIX script shell was in fact not POSIX: == does not check for equality, -eq does.

/trunk/kconfig/lxdialog/check-lxdialog.sh | 4 2 2 0 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
kconfig/lxdialog/check-lxdialog.sh
     1.1 --- a/kconfig/lxdialog/check-lxdialog.sh	Sun Jul 20 17:20:45 2008 +0000
     1.2 +++ b/kconfig/lxdialog/check-lxdialog.sh	Tue Jul 22 09:16:07 2008 +0000
     1.3 @@ -43,7 +43,7 @@
     1.4  # Check if we can link to ncurses
     1.5  check() {
     1.6  	echo "main() {}" | $cc -xc - -o $tmp 2> /dev/null
     1.7 -	if [ $? != 0 ]; then
     1.8 +	if [ $? -ne 0 ]; then
     1.9  		echo " *** Unable to find the ncurses libraries."          1>&2
    1.10  		echo " *** make menuconfig require the ncurses libraries"  1>&2
    1.11  		echo " *** "                                               1>&2
    1.12 @@ -57,7 +57,7 @@
    1.13  	printf "Usage: $0 [-check compiler options|-header|-library]\n"
    1.14  }
    1.15  
    1.16 -if [ $# == 0 ]; then
    1.17 +if [ $# -eq 0 ]; then
    1.18  	usage
    1.19  	exit 1
    1.20  fi