$OpenBSD: patch-configure,v 1.6 2014/12/14 10:43:19 dcoppa Exp $

/usr/lib/libreadline.so.4.0: undefined reference to `tgetnum'
/usr/lib/libreadline.so.4.0: undefined reference to `tgoto'
/usr/lib/libreadline.so.4.0: undefined reference to `tgetflag'
/usr/lib/libreadline.so.4.0: undefined reference to `tputs'
/usr/lib/libreadline.so.4.0: undefined reference to `tgetent'
/usr/lib/libreadline.so.4.0: undefined reference to `tgetstr'
collect2: error: ld returned 1 exit status

--- configure.orig	Sat Dec 13 12:05:55 2014
+++ configure	Sun Dec 14 04:30:53 2014
@@ -16311,7 +16311,7 @@ if ${ac_cv_lib_readline_rl_initialize+:} false; then :
   $as_echo_n "(cached) " >&6
 else
   ac_check_lib_save_LIBS=$LIBS
-LIBS="-lreadline  $LIBS"
+LIBS="-lreadline -lncursesw $LIBS"
 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
 /* end confdefs.h.  */
 
