s4:samldb LDB module - make the "userAccountControl" and "groupType" modify handlers...
[ira/wip.git] / source4 / build / m4 / check_path.m4
index f7266e6e446459fba6e743a4cfcad3905cd5764b..fb6b8aa80485785d80652f53b19bd23ccb17de2f 100644 (file)
@@ -43,11 +43,27 @@ if test x$fhs = xyes; then
     winbindd_privileged_socket_dir="${localstatedir}/lib/samba/winbindd_privileged"
 else
        # Check to prevent installing directly under /usr without the FHS
-       AS_IF([test $prefix == /usr || test $prefix == /usr/local],[
+       AS_IF([test $prefix = /usr || test $prefix = /usr/local],[
                AC_MSG_ERROR([Don't install directly under "/usr" or "/usr/local" without using the FHS option (--enable-fhs). This could lead to file loss!])
        ])
 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,
@@ -81,7 +97,7 @@ AC_ARG_WITH(winbindd-socket-dir,
   esac])
 
 #################################################
-# set where the winbindd privilaged socket should be put
+# set where the winbindd privileged socket should be put
 AC_ARG_WITH(winbindd-privileged-socket-dir,
 [AS_HELP_STRING([--with-winbindd-privileged-socket-dir=DIR],[Where to put the winbindd socket ($winbindd_privileged_socket_dir)])],
 [ case "$withval" in