1 AC_DEFUN([AC_REQUIRE_SOCKET],
3 AC_SEARCH_LIBS(socket, [xnet bsd socket inet], [have_socket=yes])
4 if test x"$have_socket" = x"yes"; then
5 AC_SEARCH_LIBS(gethostbyname, [bsd socket inet netinet nsl])
6 AC_CHECK_MEMBERS([struct linger.l_linger], , , [
8 #include <sys/socket.h>
11 AC_MSG_ERROR([Couldn't find socket functions])