The following macros check for certain structures or structure members.
To check structures not listed here, use AC_EGREP_CPP
(see section Examining Declarations) or AC_TRY_COMPILE
(see section Examining Syntax).
S_ISDIR, S_ISREG et al. defined in
`sys/stat.h' do not work properly (returning false positives),
define STAT_MACROS_BROKEN. This is the case on Tektronix UTekV,
Amdahl UTS and Motorola System V/88.
TIME_WITH_SYS_TIME. On some older systems,
`sys/time.h' includes `time.h', but `time.h' is not
protected against multiple inclusion, so programs should not explicitly
include both files. This macro is useful in programs that use, for
example, struct timeval or struct timezone as well as
struct tm. It is best used in conjunction with
HAVE_SYS_TIME_H, which can be checked for using
AC_CHECK_HEADERS(sys/time.h).
#if TIME_WITH_SYS_TIME # include <sys/time.h> # include <time.h> #else # if HAVE_SYS_TIME_H # include <sys/time.h> # else # include <time.h> # endif #endif
struct stat contains an st_blksize member, define
HAVE_ST_BLKSIZE.
struct stat contains an st_blocks member, define
HAVE_ST_BLOCKS. Otherwise, add `fileblocks.o' to the
output variable LIBOBJS.
struct stat contains an st_rdev member, define
HAVE_ST_RDEV.
struct tm, define
TM_IN_SYS_TIME, which means that including `sys/time.h'
had better define struct tm.
struct tm has a
tm_zone member, define HAVE_TM_ZONE. Otherwise, if the
external array tzname is found, define HAVE_TZNAME.
Go to the first, previous, next, last section, table of contents.