Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / src / cf / autoheader.m4
1 AC_DEFUN([OPENAFS_AUTOHEADER_BOTTOM],[
2 AH_BOTTOM([
3 #undef HAVE_RES_SEARCH
4 #undef STRUCT_SOCKADDR_HAS_SA_LEN
5 #if !defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)
6 # if ENDIANESS_IN_SYS_PARAM_H
7 # ifndef KERNEL
8 # include <sys/types.h>
9 # include <sys/param.h>
10 # if BYTE_ORDER == BIG_ENDIAN
11 # define WORDS_BIGENDIAN 1
12 # endif
13 # else
14 # if defined(AUTOCONF_FOUND_BIGENDIAN)
15 # define WORDS_BIGENDIAN 1
16 # else
17 # undef WORDS_BIGENDIAN
18 # endif
19 # endif
20 # else
21 # if defined(AUTOCONF_FOUND_BIGENDIAN)
22 # define WORDS_BIGENDIAN 1
23 # else
24 # undef WORDS_BIGENDIAN
25 # endif
26 # endif
27 #else
28 # if defined(__BIG_ENDIAN__)
29 # define WORDS_BIGENDIAN 1
30 # else
31 # undef WORDS_BIGENDIAN
32 # endif
33 #endif
34 #ifdef UKERNEL
35 /*
36 * Always use 64-bit file offsets for UKERNEL code. Needed for UKERNEL stuff to
37 * play nice with some other interfaces like FUSE. We technically only would
38 * need to define this when building for such interfaces, but set it always to
39 * try and reduce potential confusion.
40 */
41 # define _FILE_OFFSET_BITS 64
42 # define AFS_CACHE_VNODE_PATH
43 #endif
44
45 #undef AFS_NAMEI_ENV
46 #undef BITMAP_LATER
47 #undef FAST_RESTART
48 #undef DEFINED_FOR_EACH_PROCESS
49 #undef DEFINED_PREV_TASK
50 #undef EXPORTED_SYS_CALL_TABLE
51 #undef EXPORTED_IA32_SYS_CALL_TABLE
52 #undef IRIX_HAS_MEM_FUNCS
53 #undef RECALC_SIGPENDING_TAKES_VOID
54 #undef STRUCT_FS_HAS_FS_ROLLED
55 #undef ssize_t
56 /* glue for RedHat kernel bug */
57 #undef ENABLE_REDHAT_BUILDSYS
58 #if defined(ENABLE_REDHAT_BUILDSYS) && defined(KERNEL) && defined(REDHAT_FIX)
59 # include "redhat-fix.h"
60 #endif])
61 ])