openbsd-ports/lang/datalog/patches/patch-configure

25 lines
773 B
Plaintext
Raw Normal View History

2012-12-28 11:43:11 -05:00
$OpenBSD: patch-configure,v 1.2 2012/12/28 16:43:11 jasper Exp $
2012-05-11 17:37:41 -04:00
Correctly link with -lreadline as it need -ltermcap.
2012-12-28 11:43:11 -05:00
--- configure.orig Sat Sep 29 20:03:32 2012
+++ configure Fri Dec 28 16:12:27 2012
@@ -11531,7 +11531,7 @@ for ac_lib in '' readline; do
2012-05-11 17:37:41 -04:00
ac_res="none required"
else
ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ LIBS="-l$ac_lib -ltermcap $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_readline=$ac_res
2012-12-28 11:43:11 -05:00
@@ -11554,7 +11554,7 @@ fi
2012-05-11 17:37:41 -04:00
$as_echo "$ac_cv_search_readline" >&6; }
ac_res=$ac_cv_search_readline
if test "$ac_res" != no; then :
- test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
+ test "$ac_res" = "none required" || LIBS="$ac_res $LIBS -ltermcap"
fi