Merge branch '2067_ruler'
[kaloumi3.git] / m4.include / vfs / socket.m4
blob1aeafbebe28e7216d9c64757f0c5014c80909ca2
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], , , [
7 #include <sys/types.h>
8 #include <sys/socket.h>
9                        ])
10     else
11         AC_ERROR([Couldnt find socket functions])
12     fi