summaryrefslogtreecommitdiffstats
path: root/src/conf_macros.m4
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2012-02-06 19:24:17 +0100
committerJakub Hrozek <jhrozek@redhat.com>2012-02-07 00:48:52 +0100
commite124844907ed6973915e4d56f5442ecd07535a12 (patch)
tree3ea48f3ae8a747d490acd0dc0a273e5948dda9df /src/conf_macros.m4
parent9a3e40dc49c1e38bf58e45be5adff37615f3910b (diff)
downloadsssd_unused-e124844907ed6973915e4d56f5442ecd07535a12.zip
sssd_unused-e124844907ed6973915e4d56f5442ecd07535a12.tar.gz
sssd_unused-e124844907ed6973915e4d56f5442ecd07535a12.tar.xz
Make sudo installation path configurable, install into libdir by default
Diffstat (limited to 'src/conf_macros.m4')
-rw-r--r--src/conf_macros.m414
1 files changed, 14 insertions, 0 deletions
diff --git a/src/conf_macros.m4 b/src/conf_macros.m4
index c79692e..a54dd7f 100644
--- a/src/conf_macros.m4
+++ b/src/conf_macros.m4
@@ -424,6 +424,20 @@ AC_DEFUN([WITH_SUDO],
AM_CONDITIONAL([BUILD_SUDO], [test x"$with_sudo" = xyes])
])
+AC_DEFUN([WITH_SUDO_LIB_PATH],
+ [ AC_ARG_WITH([sudo-lib-path],
+ [AC_HELP_STRING([--with-sudo-lib-path=<path>],
+ [Path to the sudo library [/usr/lib/]]
+ )
+ ]
+ )
+ sudolibpath="${libdir}"
+ if test x"$with_sudo_lib_path" != x; then
+ sudolibpath=$with_sudo_lib_path
+ fi
+ AC_SUBST(sudolibpath)
+ ])
+
AC_DEFUN([WITH_AUTOFS],
[ AC_ARG_WITH([autofs],
[AC_HELP_STRING([--with-autofs],