| 4 |
|
AC_DEFUN([AX_CHECK_LIB_IPV4],[ |
| 5 |
|
AC_SEARCH_LIBS([socket],[socket],,[AC_MSG_ERROR([socket library not found])]) |
| 6 |
|
AC_CHECK_FUNCS([inet_aton inet_ntop inet_pton]) |
| 7 |
< |
AC_CHECK_TYPES([struct sockaddr_in, struct sockaddr_storage, struct addrinfo],,,[#include <netdb.h>]) |
| 8 |
< |
AC_CHECK_MEMBERS([struct sockaddr_in.sin_len],,,[#include <netdb.h>]) |
| 7 |
> |
AC_CHECK_TYPES([struct sockaddr_in, struct sockaddr_storage, struct addrinfo],,,[#include <sys/types.h> |
| 8 |
> |
#include <sys/socket.h> |
| 9 |
> |
#include <netdb.h> |
| 10 |
> |
]) |
| 11 |
> |
AC_CHECK_MEMBERS([struct sockaddr_in.sin_len],,,[#include <sys/types.h> |
| 12 |
> |
<sys/socket.h>]) |
| 13 |
|
])dnl }}} |
| 14 |
|
dnl {{{ ax_check_lib_ipv6 |
| 15 |
|
AC_DEFUN([AX_CHECK_LIB_IPV6],[ |
| 16 |
< |
AC_CHECK_TYPES([struct sockaddr_in6],,[AC_DEFINE([IPV6],[1],[Define to 1 if you have IPv6 support.])],,[#include <netdb.h>]) |
| 16 |
> |
AC_CHECK_TYPES([struct sockaddr_in6],,[AC_DEFINE([IPV6],[1],[Define to 1 if you have IPv6 support.])],,[#include <sys/types.h> |
| 17 |
> |
<sys/socket.h>]) |
| 18 |
|
])dnl }}} |
| 19 |
|
dnl {{{ ax_arg_enable_ioloop_mechanism (FIXME) |
| 20 |
|
AC_DEFUN([AX_ARG_ENABLE_IOLOOP_MECHANISM],[ |