From 0d748eec8d52715f2949bd03519d39f2bf5baac4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= Date: Tue, 11 Jun 2024 19:46:13 +0300 Subject: [PATCH] configure: detect 64-bit generic platforms Currently, any unrecognised platform is treated as 32-bit. This should detect *most* 64-bit platforms, namely LP64 and LLP64 ones. Unfortunately this will not work for ILP32 ABIs on 64-bit ISAs, but still better than nothing. --- configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index 3bca638459..55676f742a 100755 --- a/configure +++ b/configure @@ -5564,6 +5564,12 @@ elif enabled x86; then ;; esac +else + + if test_cpp_condition inttypes.h "UINTPTR_MAX >= UINT64_MAX"; then + enable fast_64bit + fi + fi if [ "$cpu" != generic ]; then