Re: [PATCH 01/11] kconfig: factor out ncurses check in a shell script

From: Jan Engelhardt
Date: Wed Jan 11 2006 - 13:10:38 EST


>+ echo "main() {}" | $compiler -lncursesw -xc - 2> /dev/null
>+ if [ $? -eq 0 ]; then
>+ echo '-lncursesw'
>+ exit
>+ fi
>+ echo "main() {}" | $compiler -lncurses -xc - 2> /dev/null
>+ if [ $? -eq 0 ]; then
> echo '-lncurses'
>+ exit
>+ fi
>+ echo "main() {}" | $compiler -lcurses -xc - 2> /dev/null
>+ if [ $? -eq 0 ]; then
>+ echo '-lcurses'
>+ exit
> fi
>+ exit 1


You forget to remove a.out, or whatever the compiler produces. I suggest
$compiler -o /dev/null




Jan Engelhardt
--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/