/[debburn]/cdrkit/trunk/include/xconfig.h.in
ViewVC logotype

Contents of /cdrkit/trunk/include/xconfig.h.in

Parent Directory Parent Directory | Revision Log Revision Log


Revision 422 - (show annotations) (download)
Thu Nov 23 09:58:31 2006 UTC (6 years, 5 months ago) by blade
File size: 11517 byte(s)
More automatic checks for headers, xconfig.h.in cleanup
1 /* xconfig.h.in Prototype for xconfig.h, generated automatically by cmake in
2 * cdrkit's build system.
3 *
4 * Most features are expected to be available on every modern unixoide system,
5 * especially using the GCC compiler, others are probed.
6 *
7 * */
8
9 /*
10 * Copyright Eduard Bloch, 2006
11 *
12 * Using constants names and comments from xconfig.h.in by J. Schilling,
13 * Copyright (c) 1998-2003
14 *
15 */
16
17 /*
18 * Header Files
19 */
20 #define PROTOTYPES 1 /* if Compiler supports ANSI C prototypes */
21 #cmakedefine HAVE_STDARG_H
22 /* to use stdarg.h, else use varargs.h NOTE: SaberC on a Sun has prototypes but no stdarg.h */
23
24 #cmakedefine HAVE_STDLIB_H
25 /* to use general utility defines (malloc(), size_t ...) and general C library prototypes */
26
27 #cmakedefine HAVE_STRING_H
28 /* to get NULL and ANSI C string function prototypes */
29 #cmakedefine HAVE_STRINGS_H
30 /* to get BSD string function prototypes */
31 #define STDC_HEADERS 1 /* if ANSI compliant stdlib.h, stdarg.h, string.h, float.h are present */
32 #cmakedefine HAVE_UNISTD_H
33 /* to get POSIX syscall prototypes XXX sys/file.h fcntl.h (unixstd/fctl)XXX*/
34 #cmakedefine HAVE_GETOPT_H
35 /* to get getopt() prototype from getopt.h instead of unistd.h */
36 #cmakedefine HAVE_LIMITS_H
37 /* to get POSIX numeric limits constants */
38
39 #cmakedefine HAVE_FCNTL_H
40 /* to access, O_XXX constants for open(), otherwise use sys/file.h */
41 #cmakedefine HAVE_SYS_FILE_H
42 /* to use O_XXX constants for open() and flock() defs */
43 #cmakedefine HAVE_INTTYPES_H
44 /* to use UNIX-98 inttypes.h */
45 #cmakedefine HAVE_DIRENT_H
46 /* to use POSIX dirent.h */
47
48 #cmakedefine HAVE_ALLOCA_H
49 /* if alloca.h exists */
50
51 #cmakedefine HAVE_TERMIOS_H
52 /* to use POSIX termios.h */
53 #cmakedefine HAVE_TERMIO_H
54 /* to use SVR4 termio.h */
55 #cmakedefine HAVE_PWD_H
56 /* if pwd.h exists */
57
58 #cmakedefine HAVE_SYS_TIME_H
59 /* may include sys/time.h for struct timeval */
60 #define TIME_WITH_SYS_TIME 1 /* may include both time.h and sys/time.h */
61
62 #define HAVE_UTIME 1 /* to use AT&T utime() and utimbuf */
63 #define HAVE_UTIMES 1 /* to use BSD utimes() and sys/time.h */
64
65 #cmakedefine HAVE_UTIME_H
66 /* to use utime.h for the utimbuf structure declaration, else declare struct utimbuf yourself */
67
68 #cmakedefine HAVE_SYS_IOCTL_H
69 /* if sys/ioctl.h is present */
70
71 #cmakedefine HAVE_SYS_PARAM_H
72 /* if sys/param.h is present */
73
74 /* to use wait.h for prototypes and union wait */
75 #cmakedefine HAVE_WAIT_H
76 /* else use sys/wait.h */
77 #cmakedefine define HAVE_SYS_WAIT_H
78 #cmakedefine HAVE_SYS_RESOURCE_H
79 /* to use sys/resource.h for rlimit() and wait3() */
80
81 #cmakedefine HAVE_SYS_UTSNAME_H
82 /* to use uname() */
83
84 #cmakedefine HAVE_SYS_MTIO_H
85 /* to use mtio definitions from sys/mtio.h */
86
87 #cmakedefine HAVE_SYS_MMAN_H
88 /* to use definitions for mmap()/madvise()... from sys/mman.h */
89 #define MAJOR_IN_SYSMACROS 1 /* if we should include sys/sysmacros.h to get major()/minor()/makedev() */
90 #cmakedefine HAVE_SYS_DKIO_H
91 #cmakedefine HAVE_SUN_DKIO_H
92 #cmakedefine HAVE_POLL_H
93 /* if we may include poll.h to use poll() */
94 #cmakedefine HAVE_SYS_POLL_H
95 /* if we may include sys/poll.h to use poll() */
96
97
98 #cmakedefine HAVE_NETDB_H
99 /* if we have netdb.h for get*by*() and rcmd() */
100 #cmakedefine HAVE_SYS_SOCKET_H
101 /* if we have sys/socket.h for socket() */
102
103 #cmakedefine HAVE_LINUX_PG_H
104 /* if we may include linux/pg.h for PP ATAPI sypport */
105 #define HAVE_ERRNO_DEF 1 /* if we have errno definition in <errno.h> */
106
107 #cmakedefine HAVE_ARPA_INET_H
108 /* if we have arpa/inet.h (missing on BeOS) */
109 /* BeOS has inet_ntoa() in <netdb.h> */
110
111 /*
112 * Convert to SCHILY name
113 */
114 #ifdef STDC_HEADERS
115 # ifndef HAVE_STDC_HEADERS
116 # define HAVE_STDC_HEADERS
117 # endif
118 #endif
119
120 #ifdef HAVE_ELF_H
121 #define HAVE_ELF /* This system uses ELF */
122 #else
123 # ifdef HAVE_AOUTHDR_H
124 # define HAVE_COFF /* This system uses COFF */
125 # else
126 # ifdef HAVE_A_OUT_H
127 # define HAVE_AOUT /* This system uses AOUT */
128 # endif
129 # endif
130 #endif
131
132 /*
133 * Library Functions
134 */
135 #define HAVE_ACCESS 1 /* access() is present in libc */
136 #define HAVE_STRERROR 1 /* strerror() is present in libc */
137 #define HAVE_MEMMOVE 1 /* memmove() is present in libc */
138
139 #define HAVE_MLOCK 1 /* mlock() is present in libc */
140 #cmakedefine HAVE_MLOCKALL
141 /* working mlockall() is present in libc */
142 #define HAVE_FLOCK 1 /* *BSD flock() is present in libc */
143 #define HAVE_SETREUID 1 /* setreuid() is present in libc */
144 #define HAVE_SETEUID 1 /* seteuid() is present in libc */
145 #define HAVE_SETUID 1 /* setuid() is present in libc */
146 #define HAVE_SETREGID 1 /* setregid() is present in libc */
147 #define HAVE_SETEGID 1 /* setegid() is present in libc */
148 #define HAVE_SETGID 1 /* setgid() is present in libc */
149 #define HAVE_TCGETATTR 1 /* tcgetattr() is present in libc */
150 #define HAVE_TCSETATTR 1 /* tcsetattr() is present in libc */
151 #define HAVE_GETHOSTID 1 /* gethostid() is present in libc */
152 #define HAVE_GETHOSTNAME 1 /* gethostname() is present in libc */
153 #define HAVE_GETDOMAINNAME 1 /* getdomainname() is present in libc */
154 #define HAVE_GETPAGESIZE 1 /* getpagesize() is present in libc */
155 #define HAVE_POLL 1 /* poll() is present in libc */
156 #define HAVE_SELECT 1 /* select() is present in libc */
157 #define HAVE_LCHOWN 1 /* lchown() is present in libc */
158 #define HAVE_SBRK 1 /* sbrk() is present in libc */
159 #define HAVE_VA_COPY 1 /* va_copy() is present in varargs.h/stdarg.h */
160 #define HAVE_DUP2 1 /* dup2() is present in libc */
161 #define HAVE_GETCWD 1 /* POSIX getcwd() is present in libc */
162 #define HAVE_SMMAP 1 /* may map anonymous memory to get shared mem */
163 #define HAVE_SHMAT 1 /* shmat() is present in libc */
164 #define HAVE_SEMGET 1 /* semget() is present in libc */
165 #define HAVE_LSTAT 1 /* lstat() is present in libc */
166 #define HAVE_READLINK 1 /* readlink() is present in libc */
167 #define HAVE_RENAME 1 /* rename() is present in libc */
168 #define HAVE_ECVT 1 /* ecvt() is present in libc */
169 #define HAVE_FCVT 1 /* fcvt() is present in libc */
170 #define HAVE_GCVT 1 /* gcvt() is present in libc */
171
172 /* isinf() is present in libc */
173 #cmakedefine HAVE_ISINF
174 #define HAVE_ISNAN 1 /* isnan() is present in libc or libm */
175 #define HAVE_RAND 1 /* rand() is present in libc */
176 #define HAVE_DRAND48 1 /* drand48() is present in libc */
177 #define HAVE_SETPRIORITY 1 /* setpriority() is present in libc */
178 #define HAVE_NICE 1 /* nice() is present in libc */
179 #define HAVE_UNAME 1 /* uname() is present in libc */
180 #define HAVE_SNPRINTF 1 /* snprintf() is present in libc */
181 #define HAVE_STRCASECMP 1 /* strcasecmp() is present in libc */
182 #define HAVE_STRDUP 1 /* strdup() is present in libc */
183 #define HAVE_SIGPROCMASK 1 /* sigprocmask() is present in libc (POSIX) */
184 #define HAVE_SIGSET 1 /* sigset() is present in libc (POSIX) */
185 #define HAVE_NANOSLEEP 1 /* nanosleep() is present in libc */
186 #define HAVE_USLEEP 1 /* usleep() is present in libc */
187 #define HAVE_FORK 1 /* fork() is present in libc */
188 #define HAVE_ALLOCA 1 /* alloca() is present (else use malloc())*/
189 #define HAVE_VALLOC 1 /* valloc() is present in libc (else use malloc())*/
190
191 /*
192 * Important: This must be a result from a check _before_ the Large File test
193 * has been run. It then tells us whether these functions are
194 * available even when not in Large File mode.
195 *
196 * Do not run the AC_FUNC_FSEEKO test from the GNU tar Large File test
197 * siute. It will use the same cache names and interfere with our test.
198 * Instead use the tests AC_SMALL_FSEEKO/AC_SMALL/STELLO and make sure
199 * they are placed before the large file tests.
200 */
201
202 #define HAVE_RCMD 1 /* rcmd() is present in libc/libsocket */
203 #define HAVE_SOCKET 1 /* socket() is present in libc/libsocket */
204 #define HAVE_SOCKETPAIR 1 /* socketpair() is present in libc/libsocket */
205 #define HAVE_GETSERVBYNAME 1 /* getservbyname() is present in libc/libsocket */
206 /* inet_ntoa() is present in libc/libsocket */
207 #cmakedefine HAVE_INET_NTOA
208
209 /* getnameinfo() is present in libc/libsocket */
210 #cmakedefine define HAVE_GETNAMEINFO
211
212 #if defined(HAVE_QUOTACTL) || defined(HAVE_QUOTAIOCTL)
213 # define HAVE_QUOTA /* The system inludes quota */
214 #endif
215
216 /*
217 * We need to test for the include files too because Apollo Domain/OS has a
218 * libc that includes the functions but the includes files are not visible
219 * from the BSD compile environment.
220 */
221 #if defined(HAVE_SHMAT) && defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H)
222 # define HAVE_USGSHM /* USG shared memory is present */
223 #endif
224 #if defined(HAVE_SEMGET) && defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H)
225 # define HAVE_USGSEM /* USG semaphores are present */
226 #endif
227
228 #if defined(HAVE_GETPGRP) && !defined(HAVE_BSD_GETPGRP)
229 #define HAVE_POSIX_GETPGRP 1 /* getpgrp() in libc is POSIX compliant */
230 #endif
231 #if defined(HAVE_SETPGRP) && !defined(HAVE_BSD_SETPGRP)
232 #define HAVE_POSIX_SETPGRP 1 /* setpgrp() in libc is POSIX compliant */
233 #endif
234
235 /*
236 * Structures
237 */
238 #define HAVE_MTGET_TYPE 1 /* if struct mtget contains mt_type (drive type) */
239
240 #define HAVE_MTGET_DSREG 1 /* if struct mtget contains mt_dsreg (drive status) */
241
242 #define HAVE_MTGET_ERREG 1 /* if struct mtget contains mt_erreg (error register) */
243 #define HAVE_MTGET_RESID 1 /* if struct mtget contains mt_resid (residual count) */
244 #define HAVE_MTGET_FILENO 1 /* if struct mtget contains mt_fileno (file #) */
245 #define HAVE_MTGET_BLKNO 1 /* if struct mtget contains mt_blkno (block #) */
246
247 /* have union wait in wait.h */
248 #cmakedefine HAVE_UNION_WAIT
249 /*
250 * SCO UnixWare has st_atim.st__tim.tv_nsec but the st_atim.tv_nsec tests also
251 * succeeds. If you use st_atim.tv_nsec on UnixWare, you get a warning about
252 * illegal structure usage. For this reason, your code needs to have
253 * #ifdef HAVE_ST__TIM before #ifdef HAVE_ST_NSEC.
254 */
255
256
257 #define HAVE_ST_NSEC 1 /* if struct stat contains st_atim.tv_nsec (nanosecs) */
258 #define HAVE_ST_RDEV 1 /* if struct stat contains st_rdev */
259 #define DEV_MINOR_BITS 32 /* # if bits needed to hold minor device number */
260 #define DEV_MINOR_NONCONTIG 1 /* if bits in minor device number are noncontiguous */
261 #define HAVE_SOCKADDR_STORAGE 1 /* if socket.h defines struct sockaddr_storage */
262
263 /*
264 * Byteorder/Bitorder
265 */
266 #define HAVE_C_BIGENDIAN /* Flag that WORDS_BIGENDIAN test was done */
267 /* If using network byte order */
268 #cmakedefine WORDS_BIGENDIAN
269 /* If high bits come first in structures */
270 #cmakedefine BITFIELDS_HTOL
271 /* Flag that BITFIELDS_HTOL test was done */
272 #define HAVE_C_BITFIELDS
273
274 /*
275 * Types/Keywords
276 */
277 #define SIZEOF_CHAR 1
278 #define SIZEOF_SHORT_INT @SIZE_SHORT@
279 #define SIZEOF_INT @SIZE_INT@
280 #define SIZEOF_LONG_INT @SIZE_LONG@
281 #define SIZEOF_LONG_LONG @SIZE_LLONG@
282 #define SIZEOF_CHAR_P @SIZE_PTR@
283 #define SIZEOF_UNSIGNED_CHAR 1
284 #define SIZEOF_UNSIGNED_SHORT_INT @SIZE_SHORT@
285 #define SIZEOF_UNSIGNED_INT @SIZE_INT@
286 #define SIZEOF_UNSIGNED_LONG_INT @SIZE_LONG@
287 #define SIZEOF_UNSIGNED_LONG_LONG @SIZE_LLONG@
288 #define SIZEOF_UNSIGNED_CHAR_P @SIZE_PTR@
289
290 #define HAVE_LONGLONG 1 /* Compiler defines long long type */
291
292
293 /*
294 * Critical on some of Debian architectures (EB) */
295 /* #define VA_LIST_IS_ARRAY 1 */
296
297 #cmakedefine VA_LIST_IS_ARRAY
298
299 #define GETGROUPS_T gid_t
300 #define GID_T GETGROUPS_T
301
302 /*
303 * Define as the return type of signal handlers (int or void).
304 */
305 #define RETSIGTYPE void
306
307 #define HAVE_LARGEFILES 1
308 #define _FILE_OFFSET_BITS 64
309 #define _LARGEFILE_SOURCE 1 /* To make ftello() visible (HP-UX 10.20). */
310 #define _LARGE_FILES 1 /* Large file defined on AIX-style hosts. */
311
312 /*
313 * Misc CC / LD related stuff
314 */
315
316 #define HAVE_DYN_ARRAYS 1 /* If the compiler allows dynamic sized arrays */
317
318 #define HOST_SYSTEM "@CMAKE_SYSTEM_NAME@"

  ViewVC Help
Powered by ViewVC 1.1.5