root/src/noit_config.h.in

Revision 01ab01295aa25e508c1efa2fc105112755b578b9, 5.2 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 7 years ago)

define (err, undefine) these, so autoconf will populate them

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