]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - configure.ac
kmem slab magazine ageing deadlock
[FreeBSD/FreeBSD.git] / configure.ac
1 /*
2  *  This file is part of the SPL: Solaris Porting Layer.
3  *
4  *  Copyright (c) 2008 Lawrence Livermore National Security, LLC.
5  *  Produced at Lawrence Livermore National Laboratory
6  *  Written by:
7  *          Brian Behlendorf <behlendorf1@llnl.gov>,
8  *          Herb Wartens <wartens2@llnl.gov>,
9  *          Jim Garlick <garlick@llnl.gov>
10  *  UCRL-CODE-235197
11  *
12  *  This is free software; you can redistribute it and/or modify it
13  *  under the terms of the GNU General Public License as published by
14  *  the Free Software Foundation; either version 2 of the License, or
15  *  (at your option) any later version.
16  *
17  *  This is distributed in the hope that it will be useful, but WITHOUT
18  *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19  *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
20  *  for more details.
21  *
22  *  You should have received a copy of the GNU General Public License along
23  *  with this program; if not, write to the Free Software Foundation, Inc.,
24  *  51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
25  */
26
27 AC_INIT
28 SPL_AC_META
29 AC_CONFIG_AUX_DIR([config])
30 AC_CANONICAL_SYSTEM
31 AM_INIT_AUTOMAKE([$SPL_META_NAME], [$SPL_META_VERSION])
32 AC_CONFIG_HEADERS([spl_config.h])
33 AM_MAINTAINER_MODE
34
35 AC_PROG_INSTALL
36 AC_PROG_CC
37 AC_PROG_LIBTOOL
38
39 LINUX=
40 LINUX_OBJ=
41
42 SPL_AC_KERNEL
43 SPL_AC_LICENSE
44 SPL_AC_DEBUG
45 SPL_AC_DEBUG_KMEM
46 SPL_AC_DEBUG_MUTEX
47 SPL_AC_DEBUG_KSTAT
48 SPL_AC_DEBUG_CALLB
49 SPL_AC_TYPE_UINTPTR_T
50 SPL_AC_TYPE_ATOMIC64_T
51 SPL_AC_3ARGS_INIT_WORK
52 SPL_AC_2ARGS_REGISTER_SYSCTL
53 SPL_AC_SET_SHRINKER
54 SPL_AC_PATH_IN_NAMEIDATA
55 SPL_AC_TASK_CURR
56 SPL_AC_CTL_UNNUMBERED
57 SPL_AC_FLS64
58 SPL_AC_DEVICE_CREATE
59 SPL_AC_CLASS_DEVICE_CREATE
60 SPL_AC_SET_NORMALIZED_TIMESPEC_EXPORT
61 SPL_AC_SET_NORMALIZED_TIMESPEC_INLINE
62 SPL_AC_TIMESPEC_SUB
63 SPL_AC_INIT_UTSNAME
64 SPL_AC_FDTABLE_HEADER
65 SPL_AC_FILES_FDTABLE
66 SPL_AC_UACCESS_HEADER
67 SPL_AC_KMALLOC_NODE
68 SPL_AC_MONOTONIC_CLOCK
69 SPL_AC_INODE_I_MUTEX
70 SPL_AC_DIV64_64
71 SPL_AC_3ARGS_ON_EACH_CPU
72 SPL_AC_FIRST_ONLINE_PGDAT
73 SPL_AC_NEXT_ONLINE_PGDAT
74 SPL_AC_NEXT_ZONE
75 SPL_AC_GET_ZONE_COUNTS
76
77 TOPDIR=`/bin/pwd`
78
79 # Add "V=1" to KERNELMAKE_PARAMS to enable verbose module build
80 KERNELMAKE_PARAMS=
81 KERNELCPPFLAGS="${KERNELCPPFLAGS} -I$TOPDIR -I$TOPDIR/include"
82 KERNELCPPFLAGS="${KERNELCPPFLAGS} -Wstrict-prototypes -Werror"
83
84 if test "${LINUX_OBJ}" != "${LINUX}"; then
85         KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$kernelbuild"
86 fi
87
88 AC_SUBST(KERNELMAKE_PARAMS)
89 AC_SUBST(KERNELCPPFLAGS)
90 AC_SUBST(KERNELCFLAGS)
91
92 AC_CONFIG_FILES([
93         Makefile
94         lib/Makefile
95         cmd/Makefile
96         module/Makefile
97         module/spl/Makefile
98         module/splat/Makefile
99         include/Makefile
100         include/asm/Makefile
101         include/fs/Makefile
102         include/linux/Makefile
103         include/rpc/Makefile
104         include/sharefs/Makefile
105         include/sys/Makefile
106         include/sys/fm/Makefile
107         include/sys/fs/Makefile
108         include/sys/sysevent/Makefile
109         include/util/Makefile
110         include/vm/Makefile
111         scripts/Makefile
112         scripts/spl.spec
113 ])
114
115 AC_OUTPUT