configure.in: - Added separate check for resizeterm()


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@537 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
diff --git a/nano.c b/nano.c
index efe4b11..542006f 100644
--- a/nano.c
+++ b/nano.c
@@ -1585,7 +1585,7 @@
     memset(hblank, ' ', COLS);
     hblank[COLS] = 0;
 
-#ifdef HAVE_NCURSES_H
+#ifdef HAVE_RESIZETERM
     resizeterm(LINES, COLS);
 #ifdef HAVE_WRESIZE
     if (wresize(topwin, 2, COLS) == ERR)
@@ -1601,7 +1601,7 @@
     if (mvwin(bottomwin, LINES - 3 + no_help(), 0) == ERR)
 	die(_("Cannot move bottom win"));
 #endif				/* HAVE_WRESIZE */
-#endif				/* HAVE_NCURSES_H */
+#endif				/* HAVE_RESIZETERM */
 
     fix_editbot();