* PATCH: reduce linking -lnsl
@ 2007-11-24 1:51 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2007-11-24 1:51 UTC (permalink / raw)
To: zsh-workers
I'm getting libnsl linked even though I have neither NIS nor name
serviec needs beyond libc. This is meant to fix that but not break
other platforms that do need it.
Index: configure.ac
===================================================================
RCS file: /cvsroot/zsh/zsh/configure.ac,v
retrieving revision 1.81
diff -u -r1.81 configure.ac
--- configure.ac 20 Nov 2007 16:02:17 -0000 1.81
+++ configure.ac 24 Nov 2007 01:48:32 -0000
@@ -769,10 +769,7 @@
AC_DEFINE(ZSH_IGNORE_NCURSES) ;;
esac
-dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require
-dnl libnsl (Network Services Library) to find yp_all
-
-AC_SEARCH_LIBS(yp_all, nsl)
+AC_SEARCH_LIBS(getpwnam, 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
@@ -1747,6 +1744,9 @@
zsh_cv_sys_nis=yes || zsh_cv_sys_nis=no])
if test x$zsh_cv_sys_nis = xyes; then
AC_DEFINE(HAVE_NIS)
+dnl Some systems (Solaris 2.x, Linux Redhat 5.x) require
+dnl libnsl (Network Services Library) to find yp_all
+ AC_SEARCH_LIBS(yp_all, nsl)
fi
dnl -----------------
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-11-24 1:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-24 1:51 PATCH: reduce linking -lnsl Clint Adams
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).