1 /* xconfig.h.in Prototype for xconfig.h, generated automatically by cmake in
2 * cdrkit's build system.
4 * Most features are expected to be available on every modern unixoide systems,
7 * NOTE: Be carefull, there are some double checks for the 1 value hidden in
8 * the source, just defining it may be not enough.
12 * Copyright Eduard Bloch, 2006
14 * Using constants names and comments from xconfig.h.in by J. Schilling,
15 * Copyright (c) 1998-2003
22 #define PROTOTYPES 1 /* if Compiler supports ANSI C prototypes */
23 #cmakedefine HAVE_STDARG_H
24 /* to use stdarg.h, else use varargs.h NOTE: SaberC on a Sun has prototypes but no stdarg.h */
26 #cmakedefine HAVE_STDLIB_H
27 /* to use general utility defines (malloc(), size_t ...) and general C library prototypes */
29 #cmakedefine HAVE_STRING_H
30 /* to get NULL and ANSI C string function prototypes */
31 #cmakedefine HAVE_STRINGS_H
32 /* to get BSD string function prototypes */
33 #define STDC_HEADERS 1 /* if ANSI compliant stdlib.h, stdarg.h, string.h, float.h are present */
34 #cmakedefine HAVE_UNISTD_H
35 /* to get POSIX syscall prototypes XXX sys/file.h fcntl.h (unixstd/fctl)XXX*/
36 #cmakedefine HAVE_GETOPT_H
37 /* to get getopt() prototype from getopt.h instead of unistd.h */
38 #cmakedefine HAVE_LIMITS_H
39 /* to get POSIX numeric limits constants */
41 #cmakedefine HAVE_FCNTL_H
42 /* to access, O_XXX constants for open(), otherwise use sys/file.h */
43 #cmakedefine HAVE_SYS_FILE_H
44 /* to use O_XXX constants for open() and flock() defs */
45 #cmakedefine HAVE_INTTYPES_H
46 /* to use UNIX-98 inttypes.h */
47 #cmakedefine HAVE_DIRENT_H
48 /* to use POSIX dirent.h */
50 #cmakedefine HAVE_ALLOCA_H
51 /* if alloca.h exists */
53 #cmakedefine HAVE_TERMIOS_H
54 /* to use POSIX termios.h */
55 #cmakedefine HAVE_TERMIO_H
56 /* to use SVR4 termio.h */
57 #cmakedefine HAVE_PWD_H
60 #cmakedefine HAVE_SYS_TIME_H
61 /* may include sys/time.h for struct timeval */
62 #define TIME_WITH_SYS_TIME 1 /* may include both time.h and sys/time.h */
64 #define HAVE_UTIME 1 /* to use AT&T utime() and utimbuf */
65 #define HAVE_UTIMES 1 /* to use BSD utimes() and sys/time.h */
67 #cmakedefine HAVE_UTIME_H
68 /* to use utime.h for the utimbuf structure declaration, else declare struct utimbuf yourself */
70 #cmakedefine HAVE_SYS_IOCTL_H
71 /* if sys/ioctl.h is present */
73 #cmakedefine HAVE_SYS_PARAM_H
74 /* if sys/param.h is present */
76 /* to use wait.h for prototypes and union wait */
77 #cmakedefine HAVE_WAIT_H
78 /* else use sys/wait.h */
79 #cmakedefine define HAVE_SYS_WAIT_H
80 #cmakedefine HAVE_SYS_RESOURCE_H
81 /* to use sys/resource.h for rlimit() and wait3() */
83 #cmakedefine HAVE_SYS_UTSNAME_H
86 #cmakedefine HAVE_SYS_MTIO_H
87 /* to use mtio definitions from sys/mtio.h */
89 #cmakedefine HAVE_SYS_MMAN_H
90 /* to use definitions for mmap()/madvise()... from sys/mman.h */
91 #define MAJOR_IN_SYSMACROS 1 /* if we should include sys/sysmacros.h to get major()/minor()/makedev() */
92 #cmakedefine HAVE_SYS_DKIO_H
93 #cmakedefine HAVE_SUN_DKIO_H
94 #cmakedefine HAVE_POLL_H
95 /* if we may include poll.h to use poll() */
96 #cmakedefine HAVE_SYS_POLL_H
97 /* if we may include sys/poll.h to use poll() */
100 #cmakedefine HAVE_NETDB_H
101 /* if we have netdb.h for get*by*() and rcmd() */
102 #cmakedefine HAVE_SYS_SOCKET_H
103 /* if we have sys/socket.h for socket() */
105 #cmakedefine HAVE_LINUX_PG_H
106 /* if we may include linux/pg.h for PP ATAPI sypport */
107 #define HAVE_ERRNO_DEF 1 /* if we have errno definition in <errno.h> */
109 #cmakedefine HAVE_ARPA_INET_H
110 /* if we have arpa/inet.h (missing on BeOS) */
111 /* BeOS has inet_ntoa() in <netdb.h> */
113 #cmakedefine HAVE_ICONV_H
116 * Convert to SCHILY name
119 # ifndef HAVE_STDC_HEADERS
120 # define HAVE_STDC_HEADERS
127 #define HAVE_ACCESS 1 /* access() is present in libc */
128 #define HAVE_STRERROR 1 /* strerror() is present in libc */
129 #define HAVE_MEMMOVE 1 /* memmove() is present in libc */
131 #define HAVE_MLOCK 1 /* mlock() is present in libc */
132 #cmakedefine HAVE_MLOCKALL
133 /* working mlockall() is present in libc */
134 #define HAVE_FLOCK 1 /* *BSD flock() is present in libc */
135 #define HAVE_SETREUID 1 /* setreuid() is present in libc */
136 #define HAVE_SETEUID 1 /* seteuid() is present in libc */
137 #define HAVE_SETUID 1 /* setuid() is present in libc */
138 #define HAVE_SETREGID 1 /* setregid() is present in libc */
139 #define HAVE_SETEGID 1 /* setegid() is present in libc */
140 #define HAVE_SETGID 1 /* setgid() is present in libc */
141 #define HAVE_TCGETATTR 1 /* tcgetattr() is present in libc */
142 #define HAVE_TCSETATTR 1 /* tcsetattr() is present in libc */
143 #define HAVE_GETHOSTID 1 /* gethostid() is present in libc */
144 #define HAVE_GETHOSTNAME 1 /* gethostname() is present in libc */
145 #define HAVE_GETDOMAINNAME 1 /* getdomainname() is present in libc */
146 #define HAVE_GETPAGESIZE 1 /* getpagesize() is present in libc */
147 #define HAVE_POLL 1 /* poll() is present in libc */
148 #define HAVE_SELECT 1 /* select() is present in libc */
149 #define HAVE_LCHOWN 1 /* lchown() is present in libc */
150 #define HAVE_SBRK 1 /* sbrk() is present in libc */
151 #define HAVE_VA_COPY 1 /* va_copy() is present in varargs.h/stdarg.h */
152 #define HAVE_DUP2 1 /* dup2() is present in libc */
153 #define HAVE_GETCWD 1 /* POSIX getcwd() is present in libc */
154 #define HAVE_SMMAP 1 /* may map anonymous memory to get shared mem */
155 #define HAVE_SHMAT 1 /* shmat() is present in libc */
156 #define HAVE_SEMGET 1 /* semget() is present in libc */
157 #define HAVE_LSTAT 1 /* lstat() is present in libc */
158 #define HAVE_READLINK 1 /* readlink() is present in libc */
159 #define HAVE_RENAME 1 /* rename() is present in libc */
161 #cmakedefine HAVE_RAND
162 /* rand() is present in libc */
163 #cmakedefine HAVE_DRAND48
164 /* drand48() is present in libc */
165 #define HAVE_SETPRIORITY 1 /* setpriority() is present in libc */
166 #define HAVE_NICE 1 /* nice() is present in libc */
167 #define HAVE_UNAME 1 /* uname() is present in libc */
168 #define HAVE_SNPRINTF 1 /* snprintf() is present in libc */
169 #define HAVE_STRCASECMP 1 /* strcasecmp() is present in libc */
170 #define HAVE_STRDUP 1 /* strdup() is present in libc */
171 #define HAVE_SIGPROCMASK 1 /* sigprocmask() is present in libc (POSIX) */
172 #define HAVE_SIGSET 1 /* sigset() is present in libc (POSIX) */
173 #define HAVE_NANOSLEEP 1 /* nanosleep() is present in libc */
174 #define HAVE_USLEEP 1 /* usleep() is present in libc */
175 #define HAVE_FORK 1 /* fork() is present in libc */
176 #define HAVE_ALLOCA 1 /* alloca() is present (else use malloc())*/
177 #define HAVE_VALLOC 1 /* valloc() is present in libc (else use malloc())*/
180 * Important: This must be a result from a check _before_ the Large File test
181 * has been run. It then tells us whether these functions are
182 * available even when not in Large File mode.
184 * Do not run the AC_FUNC_FSEEKO test from the GNU tar Large File test
185 * siute. It will use the same cache names and interfere with our test.
186 * Instead use the tests AC_SMALL_FSEEKO/AC_SMALL/STELLO and make sure
187 * they are placed before the large file tests.
190 #define HAVE_RCMD 1 /* rcmd() is present in libc/libsocket */
191 #define HAVE_SOCKET 1 /* socket() is present in libc/libsocket */
192 #define HAVE_SOCKETPAIR 1 /* socketpair() is present in libc/libsocket */
193 #define HAVE_GETSERVBYNAME 1 /* getservbyname() is present in libc/libsocket */
194 /* inet_ntoa() is present in libc/libsocket */
195 #cmakedefine HAVE_INET_NTOA
197 /* getnameinfo() is present in libc/libsocket */
198 #cmakedefine define HAVE_GETNAMEINFO
201 * We need to test for the include files too because Apollo Domain/OS has a
202 * libc that includes the functions but the includes files are not visible
203 * from the BSD compile environment.
205 #if defined(HAVE_SHMAT) && defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H)
206 # define HAVE_USGSHM /* USG shared memory is present */
208 #if defined(HAVE_SEMGET) && defined(HAVE_SYS_SHM_H) && defined(HAVE_SYS_IPC_H)
209 # define HAVE_USGSEM /* USG semaphores are present */
212 #if defined(HAVE_GETPGRP) && !defined(HAVE_BSD_GETPGRP)
213 #define HAVE_POSIX_GETPGRP 1 /* getpgrp() in libc is POSIX compliant */
215 #if defined(HAVE_SETPGRP) && !defined(HAVE_BSD_SETPGRP)
216 #define HAVE_POSIX_SETPGRP 1 /* setpgrp() in libc is POSIX compliant */
223 /* have union wait in wait.h */
224 #cmakedefine HAVE_UNION_WAIT
226 #define HAVE_ST_NSEC 1 /* if struct stat contains st_atim.tv_nsec (nanosecs) */
227 #define HAVE_ST_RDEV 1 /* if struct stat contains st_rdev */
228 #define HAVE_SOCKADDR_STORAGE 1 /* if socket.h defines struct sockaddr_storage */
233 /* If using network byte order */
234 #cmakedefine WORDS_BIGENDIAN
235 /* If high bits come first in structures */
236 #cmakedefine BITFIELDS_HTOL
237 #define HAVE_C_BIGENDIAN /* Flag that WORDS_BIGENDIAN test was done */
238 #define HAVE_C_BITFIELDS /* Flag that BITFIELDS_HTOL test was done */
243 #define SIZEOF_CHAR 1
244 #define SIZEOF_SHORT_INT @SIZE_SHORT@
245 #define SIZEOF_INT @SIZE_INT@
246 #define SIZEOF_LONG_INT @SIZE_LONG@
247 #define SIZEOF_LONG_LONG @SIZE_LLONG@
248 #define SIZEOF_CHAR_P @SIZE_PTR@
249 #define SIZEOF_UNSIGNED_CHAR 1
250 #define SIZEOF_UNSIGNED_SHORT_INT @SIZE_SHORT@
251 #define SIZEOF_UNSIGNED_INT @SIZE_INT@
252 #define SIZEOF_UNSIGNED_LONG_INT @SIZE_LONG@
253 #define SIZEOF_UNSIGNED_LONG_LONG @SIZE_LLONG@
254 #define SIZEOF_UNSIGNED_CHAR_P @SIZE_PTR@
256 #define HAVE_LONGLONG 1 /* Compiler defines long long type */
260 * Critical on some of Debian architectures (EB) */
261 /* #define VA_LIST_IS_ARRAY 1 */
263 #cmakedefine VA_LIST_IS_ARRAY
265 #define GETGROUPS_T gid_t
266 #define GID_T GETGROUPS_T
269 * Define as the return type of signal handlers (int or void).
271 #define RETSIGTYPE void
273 #define HAVE_LARGEFILES 1
274 #define _FILE_OFFSET_BITS 64 /* glibc style */
275 #define _LARGEFILE_SOURCE 1 /* To make ftello() visible (HP-UX 10.20). */
276 #define _LARGE_FILES 1 /* Large file defined on AIX-style hosts. */
279 * Misc CC / LD related stuff
281 /* If the compiler allows dynamic sized arrays */
282 #cmakedefine HAVE_DYN_ARRAYS
284 #define HOST_SYSTEM "@CMAKE_SYSTEM_NAME@"
285 #cmakedefine CDRKIT_VERSION "@CDRKIT_VERSION@"