Commit c5c06f0e authored by brendan's avatar brendan
Browse files

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/libshout/; revision=5087
parent 5ff31326
# Process this file with autoconf to produce a configure script.
# $Id:,v 1.60 2003/07/05 06:05:13 brendan Exp $
# $Id:,v 1.61 2003/07/07 03:39:59 brendan Exp $
m4_define(libshout_major, 2)
m4_define(libshout_minor, 0)
......@@ -45,6 +45,8 @@ case "$ac_cv_host" in
*) AC_DEFINE(_XOPEN_SOURCE, 600, [Define if you have POSIX and XPG specifications])
......@@ -12,6 +12,12 @@ AC_SEARCH_LIBS([sethostent], [nsl],
[Define if you have the sethostent function])])
AC_SEARCH_LIBS([getnameinfo], [socket],
[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],
[#include <sys/types.h>
#include <sys/socket.h>])
Supports Markdown
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