/[cvs]/ccvs/m4/getaddrinfo.m4
ViewVC logotype

Diff of /ccvs/m4/getaddrinfo.m4

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dprice, Tue Oct 4 02:33:12 2005 UTC revision 1.3 by dprice, Thu Oct 20 21:08:46 2005 UTC
# Line 1  Line 1 
1  # getaddrinfo.m4 serial 6  # getaddrinfo.m4 serial 7
2  dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc.  dnl Copyright (C) 2004, 2005 Free Software Foundation, Inc.
3  dnl This file is free software; the Free Software Foundation  dnl This file is free software; the Free Software Foundation
4  dnl gives unlimited permission to copy and/or distribute it,  dnl gives unlimited permission to copy and/or distribute it,
# Line 19  AC_DEFUN([gl_PREREQ_GETADDRINFO], [ Line 19  AC_DEFUN([gl_PREREQ_GETADDRINFO], [
19    AC_REQUIRE([gl_SOCKET_FAMILIES])    AC_REQUIRE([gl_SOCKET_FAMILIES])
20    AC_REQUIRE([AC_C_INLINE])    AC_REQUIRE([AC_C_INLINE])
21    AC_REQUIRE([AC_GNU_SOURCE])    AC_REQUIRE([AC_GNU_SOURCE])
22    AC_CHECK_HEADERS_ONCE(sys/socket.h netdb.h sys/types.h netinet/in.h)    AC_CHECK_HEADERS_ONCE(netinet/in.h)
23    AC_CHECK_DECLS([getaddrinfo, freeaddrinfo, gai_strerror],,,[    AC_CHECK_DECLS([getaddrinfo, freeaddrinfo, gai_strerror],,,[
24    /* sys/types.h is not needed according to POSIX, but the    /* sys/types.h is not needed according to POSIX, but the
25       sys/socket.h in i386-unknown-freebsd4.10 and       sys/socket.h in i386-unknown-freebsd4.10 and
26       powerpc-apple-darwin5.5 required it. */       powerpc-apple-darwin5.5 required it. */
27  #ifdef HAVE_SYS_TYPES_H  #include <sys/types.h>
28  # include <sys/types.h>  #include <sys/socket.h>
29  #endif  #include <netdb.h>
 #ifdef HAVE_SYS_SOCKET_H  
 # include <sys/socket.h>  
 #endif  
 #ifdef HAVE_NETDB_H  
 # include <netdb.h>  
 #endif  
30  ])  ])
31    AC_CHECK_TYPES([struct addrinfo],,,[    AC_CHECK_TYPES([struct addrinfo],,,[
32  #ifdef HAVE_SYS_TYPES_H  #include <sys/types.h>
33  # include <sys/types.h>  #include <sys/socket.h>
34  #endif  #include <netdb.h>
 #ifdef HAVE_SYS_SOCKET_H  
 # include <sys/socket.h>  
 #endif  
 #ifdef HAVE_NETDB_H  
 # include <netdb.h>  
 #endif  
35  ])  ])
36  ])  ])

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26