--with-python currently already works for enabling/disabling the python
bindings, but doesn't show up in the help output.
Signed-off-by: Cole Robinson <crobinso(a)redhat.com>
---
configure.in | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/configure.in b/configure.in
index cb5ce55..1d12237 100644
--- a/configure.in
+++ b/configure.in
@@ -1316,6 +1316,9 @@ dnl
dnl check for python
dnl
+AC_ARG_WITH([python],
+[ --with-python Build python bindings (on)],[],[with_python=yes])
+
PYTHON_VERSION=
PYTHON_INCLUDES=
PYTHON_SITE_PACKAGES=
@@ -1373,7 +1376,7 @@ if test "$with_python" != "no" ; then
fi
fi
fi
- if test "$with_python" != ""
+ if test "$with_python" != "yes"
then
pythondir='$(PYTHON_SITE_PACKAGES)'
else
@@ -1836,6 +1839,7 @@ AC_MSG_NOTICE([])
AC_MSG_NOTICE([ Debug: $enable_debug])
AC_MSG_NOTICE([ Warnings: $enable_compile_warnings])
AC_MSG_NOTICE([ Readline: $lv_use_readline])
+AC_MSG_NOTICE([ Python: $with_python])
AC_MSG_NOTICE([])
AC_MSG_NOTICE([Privileges])
AC_MSG_NOTICE([])
--
1.6.5.rc2