# AM_PROG_CC_C_O
AC_PROG_CXX
AC_LANG([C++])
+
+AX_COMPILE_CHECK_SIZEOF(time_t)
+AS_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])])
+
PDNS_CHECK_BISON
PDNS_CHECK_FLEX
AC_PROG_CXX
AC_LANG([C++])
+AX_COMPILE_CHECK_SIZEOF(time_t)
+AS_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])])
+
AC_DEFINE([DNSDIST], [1],
[This is dnsdist]
)
AC_PROG_CXX
AC_LANG([C++])
+AX_COMPILE_CHECK_SIZEOF(time_t)
+AS_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])])
+
AC_DEFINE([RECURSOR], [1],
[This is the PowerDNS Recursor]
)