fileserver])],
,
[enable_namei_fileserver="default"])
-AC_ARG_ENABLE([cache-bypass],
- [AS_HELP_STRING([--enable-cache-bypass],
- [enable client support for cache bypass])],
- ,
- [enable_cache_bypass="no"])
AC_ARG_ENABLE([supergroups],
[AS_HELP_STRING([--enable-supergroups],
[enable support for nested pts groups])],
[enable Demand Attach Fileserver (please see documentation)])],
,
[enable_demand_attach_fs="no"])
-AC_ARG_ENABLE([disconnected],
- [AS_HELP_STRING([--enable-disconnected],
- [enable disconnected support in cache manager (experimental)])],
- ,
- [enable_disconnected="no"])
AC_ARG_ENABLE([unix-sockets],
[AS_HELP_STRING([--disable-unix-sockets],
[disable use of unix domain sockets for fssync (defaults to enabled)])],
AC_PROG_RANLIB
AC_PROG_YACC
AM_PROG_LEX
+dnl if we are flex, be lex-compatible
+OPENAFS_LEX_IS_FLEX([AC_SUBST([LEX], ["$LEX -l"])])
OPENAFS_CHECK_BIGENDIAN
OPENAFS_PRINTF_TAKES_Z_LEN
MKAFS_OSTYPE=DARWIN
AC_MSG_RESULT(x86_darwin)
;;
+ x86_64-*-darwin*)
+ MKAFS_OSTYPE=DARWIN
+ AC_MSG_RESULT(x86_darwin)
+ ;;
i386-*-freebsd*)
MKAFS_OSTYPE=FBSD
AC_MSG_RESULT(i386_fbsd)
i?86-apple-darwin10.*)
AFS_SYSNAME="x86_darwin_100"
;;
+ x86_64-apple-darwin10.*)
+ AFS_SYSNAME="x86_darwin_100"
+ ;;
sparc-sun-solaris2.5*)
AFS_SYSNAME="sun4x_55"
enable_login="yes"
fi
:
fi
+dnl Linux-only, but just enable always.
+ AC_DEFINE(AFS_CACHE_BYPASS, 1, [define to activate cache bypassing Unix client])
esac
AC_CACHE_CHECK([if struct sockaddr has sa_len field],
fi
AC_SUBST(DEMAND_ATTACH)
-if test "$enable_disconnected" = "yes"; then
- AC_DEFINE(AFS_DISCON_ENV, 1, [define if you want support for disconnected operation])
-fi
-
if test "$enable_unix_sockets" = "yes"; then
AC_DEFINE(USE_UNIX_SOCKETS, 1, [define if you want to use UNIX sockets for fssync.])
USE_UNIX_SOCKETS="yes"
fi
fi
-if test "$enable_cache_bypass" = "yes"; then
- AC_DEFINE(AFS_CACHE_BYPASS, 1, [define to activate cache bypassing Unix client])
-fi
-
if test "$enable_namei_fileserver" = "yes"; then
AC_DEFINE(AFS_NAMEI_ENV, 1, [define if you want to want namei fileserver])
VFSCK=""
AC_CHECK_HEADERS(netinet/in.h netdb.h sys/fcntl.h sys/mnttab.h sys/mntent.h)
AC_CHECK_HEADERS(mntent.h sys/vfs.h sys/param.h sys/fs_types.h sys/fstyp.h)
AC_CHECK_HEADERS(sys/mount.h strings.h termios.h signal.h sys/pag.h)
-AC_CHECK_HEADERS(windows.h direct.h sys/ipc.h)
+AC_CHECK_HEADERS(windows.h direct.h sys/ipc.h sys/resource.h)
AC_CHECK_HEADERS(security/pam_modules.h ucontext.h regex.h sys/statvfs.h sys/statfs.h sys/bitypes.h)
AC_CHECK_HEADERS(linux/errqueue.h,,,[#include <linux/types.h>])
AC_CHECK_HEADERS(et/com_err.h)
fi
AC_SUBST(BUILD_LOGIN)
-AC_CHECK_FUNCS(snprintf strlcat strlcpy flock)
+AC_CHECK_FUNCS(snprintf strlcat strlcpy flock getrlimit)
AC_CHECK_FUNCS(setprogname getprogname sigaction mkstemp vsnprintf strerror strcasestr)
AC_CHECK_FUNCS(setvbuf vsyslog getcwd)
AC_CHECK_FUNCS(regcomp regexec regerror)
+AC_CHECK_FUNCS(fseeko64 ftello64)
AC_MSG_CHECKING([for POSIX regex library])
if test "$ac_cv_header_regex_h" = "yes" && \
test "$ac_cv_func_regcomp" = "yes" && \
[Define to int if <sys/socket.h> does not define.])],
[#include <sys/types.h>
#include <sys/socket.h>])
+AC_CHECK_TYPES(off64_t)
AC_SIZEOF_TYPE(long)
AC_HEADER_PAM_CONST