From 1cbbe6c8d0784054e4922f25a1752fb3a67b173e Mon Sep 17 00:00:00 2001 From: tim Date: Thu, 18 Jul 2002 18:44:50 +0000 Subject: [PATCH] [configure.ac] Bug 267 rework int64_t test. --- ChangeLog | 1 + configure.ac | 38 ++++++++++---------------------------- 2 files changed, 11 insertions(+), 28 deletions(-) diff --git a/ChangeLog b/ChangeLog index e14a8826..56446946 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ - (tim) [defines.h] Bug 313 patch by dirk.meyer@dinoex.sub.org - (tim) [monitor_mm.c] add missing declaration for xmmap(). Reported by ayamura@ayamura.org + - (tim) [configure.ac] Bug 267 rework int64_t test. 20020717 - (bal) aixbff package updated by dtucker@zip.com.au diff --git a/configure.ac b/configure.ac index d9fb3c32..1c3bf7c5 100644 --- a/configure.ac +++ b/configure.ac @@ -1038,7 +1038,16 @@ fi AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [ AC_TRY_COMPILE( - [ #include ], + [ +#include +#ifdef HAVE_STDINT_H +# include +#endif +#include +#ifdef HAVE_SYS_BITYPES_H +# include +#endif + ], [ int64_t a; a = 1;], [ ac_cv_have_int64_t="yes" ], [ ac_cv_have_int64_t="no" ] @@ -1046,33 +1055,6 @@ AC_CACHE_CHECK([for int64_t type], ac_cv_have_int64_t, [ ]) if test "x$ac_cv_have_int64_t" = "xyes" ; then AC_DEFINE(HAVE_INT64_T) - have_int64_t=1 -fi - -if test -z "$have_int64_t" ; then - AC_MSG_CHECKING([for int64_t type in sys/socket.h]) - AC_TRY_COMPILE( - [ #include ], - [ int64_t a; a = 1], - [ - AC_DEFINE(HAVE_INT64_T) - AC_MSG_RESULT(yes) - ], - [ AC_MSG_RESULT(no) ] - ) -fi - -if test -z "$have_int64_t" ; then - AC_MSG_CHECKING([for int64_t type in sys/bitypes.h]) - AC_TRY_COMPILE( - [ #include ], - [ int64_t a; a = 1], - [ - AC_DEFINE(HAVE_INT64_T) - AC_MSG_RESULT(yes) - ], - [ AC_MSG_RESULT(no) ] - ) fi AC_CACHE_CHECK([for u_intXX_t types], ac_cv_have_u_intxx_t, [ -- 2.45.2