changeset 5a55cb9785e5 in /srv/hg/libpwquality
details:
http://hg.fedorahosted.org/hg/srv/hg/libpwquality?cmd=changeset;node=5a55...
summary: build: Note we don't build when srcdir != builddir
changeset 683d62381353 in /srv/hg/libpwquality
details:
http://hg.fedorahosted.org/hg/srv/hg/libpwquality?cmd=changeset;node=683d...
summary: build: Add --disable-python-bindings option
diffstat:
Makefile.am | 5 ++++-
configure.in | 11 +++++++++++
2 files changed, 15 insertions(+), 1 deletions(-)
diffs (43 lines):
diff -r 2a21f17eb086 -r 683d62381353 Makefile.am
--- a/Makefile.am Thu May 24 14:58:22 2012 +0200
+++ b/Makefile.am Mon May 28 08:41:51 2012 +0200
@@ -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 -r 2a21f17eb086 -r 683d62381353 configure.in
--- a/configure.in Thu May 24 14:58:22 2012 +0200
+++ b/configure.in Mon May 28 08:41:51 2012 +0200
@@ -6,6 +6,10 @@
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
+dnl We don't build with srcdir != builddir at present; the Python
+dnl bindings fail
+echo \#buildapi-variable-no-builddir > /dev/null
+
dnl LT Version numbers, remember to change them *before* a release.
dnl (Interfaces removed: CURRENT++, AGE=0, REVISION=0)
dnl (Interfaces added: CURRENT++, AGE++, REVISION=0)
@@ -89,6 +93,13 @@
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,[