Commit Diff
Diff:
6e8cf51bb216f956e7a6fdb5c61b0f2799bf8d2d
20276f7cc967ec1a472715574adc6792b1598314
Commit:
20276f7cc967ec1a472715574adc6792b1598314
Tree:
0b0c1492575c552f85a41fdcd69da545329a7039
Author:
Florian Westphal <fw@strlen.de>
Committer:
Florian Westphal <fw@strlen.de>
Date:
Wed Feb 17 21:25:30 2010 UTC
Message:
configure.in: only add -lnsl when needed dpkg-shlibdeps: warning: dependency on libnsl.so.1 [..] (they use none of its symbols). As shown via commit 2b14234abc252383679bae2d23861b773dc9713e (dpkg-shlibdeps: warning: dependency on libnsl.so.1) and the following revert of that commit, we cannot simply drop the AC_CHECK_LIB(nsl). Although -lnsl is indeed unneeded when glibc is used, some platforms (e.g. Solaris) need it. Use AC_SEARCH_LIBS instead to only link when the library exports a particular symbol.
blob - 10a72d35a0ffa8a2666f0f4860bb8356c93ccb84
blob + f80e8a96595e5b124553e1b8442d10d66bfb36ef
--- configure.in
+++ configure.in
@@ -131,9 +131,11 @@ AC_CHECK_MEMBER([struct sockaddr_in.sin_len], AC_DEFIN
# -- Libraries --
+# A/UX needs this.
AC_CHECK_LIB(UTIL,memmove)
+# needed on solaris. GNU libc also has a libnsl, but we do not need it.
+AC_SEARCH_LIBS(gethostbyname,nsl)
AC_CHECK_LIB(socket,bind)
-AC_CHECK_LIB(nsl,gethostent)
# -- Functions --
IRCNow