$OpenBSD: patch-configure_ac,v 1.3 2015/07/02 20:50:21 sthen Exp $
--- configure.ac.orig	Wed Jul  1 20:41:01 2015
+++ configure.ac	Thu Jul  2 05:35:21 2015
@@ -16,11 +16,11 @@ AM_PROG_CC_C_O
 if [ test "$GCC" = "yes" ];then
 	CFLAGS="$CFLAGS -Wall"
 fi
-AC_PATH_PROG(CTAGS, ctags, /bin/true)
-AC_PATH_PROG(CSCOPE, cscope, /bin/true)
-AC_CHECK_PROG([AUTOGEN], [autogen], [autogen], [/bin/true])
+AC_PATH_PROG(CTAGS, ctags, /usr/bin/true)
+AC_PATH_PROG(CSCOPE, cscope, /usr/bin/true)
+AC_CHECK_PROG([AUTOGEN], [autogen], [autogen], [/usr/bin/true])
 
-if test x"$AUTOGEN" = "x/bin/true"; then
+if test x"$AUTOGEN" = "x/usr/bin/true"; then
 	AC_MSG_WARN([[
 ***
 *** autogen not found. Will not link against libopts.
@@ -124,7 +124,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
@@ -441,7 +441,7 @@ if test "$NEED_LIBOPTS_DIR" = "true";then
 			cp -f $i $nam
 		fi
 	done
-	AC_SUBST([AUTOGEN], [/bin/true])
+	AC_SUBST([AUTOGEN], [/usr/bin/true])
 	enable_local_libopts=yes
 else
 	enable_local_libopts=no
