Commit 8e1ea421 8e1ea4214c98e381d41bfe4ec01a89de78bce299 by Sergey Poznyakoff

Compute the value of ULONG_MAX for use in the testsute.

1 parent 63307164
......@@ -306,6 +306,23 @@ AC_CHECK_TYPE(socklen_t, , AC_DEFINE(socklen_t, int, [Define to int if <sys/type
AC_CHECK_TYPE(long long, , AC_DEFINE(LONG_LONG, long, [Define to long if compiler does not support]))
AC_CHECK_TYPE(long double, , AC_DEFINE(LONG_DOUBLE, double, [Define to double if compiler does not support]))
AC_SUBST(MU_ULONG_MAX)
AC_RUN_IFELSE([AC_LANG_PROGRAM(
[#include <stdio.h>
#include <stdlib.h>
#include <limits.h>],
[
FILE *f = fopen ("conftest.val", "w");
if (! f)
exit (1);
fprintf(f, "%lu\n", ULONG_MAX);
fclose(f);
return 0;]
)],
[MU_ULONG_MAX=`cat conftest.val`],
[MU_ULONG_MAX=0],
[MU_ULONG_MAX=0])
AC_STRUCT_TM
AC_CHECK_MEMBERS([struct tm.tm_zone, struct tm.tm_gmtoff, struct tm.tm_isdst],
,,
......