1AC_DEFUN([PDNS_CHECK_TIME_T], [
2AX_COMPILE_CHECK_SIZEOF(time_t)
3AS_IF([test $ac_size -lt 8], [AC_MSG_ERROR([size of time_t is $ac_size, which is not large enough to fix the y2k38 bug])])
4AX_CHECK_SIGN([time_t], [:], [AC_MSG_ERROR([time_t is unsigned, PowerDNS code relies on it being signed])], [
5  #include <sys/types.h>
6])
7])
8