From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9427 invoked from network); 29 Apr 2009 12:15:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_00,INVALID_MSGID, URIBL_SBL autolearn=no version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 29 Apr 2009 12:15:36 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 75746 invoked from network); 29 Apr 2009 12:15:30 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 29 Apr 2009 12:15:30 -0000 Received: (qmail 9528 invoked by alias); 29 Apr 2009 12:15:25 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26898 Received: (qmail 9509 invoked from network); 29 Apr 2009 12:15:24 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 29 Apr 2009 12:15:24 -0000 Received: from bach.exherbo.org (bach.exherbo.org [78.47.197.147]) by bifrost.dotsrc.org (Postfix) with ESMTPS id 4D01C80EA0C0 for ; Wed, 29 Apr 2009 14:13:09 +0200 (CEST) Received: from ingmar by bach.exherbo.org with local (Exim 4.69) (envelope-from ) id 1Lz8h6-0006j2-Rc; Wed, 29 Apr 2009 12:15:20 +0000 From: y@exherbo.org To: Zsh hackers list Cc: Ingmar Vanhassel Subject: [PATCH] Remove automagic dependency on libbind Date: Wed, 29 Apr 2009 12:15:20 +0000 Message-Id: <1241007320-25821-1-git-send-email-y> X-Mailer: git-send-email 1.6.1.2 Sender: X-Virus-Scanned: ClamAV 0.92.1/9303/Wed Apr 29 12:43:04 2009 on bifrost X-Virus-Status: Clean From: Ingmar Vanhassel 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