|
|
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: ! 66: # Sanity-check simple locking. ! 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: ! 88: # TTD Remote Kernel Debugging. ! 89: AC_DEFINE([MACH_TTD], [0], [MACH_TTD]) ! 90: ! 91: # VM debugging calls. ! 92: AC_DEFINE([MACH_VM_DEBUG], [1], [MACH_VM_DEBUG]) ! 93: ! 94: # Mach-dep power conservation. ! 95: AC_DEFINE([POWER_SAVE], [1], [POWER_SAVE]) ! 96: ! 97: # No hardware clock rollover. ! 98: AC_DEFINE([SIMPLE_CLOCK], [0], [SIMPLE_CLOCK]) ! 99: ! 100: # Use statistical timing. ! 101: AC_DEFINE([STAT_TIME], [1], [STAT_TIME]) ! 102: ! 103: # Kernel tracing. ! 104: AC_DEFINE([XPR_DEBUG], [1], [XPR_DEBUG]) ! 105: ! 106: # Slab allocator debugging facilities. ! 107: AC_DEFINE([SLAB_VERIFY], [0], [SLAB_VERIFY]) ! 108: ! 109: # Enable the CPU pool layer in the slab allocator. ! 110: AC_DEFINE([SLAB_USE_CPU_POOLS], [0], [SLAB_USE_CPU_POOLS]) ! 111: ! 112: # ! 113: # Options. ! 114: # ! 115: ! 116: AC_ARG_ENABLE([kdb], ! 117: AS_HELP_STRING([--enable-kdb], [enable use of in-kernel debugger])) ! 118: [if [ x"$enable_kdb" = xyes ]; then] ! 119: AC_DEFINE([MACH_KDB], [1], [Use the in-kernel debugger?]) ! 120: AM_CONDITIONAL([enable_kdb], [true]) ! 121: [else] ! 122: # We need to be long winded here: bogus/mach_kdb.h made it default to zero, ! 123: # unless overridden. ! 124: AC_DEFINE([MACH_KDB], [0], [Use the in-kernel debugger?]) ! 125: AM_CONDITIONAL([enable_kdb], [false]) ! 126: [fi] ! 127: ! 128: ! 129: AC_ARG_ENABLE([kmsg], ! 130: AS_HELP_STRING([--disable-kmsg], [disable use of kmsg device])) ! 131: [if [ x"$enable_kmsg" != xno ]; then] ! 132: AC_DEFINE([MACH_KMSG], [], [enable use of kmsg device]) ! 133: AM_CONDITIONAL([enable_kmsg], [true]) ! 134: [else] ! 135: AM_CONDITIONAL([enable_kmsg], [false]) ! 136: [fi] ! 137: ! 138: # ! 139: # Set up `SYSTYPE/SYSTYPE' and `SYSTYPE/include/mach/SYSTYPE' links. ! 140: # ! 141: ! 142: # `${file}' and `$file' have different meanings here with respect to having the ! 143: # files in the referenced directory considered for `make dist' or not. See ! 144: # <http://lists.gnu.org/archive/html/bug-automake/2006-11/msg00027.html>. ! 145: AC_CONFIG_LINKS([machine:$systype/$systype ! 146: mach/machine:$systype/include/mach/$systype]) ! 147: ! 148: dnl Local Variables: ! 149: dnl mode: autoconf ! 150: dnl End:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.