On Solaris 11 2010-11, I'm seeing these messages from 'configure': checking whether socket is declared without a macro... no checking whether connect is declared without a macro... no checking whether accept is declared without a macro... no checking whether bind is declared without a macro... no checking whether getpeername is declared without a macro... no checking whether getsockname is declared without a macro... no checking whether getsockopt is declared without a macro... no checking whether listen is declared without a macro... no checking whether recv is declared without a macro... no checking whether send is declared without a macro... no checking whether recvfrom is declared without a macro... no checking whether sendto is declared without a macro... no checking whether setsockopt is declared without a macro... no checking whether shutdown is declared without a macro... no
The reason is a mistake in m4/sys_socket_h.m4. This should fix it. 2010-11-27 Bruno Haible <[email protected]> sys_socket: Fix test whether the functions are declared. * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>, not <sys/select.h>. --- m4/sys_socket_h.m4.orig Sat Nov 27 15:42:30 2010 +++ m4/sys_socket_h.m4 Sat Nov 27 15:40:59 2010 @@ -1,4 +1,4 @@ -# sys_socket_h.m4 serial 18 +# sys_socket_h.m4 serial 19 dnl Copyright (C) 2005-2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -64,10 +64,7 @@ gl_WARN_ON_USE_PREPARE([[ /* Some systems require prerequisite headers. */ #include <sys/types.h> -#if !(defined __GLIBC__ && !defined __UCLIBC__) && HAVE_SYS_TIME_H -# include <sys/time.h> -#endif -#include <sys/select.h> +#include <sys/socket.h> ]], [socket connect accept bind getpeername getsockname getsockopt listen recv send recvfrom sendto setsockopt shutdown accept4]) ])
