1 /* 2 * nana-config.h.in - contains configure generated parameters for nana which 3 * are mostly based on the canonical host type (sparc-sun-sunos4.1.4). 4 * 5 * Note: the generated file (nana-config.h) can be (and is expected to be) 6 * edited by the user and kept in a local per project directory where 7 * the include path will find it before the default system. DO NOT modify 8 * the nana-config.h in the standard include location since it will be 9 * overwritten on the next configure. 10 * 11 * Copyright (c) 1997 Phil Maker 12 * All rights reserved. 13 * 14 * Redistribution and use in source and binary forms, with or without 15 * modification, are permitted provided that the following conditions 16 * are met: 17 * 1. Redistributions of source code must retain the above copyright 18 * notice, this list of conditions and the following disclaimer. 19 * 2. Redistributions in binary form must reproduce the above copyright 20 * notice, this list of conditions and the following disclaimer in the 21 * documentation and/or other materials provided with the distribution. 22 * 23 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 24 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 26 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 27 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 33 * SUCH DAMAGE. 34 * 35 * Id: nana-config.h.in,v 1.2 1998/07/08 10:56:12 pjm Exp 36 */ 37 38 #ifndef _nana_config_h_ 39 #define _nana_config_h_ 1 40 41 #define NANA_VERSION "2.5" 42 #define NANA_NAME "nana-2.5" 43 44 /* 45 * The following definitions are generated by configure 46 * based on the machine architecture and os. 47 */ 48 49 #ifndef DI_MAKE_VALID_BREAKPOINT 50 #define DI_MAKE_VALID_BREAKPOINT(exprn) asm("nop") 51 #endif 52 53 #ifndef DL_MAKE_VALID_BREAKPOINT 54 #define DL_MAKE_VALID_BREAKPOINT() asm("nop") 55 #endif 56 57 #ifndef I_DEFAULT_HANDLER 58 59 #endif 60 61 /* 62 * ALWAYS_INCLUDE_MALLOC - the following contortions arise thusly. 63 * 64 * 1. gdb requires malloc() to do some of its magic. 65 * 2. on almost ALL machines using <stdio.h> brings in malloc 66 * so happiness follows. 67 * 3. except that on linux we don't get malloc() along with <stdio.h> 68 * automatically. 69 * 70 * Current answer to this problem: make a reference to malloc from 71 * this header file to bring it in automatically (only on i386's Linux 72 * though). 73 * 74 * Alternatives: just forget about the problem and put a call to malloc() 75 * in the checking programs. 76 * 77 * The current answer is NOT a good one 78 */ 79 80 #define ALWAYS_INCLUDE_MALLOC/* no arguments */ 0 81 #if ALWAYS_INCLUDE_MALLOC 82 #include <stdlib.h> /* including stdlib.h brings in lots of rubbish */ 83 84 static void *_nana_p = malloc; /* this costs us storage space */ 85 #endif 86 87 /* 88 * cycles.h support 89 */ 90 91 #define HAVE_RDTSC 0 92 93 #if HAVE_RDTSC 94 #define HAVE_CYCLES 1 95 #else 96 #define HAVE_CYCLES 0 97 #endif 98 99 #endif /* _nana_config_h_ */ 100 101 102