autoconf: Particular Structures
1
1 5.8.1 Particular Structure Checks
1 ---------------------------------
1
1 The following macros check for certain structures or structure members.
1
1 -- Macro: AC_STRUCT_DIRENT_D_INO
11 Perform all the actions of `AC_HEADER_DIRENT' (⇒Particular
Headers). Then, if `struct dirent' contains a `d_ino' member,
1 define `HAVE_STRUCT_DIRENT_D_INO'.
1
1 `HAVE_STRUCT_DIRENT_D_INO' indicates only the presence of `d_ino',
1 not whether its contents are always reliable. Traditionally, a
1 zero `d_ino' indicated a deleted directory entry, though current
1 systems hide this detail from the user and never return zero
1 `d_ino' values. Many current systems report an incorrect `d_ino'
1 for a directory entry that is a mount point.
1
1 -- Macro: AC_STRUCT_DIRENT_D_TYPE
11 Perform all the actions of `AC_HEADER_DIRENT' (⇒Particular
Headers). Then, if `struct dirent' contains a `d_type' member,
1 define `HAVE_STRUCT_DIRENT_D_TYPE'.
1
1 -- Macro: AC_STRUCT_ST_BLOCKS
1 If `struct stat' contains an `st_blocks' member, define
1 `HAVE_STRUCT_STAT_ST_BLOCKS'. Otherwise, require an `AC_LIBOBJ'
1 replacement of `fileblocks'. The former name, `HAVE_ST_BLOCKS' is
1 to be avoided, as its support will cease in the future.
1
1 This macro caches its result in the
1 `ac_cv_member_struct_stat_st_blocks' variable.
1
1 -- Macro: AC_STRUCT_TM
1 If `time.h' does not define `struct tm', define `TM_IN_SYS_TIME',
1 which means that including `sys/time.h' had better define `struct
1 tm'.
1
1 This macro is obsolescent, as `time.h' defines `struct tm' in
1 current systems. New programs need not use this macro.
1
1 -- Macro: AC_STRUCT_TIMEZONE
1 Figure out how to get the current timezone. If `struct tm' has a
1 `tm_zone' member, define `HAVE_STRUCT_TM_TM_ZONE' (and the
1 obsoleted `HAVE_TM_ZONE'). Otherwise, if the external array
1 `tzname' is found, define `HAVE_TZNAME'; if it is declared, define
1 `HAVE_DECL_TZNAME'.
1