1 Add an option to disable bsddb
3 bsddb has an external dependency on Berkeley DB. Since we want to be
4 able to build Python without it, this patch adds an option to disable
5 the build/installation of this Python module.
7 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
8 Signed-off-by: Samuel Martin <s.martin49@gmail.com>
11 Makefile.pre.in | 10 ++++++++--
12 configure.in | 22 ++++++++++++++++++++++
13 2 files changed, 30 insertions(+), 2 deletions(-)
15 Index: b/Makefile.pre.in
16 ===================================================================
21 ensurepip ensurepip/_bundled \
23 - logging bsddb csv importlib wsgiref \
24 + logging csv importlib wsgiref \
25 ctypes ctypes/macholib \
26 idlelib idlelib/Icons \
27 distutils distutils/command \
30 email/test email/test/data \
36 @@ -1022,6 +1021,11 @@
37 LIBSUBDIRS += $(XMLLIBSUBDIRS)
42 +TESTSUBDIRS += bsddb/test
45 libinstall: build_all $(srcdir)/Lib/$(PLATDIR) $(srcdir)/Modules/xxmodule.c
46 @for i in $(SCRIPTDIR) $(LIBDEST); \
49 ===================================================================
52 @@ -2656,6 +2656,28 @@
53 DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} nis"
57 + AS_HELP_STRING([--disable-dbm], [disable DBM]),
58 + [ if test "$enableval" = "no"; then
59 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} dbm"
63 + AS_HELP_STRING([--disable-gdbm], [disable GDBM]),
64 + [ if test "$enableval" = "no"; then
65 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} gdbm"
70 + AS_HELP_STRING([--disable-bsddb], [disable BerkeyleyDB]),
71 + [ if test "$enableval" = "no"; then
73 + DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS} _bsddb"
78 AC_ARG_ENABLE(unicodedata,
79 AS_HELP_STRING([--disable-unicodedata], [disable unicodedata]),
80 [ if test "$enableval" = "no"; then