00001 /* 00002 * nana-config.h.in - contains configure generated parameters for nana which 00003 * are mostly based on the canonical host type (sparc-sun-sunos4.1.4). 00004 * 00005 * Note: the generated file (nana-config.h) can be (and is expected to be) 00006 * edited by the user and kept in a local per project directory where 00007 * the include path will find it before the default system. DO NOT modify 00008 * the nana-config.h in the standard include location since it will be 00009 * overwritten on the next configure. 00010 * 00011 * Copyright (c) 1997 Phil Maker 00012 * All rights reserved. 00013 * 00014 * Redistribution and use in source and binary forms, with or without 00015 * modification, are permitted provided that the following conditions 00016 * are met: 00017 * 1. Redistributions of source code must retain the above copyright 00018 * notice, this list of conditions and the following disclaimer. 00019 * 2. Redistributions in binary form must reproduce the above copyright 00020 * notice, this list of conditions and the following disclaimer in the 00021 * documentation and/or other materials provided with the distribution. 00022 * 00023 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 00024 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00025 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00026 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 00027 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00028 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00029 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00030 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00031 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00032 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00033 * SUCH DAMAGE. 00034 * 00035 * Id: nana-config.h.in,v 1.2 1998/07/08 10:56:12 pjm Exp 00036 */ 00037 00038 #ifndef _nana_config_h_ 00039 #define _nana_config_h_ 1 00040 00041 #define NANA_VERSION "2.5" 00042 #define NANA_NAME "nana-2.5" 00043 00044 /* 00045 * The following definitions are generated by configure 00046 * based on the machine architecture and os. 00047 */ 00048 00049 #ifndef DI_MAKE_VALID_BREAKPOINT 00050 #define DI_MAKE_VALID_BREAKPOINT(exprn) asm("nop") 00051 #endif 00052 00053 #ifndef DL_MAKE_VALID_BREAKPOINT 00054 #define DL_MAKE_VALID_BREAKPOINT() asm("nop") 00055 #endif 00056 00057 #ifndef I_DEFAULT_HANDLER 00058 00059 #endif 00060 00061 /* 00062 * ALWAYS_INCLUDE_MALLOC - the following contortions arise thusly. 00063 * 00064 * 1. gdb requires malloc() to do some of its magic. 00065 * 2. on almost ALL machines using <stdio.h> brings in malloc 00066 * so happiness follows. 00067 * 3. except that on linux we don't get malloc() along with <stdio.h> 00068 * automatically. 00069 * 00070 * Current answer to this problem: make a reference to malloc from 00071 * this header file to bring it in automatically (only on i386's Linux 00072 * though). 00073 * 00074 * Alternatives: just forget about the problem and put a call to malloc() 00075 * in the checking programs. 00076 * 00077 * The current answer is NOT a good one 00078 */ 00079 00080 #define ALWAYS_INCLUDE_MALLOC/* no arguments */ 0 00081 #if ALWAYS_INCLUDE_MALLOC 00082 #include <stdlib.h> /* including stdlib.h brings in lots of rubbish */ 00083 00084 static void *_nana_p = (void *) malloc; /* this costs us storage space */ 00085 #endif 00086 00087 /* 00088 * cycles.h support 00089 */ 00090 00091 #define HAVE_RDTSC 0 00092 00093 #if HAVE_RDTSC 00094 #define HAVE_CYCLES 1 00095 #else 00096 #define HAVE_CYCLES 0 00097 #endif 00098 00099 #endif /* _nana_config_h_ */ 00100 00101
1.3.4