]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-89640: Restore configure error message on failure to detect float word order ...
authorHood Chatham <roberthoodchatham@gmail.com>
Fri, 8 Nov 2024 11:57:17 +0000 (12:57 +0100)
committerGitHub <noreply@github.com>
Fri, 8 Nov 2024 11:57:17 +0000 (11:57 +0000)
Before #126387, if we didn't detect float word order we'd raise the following
configure error:

    Unknown float word ordering. You need to manually preset
    ax_cv_c_float_words_bigendian=no (or yes) according to your system.

This puts it back (except for ARM or WASM, which as hardcoded).

configure
configure.ac

index 71ffe9ca1c841e0c0060164df20e30d675c39220..7a9d9627e50dfcfb374dd6e5bd2c58ec6f5a84a6 100755 (executable)
--- a/configure
+++ b/configure
@@ -24219,7 +24219,7 @@ printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
 printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
  ;; #(
   *) :
-     ;;
+    as_fn_error $? "Unknown float word ordering. You need to manually preset ax_cv_c_float_words_bigendian=no (or yes) according to your system." "$LINENO" 5 ;;
 esac ;;
 esac
 
index 36199b36d27ba28bec3e02e9c99cbe7ab6655ee9..bc3d2d0e63b77aef7f349f206411a1cdcb207f3f 100644 (file)
@@ -5920,7 +5920,12 @@ AX_C_FLOAT_WORDS_BIGENDIAN(
                                 stored in ARM mixed-endian order (byte order 45670123)])],
            [wasm*], [AC_DEFINE([DOUBLE_IS_LITTLE_ENDIAN_IEEE754], [1],
                                [Define if C doubles are 64-bit IEEE 754 binary format,
-                                stored with the least significant byte first])])])
+                                stored with the least significant byte first])],
+           [AC_MSG_ERROR([m4_normalize([
+             Unknown float word ordering. You need to manually
+             preset ax_cv_c_float_words_bigendian=no (or yes)
+             according to your system.
+           ])])])])
 
 # The short float repr introduced in Python 3.1 requires the
 # correctly-rounded string <-> double conversion functions from