--- configure.orig	Wed Nov 17 12:58:47 1999
+++ configure	Wed Nov 17 14:55:55 1999
@@ -2556,14 +2556,14 @@
 	fi
 
 					TERMLIB=
-		echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6
-echo "configure:2561: checking for tgetent in -lncurses" >&5
-ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'`
+                echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6
+echo "configure:2561: checking for tgetent in -lcurses" >&5
+ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lncurses  $LIBS"
+LIBS="-lcurses  $LIBS"
 cat > conftest.$ac_ext <<EOF
 #line 2569 "configure"
 #include "confdefs.h"
@@ -2591,7 +2591,7 @@
 fi
 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
   echo "$ac_t""yes" 1>&6
-  TERMLIB="$TERMLIB -lncurses"
+  TERMLIB="$TERMLIB -lcurses"
 else
   echo "$ac_t""no" 1>&6
 fi
@@ -3725,7 +3725,7 @@
 fi
 done
 
-for ac_hdr in ncurses.h ndir.h
+for ac_hdr in curses.h ndir.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
@@ -5950,10 +5950,10 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#if defined(SOLARIS)
+#if defined(HAVE_CURSES_H)
 #include <curses.h>
 #endif
-#ifdef HAVE_TERM_H
+#ifdef 0
 #include <term.h>
 #endif
 #ifdef HAVE_TERMIO_H
@@ -6043,13 +6043,13 @@
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#if defined(SOLARIS)
+#if defined(HAVE_CURSES_H)
 #include <curses.h>
 #endif
 #ifdef HAVE_TERM_H
 #include <term.h>
 #endif
-#ifdef HAVE_TERMIO_H
+#ifdef 0
 #include <termio.h>
 #endif
 #ifdef HAVE_TERMCAP_H
