ubik: Introduce new vote lock
[openafs.git] / acinclude.m4
index 174f9c2..84669f0 100644 (file)
@@ -848,7 +848,8 @@ case $AFS_SYSNAME in *_linux* | *_umlinux*)
                                     [#include <linux/pagevec.h>],
                                     [__pagevec_lru_add_file(NULL);])
                 AC_CHECK_LINUX_FUNC([path_lookup],
-                                    [#include <linux/namei.h>],
+                                    [#include <linux/fs.h>
+                                     #include <linux/namei.h>],
                                     [path_lookup(NULL, 0, NULL);])
                 AC_CHECK_LINUX_FUNC([rcu_read_lock],
                                     [#include <linux/rcupdate.h>],
@@ -1216,6 +1217,7 @@ AC_HEADER_STDC
 AC_HEADER_SYS_WAIT
 AC_HEADER_DIRENT
 AC_CHECK_HEADERS([ \
+                  arpa/inet.h \
                   arpa/nameser.h \
                   curses.h\
                   direct.h \
@@ -1223,9 +1225,12 @@ AC_CHECK_HEADERS([ \
                   errno.h \
                   fcntl.h \
                   grp.h \
+                  math.h \
                   mntent.h \
                   ncurses.h \
+                  net/if.h \
                   netdb.h \
+                  netinet/if_ether.h \
                   netinet/in.h \
                   pwd.h \
                   regex.h \
@@ -1239,18 +1244,22 @@ AC_CHECK_HEADERS([ \
                   strings.h \
                   sys/bitypes.h \
                   sys/bswap.h \
+                  sys/dk.h \
                   sys/fcntl.h \
                   sys/file.h \
                   sys/fs_types.h \
                   sys/fstyp.h \
                   sys/ioctl.h \
                   sys/ipc.h \
+                  sys/lockf.h \
+                  sys/map.h \
                   sys/mount.h \
                   sys/mntent.h \
                   sys/mnttab.h \
                   sys/pag.h \
                   sys/param.h \
                   sys/resource.h \
+                  sys/select.h \
                   sys/statfs.h \
                   sys/statvfs.h \
                   sys/socket.h \
@@ -1320,7 +1329,7 @@ AC_SUBST(BUILD_LOGIN)
 
 AC_CHECK_FUNCS([ \
        arc4random \
-       flock \
+       fcntl \
        fseeko64 \
        ftello64 \
        getcwd \
@@ -1362,16 +1371,18 @@ AC_CHECK_FUNCS([ \
        fchown \
        gethostname \
        gettimeofday \
-       localtime_r \
        lstat \
        inet_aton \
        inet_ntop \
        inet_pton \
+       putenv \
        readv \
+       setenv \
        strdup \
        strftime \
        strndup \
        strsep \
+       unsetenv \
 ])
 
 dnl Functions that are in objects that we always build from libroken
@@ -1392,9 +1403,11 @@ AC_REPLACE_FUNCS([ \
        erealloc \
        err \
        errx \
+       flock \
        getdtablesize \
        getopt \
        getprogname \
+       localtime_r \
        mkstemp \
        strcasecmp \
        strlcat \