Commit a66ba595 authored by brendan's avatar brendan

Irix portability fixes:

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
parent 5685b9a8
......@@ -12,6 +12,12 @@ AC_SEARCH_LIBS([sethostent], [nsl],
[Define if you have the sethostent function])])
AC_SEARCH_LIBS([getnameinfo], [socket],
[AC_DEFINE([HAVE_GETNAMEINFO], [1],
[Define if you have the inet_pton function])])
AC_CHECK_FUNCS([endhostent getaddrinfo inet_aton inet_pton])
[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>])
])
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment