summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2012-05-28 08:41:51 +0200
committerColin Walters <walters@verbum.org>2012-05-28 08:41:51 +0200
commitb030d03646c673b37539b54e301d1ea38a60084a (patch)
tree7745f2f3d3939da98fe5381ee572152c263bb3d8
parentcee523c30ea14a4040eb8f4a5b4acf584bad0c53 (diff)
downloadlibpwquality-b030d03646c673b37539b54e301d1ea38a60084a.tar.gz
build: Add --disable-python-bindings option
--- Makefile.am | 5 ++++- configure.in | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletions(-)
-rw-r--r--Makefile.am5
-rw-r--r--configure.in7
2 files changed, 11 insertions, 1 deletions
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,[