~ubuntu-branches/ubuntu/saucy/sssd/saucy

« back to all changes in this revision

Viewing changes to server/external/sizes.m4

  • Committer: Stéphane Graber
  • Date: 2011-06-15 16:23:14 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: stgraber@ubuntu.com-20110615162314-rbhoppnpaxfqo5q7
Merge 1.5.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Solaris needs HAVE_LONG_LONG defined
2
 
AC_CHECK_TYPES(long long)
3
 
 
4
 
AC_CHECK_SIZEOF(int)
5
 
AC_CHECK_SIZEOF(char)
6
 
AC_CHECK_SIZEOF(short)
7
 
AC_CHECK_SIZEOF(long)
8
 
AC_CHECK_SIZEOF(long long)
9
 
 
10
 
if test $ac_cv_sizeof_long_long -lt 8 ; then
11
 
AC_MSG_ERROR([SSSD requires long long of 64-bits])
12
 
fi
13
 
 
14
 
AC_CHECK_TYPE(uint_t, unsigned int)
15
 
AC_CHECK_TYPE(int8_t, char)
16
 
AC_CHECK_TYPE(uint8_t, unsigned char)
17
 
AC_CHECK_TYPE(int16_t, short)
18
 
AC_CHECK_TYPE(uint16_t, unsigned short)
19
 
 
20
 
if test $ac_cv_sizeof_int -eq 4 ; then
21
 
AC_CHECK_TYPE(int32_t, int)
22
 
AC_CHECK_TYPE(uint32_t, unsigned int)
23
 
elif test $ac_cv_size_long -eq 4 ; then
24
 
AC_CHECK_TYPE(int32_t, long)
25
 
AC_CHECK_TYPE(uint32_t, unsigned long)
26
 
else
27
 
AC_MSG_ERROR([LIBREPLACE no 32-bit type found])
28
 
fi
29
 
 
30
 
AC_CHECK_TYPE(int64_t, long long)
31
 
AC_CHECK_TYPE(uint64_t, unsigned long long)
32
 
 
33
 
AC_CHECK_TYPE(size_t, unsigned int)
34
 
AC_CHECK_TYPE(ssize_t, int)
35
 
 
36
 
AC_CHECK_SIZEOF(off_t)
37
 
AC_CHECK_SIZEOF(size_t)
38
 
AC_CHECK_SIZEOF(ssize_t)
39
 
 
40
 
AC_CHECK_TYPE(intptr_t, long long)
41
 
AC_CHECK_TYPE(uintptr_t, unsigned long long)
42
 
AC_CHECK_TYPE(ptrdiff_t, unsigned long long)
43
 
 
44