]>
Commit | Line | Data |
---|---|---|
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 | ||
29 | AC_CANONICAL_SYSTEM | |
30 | AM_INIT_AUTOMAKE(spl, 0.3.3) | |
31 | AC_CONFIG_HEADERS([spl_config.h]) | |
32 | ||
33 | AC_PROG_INSTALL | |
34 | AC_PROG_CC | |
35 | AC_PROG_LIBTOOL | |
36 | ||
37 | LINUX= | |
38 | LINUX_OBJ= | |
39 | ||
40 | SPL_AC_KERNEL | |
41 | SPL_AC_DEBUG | |
42 | SPL_AC_DEBUG_KMEM | |
43 | SPL_AC_DEBUG_MUTEX | |
44 | SPL_AC_DEBUG_KSTAT | |
45 | SPL_AC_DEBUG_CALLB | |
46 | SPL_AC_TYPE_UINTPTR_T | |
47 | SPL_AC_ATOMIC_PANIC_NOTIFIER | |
48 | SPL_AC_3ARGS_INIT_WORK | |
49 | SPL_AC_2ARGS_REGISTER_SYSCTL | |
50 | SPL_AC_SET_SHRINKER | |
51 | SPL_AC_PATH_IN_NAMEIDATA | |
52 | SPL_AC_TASK_CURR | |
53 | SPL_AC_CTL_UNNUMBERED | |
54 | SPL_AC_FLS64 | |
55 | SPL_AC_DEVICE_CREATE | |
56 | SPL_AC_CLASS_DEVICE_CREATE | |
57 | SPL_AC_SET_NORMALIZED_TIMESPEC_EXPORT | |
58 | SPL_AC_SET_NORMALIZED_TIMESPEC_INLINE | |
59 | SPL_AC_TIMESPEC_SUB | |
60 | SPL_AC_INIT_UTSNAME | |
61 | SPL_AC_FDTABLE_HEADER | |
62 | SPL_AC_FILES_FDTABLE | |
63 | SPL_AC_UACCESS_HEADER | |
64 | SPL_AC_KMALLOC_NODE | |
65 | SPL_AC_MONOTONIC_CLOCK | |
66 | SPL_AC_INODE_I_MUTEX | |
67 | ||
68 | TOPDIR=`/bin/pwd` | |
69 | ||
70 | # Add "V=1" to KERNELMAKE_PARAMS to enable verbose module build | |
71 | KERNELMAKE_PARAMS= | |
72 | KERNELCPPFLAGS="${KERNELCPPFLAGS} -I$TOPDIR -I$TOPDIR/include" | |
73 | ||
74 | if test "${LINUX_OBJ}" != "${LINUX}"; then | |
75 | KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$kernelbuild" | |
76 | fi | |
77 | ||
78 | AC_SUBST(KERNELMAKE_PARAMS) | |
79 | AC_SUBST(KERNELCPPFLAGS) | |
80 | AC_SUBST(KERNELCFLAGS) | |
81 | ||
82 | AC_CONFIG_FILES([ Makefile | |
83 | lib/Makefile | |
84 | cmd/Makefile | |
85 | modules/Makefile | |
86 | modules/spl/Makefile | |
87 | modules/splat/Makefile | |
88 | include/Makefile | |
89 | include/sys/Makefile | |
90 | scripts/Makefile | |
91 | scripts/spl.spec | |
92 | ]) | |
93 | ||
94 | AC_OUTPUT |