X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=acinclude.m4;fp=acinclude.m4;h=5a6440e26249ab15a1bd26fec1337c1f5ca96a08;hb=55978d1d1f9c468a0c0cce92fbe3ab958384761d;hp=9ad93d1c07976534da19c95ebf2374f0b4eccbb5;hpb=4ce006b23328ec3570adeac8d6525c4c7bb3525f;p=ircu2.10.12-pk.git diff --git a/acinclude.m4 b/acinclude.m4 index 9ad93d1..5a6440e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -138,6 +138,8 @@ AC_CHECK_SIZEOF(short) AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(long) AC_CHECK_SIZEOF(void *) +AC_CHECK_SIZEOF(int64_t) +AC_CHECK_SIZEOF(long long) if test "$ac_cv_sizeof_int" = 2 ; then AC_CHECK_TYPE(int16_t, int) AC_CHECK_TYPE(uint16_t, unsigned int) @@ -158,6 +160,15 @@ elif test "$ac_cv_sizeof_long" = 4 ; then AC_CHECK_TYPE(uint32_t, unsigned long) else AC_MSG_ERROR([Cannot find a type with size of 32 bits]) +fi +if test "$ac_cv_sizeof_int64_t" = 8 ; then + AC_CHECK_TYPE(int64_t) + AC_CHECK_TYPE(uint64_t) +elif test "$ac_cv_sizeof_long_long" = 8 ; then + AC_CHECK_TYPE(int64_t, long long) + AC_CHECK_TYPE(uint64_t, unsigned long long) +else + AC_MSG_ERROR([Cannot find a type with size of 64 bits]) fi]) dnl Written by John Hawkinson . This code is in the Public