Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Remove automagic dependency on libbind
- X-seq: zsh-workers 26898
- From: y@xxxxxxxxxxx
- To: Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: [PATCH] Remove automagic dependency on libbind
- Date: Wed, 29 Apr 2009 12:15:20 +0000
- Cc: Ingmar Vanhassel <ingmar@xxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- Sender: <ingmar@xxxxxxxxxxx>
From: Ingmar Vanhassel <ingmar@xxxxxxxxxxx>
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author