summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHood Chatham <roberthoodchatham@gmail.com>2024-11-08 11:57:17 (GMT)
committerGitHub <noreply@github.com>2024-11-08 11:57:17 (GMT)
commit403410fa1be036214efa7955127911e5592910db (patch)
tree281b630af15f782572fbcc2d8d23cfe869d84761
parent9ecd8f7f40e6724a1c1d46c2665147aaabceb2d2 (diff)
downloadcpython-403410fa1be036214efa7955127911e5592910db.zip
cpython-403410fa1be036214efa7955127911e5592910db.tar.gz
cpython-403410fa1be036214efa7955127911e5592910db.tar.bz2
gh-89640: Restore configure error message on failure to detect float word order (#126569)
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).
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac7
2 files changed, 7 insertions, 2 deletions
diff --git a/configure b/configure
index 71ffe9c..7a9d962 100755
--- 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
diff --git a/configure.ac b/configure.ac
index 36199b3..bc3d2d0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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