Commit 87ad1155 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

Check for -lsockt and -lnsl if needed. Check for inet_aton. Check

for INADDR_NONE only if inet_aton isn't available.
parent 7e988c41
......@@ -19,7 +19,7 @@ dnl Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
dnl Process this file with autoconf to produce a configure script.
AC_REVISION($Revision: 1.11 $)dnl
AC_REVISION($Revision: 1.12 $)dnl
AC_PREREQ(2.53)
AC_INIT(isc, 1.01)
AC_CONFIG_SRCDIR([src/isc_master.c])
......@@ -69,9 +69,25 @@ AC_HEADER_TIME
AC_C_CONST
AC_C_INLINE
AC_TYPE_SIZE_T
AC_CHECK_DECL([INADDR_NONE],,
dnl Low-level networking code on Solaris 2.
AC_CHECK_FUNC(gethostbyname)
[if test $ac_cv_func_gethostbyname = no
then]
AC_CHECK_LIB(nsl, gethostbyname)
[fi]
dnl socket() et c on Solaris 2.
AC_CHECK_FUNC(socket)
[if test $ac_cv_func_socket = no
then]
AC_CHECK_LIB(socket, socket)
[fi]
AC_REPLACE_FUNCS(inet_aton)
[if test $ac_cv_func_inet_aton = no
then]
AC_CHECK_DECL([INADDR_NONE],,
AC_DEFINE([INADDR_NONE],[(-1)], [Error indicator for inet_addr]),
[#include <netinet/in.h>])
[#include <netinet/in.h>])
[fi]
CMOD_C_ATTRIBUTE_UNUSED
......
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