* configure.in: Fix curses detection on solaris. Patch by David Adam. svn path=/trunk/; revision=2382