From ebc55b5d75d06c30ac8940d7687994713133623d Mon Sep 17 00:00:00 2001 From: Simon Josefsson Date: Tue, 27 Mar 2007 13:11:19 +0000 Subject: [PATCH] Use AC_SEARCH_LIBS on socket() for -lsocket, so we don't link with -lsocket unless it is necessary. Remove SHLIB_LDFLAGS, it was never used by anything. --- configure.in | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/configure.in b/configure.in index 1004a0a..363cbcd 100644 --- a/configure.in +++ b/configure.in @@ -22,16 +22,13 @@ case "$host" in ;; esac -AC_CHECK_LIB(socket, socket, [ -SHLIB_LDFLAGS="$SHLIB_LDFLAGS -lsocket" -LIBS="$LIBS -lsocket" -]) +# Some systems (Solaris?) have socket() in -lsocket. +AC_SEARCH_LIBS(socket, socket) -# Solaris has inet_addr in -lnsl. +# Solaris has inet_addr() in -lnsl. AC_SEARCH_LIBS(inet_addr, nsl) AC_SUBST(SHLIB_SUFFIX_NAME) -AC_SUBST(SHLIB_LDFLAGS) AC_SUBST(LIBS) AC_PROG_CC