From b030d03646c673b37539b54e301d1ea38a60084a Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 28 May 2012 08:41:51 +0200 Subject: build: Add --disable-python-bindings option --- Makefile.am | 5 ++++- configure.in | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletions(-) --- Makefile.am | 5 ++++- configure.in | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 40aed1c..9a334f6 100644 --- a/Makefile.am +++ b/Makefile.am @@ -6,7 +6,10 @@ AUTOMAKE_OPTIONS = 1.9 gnu dist-bzip2 check-news -SUBDIRS = po src python doc +SUBDIRS = po src doc +if BUILD_PYTHON_BINDINGS +SUBDIRS += python +endif CLEANFILES = *~ diff --git a/configure.in b/configure.in index e43e16a..2f00a33 100644 --- a/configure.in +++ b/configure.in @@ -93,6 +93,13 @@ AC_ARG_WITH(sconfigdir, SCONFIGDIR=$enableval, SCONFIGDIR=$sysconfdir/security) AC_SUBST(SCONFIGDIR) +AC_ARG_ENABLE([python-bindings], + AC_HELP_STRING([--enable-python-bindings], + [enable Python bindings (default: yes)]), + [enable_python_bindings=$enableval], + enable_python_bindings=yes) +AM_CONDITIONAL(BUILD_PYTHON_BINDINGS, test x"$enable_python_bindings" = xyes) + AC_ARG_WITH(python-rev, [ --with-pythonrev=2.7 version of python for which modules should be built], PYTHONREV=$withval,[ -- cgit v1.2.1