summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-03-17 23:26:46 +1100
committerDamien Miller <djm@mindrot.org>2000-03-17 23:26:46 +1100
commitd6121d2972c1a6924f6d186ea04eefe9dab774ef (patch)
tree8a19254a937ac42619ac9900986d795c47458fa6
parent29ea30d95627517e45e886820e3ef32168bd8dd7 (diff)
- Checks for 64 bit int types. Problem report from Mats Fredholm
<matsf@init.se>
-rw-r--r--ChangeLog2
-rw-r--r--configure.in33
2 files changed, 19 insertions, 16 deletions
diff --git a/ChangeLog b/ChangeLog
index 13dbdd01..be06e493 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
<jmknoble@pobox.com>
+ - Checks for 64 bit int types. Problem report from Mats Fredholm
+ <matsf@init.se>
20000316
- Fixed configure not passing LDFLAGS to Solaris. Report from David G.
diff --git a/configure.in b/configure.in
index 0eeda65e..a7b90e1f 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 <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_MSG_RESULT(yes)
@@ -276,7 +276,7 @@ AC_TRY_COMPILE(
AC_MSG_CHECKING([for u_intXX_t types])
AC_TRY_COMPILE(
[#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_MSG_RESULT(yes)
@@ -292,10 +292,9 @@ then
AC_TRY_COMPILE(
[#include <sys/bitypes.h>],
[
- 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 <sys/types.h>],
- [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 <sys/types.h>],
+ [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(