mc/m4.include/vfs/mc-vfs-samba.m4
Slava Zanko 12446899f7 Changes for configure and build with samba:
* m4: AC_CONFIG_SUBDIRS() macros should be always called without relation to enable/disable samba support
 * vfs/samba: configure.ac: renamed --with-configdir to --with-smb-configdir
 * vfs/samba: configure.ac: renamed --with-codepagedir to --with-smb-codepagedir

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-07-21 16:43:50 +04:00

48 lines
1.2 KiB
Plaintext

dnl Samba support
AC_DEFUN([AC_MC_VFS_SMB],
[
AC_ARG_ENABLE([vfs-smb],
AC_HELP_STRING([--enable-vfs-smb], [Support for SMB filesystem [[no]]]))
if test "$enable_vfs" != "no" -a x"$enable_vfs_smb" != x"no"; then
enable_vfs_smb="yes"
AC_MC_VFS_ADDNAME([smb])
AC_DEFINE([ENABLE_VFS_SMB], [1], [Define to enable VFS over SMB])
# set Samba configuration directory location
configdir="/etc"
AC_ARG_WITH([smb-configdir],
AC_HELP_STRING([--with-smb-configdir=DIR], [Where the Samba configuration files are [[/etc]]]),
[ case "$withval" in
yes|no)
# Just in case anybody does it
AC_MSG_WARN([--with-smb-configdir called without argument - will use default])
;;
*)
configdir="$withval"
;;
esac
])
AC_ARG_WITH([smb-codepagedir],
AC_HELP_STRING([--with-smb-codepagedir=DIR], [Where the Samba codepage files are]),
[ case "$withval" in
yes|no)
# Just in case anybody does it
AC_MSG_WARN([--with-smb-codepagedir called without argument - will use default])
;;
*)
codepagedir="$withval"
;;
esac
])
AC_SUBST(configdir)
AC_SUBST(codepagedir)
fi
AC_CONFIG_SUBDIRS([lib/vfs/mc-vfs/samba])
AM_CONDITIONAL([ENABLE_VFS_SMB], [test x"$enable_vfs_smb" = x"yes"])
])