python-pyasn: bump to version 1.6.0b1
[buildroot-gz.git] / package / python3 / 0022-Add-an-option-to-disable-the-curses-module.patch
blob22f7a24945aee2c312a2fd3fe9aa074dd9f186a7
1 From d04ec780bf7c0825ab260bd1d6b7292141b2dcde Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 23 Dec 2015 11:49:30 +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>
8 ---
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 0a93c27..b97c21e 100644
15 --- a/Makefile.pre.in
16 +++ b/Makefile.pre.in
17 @@ -1186,7 +1186,7 @@ LIBSUBDIRS= \
18 multiprocessing multiprocessing/dummy \
19 unittest \
20 venv venv/scripts venv/scripts/posix \
21 - curses $(MACHDEPS)
22 + $(MACHDEPS)
24 TESTSUBDIRS = test test/test_asyncio \
25 test/test_email test/test_email/data \
26 @@ -1253,6 +1253,10 @@ TESTSUBDIRS += tkinter/test tkinter/test/test_tkinter \
27 tkinter/test/test_ttk
28 endif
30 +ifeq (@CURSES@,yes)
31 +LIBSUBDIRS += curses
32 +endif
34 ifeq (@TEST_MODULES@,yes)
35 LIBSUBDIRS += $(TESTSUBDIRS)
36 endif
37 diff --git a/configure.ac b/configure.ac
38 index 787b185..0be47b2 100644
39 --- a/configure.ac
40 +++ b/configure.ac
41 @@ -2912,6 +2912,15 @@ if test "$TK" = "no"; then
42 DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _tkinter"
45 +AC_SUBST(CURSES)
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"
52 +fi
54 AC_SUBST(PYDOC)
56 AC_ARG_ENABLE(pydoc,
57 --
58 2.6.4