mirror of https://github.com/python/cpython.git
gh-89640: Pull in update to float word order detection in autoconf-archive (#126747)
This commit is contained in:
parent
35010b8cf2
commit
142104ce78
|
@ -46,7 +46,7 @@ jobs:
|
||||||
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
|
# reproducible: to get the same tools versions (autoconf, aclocal, ...)
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/python/autoconf:2024.10.16.11360930377
|
image: ghcr.io/python/autoconf:2024.11.11.11786316759
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
needs: check_source
|
needs: check_source
|
||||||
if: needs.check_source.outputs.run_tests == 'true'
|
if: needs.check_source.outputs.run_tests == 'true'
|
||||||
|
|
|
@ -5,7 +5,7 @@ set -e -x
|
||||||
# The check_autoconf_regen job of .github/workflows/build.yml must kept in
|
# The check_autoconf_regen job of .github/workflows/build.yml must kept in
|
||||||
# sync with this script. Use the same container image than the job so the job
|
# sync with this script. Use the same container image than the job so the job
|
||||||
# doesn't need to run autoreconf in a container.
|
# doesn't need to run autoreconf in a container.
|
||||||
IMAGE="ghcr.io/python/autoconf:2024.10.16.11360930377"
|
IMAGE="ghcr.io/python/autoconf:2024.11.11.11786316759"
|
||||||
AUTORECONF="autoreconf -ivf -Werror"
|
AUTORECONF="autoreconf -ivf -Werror"
|
||||||
|
|
||||||
WORK_DIR="/src"
|
WORK_DIR="/src"
|
||||||
|
|
|
@ -91,7 +91,7 @@ m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun
|
||||||
# and this notice are preserved. This file is offered as-is, without any
|
# and this notice are preserved. This file is offered as-is, without any
|
||||||
# warranty.
|
# warranty.
|
||||||
|
|
||||||
#serial 12
|
#serial 14
|
||||||
|
|
||||||
AC_DEFUN([AX_C_FLOAT_WORDS_BIGENDIAN],
|
AC_DEFUN([AX_C_FLOAT_WORDS_BIGENDIAN],
|
||||||
[AC_CACHE_CHECK(whether float word ordering is bigendian,
|
[AC_CACHE_CHECK(whether float word ordering is bigendian,
|
||||||
|
@ -112,10 +112,10 @@ int main (int argc, char *argv[])
|
||||||
|
|
||||||
]])], [
|
]])], [
|
||||||
|
|
||||||
if grep noonsees conftest$EXEEXT >/dev/null ; then
|
if grep noonsees conftest* > /dev/null ; then
|
||||||
ax_cv_c_float_words_bigendian=yes
|
ax_cv_c_float_words_bigendian=yes
|
||||||
fi
|
fi
|
||||||
if grep seesnoon conftest$EXEEXT >/dev/null ; then
|
if grep seesnoon conftest* >/dev/null ; then
|
||||||
if test "$ax_cv_c_float_words_bigendian" = unknown; then
|
if test "$ax_cv_c_float_words_bigendian" = unknown; then
|
||||||
ax_cv_c_float_words_bigendian=no
|
ax_cv_c_float_words_bigendian=no
|
||||||
else
|
else
|
||||||
|
@ -398,7 +398,7 @@ AC_DEFUN([AX_CHECK_OPENSSL], [
|
||||||
AC_SUBST([OPENSSL_LDFLAGS])
|
AC_SUBST([OPENSSL_LDFLAGS])
|
||||||
])
|
])
|
||||||
|
|
||||||
# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
|
# pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*-
|
||||||
# serial 12 (pkg-config-0.29.2)
|
# serial 12 (pkg-config-0.29.2)
|
||||||
|
|
||||||
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
|
||||||
|
@ -486,7 +486,7 @@ dnl Check to see whether a particular set of modules exists. Similar to
|
||||||
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
|
dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
|
||||||
dnl
|
dnl
|
||||||
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
|
||||||
dnl only at the first occurence in configure.ac, so if the first place
|
dnl only at the first occurrence in configure.ac, so if the first place
|
||||||
dnl it's called might be skipped (such as if it is within an "if", you
|
dnl it's called might be skipped (such as if it is within an "if", you
|
||||||
dnl have to call PKG_CHECK_EXISTS manually
|
dnl have to call PKG_CHECK_EXISTS manually
|
||||||
AC_DEFUN([PKG_CHECK_EXISTS],
|
AC_DEFUN([PKG_CHECK_EXISTS],
|
||||||
|
@ -674,6 +674,74 @@ AS_VAR_COPY([$1], [pkg_cv_][$1])
|
||||||
AS_VAR_IF([$1], [""], [$5], [$4])dnl
|
AS_VAR_IF([$1], [""], [$5], [$4])dnl
|
||||||
])dnl PKG_CHECK_VAR
|
])dnl PKG_CHECK_VAR
|
||||||
|
|
||||||
|
dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
||||||
|
dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
|
||||||
|
dnl [DESCRIPTION], [DEFAULT])
|
||||||
|
dnl ------------------------------------------
|
||||||
|
dnl
|
||||||
|
dnl Prepare a "--with-" configure option using the lowercase
|
||||||
|
dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
|
||||||
|
dnl PKG_CHECK_MODULES in a single macro.
|
||||||
|
AC_DEFUN([PKG_WITH_MODULES],
|
||||||
|
[
|
||||||
|
m4_pushdef([with_arg], m4_tolower([$1]))
|
||||||
|
|
||||||
|
m4_pushdef([description],
|
||||||
|
[m4_default([$5], [build with ]with_arg[ support])])
|
||||||
|
|
||||||
|
m4_pushdef([def_arg], [m4_default([$6], [auto])])
|
||||||
|
m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
|
||||||
|
m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
|
||||||
|
|
||||||
|
m4_case(def_arg,
|
||||||
|
[yes],[m4_pushdef([with_without], [--without-]with_arg)],
|
||||||
|
[m4_pushdef([with_without],[--with-]with_arg)])
|
||||||
|
|
||||||
|
AC_ARG_WITH(with_arg,
|
||||||
|
AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
|
||||||
|
[AS_TR_SH([with_]with_arg)=def_arg])
|
||||||
|
|
||||||
|
AS_CASE([$AS_TR_SH([with_]with_arg)],
|
||||||
|
[yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
|
||||||
|
[auto],[PKG_CHECK_MODULES([$1],[$2],
|
||||||
|
[m4_n([def_action_if_found]) $3],
|
||||||
|
[m4_n([def_action_if_not_found]) $4])])
|
||||||
|
|
||||||
|
m4_popdef([with_arg])
|
||||||
|
m4_popdef([description])
|
||||||
|
m4_popdef([def_arg])
|
||||||
|
|
||||||
|
])dnl PKG_WITH_MODULES
|
||||||
|
|
||||||
|
dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
||||||
|
dnl [DESCRIPTION], [DEFAULT])
|
||||||
|
dnl -----------------------------------------------
|
||||||
|
dnl
|
||||||
|
dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
|
||||||
|
dnl check._[VARIABLE-PREFIX] is exported as make variable.
|
||||||
|
AC_DEFUN([PKG_HAVE_WITH_MODULES],
|
||||||
|
[
|
||||||
|
PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
|
||||||
|
|
||||||
|
AM_CONDITIONAL([HAVE_][$1],
|
||||||
|
[test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
|
||||||
|
])dnl PKG_HAVE_WITH_MODULES
|
||||||
|
|
||||||
|
dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
|
||||||
|
dnl [DESCRIPTION], [DEFAULT])
|
||||||
|
dnl ------------------------------------------------------
|
||||||
|
dnl
|
||||||
|
dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
|
||||||
|
dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
|
||||||
|
dnl and preprocessor variable.
|
||||||
|
AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
|
||||||
|
[
|
||||||
|
PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
|
||||||
|
|
||||||
|
AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
|
||||||
|
[AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
|
||||||
|
])dnl PKG_HAVE_DEFINE_WITH_MODULES
|
||||||
|
|
||||||
# AM_CONDITIONAL -*- Autoconf -*-
|
# AM_CONDITIONAL -*- Autoconf -*-
|
||||||
|
|
||||||
# Copyright (C) 1997-2021 Free Software Foundation, Inc.
|
# Copyright (C) 1997-2021 Free Software Foundation, Inc.
|
||||||
|
|
|
@ -24174,10 +24174,10 @@ if ac_fn_c_try_link "$LINENO"
|
||||||
then :
|
then :
|
||||||
|
|
||||||
|
|
||||||
if grep noonsees conftest$EXEEXT >/dev/null ; then
|
if grep noonsees conftest* > /dev/null ; then
|
||||||
ax_cv_c_float_words_bigendian=yes
|
ax_cv_c_float_words_bigendian=yes
|
||||||
fi
|
fi
|
||||||
if grep seesnoon conftest$EXEEXT >/dev/null ; then
|
if grep seesnoon conftest* >/dev/null ; then
|
||||||
if test "$ax_cv_c_float_words_bigendian" = unknown; then
|
if test "$ax_cv_c_float_words_bigendian" = unknown; then
|
||||||
ax_cv_c_float_words_bigendian=no
|
ax_cv_c_float_words_bigendian=no
|
||||||
else
|
else
|
||||||
|
@ -24213,10 +24213,6 @@ printf "%s\n" "#define DOUBLE_IS_LITTLE_ENDIAN_IEEE754 1" >>confdefs.h
|
||||||
# but if it's not big or little, then it must be this?
|
# but if it's not big or little, then it must be this?
|
||||||
|
|
||||||
printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
|
printf "%s\n" "#define DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754 1" >>confdefs.h
|
||||||
;; #(
|
|
||||||
wasm*) :
|
|
||||||
|
|
||||||
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 ;;
|
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 ;;
|
||||||
|
|
|
@ -5918,9 +5918,6 @@ AX_C_FLOAT_WORDS_BIGENDIAN(
|
||||||
AC_DEFINE([DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754], [1],
|
AC_DEFINE([DOUBLE_IS_ARM_MIXED_ENDIAN_IEEE754], [1],
|
||||||
[Define if C doubles are 64-bit IEEE 754 binary format,
|
[Define if C doubles are 64-bit IEEE 754 binary format,
|
||||||
stored in ARM mixed-endian order (byte order 45670123)])],
|
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])],
|
|
||||||
[AC_MSG_ERROR([m4_normalize([
|
[AC_MSG_ERROR([m4_normalize([
|
||||||
Unknown float word ordering. You need to manually
|
Unknown float word ordering. You need to manually
|
||||||
preset ax_cv_c_float_words_bigendian=no (or yes)
|
preset ax_cv_c_float_words_bigendian=no (or yes)
|
||||||
|
|
Loading…
Reference in New Issue