summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorDonghee Na <donghee.na@python.org>2023-09-29 12:18:18 (GMT)
committerGitHub <noreply@github.com>2023-09-29 12:18:18 (GMT)
commit501939c9c1433c5b95ca19ae752e5881149f61b9 (patch)
treec2243227417c43ac74ec13c30b676cff550d0274 /configure
parentdb0a258e796703e12befea9d6dec04e349ca2f5b (diff)
downloadcpython-501939c9c1433c5b95ca19ae752e5881149f61b9.zip
cpython-501939c9c1433c5b95ca19ae752e5881149f61b9.tar.gz
cpython-501939c9c1433c5b95ca19ae752e5881149f61b9.tar.bz2
gh-105323: Update readline module to detect apple editline variant (gh-108665)
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure17
1 files changed, 17 insertions, 0 deletions
diff --git a/configure b/configure
index 098def9..0e5f3f6 100755
--- a/configure
+++ b/configure
@@ -23781,6 +23781,7 @@ fi
+
# Check whether --with-readline was given.
if test ${with_readline+y}
then :
@@ -23803,6 +23804,22 @@ else $as_nop
fi
+# gh-105323: Need to handle the macOS editline as an alias of readline.
+case $ac_sys_system/$ac_sys_release in #(
+ Darwin/*) :
+ ac_fn_c_check_type "$LINENO" "Function" "ac_cv_type_Function" "#include <readline/readline.h>
+"
+if test "x$ac_cv_type_Function" = xyes
+then :
+ printf "%s\n" "#define WITH_APPLE_EDITLINE 1" >>confdefs.h
+
+fi
+ ;; #(
+ *) :
+
+ ;;
+esac
+
if test "x$with_readline" = xreadline
then :