- Checks for 64 bit int types. Problem report from Mats Fredholm

<matsf@init.se>
This commit is contained in:
Damien Miller 2000-03-17 23:26:46 +11:00
parent 29ea30d956
commit d6121d2972
2 changed files with 19 additions and 16 deletions

View File

@ -3,6 +3,8 @@
- Added -blibpath handling for AIX to work around stupid runtime linking. - Added -blibpath handling for AIX to work around stupid runtime linking.
Problem elucidated by gshapiro@SENDMAIL.ORG by way of Jim Knoble Problem elucidated by gshapiro@SENDMAIL.ORG by way of Jim Knoble
<jmknoble@pobox.com> <jmknoble@pobox.com>
- Checks for 64 bit int types. Problem report from Mats Fredholm
<matsf@init.se>
20000316 20000316
- Fixed configure not passing LDFLAGS to Solaris. Report from David G. - Fixed configure not passing LDFLAGS to Solaris. Report from David G.

View File

@ -264,7 +264,7 @@ AC_CHECK_SIZEOF(long long int, 8)
AC_MSG_CHECKING([for intXX_t types]) AC_MSG_CHECKING([for intXX_t types])
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <sys/types.h>], [#include <sys/types.h>],
[int16_t a; int32_t b; a = 1235; b = 1235;], [int8_t a; int16_t b; int32_t c; int64_t d; a = b = c = d = 1;],
[ [
AC_DEFINE(HAVE_INTXX_T) AC_DEFINE(HAVE_INTXX_T)
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
@ -276,7 +276,7 @@ AC_TRY_COMPILE(
AC_MSG_CHECKING([for u_intXX_t types]) AC_MSG_CHECKING([for u_intXX_t types])
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <sys/types.h>], [#include <sys/types.h>],
[u_int16_t c; u_int32_t d; c = 1235; d = 1235;], [u_int8_t a; u_int16_t b; u_int32_t c; u_int64_t d; a = b = c = d = 1;],
[ [
AC_DEFINE(HAVE_U_INTXX_T) AC_DEFINE(HAVE_U_INTXX_T)
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
@ -292,10 +292,9 @@ then
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <sys/bitypes.h>], [#include <sys/bitypes.h>],
[ [
u_int16_t c; u_int32_t d; int8_t a; int16_t b; int32_t c; int64_t d;
int16_t e; int32_t f; u_int8_t e; u_int16_t f; u_int32_t g; u_int64_t h;
c = 1235; d = 1235; a = b = c = d = e = f = g = h = 1;
e = 1235; f = 1235;
], ],
[ [
AC_DEFINE(HAVE_U_INTXX_T) AC_DEFINE(HAVE_U_INTXX_T)
@ -306,16 +305,18 @@ then
) )
fi fi
if test -z "$have_u_intxx_t" ; then
AC_MSG_CHECKING([for uintXX_t types]) AC_MSG_CHECKING([for uintXX_t types])
AC_TRY_COMPILE( AC_TRY_COMPILE(
[#include <sys/types.h>], [#include <sys/types.h>],
[uint16_t c; uint32_t d; c = 1235; d = 1235;], [uint8_t a; uint16_t b; uint32_t c; uint64_t d; a = b = c = d = 1;],
[ [
AC_DEFINE(HAVE_UINTXX_T) AC_DEFINE(HAVE_UINTXX_T)
AC_MSG_RESULT(yes) AC_MSG_RESULT(yes)
], ],
[AC_MSG_RESULT(no)] [AC_MSG_RESULT(no)]
) )
fi
AC_MSG_CHECKING([for socklen_t]) AC_MSG_CHECKING([for socklen_t])
AC_TRY_COMPILE( AC_TRY_COMPILE(