From: "Andrej Borsenkow" <Andrej.Borsenkow@mow.siemens.ru>
To: "ZSH workers mailing list" <zsh-workers@sunsite.auc.dk>
Subject: PATCH: confgigure.in: AC_SEARCH_LIBS(tgetent)
Date: Fri, 19 Jan 2001 17:33:15 +0300 [thread overview]
Message-ID: <000801c08224$c2309050$21c9ca95@mow.siemens.ru> (raw)
This replaces AC_CHECK_LIB with AC_SEARCH_LIBS. The latter take sinto account
user settings (LIBS=-lfoo) while the former will blindly add library if not
needed.
BTW ironically SVR4 does not count as sysv-derived system :-)
-andrej
Have a nice DOS!
B >>
Index: configure.in
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.in,v
retrieving revision 1.38
diff -u -r1.38 configure.in
--- configure.in 2000/12/23 07:26:11 1.38
+++ configure.in 2001/01/19 14:10:33
@@ -505,16 +505,12 @@
*) 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
reply other threads:[~2001-01-19 14:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000801c08224$c2309050$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).