about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndrey Borzenkov <bor@users.sourceforge.net>2001-01-19 14:47:43 +0000
committerAndrey Borzenkov <bor@users.sourceforge.net>2001-01-19 14:47:43 +0000
commit9740af197efca9d1d1a06d39521d69de82e0c2ff (patch)
treeed58974606fa1dbd9e8c65e0019a83e775c04284
parentc06782d95b95f6802da6059378e5ad83a1d57ddd (diff)
downloadzsh-9740af197efca9d1d1a06d39521d69de82e0c2ff.tar.gz
zsh-9740af197efca9d1d1a06d39521d69de82e0c2ff.tar.xz
zsh-9740af197efca9d1d1a06d39521d69de82e0c2ff.zip
13380: replace AC_CHECK_LIB(...,tgetent) with AC_SEARCH_LIBS(tgetent,...)
to make it possible to override default library selected
-rw-r--r--ChangeLog6
-rw-r--r--configure.in10
2 files changed, 9 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index f8c43e449..f5ad33086 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2001-01-19  Andrej Borsenkow <Andrej.Borsenkow@mow.siemens.ru>
+
+	* 13380: configure.in: replace AC_CHECK_LIB(...,tgetent) with
+	AC_SEARCH_LIBS(tgetent,...) to allow user to override default
+	library selection
+
 2001-01-18  Sven Wischnowsky  <wischnow@zsh.org>
 
 	* 13374: Src/Zle/compcore.c, Src/Zle/compctl.c, Src/Zle/complist.c,
diff --git a/configure.in b/configure.in
index 734ac3da3..da5fb5e90 100644
--- a/configure.in
+++ b/configure.in
@@ -505,16 +505,12 @@ case "$host_os" in
   *)             termcap_curses_order="termcap curses ncurses" ;;
 esac
 
-for lib in $termcap_curses_order; do
-  AC_CHECK_LIB(${lib}, tgetent, [LIBS="-l$lib $LIBS"; break])
-done
+AC_SEARCH_LIBS(tgetent, [$termcap_curses_order])
 
 dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require
 dnl libnsl (Network Services Library) to find yp_all
-AC_CHECK_FUNCS(yp_all)
-if test $ac_cv_func_yp_all = no; then
-  AC_CHECK_LIB(nsl, yp_all)
-fi
+
+AC_SEARCH_LIBS(yp_all, nsl)
 
 dnl I am told that told that unicos reqire these for nis_list
 if test `echo $host_os | sed 's/^\(unicos\).*/\1/'` = unicos; then