summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2015-04-14 13:19:22 +0200
committerJakub Hrozek <jhrozek@redhat.com>2015-04-24 14:38:30 +0200
commit827dd342494de18099dddd0272c1a85f10703556 (patch)
treee648434b5e2a7929fd938f9728648bf20fd30843
parentadb148603344a42d6edffdda0786a10af715dacb (diff)
downloadsssd-827dd342494de18099dddd0272c1a85f10703556.tar.gz
sssd-827dd342494de18099dddd0272c1a85f10703556.tar.xz
sssd-827dd342494de18099dddd0272c1a85f10703556.zip
BUILD: Write hints about optional python bindings
Reviewed-by: Michal Židek <mzidek@redhat.com>
-rw-r--r--configure.ac24
1 files changed, 22 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index e30405f3a..1f9c6f867 100644
--- a/configure.ac
+++ b/configure.ac
@@ -248,8 +248,22 @@ AM_CONDITIONAL([HAVE_PROFILE_CATALOGS], [test "x$HAVE_PROFILE_CATALOGS" != "x"])
AM_CONDITIONAL([HAVE_MANPAGES], [test "x$HAVE_MANPAGES" != "x"])
AM_CONDITIONAL([HAVE_PO4A], [test "x$PO4A" != "xno"])
+AC_CHECK_PROG(HAVE_PYTHON2, python2, yes, no)
+AS_IF([test x$HAVE_PYTHON2 = xyes],
+ [AC_PATH_PROG(PYTHON2, python2)])
+
+AC_CHECK_PROG(HAVE_PYTHON3, python3, yes, no)
+AS_IF([test x$HAVE_PYTHON3 = xyes],
+ [AC_PATH_PROG(PYTHON3, python3)])
+
if test x$HAVE_PYTHON2_BINDINGS = x1; then
- AC_PATH_PROG(PYTHON2, python2)
+ AS_IF([test x$HAVE_PYTHON2 != xyes],
+ [AC_MSG_ERROR([
+The program python2 was not found in search path.
+Please ensure that it is installed and its directory is included in the search
+path. It is required for building python2 bindings. If you do not want to build
+them please use argument --without-python2-bindings when running configure.])])
+
PYTHON=$PYTHON2
AM_PATH_PYTHON([2.6])
AM_PYTHON_CONFIG([python2])
@@ -270,7 +284,13 @@ if test x$HAVE_PYTHON2_BINDINGS = x1; then
fi
if test x$HAVE_PYTHON3_BINDINGS = x1; then
- AC_PATH_PROG(PYTHON3, python3)
+ AS_IF([test x$HAVE_PYTHON3 != xyes],
+ [AC_MSG_ERROR([
+The program python3 was not found in search path.
+Please ensure that it is installed and its directory is included in the search
+path. It is required for building python3 bindings. If you do not want to build
+them please use argument --without-python3-bindings when running configure.])])
+
PYTHON=$PYTHON3
AM_PATH_PYTHON([3.3])
AM_PYTHON_CONFIG([python3])