2013-05-29 10:36:57 +02:00
|
|
|
Add an option to disable the curses module
|
|
|
|
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Signed-off-by: Samuel Martin <s.martin49@gmail.com>
|
|
|
|
|
|
|
|
---
|
|
|
|
Makefile.pre.in | 6 +++++-
|
|
|
|
configure.ac | 9 +++++++++
|
|
|
|
2 files changed, 14 insertions(+), 1 deletion(-)
|
|
|
|
|
2014-02-18 21:40:01 +01:00
|
|
|
Index: b/Makefile.pre.in
|
2013-05-29 10:36:57 +02:00
|
|
|
===================================================================
|
2014-02-18 21:40:01 +01:00
|
|
|
--- a/Makefile.pre.in
|
|
|
|
+++ b/Makefile.pre.in
|
2014-12-28 21:54:52 +01:00
|
|
|
@@ -1155,7 +1155,7 @@
|
2013-05-29 10:36:57 +02:00
|
|
|
multiprocessing multiprocessing/dummy \
|
|
|
|
unittest \
|
|
|
|
venv venv/scripts venv/scripts/posix \
|
|
|
|
- curses $(MACHDEPS)
|
|
|
|
+ $(MACHDEPS)
|
|
|
|
|
2014-07-08 12:42:39 +02:00
|
|
|
TESTSUBDIRS = test test/test_asyncio \
|
2014-02-18 21:40:01 +01:00
|
|
|
test/test_email test/test_email/data \
|
2014-12-28 21:54:52 +01:00
|
|
|
@@ -1217,6 +1217,10 @@
|
2014-02-18 21:40:01 +01:00
|
|
|
tkinter/test/test_ttk
|
2013-05-29 10:36:57 +02:00
|
|
|
endif
|
|
|
|
|
|
|
|
+ifeq (@CURSES@,yes)
|
|
|
|
+LIBSUBDIRS += curses
|
|
|
|
+endif
|
|
|
|
+
|
2014-02-18 21:40:01 +01:00
|
|
|
ifeq (@TEST_MODULES@,yes)
|
|
|
|
LIBSUBDIRS += $(TESTSUBDIRS)
|
|
|
|
endif
|
|
|
|
Index: b/configure.ac
|
2013-05-29 10:36:57 +02:00
|
|
|
===================================================================
|
2014-02-18 21:40:01 +01:00
|
|
|
--- a/configure.ac
|
|
|
|
+++ b/configure.ac
|
2014-12-28 21:54:52 +01:00
|
|
|
@@ -2690,6 +2690,15 @@
|
2013-05-29 10:36:57 +02:00
|
|
|
DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
|
|
|
|
fi
|
|
|
|
|
|
|
|
+AC_SUBST(CURSES)
|
|
|
|
+AC_ARG_ENABLE(curses,
|
|
|
|
+ AS_HELP_STRING([--disable-curses], [disable curses]),
|
|
|
|
+ [ CURSES="${enableval}" ], [ CURSES=yes ])
|
|
|
|
+
|
|
|
|
+if test "$CURSES" = "no"; then
|
|
|
|
+ DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _curses _curses_panel"
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
AC_SUBST(PYDOC)
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(pydoc,
|