1124N/AFrom ef06be83bcbd285f49d53e9145f4537fbd299f68 Mon Sep 17 00:00:00 2001
1124N/AFrom: Alan Coopersmith <alan.coopersmith@sun.com>
1124N/ADate: Fri, 30 Oct 2009 22:19:51 -0700
1124N/A 2 files changed, 13 insertions(+), 1 deletions(-)
1124N/A libnetwork_la_CPPFLAGS = -I$(top_srcdir)/common
1124N/A+libnetwork_la_LIBADD = $(SOCKET_LIB) $(INET_LIB)
1124N/Aindex 66b9b34..857000a 100644
1124N/A@@ -114,16 +114,24 @@ AC_SUBST(READDISPLAY_DEFINE)
1124N/A dnl gethostbyname, inet_addr, htons etc. Check if it's necessary.
1124N/A+dnl Under Solaris and other SVR4 OS'es, those require -lnsl and
1124N/A+dnl the socket functions require -lsocket
1124N/A dnl NOTE: Did not want to use AC_SEARCH_LIBS which would add
1124N/A dnl -lbsd to LIBS. We set INET_LIB instead.
1124N/A AC_CHECK_FUNC(gethostbyname,INET_LIB_REQ=,INET_LIB_REQ=yes)
1124N/A if test "$INET_LIB_REQ" = yes; then
1124N/A- AC_CHECK_LIB(bsd,gethostbyname,INET_LIB=-lbsd,INET_LIB=)
1124N/A+ AC_CHECK_LIB(bsd,gethostbyname,INET_LIB=-lbsd,
1124N/A+ AC_CHECK_LIB(nsl,gethostbyname,INET_LIB=-lnsl,INET_LIB=))
1124N/A+AC_CHECK_FUNC(connect,SOCKET_LIB_REQ=,SOCKET_LIB_REQ=yes)
1124N/A+if test "$SOCKET_LIB_REQ" = yes; then
1124N/A+ AC_CHECK_LIB(socket,connect,SOCKET_LIB=-lsocket,SOCKET_LIB=,$INET_LIB)
1124N/A@@ -159,7 +167,10 @@ AC_SEARCH_LIBS([inet_aton], [resolv])
1124N/A AC_CHECK_FUNCS([inet_aton])
1124N/A+LIBS="$LIBS $SOCKET_LIB $INET_LIB"
1124N/A AC_CHECK_FUNCS([inet_ntop getaddrinfo])