mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-30946: Remove obsolete fallback code in readline module (#2738)
* Remove obsolete fallback code in readline module * Add NEWS * Remove obsolete include * Fix macro on Windows
This commit is contained in:
parent
efa26bcd50
commit
f474c5a3f3
7 changed files with 8 additions and 108 deletions
44
configure
vendored
44
configure
vendored
|
@ -15228,50 +15228,6 @@ $as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h
|
|||
|
||||
fi
|
||||
|
||||
# check for readline 2.1
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rl_callback_handler_install in -lreadline" >&5
|
||||
$as_echo_n "checking for rl_callback_handler_install in -lreadline... " >&6; }
|
||||
if ${ac_cv_lib_readline_rl_callback_handler_install+:} false; then :
|
||||
$as_echo_n "(cached) " >&6
|
||||
else
|
||||
ac_check_lib_save_LIBS=$LIBS
|
||||
LIBS="-lreadline $READLINE_LIBS $LIBS"
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
||||
/* Override any GCC internal prototype to avoid an error.
|
||||
Use char because int might match the return type of a GCC
|
||||
builtin and then its argument prototype would still apply. */
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
#endif
|
||||
char rl_callback_handler_install ();
|
||||
int
|
||||
main ()
|
||||
{
|
||||
return rl_callback_handler_install ();
|
||||
;
|
||||
return 0;
|
||||
}
|
||||
_ACEOF
|
||||
if ac_fn_c_try_link "$LINENO"; then :
|
||||
ac_cv_lib_readline_rl_callback_handler_install=yes
|
||||
else
|
||||
ac_cv_lib_readline_rl_callback_handler_install=no
|
||||
fi
|
||||
rm -f core conftest.err conftest.$ac_objext \
|
||||
conftest$ac_exeext conftest.$ac_ext
|
||||
LIBS=$ac_check_lib_save_LIBS
|
||||
fi
|
||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_callback_handler_install" >&5
|
||||
$as_echo "$ac_cv_lib_readline_rl_callback_handler_install" >&6; }
|
||||
if test "x$ac_cv_lib_readline_rl_callback_handler_install" = xyes; then :
|
||||
|
||||
$as_echo "#define HAVE_RL_CALLBACK 1" >>confdefs.h
|
||||
|
||||
fi
|
||||
|
||||
|
||||
# check for readline 2.2
|
||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||
/* end confdefs.h. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue