From d6121d2972c1a6924f6d186ea04eefe9dab774ef Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 17 Mar 2000 23:26:46 +1100 Subject: [PATCH] - Checks for 64 bit int types. Problem report from Mats Fredholm --- ChangeLog | 2 ++ configure.in | 33 +++++++++++++++++---------------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/ChangeLog b/ChangeLog index 13dbdd01d..be06e493e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,8 @@ - Added -blibpath handling for AIX to work around stupid runtime linking. Problem elucidated by gshapiro@SENDMAIL.ORG by way of Jim Knoble + - Checks for 64 bit int types. Problem report from Mats Fredholm + 20000316 - Fixed configure not passing LDFLAGS to Solaris. Report from David G. diff --git a/configure.in b/configure.in index 0eeda65ef..a7b90e1f9 100644 --- a/configure.in +++ b/configure.in @@ -264,7 +264,7 @@ AC_CHECK_SIZEOF(long long int, 8) AC_MSG_CHECKING([for intXX_t types]) AC_TRY_COMPILE( [#include ], - [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_MSG_RESULT(yes) @@ -276,7 +276,7 @@ AC_TRY_COMPILE( AC_MSG_CHECKING([for u_intXX_t types]) AC_TRY_COMPILE( [#include ], - [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_MSG_RESULT(yes) @@ -292,10 +292,9 @@ then AC_TRY_COMPILE( [#include ], [ - u_int16_t c; u_int32_t d; - int16_t e; int32_t f; - c = 1235; d = 1235; - e = 1235; f = 1235; + int8_t a; int16_t b; int32_t c; int64_t d; + u_int8_t e; u_int16_t f; u_int32_t g; u_int64_t h; + a = b = c = d = e = f = g = h = 1; ], [ AC_DEFINE(HAVE_U_INTXX_T) @@ -306,16 +305,18 @@ then ) fi -AC_MSG_CHECKING([for uintXX_t types]) -AC_TRY_COMPILE( - [#include ], - [uint16_t c; uint32_t d; c = 1235; d = 1235;], - [ - AC_DEFINE(HAVE_UINTXX_T) - AC_MSG_RESULT(yes) - ], - [AC_MSG_RESULT(no)] -) +if test -z "$have_u_intxx_t" ; then + AC_MSG_CHECKING([for uintXX_t types]) + AC_TRY_COMPILE( + [#include ], + [uint8_t a; uint16_t b; uint32_t c; uint64_t d; a = b = c = d = 1;], + [ + AC_DEFINE(HAVE_UINTXX_T) + AC_MSG_RESULT(yes) + ], + [AC_MSG_RESULT(no)] + ) +fi AC_MSG_CHECKING([for socklen_t]) AC_TRY_COMPILE(