* sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
authorEric Blake <ebb9@byu.net>
Wed, 5 Jul 2006 18:06:09 +0000 (18:06 +0000)
committerEric Blake <ebb9@byu.net>
Wed, 5 Jul 2006 18:06:09 +0000 (18:06 +0000)
to avoid 'header present but could not be compiled' on cygwin.

m4/ChangeLog
m4/sockpfaf.m4

index 0311116..7a07dd1 100644 (file)
@@ -1,3 +1,8 @@
+2006-07-05  Eric Blake  <ebb9@byu.net>
+
+       * sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
+       to avoid 'header present but could not be compiled' on cygwin.
+
 2006-07-03  Bruno Haible  <bruno@clisp.org>
 
        * strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
index 9e396eb..391abea 100644 (file)
@@ -1,4 +1,4 @@
-# sockpfaf.m4 serial 3
+# sockpfaf.m4 serial 4
 dnl Copyright (C) 2004, 2006 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -13,7 +13,8 @@ dnl From Bruno Haible.
 
 AC_DEFUN([gl_SOCKET_FAMILIES],
 [
-  AC_CHECK_HEADERS_ONCE(sys/socket.h netinet/in.h winsock2.h)
+  AC_REQUIRE([gl_HEADER_SYS_SOCKET])
+  AC_CHECK_HEADERS_ONCE([netinet/in.h])
 
   AC_MSG_CHECKING(for IPv4 sockets)
   AC_CACHE_VAL(gl_cv_socket_ipv4,