0004-configure.ac-move-PY_STDLIB_MOD_SET_NA-further-up.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. From 3de626186e6abeb23f0c3c0f6442058884e4a3f6 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  3. Date: Tue, 6 Feb 2024 22:46:59 +0100
  4. Subject: [PATCH] configure.ac: move PY_STDLIB_MOD_SET_NA further up
  5. We will need PY_STDLIB_MOD_SET_NA in next patches further up in the
  6. configure.ac script.
  7. Upstream: N/A
  8. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
  9. [ Vincent Fazio: ported to Python 3.13.2 ]
  10. Signed-off-by: Vincent Fazio <vfazio@gmail.com>
  11. ---
  12. configure.ac | 13 ++++++-------
  13. 1 file changed, 6 insertions(+), 7 deletions(-)
  14. diff --git a/configure.ac b/configure.ac
  15. index 744c5bebd39..8d56a24ffcb 100644
  16. --- a/configure.ac
  17. +++ b/configure.ac
  18. @@ -95,6 +95,12 @@ AC_DEFUN([PY_CHECK_EMSCRIPTEN_PORT], [
  19. AS_VAR_POPDEF([py_libs])
  20. ])
  21. +# stdlib
  22. +AC_DEFUN([PY_STDLIB_MOD_SET_NA], [
  23. + m4_foreach([mod], [$@], [
  24. + AS_VAR_SET([py_cv_module_]mod, [n/a])])
  25. +])
  26. +
  27. AC_SUBST([BASECPPFLAGS])
  28. if test "$srcdir" != . -a "$srcdir" != "$(pwd)"; then
  29. # If we're building out-of-tree, we need to make sure the following
  30. @@ -7478,13 +7484,6 @@ AS_VAR_IF([ac_cv_libatomic_needed], [yes],
  31. LIBATOMIC=${LIBATOMIC-"-latomic"}])
  32. _RESTORE_VAR([CPPFLAGS])
  33. -
  34. -# stdlib
  35. -AC_DEFUN([PY_STDLIB_MOD_SET_NA], [
  36. - m4_foreach([mod], [$@], [
  37. - AS_VAR_SET([py_cv_module_]mod, [n/a])])
  38. -])
  39. -
  40. # stdlib not available
  41. dnl Modules that are not available on some platforms
  42. AS_CASE([$ac_sys_system],
  43. --
  44. 2.34.1