mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
a66ba595c9
1. Don't define _XOPEN_SOURCE, at least with GCC. As ALWAYS, this macro undefines a lot of the symbols we need. As of libshout 2.1, this define will be moved into the "if not $GCC" category so we don't have to deal with it so often. 2. Irix defines inet_pton but not sockaddr_storage. We could fake it by using an in6 structure, but why bother? Just don't check for inet_pton unless we have struct sockaddr_storage. svn path=/trunk/m4/; revision=5087
24 lines
744 B
Plaintext
24 lines
744 B
Plaintext
# XIPH_NET
|
|
# Perform tests required by the net module
|
|
AC_DEFUN([XIPH_NET],
|
|
[dnl
|
|
AC_REQUIRE([XIPH_TYPE_SOCKLEN_T])
|
|
AC_REQUIRE([XIPH_FUNC_VA_COPY])
|
|
AC_CHECK_HEADERS([sys/select.h sys/uio.h])
|
|
|
|
# These tests are ordered based on solaris 8 tests
|
|
AC_SEARCH_LIBS([sethostent], [nsl],
|
|
[AC_DEFINE([HAVE_SETHOSTENT], [1],
|
|
[Define if you have the sethostent function])])
|
|
AC_SEARCH_LIBS([getnameinfo], [socket],
|
|
[AC_DEFINE([HAVE_GETNAMEINFO], [1],
|
|
[Define if you have the getnameinfo function])])
|
|
AC_CHECK_FUNCS([endhostent getaddrinfo inet_aton])
|
|
|
|
# Irix defines INET_PTON but not sockaddr_storage!
|
|
AC_CHECK_MEMBERS([struct sockaddr_storage.ss_family],
|
|
[AC_CHECK_FUNCS([inet_pton])],,
|
|
[#include <sys/types.h>
|
|
#include <sys/socket.h>])
|
|
])
|