--- configure.orig	2009-06-21 01:35:46.000000000 +0300
+++ configure	2009-06-24 10:40:13.000000000 +0300
@@ -21565,7 +21565,7 @@
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpanelw  $LIBS"
+LIBS="-lpanelw -lncurses $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -21625,7 +21625,7 @@
 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_panelw_update_panels" >&5
 $as_echo "$ac_cv_lib_panelw_update_panels" >&6; }
 if test "x$ac_cv_lib_panelw_update_panels" = x""yes; then
-  GNT_LIBS="$GNT_LIBS -lpanelw"
+  GNT_LIBS="$GNT_LIBS -lpanelw -lncurses"
 else
   enable_consoleui=no
 fi
@@ -21934,7 +21934,7 @@
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpanel  $LIBS"
+LIBS="-lpanel -lncurses $LIBS"
 cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
@@ -21994,7 +21994,7 @@
 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_panel_update_panels" >&5
 $as_echo "$ac_cv_lib_panel_update_panels" >&6; }
 if test "x$ac_cv_lib_panel_update_panels" = x""yes; then
-  GNT_LIBS="$GNT_LIBS -lpanel"
+  GNT_LIBS="$GNT_LIBS -lpanel -lncurses"
 else
   enable_consoleui=no
 fi
