|
|
1.1 root 1: dnl Configure fragment for general options.
2:
3: dnl Copyright (C) 2006, 2007 Free Software Foundation, Inc.
4:
5: dnl Permission to use, copy, modify and distribute this software and its
6: dnl documentation is hereby granted, provided that both the copyright
7: dnl notice and this permission notice appear in all copies of the
8: dnl software, derivative works or modified versions, and any portions
9: dnl thereof, and that both notices appear in supporting documentation.
10: dnl
11: dnl THE FREE SOFTWARE FOUNDATION ALLOWS FREE USE OF THIS SOFTWARE IN ITS
12: dnl "AS IS" CONDITION. THE FREE SOFTWARE FOUNDATION DISCLAIMS ANY
13: dnl LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE
14: dnl USE OF THIS SOFTWARE.
15:
16: #
17: # Definitions.
18: #
19:
20: AC_DEFINE([MACH], [1], [MACH])
21: AC_DEFINE([CMU], [1], [CMU])
22: AC_DEFINE([MACH_KERNEL], [1], [Standalone MACH kernel])
23: AC_DEFINE([KERNEL], [1], [KERNEL])
24:
25: #
26: # Formerly in `bogus/'.
27: #
28:
29: # When set, the bootstrap task symbols are preserved by the kernel debugger.
30: # Used in `kern/bootstrap.c'.
31: AC_DEFINE([BOOTSTRAP_SYMBOLS], [0], [BOOTSTRAP_SYMBOLS])
32:
33: # Multiprocessor support is still broken.
34: AH_TEMPLATE([MULTIPROCESSOR], [set things up for a uniprocessor])
35: mach_ncpus=1
36: AC_DEFINE_UNQUOTED([NCPUS], [$mach_ncpus], [number of CPUs])
37: [if [ $mach_ncpus -gt 1 ]; then]
38: AC_DEFINE([MULTIPROCESSOR], [1], [set things up for a multiprocessor])
39: [fi]
40:
41: # Restartable Atomic Sequences to get a really fast test-n-set. Can't be
42: # enabled, as the `void recover_ras()' function is missing.
43: AC_DEFINE([FAST_TAS], [0], [FAST_TAS])
44:
45: # Cache footprint support.
46: AC_DEFINE([HW_FOOTPRINT], [0], [HW_FOOTPRINT])
47:
48: # Counters.
49: AC_DEFINE([MACH_COUNTERS], [0], [MACH_COUNTERS])
50:
51: # IPC debugging interface.
52: AC_DEFINE([MACH_DEBUG], [1], [MACH_DEBUG])
53:
54: # Fixed priority threads.
55: AC_DEFINE([MACH_FIXPRI], [1], [MACH_FIXPRI])
56:
57: # Mach host (resource alloc.).
58: AC_DEFINE([MACH_HOST], [0], [MACH_HOST])
59:
60: # IPC debugging calls.
61: AC_DEFINE([MACH_IPC_DEBUG], [1], [MACH_IPC_DEBUG])
62:
63: # Testing code/printfs.
64: AC_DEFINE([MACH_IPC_TEST], [0], [MACH_IPC_TEST])
65:
1.1.1.2 root 66: # Sanity-check locking.
1.1 root 67: AC_DEFINE([MACH_LDEBUG], [0], [MACH_LDEBUG])
68:
69: # MP lock monitoring. Registers use of locks, contention. Depending on
70: # hardware also records time spent with locks held. Used in `kern/lock_mon.c'.
71: AC_DEFINE([MACH_LOCK_MON], [0], [MACH_LOCK_MON])
72:
73: # Does the architecture provide machine-specific interfaces?
74: mach_machine_routines=${mach_machine_routines-0}
75: AC_DEFINE_UNQUOTED([MACH_MACHINE_ROUTINES], [$mach_machine_routines],
76: [MACH_MACHINE_ROUTINES])
77:
78: # MP debugging. Use alternate locking routines to detect deadlocks. Used in
79: # `kern/lock_mon.c'.
80: AC_DEFINE([MACH_MP_DEBUG], [0], [MACH_MP_DEBUG])
81:
82: # Paged-out page map hints.
83: AC_DEFINE([MACH_PAGEMAP], [1], [MACH_PAGEMAP])
84:
85: # Do pc sample histogram.
86: AC_DEFINE([MACH_PCSAMPLE], [1], [MACH_PCSAMPLE])
87:
1.1.1.3 ! root 88: # Sample kernel too.
! 89: AC_ARG_ENABLE([kernsample],
! 90: AS_HELP_STRING([--enable-kernsample], [enable sampling kernel]))
! 91: [if [ x"$enable_kernsample" = xyes ]; then]
! 92: AC_DEFINE([MACH_KERNSAMPLE], [1], [MACH_KERNSAMPLE])
! 93: [else]
! 94: AC_DEFINE([MACH_KERNSAMPLE], [0], [MACH_KERNSAMPLE])
! 95: [fi]
! 96:
1.1 root 97: # TTD Remote Kernel Debugging.
98: AC_DEFINE([MACH_TTD], [0], [MACH_TTD])
99:
100: # VM debugging calls.
101: AC_DEFINE([MACH_VM_DEBUG], [1], [MACH_VM_DEBUG])
102:
103: # Mach-dep power conservation.
104: AC_DEFINE([POWER_SAVE], [1], [POWER_SAVE])
105:
106: # No hardware clock rollover.
107: AC_DEFINE([SIMPLE_CLOCK], [0], [SIMPLE_CLOCK])
108:
109: # Use statistical timing.
110: AC_DEFINE([STAT_TIME], [1], [STAT_TIME])
111:
112: # Kernel tracing.
1.1.1.2 root 113: AC_DEFINE([XPR_DEBUG], [0], [XPR_DEBUG])
1.1 root 114:
115: # Slab allocator debugging facilities.
116: AC_DEFINE([SLAB_VERIFY], [0], [SLAB_VERIFY])
117:
118: # Enable the CPU pool layer in the slab allocator.
119: AC_DEFINE([SLAB_USE_CPU_POOLS], [0], [SLAB_USE_CPU_POOLS])
120:
121: #
122: # Options.
123: #
124:
1.1.1.3 ! root 125: AC_HEADER_ASSERT()
! 126:
1.1 root 127: AC_ARG_ENABLE([kdb],
128: AS_HELP_STRING([--enable-kdb], [enable use of in-kernel debugger]))
129: [if [ x"$enable_kdb" = xyes ]; then]
130: AC_DEFINE([MACH_KDB], [1], [Use the in-kernel debugger?])
131: AM_CONDITIONAL([enable_kdb], [true])
132: [else]
133: # We need to be long winded here: bogus/mach_kdb.h made it default to zero,
134: # unless overridden.
135: AC_DEFINE([MACH_KDB], [0], [Use the in-kernel debugger?])
136: AM_CONDITIONAL([enable_kdb], [false])
137: [fi]
138:
139:
140: AC_ARG_ENABLE([kmsg],
141: AS_HELP_STRING([--disable-kmsg], [disable use of kmsg device]))
142: [if [ x"$enable_kmsg" != xno ]; then]
143: AC_DEFINE([MACH_KMSG], [], [enable use of kmsg device])
144: AM_CONDITIONAL([enable_kmsg], [true])
145: [else]
146: AM_CONDITIONAL([enable_kmsg], [false])
147: [fi]
148:
149: #
150: # Set up `SYSTYPE/SYSTYPE' and `SYSTYPE/include/mach/SYSTYPE' links.
151: #
152:
153: # `${file}' and `$file' have different meanings here with respect to having the
154: # files in the referenced directory considered for `make dist' or not. See
155: # <http://lists.gnu.org/archive/html/bug-automake/2006-11/msg00027.html>.
1.1.1.2 root 156: AC_CONFIG_LINKS([machine:$srcdir/$systype/$systype
1.1 root 157: mach/machine:$systype/include/mach/$systype])
158:
159: dnl Local Variables:
160: dnl mode: autoconf
161: dnl End:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.