Readline doesn't need -ltermcap (at least on some systems), so configure check should deal with this. Attached patch completely removes -ltermcap, however better might be to check both possibilities. Patch is against 2.3.3, however it applies to 2.4 also.
Logged In: YES user_id=21627 The patch is incorrect. As you suggest yourself, readline *does* need -ltermcap on some systems; this patch breaks these systems. Rejecting the patch. If you can come up with a patch that performs an autoconf test first, please submit a new patch.