$OpenBSD: patch-configure_ac,v 1.6 2016/09/23 09:00:11 sthen Exp $
--- configure.ac.orig	Thu Sep 22 16:55:54 2016
+++ configure.ac	Fri Sep 23 09:58:13 2016
@@ -140,7 +140,7 @@ if test "$test_for_libnl" = yes;then
 fi
 
 have_readline=no
-AC_LIB_HAVE_LINKFLAGS(readline,, [
+AC_LIB_HAVE_LINKFLAGS(readline,ncurses, [
 #include <stdio.h>
 #include <readline/readline.h>], [rl_replace_line(0,0);])
   if test x$ac_cv_libreadline = xyes; then
