From 0bc2246254f67288d4661f3d59ea993fac45a22c Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Wed, 4 Dec 2024 02:53:06 -0500 Subject: [PATCH] autoconf: Don't use generated file as sentinel `autoreconf` generates `pyconfig.h.in` so it shouldn't be used to sanity check the presence of the CPython source. --- autoconf/entry.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/autoconf/entry.sh b/autoconf/entry.sh index 4069e46..5075608 100755 --- a/autoconf/entry.sh +++ b/autoconf/entry.sh @@ -8,7 +8,9 @@ AUTOCONF=$BIN/autoconf AUTORECONF=$BIN/autoreconf if [ "$#" = "0" ]; then - SENTINEL=/src/pyconfig.h.in + # This is the same sentinel used for AC_CONFIG_SRCDIR in CPython's + # configure.ac. + SENTINEL=/src/Include/object.h if [ ! -e ${SENTINEL} ]; then echo "ERROR: ${SENTINEL} not found " @@ -24,4 +26,3 @@ if [ "$#" = "0" ]; then fi exec "$@" -