diff options
-rw-r--r-- | rules/readline.in | 33 | ||||
-rw-r--r-- | rules/readline.make | 15 |
2 files changed, 43 insertions, 5 deletions
diff --git a/rules/readline.in b/rules/readline.in index 4d8cb2b27..aa76721b0 100644 --- a/rules/readline.in +++ b/rules/readline.in @@ -1,7 +1,34 @@ -config READLINE +menuconfig READLINE bool - select NCURSES + select NCURSES if READLINE_NCURSES + select TERMCAP if READLINE_TERMCAP select GCCLIBS_GCC_S - prompt "readline" + prompt "readline " help Shared libraries for terminal handling + +choice + prompt "termcap library to be used" + default READLINE_NCURSES + depends on READLINE + + config READLINE_NOPREFERENCE + bool + prompt "no preference" + help + Tries to autodetect what library is present. If ncurses + and termcap will be found termcap has precedence over ncurses. + + config READLINE_TERMCAP + bool + prompt "termcap" + help + Links the readline library against the termcap library + + config READLINE_NCURSES + bool + prompt "ncurses" + help + Links the readline library against the ncurses library + +endchoice diff --git a/rules/readline.make b/rules/readline.make index be9e44484..5ce1942fe 100644 --- a/rules/readline.make +++ b/rules/readline.make @@ -2,7 +2,7 @@ # $Id: template 1681 2004-09-01 18:12:49Z $ # # Copyright (C) 2004 by Sascha Hauer -# +# # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions @@ -65,7 +65,18 @@ READLINE_MAKEVARS = DESTDIR=$(SYSROOT) # # autoconf # -READLINE_AUTOCONF = $(CROSS_AUTOCONF_USR) +READLINE_AUTOCONF := $(CROSS_AUTOCONF_USR) \ + --enable-shared \ + --disable-static\ + --disable-multibyte + +ifdef PTXCONF_READLINE_TERMCAP +READLINE_AUTOCONF += --without-curses +endif +ifdef PTXCONF_READLINE_NCURSES +# uses termcap instead of ncurses if both are found! +READLINE_AUTOCONF += --with-curses +endif $(STATEDIR)/readline.prepare: $(readline_prepare_deps_default) @$(call targetinfo, $@) |