Doesn't anyone still use 1.6.2?
checking HIST_ENTRY is declared in readline/readline.h... yes
configure: error: Could not find system readline or libedit libraries
Use --with-readline or --with-libedit to use the bundled
versions of libedit or readline
*** Error code 1
I'll submit a PR.