Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
mailutils
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
8e1ea421
...
8e1ea4214c98e381d41bfe4ec01a89de78bce299
authored
2005-05-23 19:34:33 +0000
by
Sergey Poznyakoff
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Compute the value of ULONG_MAX for use in the testsute.
1 parent
63307164
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
configure.ac
configure.ac
View file @
8e1ea42
...
...
@@ -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],
,,
...
...
Please
register
or
sign in
to post a comment