From b1900b8ec11a1e8ff8705330ed9da66e4bd98ee1 Mon Sep 17 00:00:00 2001 From: Nick Bowler Date: Wed, 28 Feb 2024 22:52:00 -0500 Subject: [PATCH] Better probe for __int64 support. In an expression like sizeof (unsigned garbage), the VAX C compiler warns but otherwise ignores the garbage identifier, treating it the same as sizeof (unsigned). Thus, the AC_CHECK_TYPES probe gives a false positive result on this compiler. The test can be improved by using the fourth argument to add a real object declaration to the test program. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 4d9ad34..3cd249f 100644 --- a/configure.ac +++ b/configure.ac @@ -29,7 +29,8 @@ gl_EARLY AC_HEADER_ASSERT AC_TYPE_UNSIGNED_LONG_LONG_INT -AC_CHECK_TYPES([unsigned __int64]) +AC_CHECK_TYPES([unsigned __int64], [], [], + [unsigned __int64 foo = -1; /* avoid false positive result on VAX C */]) AC_C_FLEXIBLE_ARRAY_MEMBER AC_C_INLINE DX_C_FOR_DECLARATIONS -- 2.43.2