[PATCH] [FreeBSD 7] Make tunable for modulesdir

Timur I. Bakeyev timur at com.bat.ru
Sun Jun 7 12:34:54 GMT 2009


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.
-------------- next part --------------
--- ./source4/build/m4/check_path.m4.orig	2009-04-30 07:53:01.000000000 +0000
+++ ./source4/build/m4/check_path.m4	2009-06-01 11:49:40.000000000 +0000
@@ -49,6 +49,22 @@
 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)])],


More information about the samba-technical mailing list