Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:zope
python-2.4
Python-2.4-readline.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Python-2.4-readline.patch of Package python-2.4
--- configure.in +++ configure.in @@ -2975,10 +2975,18 @@ [Define this if you have flockfile(), getc_unlocked(), and funlockfile()]) fi +# what library does readline need to be linked with +READLINE_SHARED_LIBADD="" +AC_CHECK_LIB(ncurses, tgetent, [READLINE_SHARED_LIBADD="-lncurses"], + AC_CHECK_LIB(curses, tgetent, [READLINE_SHARED_LIBADD="-lcurses"], + AC_CHECK_LIB(ncurses, tgetent, [READLINE_SHARED_LIBADD="-lncurses"]) + ) + ) + # check for readline 2.1 AC_CHECK_LIB(readline, rl_callback_handler_install, AC_DEFINE(HAVE_RL_CALLBACK, 1, - [Define if you have readline 2.1]), , -ltermcap) + [Define if you have readline 2.1]), , $READLINE_SHARED_LIBADD) # check for readline 2.2 AC_TRY_CPP([#include <readline/readline.h>], @@ -2994,12 +3002,12 @@ # check for readline 4.0 AC_CHECK_LIB(readline, rl_pre_input_hook, AC_DEFINE(HAVE_RL_PRE_INPUT_HOOK, 1, - [Define if you have readline 4.0]), , -ltermcap) + [Define if you have readline 4.0]), , $READLINE_SHARED_LIBADD) # check for readline 4.2 AC_CHECK_LIB(readline, rl_completion_matches, AC_DEFINE(HAVE_RL_COMPLETION_MATCHES, 1, - [Define if you have readline 4.2]), , -ltermcap) + [Define if you have readline 4.2]), , $READLINE_SHARED_LIBADD) # also in readline 4.2 AC_TRY_CPP([#include <readline/readline.h>],
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor