OPTS="--with-swatdir=/usr/share/swat  \
      --with-smbmount                 \
      --with-fhs                      \
      --with-automount                \
      --with-winbind                  \
      --with-libsmbclient             \
      $SAMBA_QUOTA                    \
      $OPTS"                          &&

if  [[  "$SAMBA_CIFS"  ==  "y"  ]];  then
  OPTS="--with-cifsmount $OPTS"
else
  OPTS="--without-cifsmount $OPTS"
fi &&

cd  $SOURCE_DIRECTORY/source3  &&
make_single    &&
default_build  &&
make_normal    &&

if [[ "$SAMBA_VSCAN" == "y" ]] ; then
        ORG_DIR=`pwd`
        cd $SOURCE_DIRECTORY/examples/VFS/$SPELL-vscan-$VSCAN_VERSION &&
        ./configure $ORG_OPTS   &&
        make &&
        cd $ORG_DIR
fi
