mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-105323: Update readline module to detect apple editline variant (gh-108665)
This commit is contained in:
parent
db0a258e79
commit
501939c9c1
5 changed files with 38 additions and 3 deletions
17
configure
generated
vendored
17
configure
generated
vendored
|
|
@ -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 :
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue