]>
Commit | Line | Data |
---|---|---|
e3418f69 TP |
1 | Add option to disable the sqlite3 module |
2 | ||
3 | Signed-off-by: Thomas Petazzoni <[email protected]> | |
4b3425c0 | 4 | Signed-off-by: Samuel Martin <[email protected]> |
e3418f69 TP |
5 | |
6 | --- | |
4b3425c0 | 7 | Makefile.pre.in | 24 +++++++++++++++++------- |
e3418f69 | 8 | configure.in | 9 +++++++++ |
4b3425c0 | 9 | 2 file changed, 9 insertions(+) |
e3418f69 | 10 | |
7e960dc9 | 11 | Index: b/configure.ac |
e3418f69 | 12 | =================================================================== |
7e960dc9 TP |
13 | --- a/configure.ac |
14 | +++ b/configure.ac | |
15 | @@ -2613,6 +2613,15 @@ | |
16 | AC_CHECK_FUNCS(pthread_atfork) | |
e3418f69 TP |
17 | fi |
18 | ||
19 | +AC_SUBST(SQLITE3) | |
20 | +AC_ARG_ENABLE(sqlite3, | |
21 | + AS_HELP_STRING([--disable-sqlite3], [disable sqlite3]), | |
22 | + [ SQLITE3="${enableval}" ], [ SQLITE3=yes ]) | |
23 | + | |
24 | +if test "$SQLITE3" = "no" ; then | |
25 | + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _sqlite3" | |
26 | +fi | |
27 | + | |
28 | AC_SUBST(PYDOC) | |
29 | ||
30 | AC_ARG_ENABLE(pydoc, | |
7e960dc9 | 31 | Index: b/Makefile.pre.in |
4b3425c0 | 32 | =================================================================== |
7e960dc9 TP |
33 | --- a/Makefile.pre.in |
34 | +++ b/Makefile.pre.in | |
35 | @@ -939,7 +939,6 @@ | |
36 | encodings compiler hotshot \ | |
37 | email email/mime \ | |
38 | json \ | |
39 | - sqlite3 \ | |
40 | logging bsddb csv importlib wsgiref \ | |
41 | ctypes ctypes/macholib idlelib idlelib/Icons \ | |
42 | distutils distutils/command $(XMLLIBSUBDIRS) \ | |
43 | @@ -955,7 +954,6 @@ | |
44 | test/tracedmodules \ | |
45 | email/test email/test/data \ | |
46 | json/tests \ | |
47 | - sqlite3/test \ | |
48 | bsddb/test \ | |
49 | ctypes/test \ | |
50 | distutils/tests \ | |
51 | @@ -977,6 +975,11 @@ | |
52 | lib2to3/tests/data/fixers/myfixes | |
4b3425c0 SM |
53 | endif |
54 | ||
55 | +ifeq (@SQLITE3@,yes) | |
56 | +LIBSUBDIRS += sqlite3 | |
7e960dc9 | 57 | +TESTSUBDIRS += sqlite3/test |
4b3425c0 SM |
58 | +endif |
59 | + | |
60 | libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c | |
61 | @for i in $(SCRIPTDIR) $(LIBDEST); \ | |
62 | do \ |