1 Add an option to disable the curses module
3 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
4 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
7 Makefile.pre.in | 6 +++++-
8 configure.in | 9 +++++++++
9 2 files changed, 14 insertions(+), 1 deletion(-)
11 Index: b/Makefile.pre.in
12 ===================================================================
16 multiprocessing multiprocessing/dummy \
22 TESTSUBDIRS = test test/audiodata test/capath test/data \
23 test/cjkencodings test/decimaltestdata test/xmltestdata \
24 @@ -1014,6 +1014,10 @@
32 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
33 @for i in $(SCRIPTDIR) $(LIBDEST); \
36 ===================================================================
39 @@ -2651,6 +2651,15 @@
40 DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
44 +AC_ARG_ENABLE(curses,
45 + AS_HELP_STRING([--disable-curses], [disable curses]),
46 + [ CURSES="${enableval}" ], [ CURSES=yes ])
48 +if test "$CURSES" = "no"; then
49 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"