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.
This commit is contained in:
parent
cf9ffc053a
commit
ebc55b5d75
@ -22,16 +22,13 @@ case "$host" in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
AC_CHECK_LIB(socket, socket, [
|
# Some systems (Solaris?) have socket() in -lsocket.
|
||||||
SHLIB_LDFLAGS="$SHLIB_LDFLAGS -lsocket"
|
AC_SEARCH_LIBS(socket, socket)
|
||||||
LIBS="$LIBS -lsocket"
|
|
||||||
])
|
|
||||||
|
|
||||||
# Solaris has inet_addr in -lnsl.
|
# Solaris has inet_addr() in -lnsl.
|
||||||
AC_SEARCH_LIBS(inet_addr, nsl)
|
AC_SEARCH_LIBS(inet_addr, nsl)
|
||||||
|
|
||||||
AC_SUBST(SHLIB_SUFFIX_NAME)
|
AC_SUBST(SHLIB_SUFFIX_NAME)
|
||||||
AC_SUBST(SHLIB_LDFLAGS)
|
|
||||||
AC_SUBST(LIBS)
|
AC_SUBST(LIBS)
|
||||||
|
|
||||||
AC_PROG_CC
|
AC_PROG_CC
|
||||||
|
Loading…
x
Reference in New Issue
Block a user