root/src/noit_config.h.in

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

change detection and keeping old status

  • 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 #undef ETC_DIR
42
43 #undef HAVE_FCNTL_H
44 #undef HAVE_SYS_TYPES_H
45 #undef HAVE_DIRENT_H
46 #undef HAVE_ERRNO_H
47 #undef HAVE_STRING_H
48 #undef HAVE_STDLIB_H
49 #undef HAVE_SYS_PARAM_H
50 #undef HAVE_TIME_H
51 #undef HAVE_SYS_STAT_H
52 #undef HAVE_SYS_RESOURCE_H
53 #undef HAVE_LIBKERN_OSATOMIC_H
54 #undef HAVE_INT64_T
55 #undef HAVE_INTXX_T
56 #undef HAVE_LONG_LONG_INT
57 #undef HAVE_UINTXX_T
58 #undef HAVE_U_INT
59 #undef HAVE_U_INT64_T
60 #undef HAVE_U_INTXX_T
61 #define IFS_CH '/'
62
63 #ifdef HAVE_STRING_H
64 #include <string.h>
65 #endif
66 #ifdef HAVE_STDLIB_H
67 #include <stdlib.h>
68 #endif
69 #ifdef HAVE_SYS_PARAM_H
70 #include <sys/param.h>
71 #endif
72 #ifdef HAVE_SYS_TYPES_H
73 #include <sys/types.h>
74 #endif
75 #ifdef HAVE_SYS_STAT_H
76 #include <sys/stat.h>
77 #endif
78 #ifdef HAVE_SYS_RESOURCE_H
79 #include <sys/resource.h>
80 #endif
81
82 /* Kernel kqueue() support */
83 #undef HAVE_KQUEUE
84
85 /* The number of bytes in a char.  */
86 #undef SIZEOF_CHAR
87
88 /* The number of bytes in a int.  */
89 #undef SIZEOF_INT
90
91 /* The number of bytes in a size_t.  */
92 #undef SIZEOF_SIZE_T
93
94
95 /* The number of bytes in a long int.  */
96 #undef SIZEOF_LONG_INT
97
98 /* The number of bytes in a long long int.  */
99 #undef SIZEOF_LONG_LONG_INT
100
101 /* The number of bytes in a short int.  */
102 #undef SIZEOF_SHORT_INT
103
104 /* The number of bytes in a void *.  */
105 #undef SIZEOF_VOID_P
106
107 #ifndef HAVE_U_INT
108 typedef unsigned int u_int;
109 #endif
110
111 #undef HAVE_INTXX_T
112 #ifndef HAVE_INTXX_T
113 #if (SIZEOF_CHAR == 1)
114 typedef char int8_t;
115 #else
116 #error "8 bit int type not found."
117 #endif
118 #if (SIZEOF_SHORT_INT == 2)
119 typedef short int int16_t;
120 #else
121 #ifdef _CRAY
122 typedef long int16_t;
123 #else
124 #warning "16 bit int type not found."
125 #endif /* _CRAY */
126 #endif
127 #if (SIZEOF_INT == 4)
128 typedef int int32_t;
129 #else
130 #ifdef _CRAY
131 typedef long int32_t;
132 #else
133 #error "32 bit int type not found."
134 #endif /* _CRAY */
135 #endif
136 #endif
137
138 /* If sys/types.h does not supply u_intXX_t, supply them ourselves */
139 #ifndef HAVE_U_INTXX_T
140 #ifdef HAVE_UINTXX_T
141 typedef uint8_t u_int8_t;
142 typedef uint16_t u_int16_t;
143 typedef uint32_t u_int32_t;
144 #define HAVE_U_INTXX_T 1
145 #else
146 #if (SIZEOF_CHAR == 1)
147 typedef unsigned char u_int8_t;
148 #else
149 #error "8 bit int type not found."
150 #endif
151 #if (SIZEOF_SHORT_INT == 2)
152 typedef unsigned short int u_int16_t;
153 #else
154 #ifdef _CRAY
155 typedef unsigned long u_int16_t;
156 #else
157 #warning "16 bit int type not found."
158 #endif
159 #endif
160 #if (SIZEOF_INT == 4)
161 typedef unsigned int u_int32_t;
162 #else
163 #ifdef _CRAY
164 typedef unsigned long u_int32_t;
165 #else
166 #error "32 bit int type not found."
167 #endif
168 #endif
169 #endif
170 #endif
171
172 /* 64-bit types */
173 #ifndef HAVE_INT64_T
174 #if (SIZEOF_LONG_INT == 8)
175 typedef long int int64_t;
176 #define HAVE_INT64_T 1
177 #else
178 #if (SIZEOF_LONG_LONG_INT == 8)
179 typedef long long int int64_t;
180 #define HAVE_INT64_T 1
181 #define HAVE_LONG_LONG_INT
182 #endif
183 #endif
184 #endif
185 #ifndef HAVE_U_INT64_T
186 #if (SIZEOF_LONG_INT == 8)
187 typedef unsigned long int u_int64_t;
188 #define HAVE_U_INT64_T 1
189 #else
190 #if (SIZEOF_LONG_LONG_INT == 8)
191 typedef unsigned long long int u_int64_t;
192 #define HAVE_U_INT64_T 1
193 #endif
194 #endif
195 #endif
196
197 #if (SIZEOF_VOID_P == 8)
198 typedef u_int64_t vpsized_uint;
199 typedef int64_t vpsized_int;
200 #elif (SIZEOF_VOID_P == 4)
201 typedef u_int32_t vpsized_uint;
202 typedef int32_t vpsized_int;
203 #else
204 #error Unsupported size of void ptr
205 #endif
206
207 #endif
Note: See TracBrowser for help on using the browser.