/[inetutils]/inetutils/configure.ac
ViewVC logotype

Diff of /inetutils/configure.ac

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

revision 1.10 by jbailey, Wed Jul 31 21:24:10 2002 UTC revision 1.11 by gray, Sun Aug 4 14:14:24 2002 UTC
# Line 385  AC_CHECK_TYPES(cc_t, , , Line 385  AC_CHECK_TYPES(cc_t, , ,
385    #endif ])    #endif ])
386    
387  ### Checks for structures.  ### Checks for structures.
388  AC_CHECK_MEMBERS([struct sockaddr_in.sin_len], , ,  IU_CHECK_MEMBERS([struct sockaddr_in.sin_len], , ,
389      [ #include <sys/types.h>      [ #include <sys/types.h>
390        #include <netinet/in.h> ])        #include <netinet/in.h> ])
391    
392  if test "$ac_cv_header_utmp_h" = yes; then  if test "$ac_cv_header_utmp_h" = yes; then
393    AC_CHECK_TYPES(struct lastlog, , , [#include <utmp.h>])    AC_CHECK_TYPES(struct lastlog, , , [#include <utmp.h>])
394    AC_CHECK_MEMBERS([utmp.ut_type, utmp.ut_pid, utmp.ut_id, utmp.ut_user,    IU_CHECK_MEMBERS([struct utmp.ut_type, struct utmp.ut_pid,
395                      utmp.ut_host, utmp.ut_tv, utmp.ut_exit], , ,                      struct utmp.ut_id, struct utmp.ut_user,
396                        struct utmp.ut_host, struct utmp.ut_tv,
397                        struct utmp.ut_exit], , ,
398                     [#ifdef HAVE_SYS_TYPES_H                     [#ifdef HAVE_SYS_TYPES_H
399                      # include <sys/types.h>                      # include <sys/types.h>
400                      #endif                      #endif
401                      #include <utmp.h>])                      #include <utmp.h>])
402  fi  fi
403  if test "$ac_cv_header_utmpx_h" = yes; then  if test "$ac_cv_header_utmpx_h" = yes; then
404    AC_CHECK_MEMBERS([struct utmpx.ut_tv], , , [#include <utmpx.h>])    IU_CHECK_MEMBERS([struct utmpx.ut_tv], , , [#include <utmpx.h>])
405  fi  fi
406    
407  # AC_CHECK_MEMBERS (as of version 2.53 ) fails to recognize the presense  IU_CHECK_MEMBERS([stuct ifreq.ifr_index,
408  # of a structure member which is itself of an aggregate type. To work                    struct ifreq.ifr_netmask,
409  # around the bug, we first check for a non-aggregate sub-member of the                    struct ifreq.ifr_broadaddr], , ,
 # member in question and then create an appropriate HAVE_ define.  
 AC_CHECK_MEMBERS([stuct ifreq.ifr_index,  
                   struct ifreq.ifr_netmask.sa_family,  
                   struct ifreq.ifr_broadaddr.sa_family], , ,  
410                   [#include <sys/socket.h>                   [#include <sys/socket.h>
411                    #include <net/if.h>])                    #include <net/if.h>])
412    
413  AH_BOTTOM([  IU_CHECK_MEMBERS([struct sockaddr.sa_len], , ,
 #ifdef HAVE_STRUCT_IFREQ_IFR_NETMASK_SA_FAMILY  
 # define HAVE_STRUCT_IFREQ_IFR_NETMASK  
 #endif  
 #ifdef HAVE_STRUCT_IFREQ_IFR_BROADADDR_SA_FAMILY  
 # define HAVE_STRUCT_IFREQ_IFR_BROADADDR  
 #endif])  
   
 AC_CHECK_MEMBERS([struct sockaddr.sa_len], , ,  
414                   [#include <sys/types.h>                   [#include <sys/types.h>
415                    #include <sys/socket.h>])                    #include <sys/socket.h>])
416  AC_CHECK_MEMBERS([struct hostent.h_addr_list], , , [#include <netdb.h>])  IU_CHECK_MEMBERS([struct hostent.h_addr_list], , , [#include <netdb.h>])
417    
418  AC_CHECK_MEMBERS([struct stat.st_blksize])  IU_CHECK_MEMBERS([struct stat.st_blksize])
419    
420  AH_BOTTOM(  AH_BOTTOM(
421  [#ifdef HAVE_SYS_PARAM_H  [#ifdef HAVE_SYS_PARAM_H

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

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