toolchain: bump Codescape IMG MIPS version to 2016.05-06
[buildroot-gz.git] / package / python3 / 0020-Add-option-to-disable-the-sqlite3-module.patch
blob20936841c40aec5c1f8f5e02763ec3fdce74cc0a
1 From 9ae1dce0a2fa01fc3dbc83d8b8c1b56e4b1b162b Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 23 Dec 2015 11:49:01 +0100
4 Subject: [PATCH] Add option to disable the sqlite3 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 | 7 +++++--
10 configure.ac | 9 +++++++++
11 2 files changed, 14 insertions(+), 2 deletions(-)
13 diff --git a/Makefile.pre.in b/Makefile.pre.in
14 index 3823940..c822dbd 100644
15 --- a/Makefile.pre.in
16 +++ b/Makefile.pre.in
17 @@ -1177,7 +1177,6 @@ LIBSUBDIRS= tkinter \
18 email email/mime \
19 ensurepip ensurepip/_bundled \
20 html json http dbm xmlrpc \
21 - sqlite3 \
22 logging csv wsgiref urllib \
23 ctypes ctypes/macholib \
24 idlelib idlelib/Icons \
25 @@ -1224,7 +1223,6 @@ TESTSUBDIRS = tkinter/test tkinter/test/test_tkinter tkinter/test/test_ttk \
26 test/test_importlib/namespace_pkgs/project3/parent/child \
27 test/test_importlib/namespace_pkgs/module_and_namespace_package \
28 test/test_importlib/namespace_pkgs/module_and_namespace_package/a_test \
29 - sqlite3/test \
30 ctypes/test \
31 idlelib/idle_test \
32 distutils/tests \
33 @@ -1245,6 +1243,11 @@ TESTSUBDIRS += lib2to3/tests \
34 lib2to3/tests/data/fixers/myfixes
35 endif
37 +ifeq (@SQLITE3@,yes)
38 +LIBSUBDIRS += sqlite3
39 +TESTSUBDIRS += sqlite3/test
40 +endif
42 ifeq (@TEST_MODULES@,yes)
43 LIBSUBDIRS += $(TESTSUBDIRS)
44 endif
45 diff --git a/configure.ac b/configure.ac
46 index 652ad88..cae12ad 100644
47 --- a/configure.ac
48 +++ b/configure.ac
49 @@ -2894,6 +2894,15 @@ if test "$posix_threads" = "yes"; then
50 AC_CHECK_FUNCS(pthread_atfork)
53 +AC_SUBST(SQLITE3)
54 +AC_ARG_ENABLE(sqlite3,
55 + AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]),
56 + [ SQLITE3="${enableval}" ], [ SQLITE3=yes ])
58 +if test "$SQLITE3" = "no" ; then
59 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3"
60 +fi
62 AC_SUBST(PYDOC)
64 AC_ARG_ENABLE(pydoc,
65 --
66 2.6.4