Define ENABLE_VFS_NET in C code not in M4 one.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2010-07-23 11:47:16 +04:00
parent 965e9d6bff
commit da8e14bcbb
2 changed files with 5 additions and 4 deletions

View File

@ -26,6 +26,10 @@ typedef enum
#ifdef ENABLE_VFS
#if defined (ENABLE_VFS_FTP) || defined (ENABLE_VFS_FISH) || defined (ENABLE_VFS_SMB)
#define ENABLE_VFS_NET 1
#endif
/**
* This is the type of callback function passed to vfs_fill_names.
* It gets the name of the virtual file system as its first argument.
@ -36,7 +40,7 @@ typedef void (*fill_names_f) (const char *);
extern int vfs_timeout;
#ifdef USE_NETCODE
#ifdef ENABLE_VFS_NET
extern int use_netrc;
#endif

View File

@ -73,9 +73,6 @@ AC_DEFUN([AC_MC_VFS_CHECKS],
if test x"$enable_vfs_ftp" = x"yes" -o x"$enable_vfs_fish" = x"yes" -o x"$enable_vfs_smb" = x"yes"; then
MC_ENABLE_VFS_NET
if test x"$enable_vfs_net" = x"yes"; then
AC_DEFINE([ENABLE_VFS_NET], [1], [Support for network filesystems])
fi
fi
AM_CONDITIONAL([ENABLE_VFS_NET], [test x"$enable_vfs_net" = x"yes"])