| 
            Last change
 on this file was             1, checked in by Paul Smedley, 10 years ago           | 
        
        
          | 
             
Initial commit of Heimdal 1.5.3 
 
           | 
        
        
          | 
            File size:
            750 bytes
           | 
        
      
      
| Line |   | 
|---|
| 1 | dnl $Id$
 | 
|---|
| 2 | dnl
 | 
|---|
| 3 | dnl test if getaddrinfo can handle numeric services
 | 
|---|
| 4 | 
 | 
|---|
| 5 | AC_DEFUN([rk_BROKEN_GETADDRINFO],[
 | 
|---|
| 6 | AC_CACHE_CHECK([if getaddrinfo handles numeric services], ac_cv_func_getaddrinfo_numserv,
 | 
|---|
| 7 | AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <stdio.h>
 | 
|---|
| 8 | #include <sys/types.h>
 | 
|---|
| 9 | #include <sys/socket.h>
 | 
|---|
| 10 | #include <netdb.h>
 | 
|---|
| 11 | 
 | 
|---|
| 12 | int
 | 
|---|
| 13 | main(int argc, char **argv)
 | 
|---|
| 14 | {
 | 
|---|
| 15 |         struct addrinfo hints, *ai;
 | 
|---|
| 16 |         memset(&hints, 0, sizeof(hints));
 | 
|---|
| 17 |         hints.ai_flags = AI_PASSIVE;
 | 
|---|
| 18 |         hints.ai_socktype = SOCK_STREAM;
 | 
|---|
| 19 |         hints.ai_family = PF_UNSPEC;
 | 
|---|
| 20 |         if(getaddrinfo(NULL, "17", &hints, &ai) != 0)
 | 
|---|
| 21 |                 return 1;
 | 
|---|
| 22 |         if(getaddrinfo(NULL, "0", &hints, &ai) != 0)
 | 
|---|
| 23 |                 return 1;
 | 
|---|
| 24 |         return 0;
 | 
|---|
| 25 | }
 | 
|---|
| 26 | ]])],[ac_cv_func_getaddrinfo_numserv=yes],[ac_cv_func_getaddrinfo_numserv=no],[ac_cv_func_getaddrinfo_numserv=yes]))])
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.