Commit 8b2fc168 authored by brendan's avatar brendan
Browse files

Solaris 8 portability:

test for -lsocket with -lnsl
don't define _XOPEN_SOURCE

svn path=/trunk/libshout/; revision=4908
parent 40c48a7e
# Process this file with autoconf to produce a configure script.
# $Id: configure.in,v 1.45 2003/06/10 00:17:57 brendan Exp $
# $Id: configure.in,v 1.46 2003/06/10 00:56:18 brendan Exp $
m4_define(libshout_major, 2)
m4_define(libshout_minor, 0)
......@@ -36,6 +36,8 @@ dnl to be fine
case "$ac_cv_host" in
*openbsd*)
;;
*solaris*)
;;
*) AC_DEFINE(_XOPEN_SOURCE, 600, [Define if you have POSIX and XPG specifications])
;;
esac
......@@ -126,7 +128,8 @@ dnl Checks for library functions.
AC_CHECK_FUNCS(nanosleep)
AC_CHECK_FUNCS(sethostent endhostent)
AC_SEARCH_LIBS([inet_pton], [socket],
[AC_DEFINE([HAVE_INET_PTON], [1], [Define if you have the inet_pton function])])
[AC_DEFINE([HAVE_INET_PTON], [1], [Define if you have the inet_pton function])],
[], [-lnsl])
AC_CHECK_FUNCS(getnameinfo getaddrinfo inet_aton)
dnl Extra dependencies
......
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