root/src/noit_config.h.in

Revision 0268e62cb80791dd94220cf6deec916656c7cddd, 4.6 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 6 years ago)

update.. prep for config system and module loading

  • Property mode set to 100644
Line 
1 /*
2  * Copyright (c) 2005-2007, OmniTI Computer Consulting, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are
7  * met:
8  *
9  *    * Redistributions of source code must retain the above copyright
10  *      notice, this list of conditions and the following disclaimer.
11  *    * Redistributions in binary form must reproduce the above
12  *      copyright notice, this list of conditions and the following
13  *      disclaimer in the documentation and/or other materials provided
14  *      with the distribution.
15  *    * Neither the name OmniTI Computer Consulting, Inc. nor the names
16  *      of its contributors may be used to endorse or promote products
17  *      derived from this software without specific prior written
18  *      permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32
33 #ifndef __NOIT_CONFIG_H
34 #define __NOIT_CONFIG_H
35
36 /* define inline unless that is what the compiler already calls it. */
37 #undef inline
38
39 #undef MODULEEXT
40 #undef MODULES_DIR
41
42 #undef HAVE_FCNTL_H
43 #undef HAVE_SYS_TYPES_H
44 #undef HAVE_DIRENT_H
45 #undef HAVE_ERRNO_H
46 #undef HAVE_STRING_H
47 #undef HAVE_STDLIB_H
48 #undef HAVE_SYS_PARAM_H
49 #undef HAVE_TIME_H
50 #undef HAVE_SYS_STAT_H
51 #undef HAVE_SYS_RESOURCE_H
52 #undef HAVE_LIBKERN_OSATOMIC_H
53 #undef HAVE_INT64_T
54 #undef HAVE_INTXX_T
55 #undef HAVE_LONG_LONG_INT
56 #undef HAVE_UINTXX_T
57 #undef HAVE_U_INT
58 #undef HAVE_U_INT64_T
59 #undef HAVE_U_INTXX_T
60 #define IFS_CH '/'
61
62 #ifdef HAVE_STRING_H
63 #include <string.h>
64 #endif
65 #ifdef HAVE_STDLIB_H
66 #include <stdlib.h>
67 #endif
68 #ifdef HAVE_SYS_PARAM_H
69 #include <sys/param.h>
70 #endif
71 #ifdef HAVE_SYS_TYPES_H
72 #include <sys/types.h>
73 #endif
74 #ifdef HAVE_SYS_STAT_H
75 #include <sys/stat.h>
76 #endif
77 #ifdef HAVE_SYS_RESOURCE_H
78 #include <sys/resource.h>
79 #endif
80
81 /* Kernel kqueue() support */
82 #undef HAVE_KQUEUE
83
84 /* The number of bytes in a char.  */
85 #undef SIZEOF_CHAR
86
87 /* The number of bytes in a int.  */
88 #undef SIZEOF_INT
89
90 /* The number of bytes in a size_t.  */
91 #undef SIZEOF_SIZE_T
92
93
94 /* The number of bytes in a long int.  */
95 #undef SIZEOF_LONG_INT
96
97 /* The number of bytes in a long long int.  */
98 #undef SIZEOF_LONG_LONG_INT
99
100 /* The number of bytes in a short int.  */
101 #undef SIZEOF_SHORT_INT
102
103 /* The number of bytes in a void *.  */
104 #undef SIZEOF_VOID_P
105
106 #ifndef HAVE_U_INT
107 typedef unsigned int u_int;
108 #endif
109
110 #undef HAVE_INTXX_T
111 #ifndef HAVE_INTXX_T
112 #if (SIZEOF_CHAR == 1)
113 typedef char int8_t;
114 #else
115 #error "8 bit int type not found."
116 #endif
117 #if (SIZEOF_SHORT_INT == 2)
118 typedef short int int16_t;
119 #else
120 #ifdef _CRAY
121 typedef long int16_t;
122 #else
123 #warning "16 bit int type not found."
124 #endif /* _CRAY */
125 #endif
126 #if (SIZEOF_INT == 4)
127 typedef int int32_t;
128 #else
129 #ifdef _CRAY
130 typedef long int32_t;
131 #else
132 #error "32 bit int type not found."
133 #endif /* _CRAY */
134 #endif
135 #endif
136
137 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
138 #ifndef HAVE_U_INTXX_T
139 #ifdef HAVE_UINTXX_T
140 typedef uint8_t u_int8_t;
141 typedef uint16_t u_int16_t;
142 typedef uint32_t u_int32_t;
143 #define HAVE_U_INTXX_T 1
144 #else
145 #if (SIZEOF_CHAR == 1)
146 typedef unsigned char u_int8_t;
147 #else
148 #error "8 bit int type not found."
149 #endif
150 #if (SIZEOF_SHORT_INT == 2)
151 typedef unsigned short int u_int16_t;
152 #else
153 #ifdef _CRAY
154 typedef unsigned long u_int16_t;
155 #else
156 #warning "16 bit int type not found."
157 #endif
158 #endif
159 #if (SIZEOF_INT == 4)
160 typedef unsigned int u_int32_t;
161 #else
162 #ifdef _CRAY
163 typedef unsigned long u_int32_t;
164 #else
165 #error "32 bit int type not found."
166 #endif
167 #endif
168 #endif
169 #endif
170
171 /* 64-bit types */
172 #ifndef HAVE_INT64_T
173 #if (SIZEOF_LONG_INT == 8)
174 typedef long int int64_t;
175 #define HAVE_INT64_T 1
176 #else
177 #if (SIZEOF_LONG_LONG_INT == 8)
178 typedef long long int int64_t;
179 #define HAVE_INT64_T 1
180 #define HAVE_LONG_LONG_INT
181 #endif
182 #endif
183 #endif
184 #ifndef HAVE_U_INT64_T
185 #if (SIZEOF_LONG_INT == 8)
186 typedef unsigned long int u_int64_t;
187 #define HAVE_U_INT64_T 1
188 #else
189 #if (SIZEOF_LONG_LONG_INT == 8)
190 typedef unsigned long long int u_int64_t;
191 #define HAVE_U_INT64_T 1
192 #endif
193 #endif
194 #endif
195
196 #endif
Note: See TracBrowser for help on using the browser.