summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2013-01-26 22:53:02 +0100
committerArthur de Jong <arthur@arthurdejong.org>2013-02-08 21:27:16 +0100
commit3117668c15cf88f877a538035875cd0f75ce821c (patch)
treefda65f5121e78a8bb47931909cd29bf5c8124b8e /configure.ac
parent7c01898fd02c0f71d4632cca27d3fb92554caa18 (diff)
add an --enable-utils option to configure to build command-line utilities
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac15
1 files changed, 12 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index a25e9a4..483c0ee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -126,6 +126,15 @@ AC_ARG_ENABLE(pam,
AC_MSG_RESULT($enable_pam)
AM_CONDITIONAL([ENABLE_PAM], [test "x$enable_pam" = "xyes"])
+# check whether command-line utilities should be built
+AC_MSG_CHECKING([whether to build the command-line utilities])
+AC_ARG_ENABLE(utils,
+ AS_HELP_STRING([--enable-utils],
+ [build the the command-line utilities [[default=disabled]]]),,
+ [enable_util="no"])
+AC_MSG_RESULT($enable_utils)
+AM_CONDITIONAL([ENABLE_UTILS], [test "x$enable_utils" = "xyes"])
+
# check whether the nslcd daemon should be built
AC_MSG_CHECKING([whether to build the nslcd daemon])
AC_ARG_ENABLE(nslcd,
@@ -762,8 +771,8 @@ then
AC_SUBST(nslcd_LIBS)
fi
-# pynslcd daemon-specific tests
-if test "x$enable_pynslcd" = "xyes"
+# Python-specific tests
+if test "x$enable_pynslcd" = "xyes" || test "x$enable_utils" = "xyes"
then
# check Python interpreter
AM_PATH_PYTHON(2.5)
@@ -775,7 +784,7 @@ AM_CONDITIONAL([NSS_FLAVOUR_FREEBSD], [test "x${with_nss_flavour}" = xfreebsd])
# generate files
AC_CONFIG_FILES([Makefile compat/Makefile common/Makefile nss/Makefile
- pam/Makefile nslcd/Makefile pynslcd/Makefile
+ pam/Makefile utils/Makefile nslcd/Makefile pynslcd/Makefile
man/Makefile tests/Makefile])
AC_CONFIG_FILES([pynslcd/constants.py], [[
(