Make tunable for modulesdir
[samba.git] / source4 / build / m4 / check_path.m4
index 1751a89e5f8fa9bcdfa90d486acd0d56078b44ea..08a304b0d09299f0a566983ad88d0cb8a49780b7 100644 (file)
@@ -48,6 +48,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,