From: Otto Date: Tue, 26 Jan 2021 10:39:26 +0000 (+0100) Subject: And the actual checks... X-Git-Tag: rec-4.5.0-alpha2~1^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc8910380444e55248a588e0c5044832a72ae28d;p=thirdparty%2Fpdns.git And the actual checks... --- diff --git a/configure.ac b/configure.ac index 2853015a03..3922e85831 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,10 @@ AC_PROG_CC # 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 diff --git a/pdns/dnsdistdist/configure.ac b/pdns/dnsdistdist/configure.ac index 2aad28d843..cd8b4c8b40 100644 --- a/pdns/dnsdistdist/configure.ac +++ b/pdns/dnsdistdist/configure.ac @@ -9,6 +9,9 @@ AC_PROG_CC 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] ) diff --git a/pdns/recursordist/configure.ac b/pdns/recursordist/configure.ac index dff81378ca..0e835daeda 100644 --- a/pdns/recursordist/configure.ac +++ b/pdns/recursordist/configure.ac @@ -25,6 +25,9 @@ AC_PROG_CC 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] )