patch-configure 773 B

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-configure,v 1.5 2016/06/17 18:37:41 jasper Exp $
  2. Correctly link with -lreadline as it need -ltermcap.
  3. --- configure.orig Wed Jun 1 14:35:16 2016
  4. +++ configure Fri Jun 17 20:36:59 2016
  5. @@ -12209,7 +12209,7 @@ for ac_lib in '' readline; do
  6. ac_res="none required"
  7. else
  8. ac_res=-l$ac_lib
  9. - LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  10. + LIBS="-l$ac_lib -ltermcap $ac_func_search_save_LIBS"
  11. fi
  12. if ac_fn_c_try_link "$LINENO"; then :
  13. ac_cv_search_readline=$ac_res
  14. @@ -12232,7 +12232,7 @@ fi
  15. $as_echo "$ac_cv_search_readline" >&6; }
  16. ac_res=$ac_cv_search_readline
  17. if test "$ac_res" != no; then :
  18. - test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  19. + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS -ltermcap"
  20. fi