$NetBSD: patch-configure,v 1.3 2015/05/20 13:26:45 ryoon Exp $

Look for history/readline at proper places.
--- configure.orig	2015-04-08 22:16:40.000000000 +0000
+++ configure
@@ -17567,7 +17567,7 @@ fi
 $as_echo_n "checking for history... " >&6; }
 
 
-SEARCHPATH=/usr
+SEARCHPATH=${prefix}
 NAME=history
 HEADER=readline/history.h
 LIBNAME=history
@@ -17903,7 +17903,7 @@ fi
 $as_echo_n "checking for readline... " >&6; }
 
 
-SEARCHPATH=/usr
+SEARCHPATH=${prefix}
 NAME=readline
 HEADER=readline/readline.h
 LIBNAME=readline
@@ -18511,7 +18511,7 @@ rm -f core conftest.err conftest.$ac_obj
 
 
 
-SEARCHPATH=/usr
+SEARCHPATH=${prefix}
 NAME=iconv
 HEADER=iconv.h
 LIBNAME=iconv
@@ -32389,7 +32389,7 @@ print "arch = "
 print CONFIG["arch"]
 print "\n"
 print "ruby_version = "
-print Config::CONFIG["ruby_version"]
+print RbConfig::CONFIG["ruby_version"]
 print "\n"
 print "prefix = "
 print CONFIG["prefix"].sub(drive, "")
