2 AC_DEFUN([AC_MC_VFS_SMB],
4 AC_ARG_ENABLE([vfs-smb],
5 AC_HELP_STRING([--enable-vfs-smb], [Support for SMB filesystem [[no]]]))
6 if test "$enable_vfs" != "no" -a x"$enable_vfs_smb" != x"no"; then
8 AC_MC_VFS_ADDNAME([smb])
9 AC_DEFINE([ENABLE_VFS_SMB], [1], [Define to enable VFS over SMB])
11 # set Samba configuration directory location
13 AC_ARG_WITH([smb-configdir],
14 AC_HELP_STRING([--with-smb-configdir=DIR], [Where the Samba configuration files are [[/etc]]]),
17 # Just in case anybody does it
18 AC_MSG_WARN([--with-smb-configdir called without argument - will use default])
26 AC_ARG_WITH([smb-codepagedir],
27 AC_HELP_STRING([--with-smb-codepagedir=DIR], [Where the Samba codepage files are]),
30 # Just in case anybody does it
31 AC_MSG_WARN([--with-smb-codepagedir called without argument - will use default])
34 codepagedir="$withval"
44 AC_CONFIG_SUBDIRS([lib/vfs/mc-vfs/samba])
46 AM_CONDITIONAL([ENABLE_VFS_SMB], [test x"$enable_vfs_smb" = x"yes"])