* [PATCH] Remove automagic dependency on libbind
@ 2009-04-29 12:15 y
0 siblings, 0 replies; only message in thread
From: y @ 2009-04-29 12:15 UTC (permalink / raw)
To: Zsh hackers list; +Cc: Ingmar Vanhassel
From: Ingmar Vanhassel <ingmar@exherbo.org>
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB to avoid linking all targets
to libbind on all platforms:
AC_CHECK_LIBS adds a library checked to LIBS, if it contains the
requested function, causing it to be linked into all targets.
AC_SEARCH_LIBS only does this if this function isn't already available,
in the standard C library for instance.
See http://www.gnu.org/software/autoconf/manual/autoconf.html#Libraries
---
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 07002d3..b238cfa 100644
--- a/configure.ac
+++ b/configure.ac
@@ -753,7 +753,7 @@ if test x$enable_cap = xyes; then
fi
AC_CHECK_LIB(socket, socket)
-AC_CHECK_LIB(bind, gethostbyname2)
+AC_SEARCH_LIBS(gethostbyname2, bind)
case $LIBS in
*-lbind*)
--
1.6.1.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-04-29 12:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-29 12:15 [PATCH] Remove automagic dependency on libbind y
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).