--- netkit-ftp-0.17/configure~ 2002-06-30 22:43:06 +0400 +++ netkit-ftp-0.17/configure 2002-06-30 22:52:07 +0400 @@ -229,36 +229,6 @@ ################################################## -echo -n 'Checking for ncurses... ' -cat <__conftest.c -#include -#include -#ifndef KEY_DOWN -syntax error. /* not ncurses */ -#endif -int main() { - endwin(); - return 0; -} - -EOF -if ( - $CC $CFLAGS __conftest.c -lncurses -o __conftest || exit 1 - ) >/dev/null 2>&1; then - echo 'yes' - NCURSES=1 -else - if ( - $CC $CFLAGS -I/usr/include/ncurses __conftest.c -lncurses -o __conftest || exit 1 - ) >/dev/null 2>&1; then - echo '-I/usr/include/ncurses' - CFLAGS="$CFLAGS -I/usr/include/ncurses" - NCURSES=1 - else - echo 'no' - fi -fi - if [ x$NCURSES != x ]; then LIBTERMCAP=-lncurses else @@ -272,6 +242,11 @@ EOF if ( + $CC $CFLAGS __conftest.c -ltinfo -o __conftest || exit 1 + ) >/dev/null 2>&1; then + echo '-ltinfo' + LIBTERMCAP=-ltinfo + elif ( $CC $CFLAGS __conftest.c -ltermcap -o __conftest || exit 1 ) >/dev/null 2>&1; then echo '-ltermcap'