root/src/noit_config.h.in

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

some extra autoconf wizardry for libedit

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