1 From dba12f15baad06cc7e17a275201cc022bb6c84f7 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Tue, 7 Mar 2017 22:29:06 +0100
4 Subject: [PATCH] Add an option to disable the curses module
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
7 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
9 Makefile.pre.in | 6 +++++-
10 configure.ac | 9 +++++++++
11 2 files changed, 14 insertions(+), 1 deletion(-)
13 diff --git a/Makefile.pre.in b/Makefile.pre.in
14 index f7f025f..bd537d9 100644
17 @@ -1050,7 +1050,7 @@ LIBSUBDIRS= site-packages \
18 multiprocessing multiprocessing/dummy \
24 TESTSUBDIRS = test test/audiodata test/capath test/data \
25 test/cjkencodings test/decimaltestdata test/xmltestdata \
26 @@ -1092,6 +1092,10 @@ TESTSUBDIRS += lib-tk/test lib-tk/test/test_tkinter \
34 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
35 @for i in $(SCRIPTDIR) $(LIBDEST); \
37 diff --git a/configure.ac b/configure.ac
38 index d0f032c..ab081bc 100644
41 @@ -2823,6 +2823,15 @@ if test "$TK" = "no"; then
42 DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
46 +AC_ARG_ENABLE(curses,
47 + AS_HELP_STRING([--disable-curses], [disable curses]),
48 + [ CURSES="${enableval}" ], [ CURSES=yes ])
50 +if test "$CURSES" = "no"; then
51 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"