summaryrefslogtreecommitdiff
path: root/source4/build/m4
diff options
context:
space:
mode:
authorTimur I. Bakeyev <timur@com.bat.ru>2009-06-07 12:34:54 +0000
committerStefan Metzmacher <metze@samba.org>2009-06-08 13:20:51 +0200
commit11332e106c8654f798177e089b332263bfb81e18 (patch)
treeedcb40f2f45b3070f200ed621564f920cd1b8899 /source4/build/m4
parentc41a12f8ba75f0d3fce336ee1f779391782413db (diff)
downloadsamba-11332e106c8654f798177e089b332263bfb81e18.tar.gz
samba-11332e106c8654f798177e089b332263bfb81e18.tar.bz2
samba-11332e106c8654f798177e089b332263bfb81e18.zip
Make tunable for modulesdir
This patch is for Samba4. It adds configure tunable for modulesdir - location, where modules should be installed. In the case, when no FHS compliance is used and libdir is redefined, modulesdir still points to $PREFIX/modules. In some installations it may be not desired. I'd rather set it myself :) So, here is the patch. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source4/build/m4')
-rw-r--r--source4/build/m4/check_path.m416
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/build/m4/check_path.m4 b/source4/build/m4/check_path.m4
index 1751a89e5f..08a304b0d0 100644
--- a/source4/build/m4/check_path.m4
+++ b/source4/build/m4/check_path.m4
@@ -49,6 +49,22 @@ else
fi
#################################################
+# set modules directory location
+AC_ARG_WITH(modulesdir,
+[AS_HELP_STRING([--with-modulesdir=DIR],[Where to put dynamically loadable modules ($modulesdir)])],
+[ case "$withval" in
+ yes|no)
+ #
+ # Just in case anybody calls it without argument
+ #
+ AC_MSG_WARN([--with-modulesdir called without argument - will use default])
+ ;;
+ * )
+ modulesdir="$withval"
+ ;;
+ esac])
+
+#################################################
# set private directory location
AC_ARG_WITH(privatedir,
[AS_HELP_STRING([--with-privatedir=DIR],[Where to put sam.ldb and other private files containing key material ($ac_default_prefix/private)])],