Re: Namespace cleanup: Does SDBM need binary compatibility?
[p5sagit/p5-mst-13.2.git] / config_h.SH
CommitLineData
8d063cd8 1case $CONFIG in
2'')
2304df62 3 if test -f config.sh; then TOP=.;
4 elif test -f ../config.sh; then TOP=..;
5 elif test -f ../../config.sh; then TOP=../..;
6 elif test -f ../../../config.sh; then TOP=../../..;
7 elif test -f ../../../../config.sh; then TOP=../../../..;
8 else
9 echo "Can't find config.sh."; exit 1
10 fi
11 . $TOP/config.sh
12 ;;
13esac
14case "$0" in
15*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
8d063cd8 16esac
17echo "Extracting config.h (with variable substitutions)"
a26b0745 18sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
2304df62 19/*
20 * This file was produced by running the config_h.SH script, which
8d063cd8 21 * gets its values from config.sh, which is generally produced by
22 * running Configure.
23 *
24 * Feel free to modify any of this as the need arises. Note, however,
1aef975c 25 * that running config_h.SH again will wipe out any changes you've made.
26 * For a more permanent change edit config.sh and rerun config_h.SH.
2304df62 27 *
760ac839 28 * \$Id: Config_h.U,v 3.0.1.4 1995/09/25 09:10:49 ram Exp $
8d063cd8 29 */
30
2304df62 31/* Configuration time: $cf_time
32 * Configured by: $cf_by
33 * Target system: $myuname
34 */
8d063cd8 35
2304df62 36#ifndef _config_h_
37#define _config_h_
38
a0d0e21e 39/* MEM_ALIGNBYTES:
40 * This symbol contains the number of bytes required to align a
41 * double. Usual values are 2, 4 and 8.
42 */
43#define MEM_ALIGNBYTES $alignbytes /**/
44
2304df62 45/* BIN:
46 * This symbol holds the path of the bin directory where the package will
47 * be installed. Program must be prepared to deal with ~name substitution.
a687059c 48 */
2304df62 49#define BIN "$bin" /**/
a687059c 50
ecfc5424 51/* CAT2:
52 * This macro catenates 2 tokens together.
53 */
a26b0745 54/* STRINGIFY:
55 * This macro surrounds its token with double quotes.
56 */
ecfc5424 57#if $cpp_stuff == 1
58#define CAT2(a,b)a/**/b
59#define CAT3(a,b,c)a/**/b/**/c
60#define CAT4(a,b,c,d)a/**/b/**/c/**/d
61#define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
62#define STRINGIFY(a)"a"
63 /* If you can get stringification with catify, tell me how! */
64#endif
65#if $cpp_stuff == 42
66#define CAT2(a,b)a ## b
67#define CAT3(a,b,c)a ## b ## c
68#define CAT4(a,b,c,d)a ## b ## c ## d
69#define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
70#define StGiFy(a)# a
71#define STRINGIFY(a)StGiFy(a)
72#define SCAT2(a,b)StGiFy(a) StGiFy(b)
73#define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
74#define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
75#define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
76#endif
77#ifndef CAT2
78#include "Bletch: How does this C preprocessor catenate tokens?"
79#endif
80
2304df62 81/* CPPSTDIN:
36ce8bec 82 * This symbol contains the first part of the string which will invoke
83 * the C preprocessor on the standard input and produce to standard
2304df62 84 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
85 * call a wrapper. See CPPRUN.
36ce8bec 86 */
2304df62 87/* CPPMINUS:
36ce8bec 88 * This symbol contains the second part of the string which will invoke
89 * the C preprocessor on the standard input and produce to standard
378cc40b 90 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
36ce8bec 91 * to specify standard input, otherwise the value is "".
92 */
378cc40b 93#define CPPSTDIN "$cppstdin"
36ce8bec 94#define CPPMINUS "$cppminus"
95
a0d0e21e 96/* HAS_ALARM:
97 * This symbol, if defined, indicates that the alarm routine is
98 * available.
99 */
100#$d_alarm HAS_ALARM /**/
101
ecfc5424 102/* HASATTRIBUTE:
103 * This symbol indicates the C compiler can check for function attributes,
104 * such as printf formats. This is normally only supported by GNU cc.
105 */
106#$d_attribut HASATTRIBUTE /**/
107#ifndef HASATTRIBUTE
108#define __attribute__(_arg_)
109#endif
110
2304df62 111/* HAS_BCMP:
112 * This symbol is defined if the bcmp() routine is available to
113 * compare blocks of memory.
a687059c 114 */
2304df62 115#$d_bcmp HAS_BCMP /**/
a687059c 116
2304df62 117/* HAS_BCOPY:
118 * This symbol is defined if the bcopy() routine is available to
119 * copy blocks of memory.
c51b80d1 120 */
2304df62 121#$d_bcopy HAS_BCOPY /**/
c51b80d1 122
2304df62 123/* HAS_BZERO:
124 * This symbol is defined if the bzero() routine is available to
125 * set a memory block to 0.
0d3e774c 126 */
2304df62 127#$d_bzero HAS_BZERO /**/
0d3e774c 128
a0d0e21e 129/* CASTI32:
130 * This symbol is defined if the C compiler can cast negative
131 * or large floating point numbers to 32-bit ints.
132 */
133#$d_casti32 CASTI32 /**/
134
2304df62 135/* CASTNEGFLOAT:
136 * This symbol is defined if the C compiler can cast negative
137 * numbers to unsigned longs, ints and shorts.
b1248f16 138 */
2304df62 139/* CASTFLAGS:
7e1cf235 140 * This symbol contains flags that say what difficulties the compiler
141 * has casting odd floating values to unsigned long:
2304df62 142 * 0 = ok
7e1cf235 143 * 1 = couldn't cast < 0
144 * 2 = couldn't cast >= 0x80000000
232e078e 145 * 4 = couldn't cast in argument expression list
7e1cf235 146 */
2304df62 147#$d_castneg CASTNEGFLOAT /**/
148#define CASTFLAGS $castflags /**/
ed6116ce 149
a0d0e21e 150/* HAS_CHOWN:
151 * This symbol, if defined, indicates that the chown routine is
152 * available.
153 */
154#$d_chown HAS_CHOWN /**/
155
156/* HAS_CHROOT:
157 * This symbol, if defined, indicates that the chroot routine is
158 * available.
159 */
160#$d_chroot HAS_CHROOT /**/
161
2304df62 162/* HAS_CHSIZE:
87250799 163 * This symbol, if defined, indicates that the chsize routine is available
164 * to truncate files. You might need a -lx to get this routine.
165 */
fe14fcc3 166#$d_chsize HAS_CHSIZE /**/
87250799 167
ecfc5424 168/* VOID_CLOSEDIR:
169 * This symbol, if defined, indicates that the closedir() routine
170 * does not return a value.
171 */
172#$d_void_closedir VOID_CLOSEDIR /**/
173
2304df62 174/* HASCONST:
175 * This symbol, if defined, indicates that this C compiler knows about
176 * the const type. There is no need to actually test for that symbol
177 * within your programs. The mere use of the "const" keyword will
178 * trigger the necessary tests.
179 */
180#$d_const HASCONST /**/
181#ifndef HASCONST
182#define const
183#endif
184
185/* HAS_CRYPT:
2e1b3b7e 186 * This symbol, if defined, indicates that the crypt routine is available
187 * to encrypt passwords and the like.
188 */
2304df62 189#$d_crypt HAS_CRYPT /**/
2e1b3b7e 190
a0d0e21e 191/* HAS_CUSERID:
192 * This symbol, if defined, indicates that the cuserid routine is
193 * available to get character login names.
13281fa4 194 */
a0d0e21e 195#$d_cuserid HAS_CUSERID /**/
196
197/* HAS_DBL_DIG:
198 * This symbol, if defined, indicates that this system's <float.h>
199 * or <limits.h> defines the symbol DBL_DIG, which is the number
200 * of significant digits in a double precision number. If this
201 * symbol is not defined, a guess of 15 is usually pretty good.
202 */
203#$d_dbl_dig HAS_DBL_DIG /* */
204
205/* HAS_DIFFTIME:
206 * This symbol, if defined, indicates that the difftime routine is
207 * available.
208 */
209#$d_difftime HAS_DIFFTIME /**/
13281fa4 210
ecfc5424 211/* HAS_DLERROR:
212 * This symbol, if defined, indicates that the dlerror routine is
213 * available to return a string describing the last error that
214 * occurred from a call to dlopen(), dlclose() or dlsym().
215 */
216#$d_dlerror HAS_DLERROR /**/
217
2304df62 218/* HAS_DUP2:
219 * This symbol, if defined, indicates that the dup2 routine is
220 * available to duplicate file descriptors.
a687059c 221 */
2304df62 222#$d_dup2 HAS_DUP2 /**/
a687059c 223
2304df62 224/* HAS_FCHMOD:
378cc40b 225 * This symbol, if defined, indicates that the fchmod routine is available
226 * to change mode of opened files. If unavailable, use chmod().
227 */
2304df62 228#$d_fchmod HAS_FCHMOD /**/
378cc40b 229
2304df62 230/* HAS_FCHOWN:
378cc40b 231 * This symbol, if defined, indicates that the fchown routine is available
232 * to change ownership of opened files. If unavailable, use chown().
233 */
2304df62 234#$d_fchown HAS_FCHOWN /**/
378cc40b 235
2304df62 236/* HAS_FCNTL:
fe14fcc3 237 * This symbol, if defined, indicates to the C program that
238 * the fcntl() function exists.
a687059c 239 */
2304df62 240#$d_fcntl HAS_FCNTL /**/
a687059c 241
a0d0e21e 242/* HAS_FGETPOS:
243 * This symbol, if defined, indicates that the fgetpos routine is
244 * available to get the file position indicator, similar to ftell().
245 */
246#$d_fgetpos HAS_FGETPOS /**/
247
2304df62 248/* FLEXFILENAMES:
7e1cf235 249 * This symbol, if defined, indicates that the system supports filenames
250 * longer than 14 characters.
251 */
252#$d_flexfnam FLEXFILENAMES /**/
253
2304df62 254/* HAS_FLOCK:
255 * This symbol, if defined, indicates that the flock routine is
a687059c 256 * available to do file locking.
257 */
2304df62 258#$d_flock HAS_FLOCK /**/
a687059c 259
a0d0e21e 260/* HAS_FORK:
261 * This symbol, if defined, indicates that the fork routine is
262 * available.
263 */
264#$d_fork HAS_FORK /**/
265
266/* HAS_FSETPOS:
267 * This symbol, if defined, indicates that the fsetpos routine is
268 * available to set the file position indicator, similar to fseek().
269 */
270#$d_fsetpos HAS_FSETPOS /**/
271
2304df62 272/* HAS_GETGROUPS:
378cc40b 273 * This symbol, if defined, indicates that the getgroups() routine is
274 * available to get the list of process groups. If unavailable, multiple
275 * groups are probably not supported.
276 */
2304df62 277#$d_getgrps HAS_GETGROUPS /**/
378cc40b 278
2304df62 279/* HAS_GETHOSTENT:
280 * This symbol, if defined, indicates that the gethostent routine is
a687059c 281 * available to lookup host names in some data base or other.
282 */
2304df62 283#$d_gethent HAS_GETHOSTENT /**/
284
285/* HAS_UNAME:
286 * This symbol, if defined, indicates that the C program may use the
287 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
288 * and PHOSTNAME.
289 */
290#$d_uname HAS_UNAME /**/
a687059c 291
a0d0e21e 292/* HAS_GETLOGIN:
293 * This symbol, if defined, indicates that the getlogin routine is
294 * available to get the login name.
295 */
296#$d_getlogin HAS_GETLOGIN /**/
297
2304df62 298/* HAS_GETPGRP2:
d8f2e4cc 299 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
300 * routine is available to get the current process group.
301 */
2304df62 302#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 303
a0d0e21e 304/* HAS_GETPPID:
305 * This symbol, if defined, indicates that the getppid routine is
306 * available to get the parent process ID.
307 */
308#$d_getppid HAS_GETPPID /**/
309
2304df62 310/* HAS_GETPRIORITY:
311 * This symbol, if defined, indicates that the getpriority routine is
a687059c 312 * available to get a process's priority.
313 */
2304df62 314#$d_getprior HAS_GETPRIORITY /**/
a687059c 315
a0d0e21e 316/* HAS_HTONL:
317 * This symbol, if defined, indicates that the htonl() routine (and
318 * friends htons() ntohl() ntohs()) are available to do network
319 * order byte swapping.
320 */
321/* HAS_HTONS:
322 * This symbol, if defined, indicates that the htons() routine (and
323 * friends htonl() ntohl() ntohs()) are available to do network
324 * order byte swapping.
325 */
326/* HAS_NTOHL:
327 * This symbol, if defined, indicates that the ntohl() routine (and
328 * friends htonl() htons() ntohs()) are available to do network
329 * order byte swapping.
330 */
331/* HAS_NTOHS:
332 * This symbol, if defined, indicates that the ntohs() routine (and
333 * friends htonl() htons() ntohl()) are available to do network
334 * order byte swapping.
335 */
336#$d_htonl HAS_HTONL /**/
337#$d_htonl HAS_HTONS /**/
338#$d_htonl HAS_NTOHL /**/
339#$d_htonl HAS_NTOHS /**/
340
ecfc5424 341/* HAS_ISASCII:
342 * This manifest constant lets the C program know that isascii
343 * is available.
344 */
345#$d_isascii HAS_ISASCII /**/
346
2304df62 347/* HAS_KILLPG:
378cc40b 348 * This symbol, if defined, indicates that the killpg routine is available
349 * to kill process groups. If unavailable, you probably should use kill
350 * with a negative process number.
351 */
2304df62 352#$d_killpg HAS_KILLPG /**/
378cc40b 353
2304df62 354/* HAS_LINK:
355 * This symbol, if defined, indicates that the link routine is
356 * available to create hard links.
0d3e774c 357 */
2304df62 358#$d_link HAS_LINK /**/
0d3e774c 359
ecfc5424 360/* HAS_LOCALECONV:
361 * This symbol, if defined, indicates that the localeconv routine is
362 * available for numeric and monetary formatting conventions.
363 */
364#$d_locconv HAS_LOCALECONV /**/
365
a0d0e21e 366/* HAS_LOCKF:
367 * This symbol, if defined, indicates that the lockf routine is
368 * available to do file locking.
369 */
370#$d_lockf HAS_LOCKF /**/
371
2304df62 372/* HAS_LSTAT:
373 * This symbol, if defined, indicates that the lstat routine is
374 * available to do file stats on symbolic links.
a687059c 375 */
2304df62 376#$d_lstat HAS_LSTAT /**/
a687059c 377
a0d0e21e 378/* HAS_MBLEN:
379 * This symbol, if defined, indicates that the mblen routine is available
380 * to find the number of bytes in a multibye character.
381 */
382#$d_mblen HAS_MBLEN /**/
383
384/* HAS_MBSTOWCS:
385 * This symbol, if defined, indicates that the mbstowcs routine is
386 * available to covert a multibyte string into a wide character string.
387 */
388#$d_mbstowcs HAS_MBSTOWCS /**/
389
390/* HAS_MBTOWC:
391 * This symbol, if defined, indicates that the mbtowc routine is available
392 * to covert a multibyte to a wide character.
393 */
394#$d_mbtowc HAS_MBTOWC /**/
395
2304df62 396/* HAS_MEMCMP:
397 * This symbol, if defined, indicates that the memcmp routine is available
398 * to compare blocks of memory.
378cc40b 399 */
2304df62 400#$d_memcmp HAS_MEMCMP /**/
401
402/* HAS_MEMCPY:
9f971974 403 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 404 * to copy blocks of memory.
9f971974 405 */
2304df62 406#$d_memcpy HAS_MEMCPY /**/
9f971974 407
2304df62 408/* HAS_MEMMOVE:
9f971974 409 * This symbol, if defined, indicates that the memmove routine is available
2304df62 410 * to copy potentially overlapping blocks of memory. This should be used
411 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
412 * own version.
9f971974 413 */
2304df62 414#$d_memmove HAS_MEMMOVE /**/
9f971974 415
2304df62 416/* HAS_MEMSET:
9f971974 417 * This symbol, if defined, indicates that the memset routine is available
2304df62 418 * to set blocks of memory.
9f971974 419 */
2304df62 420#$d_memset HAS_MEMSET /**/
378cc40b 421
2304df62 422/* HAS_MKDIR:
a687059c 423 * This symbol, if defined, indicates that the mkdir routine is available
424 * to create directories. Otherwise you should fork off a new process to
425 * exec /bin/mkdir.
426 */
2304df62 427#$d_mkdir HAS_MKDIR /**/
fe14fcc3 428
ecfc5424 429/* HAS_MKFIFO:
430 * This symbol, if defined, indicates that the mkfifo routine is
431 * available to create FIFOs. Otherwise, mknod should be able to
432 * do it for you. However, if mkfifo is there, mknod might require
433 * super-user privileges which mkfifo will not.
434 */
435#$d_mkfifo HAS_MKFIFO /**/
436
a0d0e21e 437/* HAS_MKTIME:
438 * This symbol, if defined, indicates that the mktime routine is
439 * available.
440 */
441#$d_mktime HAS_MKTIME /**/
442
2304df62 443/* HAS_MSG:
fe14fcc3 444 * This symbol, if defined, indicates that the entire msg*(2) library is
2304df62 445 * supported (IPC mechanism based on message queues).
fe14fcc3 446 */
2304df62 447#$d_msg HAS_MSG /**/
fe14fcc3 448
a0d0e21e 449/* HAS_NICE:
450 * This symbol, if defined, indicates that the nice routine is
451 * available.
fe14fcc3 452 */
a0d0e21e 453#$d_nice HAS_NICE /**/
a687059c 454
a0d0e21e 455/* HAS_OPEN3:
456 * This manifest constant lets the C program know that the three
457 * argument form of open(2) is available.
fe14fcc3 458 */
a0d0e21e 459#$d_open3 HAS_OPEN3 /**/
fe14fcc3 460
ecfc5424 461/* HAS_PATHCONF:
462 * This symbol, if defined, indicates that pathconf() is available
463 * to determine file-system related limits and options associated
464 * with a given filename.
465 */
466/* HAS_FPATHCONF:
467 * This symbol, if defined, indicates that pathconf() is available
468 * to determine file-system related limits and options associated
469 * with a given open file descriptor.
470 */
471#$d_pathconf HAS_PATHCONF /**/
472#$d_fpathconf HAS_FPATHCONF /**/
473
a0d0e21e 474/* HAS_PAUSE:
475 * This symbol, if defined, indicates that the pause routine is
476 * available to suspend a process until a signal is received.
a687059c 477 */
a0d0e21e 478#$d_pause HAS_PAUSE /**/
a687059c 479
a0d0e21e 480/* HAS_PIPE:
481 * This symbol, if defined, indicates that the pipe routine is
482 * available to create an inter-process channel.
fe14fcc3 483 */
a0d0e21e 484#$d_pipe HAS_PIPE /**/
485
8e07c86e 486/* HAS_POLL:
487 * This symbol, if defined, indicates that the poll routine is
488 * available to poll active file descriptors.
489 */
490#$d_poll HAS_POLL /**/
491
a0d0e21e 492/* HAS_READDIR:
493 * This symbol, if defined, indicates that the readdir routine is
494 * available to read directory entries. You may have to include
495 * <dirent.h>. See I_DIRENT.
496 */
497#$d_readdir HAS_READDIR /**/
498
499/* HAS_SEEKDIR:
500 * This symbol, if defined, indicates that the seekdir routine is
501 * available. You may have to include <dirent.h>. See I_DIRENT.
502 */
503#$d_seekdir HAS_SEEKDIR /**/
504
505/* HAS_TELLDIR:
506 * This symbol, if defined, indicates that the telldir routine is
507 * available. You may have to include <dirent.h>. See I_DIRENT.
508 */
509#$d_telldir HAS_TELLDIR /**/
510
511/* HAS_REWINDDIR:
512 * This symbol, if defined, indicates that the rewinddir routine is
513 * available. You may have to include <dirent.h>. See I_DIRENT.
514 */
515#$d_rewinddir HAS_REWINDDIR /**/
516
517/* HAS_READLINK:
518 * This symbol, if defined, indicates that the readlink routine is
519 * available to read the value of a symbolic link.
520 */
521#$d_readlink HAS_READLINK /**/
fe14fcc3 522
2304df62 523/* HAS_RENAME:
378cc40b 524 * This symbol, if defined, indicates that the rename routine is available
525 * to rename files. Otherwise you should do the unlink(), link(), unlink()
526 * trick.
527 */
2304df62 528#$d_rename HAS_RENAME /**/
378cc40b 529
2304df62 530/* HAS_RMDIR:
531 * This symbol, if defined, indicates that the rmdir routine is
532 * available to remove directories. Otherwise you should fork off a
533 * new process to exec /bin/rmdir.
9f971974 534 */
2304df62 535#$d_rmdir HAS_RMDIR /**/
9f971974 536
ecfc5424 537/* HAS_SAFE_BCOPY:
538 * This symbol, if defined, indicates that the bcopy routine is available
539 * to copy potentially overlapping memory blocks. Otherwise you should
540 * probably use memmove() or memcpy(). If neither is defined, roll your
541 * own version.
542 */
543#$d_safebcpy HAS_SAFE_BCOPY /**/
544
545/* HAS_SAFE_MEMCPY:
546 * This symbol, if defined, indicates that the memcpy routine is available
547 * to copy potentially overlapping memory blocks. Otherwise you should
548 * probably use memmove() or memcpy(). If neither is defined, roll your
549 * own version.
550 */
551#$d_safemcpy HAS_SAFE_MEMCPY /**/
552
2304df62 553/* HAS_SELECT:
554 * This symbol, if defined, indicates that the select routine is
555 * available to select active file descriptors. If the timeout field
556 * is used, <sys/time.h> may need to be included.
fe14fcc3 557 */
2304df62 558#$d_select HAS_SELECT /**/
a687059c 559
2304df62 560/* HAS_SEM:
fe14fcc3 561 * This symbol, if defined, indicates that the entire sem*(2) library is
562 * supported.
563 */
2304df62 564#$d_sem HAS_SEM /**/
fe14fcc3 565
2304df62 566/* HAS_SETEGID:
378cc40b 567 * This symbol, if defined, indicates that the setegid routine is available
568 * to change the effective gid of the current program.
569 */
2304df62 570#$d_setegid HAS_SETEGID /**/
378cc40b 571
2304df62 572/* HAS_SETEUID:
378cc40b 573 * This symbol, if defined, indicates that the seteuid routine is available
574 * to change the effective uid of the current program.
575 */
2304df62 576#$d_seteuid HAS_SETEUID /**/
577
a0d0e21e 578/* HAS_SETLINEBUF:
579 * This symbol, if defined, indicates that the setlinebuf routine is
580 * available to change stderr or stdout from block-buffered or unbuffered
581 * to a line-buffered mode.
582 */
583#$d_setlinebuf HAS_SETLINEBUF /**/
584
585/* HAS_SETLOCALE:
586 * This symbol, if defined, indicates that the setlocale routine is
587 * available to handle locale-specific ctype implementations.
588 */
589#$d_setlocale HAS_SETLOCALE /**/
590
2304df62 591/* HAS_SETPGRP2:
d8f2e4cc 592 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
593 * routine is available to set the current process group.
594 */
2304df62 595#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 596
2304df62 597/* HAS_SETPRIORITY:
598 * This symbol, if defined, indicates that the setpriority routine is
a687059c 599 * available to set a process's priority.
600 */
2304df62 601#$d_setprior HAS_SETPRIORITY /**/
a687059c 602
2304df62 603/* HAS_SETREGID:
a687059c 604 * This symbol, if defined, indicates that the setregid routine is
2304df62 605 * available to change the real and effective gid of the current
606 * process.
a687059c 607 */
2304df62 608/* HAS_SETRESGID:
a687059c 609 * This symbol, if defined, indicates that the setresgid routine is
610 * available to change the real, effective and saved gid of the current
2304df62 611 * process.
a687059c 612 */
2304df62 613#$d_setregid HAS_SETREGID /**/
614#$d_setresgid HAS_SETRESGID /**/
a687059c 615
2304df62 616/* HAS_SETREUID:
a687059c 617 * This symbol, if defined, indicates that the setreuid routine is
2304df62 618 * available to change the real and effective uid of the current
619 * process.
a687059c 620 */
2304df62 621/* HAS_SETRESUID:
a687059c 622 * This symbol, if defined, indicates that the setresuid routine is
623 * available to change the real, effective and saved uid of the current
2304df62 624 * process.
a687059c 625 */
2304df62 626#$d_setreuid HAS_SETREUID /**/
627#$d_setresuid HAS_SETRESUID /**/
a687059c 628
2304df62 629/* HAS_SETRGID:
378cc40b 630 * This symbol, if defined, indicates that the setrgid routine is available
631 * to change the real gid of the current program.
632 */
2304df62 633#$d_setrgid HAS_SETRGID /**/
378cc40b 634
2304df62 635/* HAS_SETRUID:
378cc40b 636 * This symbol, if defined, indicates that the setruid routine is available
637 * to change the real uid of the current program.
638 */
2304df62 639#$d_setruid HAS_SETRUID /**/
640
641/* HAS_SETSID:
642 * This symbol, if defined, indicates that the setsid routine is
643 * available to set the process group ID.
644 */
645#$d_setsid HAS_SETSID /**/
fe14fcc3 646
2304df62 647/* HAS_SHM:
fe14fcc3 648 * This symbol, if defined, indicates that the entire shm*(2) library is
649 * supported.
650 */
2304df62 651#$d_shm HAS_SHM /**/
fe14fcc3 652
a0d0e21e 653/* Shmat_t:
654 * This symbol holds the return type of the shmat() system call.
655 * Usually set to 'void *' or 'char *'.
fe14fcc3 656 */
a0d0e21e 657/* HAS_SHMAT_PROTOTYPE:
658 * This symbol, if defined, indicates that the sys/shm.h includes
659 * a prototype for shmat(). Otherwise, it is up to the program to
660 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
661 * but not always right so it should be emitted by the program only
662 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 663 */
a0d0e21e 664#define Shmat_t $shmattype /**/
665#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 666
568ef1f6 667/* HAS_SIGACTION:
668 * This symbol, if defined, indicates that Vr4's sigaction() routine
669 * is available.
670 */
671#$d_sigaction HAS_SIGACTION /**/
672
2304df62 673/* HAS_SOCKET:
a687059c 674 * This symbol, if defined, indicates that the BSD socket interface is
675 * supported.
676 */
2304df62 677/* HAS_SOCKETPAIR:
678 * This symbol, if defined, indicates that the BSD socketpair() call is
a687059c 679 * supported.
680 */
2304df62 681#$d_socket HAS_SOCKET /**/
682#$d_sockpair HAS_SOCKETPAIR /**/
a687059c 683
2304df62 684/* USE_STAT_BLOCKS:
c51b80d1 685 * This symbol is defined if this system has a stat structure declaring
686 * st_blksize and st_blocks.
687 */
2304df62 688#$d_statblks USE_STAT_BLOCKS /**/
c51b80d1 689
16d20bd9 690/* USE_STDIO_PTR:
691 * This symbol is defined if the _ptr and _cnt fields (or similar)
692 * of the stdio FILE structure can be used to access the stdio buffer
693 * for a file handle. If this is defined, then the FILE_ptr(fp)
694 * and FILE_cnt(fp) macros will also be defined and should be used
695 * to access these fields.
696 */
16d20bd9 697/* FILE_ptr:
698 * This macro is used to access the _ptr field (or equivalent) of the
699 * FILE structure pointed to by its argument. This macro will always be
700 * defined if USE_STDIO_PTR is defined.
701 */
c2960299 702/* STDIO_PTR_LVALUE:
703 * This symbol is defined if the FILE_ptr macro can be used as an
704 * lvalue.
705 */
16d20bd9 706/* FILE_cnt:
707 * This macro is used to access the _cnt field (or equivalent) of the
708 * FILE structure pointed to by its argument. This macro will always be
709 * defined if USE_STDIO_PTR is defined.
710 */
c2960299 711/* STDIO_CNT_LVALUE:
712 * This symbol is defined if the FILE_cnt macro can be used as an
713 * lvalue.
714 */
e876cf0b 715/* FILE_filbuf:
716 * This macro is used to access the internal stdio _filbuf function
717 * (or equivalent), if STDIO_CNT_LVALUE and STDIO_PTR_LVALUE
718 * are defined. It is typically either _filbuf or __filbuf.
719 * This macro will only be defined if both STDIO_CNT_LVALUE and
720 * STDIO_PTR_LVALUE are defined.
721 */
722#$d_stdstdio USE_STDIO_PTR /**/
16d20bd9 723#ifdef USE_STDIO_PTR
724#define FILE_ptr(fp) $stdio_ptr
4aa0a1f7 725#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
16d20bd9 726#define FILE_cnt(fp) $stdio_cnt
4aa0a1f7 727#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
e876cf0b 728#if defined(STDIO_PTR_LVALUE) && defined(STDIO_CNT_LVALUE)
729#define FILE_filbuf(fp) $stdio_filbuf /**/
730#endif
16d20bd9 731#endif
732
e876cf0b 733/* USE_STDIO_BASE:
734 * This symbol is defined if the _base field (or similar) of the
735 * stdio FILE structure can be used to access the stdio buffer for
736 * a file handle. If this is defined, then the FILE_base(fp) macro
737 * will also be defined and should be used to access this field.
738 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
739 * to determine the number of bytes in the buffer. USE_STDIO_BASE
740 * will never be defined unless USE_STDIO_PTR is.
741 */
16d20bd9 742/* FILE_base:
743 * This macro is used to access the _base field (or equivalent) of the
744 * FILE structure pointed to by its argument. This macro will always be
745 * defined if USE_STDIO_BASE is defined.
746 */
747/* FILE_bufsiz:
748 * This macro is used to determine the number of bytes in the I/O
749 * buffer pointed to by _base field (or equivalent) of the FILE
750 * structure pointed to its argument. This macro will always be defined
751 * if USE_STDIO_BASE is defined.
36ce8bec 752 */
e876cf0b 753#$d_stdiobase USE_STDIO_BASE /**/
16d20bd9 754#ifdef USE_STDIO_BASE
755#define FILE_base(fp) $stdio_base
756#define FILE_bufsiz(fp) $stdio_bufsiz
757#endif
36ce8bec 758
a0d0e21e 759/* HAS_STRCHR:
760 * This symbol is defined to indicate that the strchr()/strrchr()
761 * functions are available for string searching. If not, try the
762 * index()/rindex() pair.
763 */
764/* HAS_INDEX:
765 * This symbol is defined to indicate that the index()/rindex()
766 * functions are available for string searching.
767 */
768#$d_strchr HAS_STRCHR /**/
769#$d_index HAS_INDEX /**/
770
771/* HAS_STRCOLL:
772 * This symbol, if defined, indicates that the strcoll routine is
773 * available to compare strings using collating information.
774 */
775#$d_strcoll HAS_STRCOLL /**/
776
2304df62 777/* USE_STRUCT_COPY:
8d063cd8 778 * This symbol, if defined, indicates that this C compiler knows how
779 * to copy structures. If undefined, you'll need to use a block copy
780 * routine of some sort instead.
781 */
2304df62 782#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 783
a0d0e21e 784/* HAS_STRERROR:
785 * This symbol, if defined, indicates that the strerror routine is
786 * available to translate error numbers to strings. See the writeup
787 * of Strerror() in this file before you try to define your own.
788 */
789/* HAS_SYS_ERRLIST:
790 * This symbol, if defined, indicates that the sys_errlist array is
791 * available to translate error numbers to strings. The extern int
792 * sys_nerr gives the size of that table.
793 */
794/* Strerror:
795 * This preprocessor symbol is defined as a macro if strerror() is
796 * not available to translate error numbers to strings but sys_errlist[]
797 * array is there.
798 */
799#$d_strerror HAS_STRERROR /**/
800#$d_syserrlst HAS_SYS_ERRLIST /**/
801#define Strerror(e) $d_strerrm
802
a89d8a78 803/* HAS_STRTOD:
804 * This symbol, if defined, indicates that the strtod routine is
805 * available to translate strings to doubles.
806 */
807#$d_strtod HAS_STRTOD /**/
808
809/* HAS_STRTOL:
810 * This symbol, if defined, indicates that the strtol routine is
811 * available to translate strings to integers.
812 */
813#$d_strtol HAS_STRTOL /**/
814
815/* HAS_STRTOUL:
816 * This symbol, if defined, indicates that the strtoul routine is
817 * available to translate strings to integers.
818 */
819#$d_strtoul HAS_STRTOUL /**/
820
a0d0e21e 821/* HAS_STRXFRM:
822 * This symbol, if defined, indicates that the strxfrm() routine is
823 * available to transform strings.
824 */
825#$d_strxfrm HAS_STRXFRM /**/
826
2304df62 827/* HAS_SYMLINK:
2e1b3b7e 828 * This symbol, if defined, indicates that the symlink routine is available
829 * to create symbolic links.
830 */
2304df62 831#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 832
2304df62 833/* HAS_SYSCALL:
834 * This symbol, if defined, indicates that the syscall routine is
835 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 836 */
2304df62 837#$d_syscall HAS_SYSCALL /**/
e5d73d77 838
ecfc5424 839/* HAS_SYSCONF:
840 * This symbol, if defined, indicates that sysconf() is available
841 * to determine system related limits and options.
842 */
843#$d_sysconf HAS_SYSCONF /**/
844
2304df62 845/* HAS_SYSTEM:
846 * This symbol, if defined, indicates that the system routine is
847 * available to issue a shell command.
9f971974 848 */
2304df62 849#$d_system HAS_SYSTEM /**/
9f971974 850
a0d0e21e 851/* HAS_TCGETPGRP:
852 * This symbol, if defined, indicates that the tcgetpgrp routine is
853 * available to get foreground process group ID.
85e6fe83 854 */
a0d0e21e 855#$d_tcgetpgrp HAS_TCGETPGRP /**/
856
857/* HAS_TCSETPGRP:
858 * This symbol, if defined, indicates that the tcsetpgrp routine is
859 * available to set foreground process group ID.
860 */
861#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 862
ecfc5424 863/* Time_t:
864 * This symbol holds the type returned by time(). It can be long,
865 * or time_t on BSD sites (in which case <sys/types.h> should be
866 * included).
867 */
868#define Time_t $timetype /* Time type */
869
2304df62 870/* HAS_TIMES:
871 * This symbol, if defined, indicates that the times() routine exists.
872 * Note that this became obsolete on some systems (SUNOS), which now
873 * use getrusage(). It may be necessary to include <sys/times.h>.
874 */
875#$d_times HAS_TIMES /**/
876
877/* HAS_TRUNCATE:
87250799 878 * This symbol, if defined, indicates that the truncate routine is
879 * available to truncate files.
880 */
2304df62 881#$d_truncate HAS_TRUNCATE /**/
87250799 882
a0d0e21e 883/* HAS_TZNAME:
884 * This symbol, if defined, indicates that the tzname[] array is
885 * available to access timezone names.
886 */
887#$d_tzname HAS_TZNAME /**/
888
889/* HAS_UMASK:
890 * This symbol, if defined, indicates that the umask routine is
891 * available to set and get the value of the file creation mask.
892 */
893#$d_umask HAS_UMASK /**/
894
895/* HAS_VFORK:
896 * This symbol, if defined, indicates that vfork() exists.
2304df62 897 */
a0d0e21e 898#$d_vfork HAS_VFORK /**/
2304df62 899
ecfc5424 900/* Signal_t:
901 * This symbol's value is either "void" or "int", corresponding to the
902 * appropriate return type of a signal handler. Thus, you can declare
903 * a signal handler using "Signal_t (*handler)()", and define the
904 * handler using "Signal_t handler(sig)".
905 */
ecfc5424 906#define Signal_t $signal_t /* Signal handler's return type */
36ce8bec 907
2304df62 908/* HASVOLATILE:
afd9f252 909 * This symbol, if defined, indicates that this C compiler knows about
910 * the volatile declaration.
911 */
912#$d_volatile HASVOLATILE /**/
2304df62 913#ifndef HASVOLATILE
914#define volatile
915#endif
afd9f252 916
2304df62 917/* HAS_VPRINTF:
a687059c 918 * This symbol, if defined, indicates that the vprintf routine is available
919 * to printf with a pointer to an argument list. If unavailable, you
920 * may need to write your own, probably in terms of _doprnt().
921 */
2304df62 922/* USE_CHAR_VSPRINTF:
a687059c 923 * This symbol is defined if this system has vsprintf() returning type
924 * (char*). The trend seems to be to declare it as "int vsprintf()". It
925 * is up to the package author to declare vsprintf correctly based on the
926 * symbol.
927 */
2304df62 928#$d_vprintf HAS_VPRINTF /**/
929#$d_charvspr USE_CHAR_VSPRINTF /**/
a687059c 930
2304df62 931/* HAS_WAIT4:
bf38876a 932 * This symbol, if defined, indicates that wait4() exists.
933 */
2304df62 934#$d_wait4 HAS_WAIT4 /**/
bf38876a 935
2304df62 936/* HAS_WAITPID:
937 * This symbol, if defined, indicates that the waitpid routine is
938 * available to wait for child process.
39c3038c 939 */
2304df62 940#$d_waitpid HAS_WAITPID /**/
39c3038c 941
a0d0e21e 942/* HAS_WCSTOMBS:
943 * This symbol, if defined, indicates that the wcstombs routine is
944 * available to convert wide character strings to multibyte strings.
945 */
946#$d_wcstombs HAS_WCSTOMBS /**/
947
948/* HAS_WCTOMB:
949 * This symbol, if defined, indicates that the wctomb routine is available
950 * to covert a wide character to a multibyte.
951 */
952#$d_wctomb HAS_WCTOMB /**/
953
954/* Fpos_t:
955 * This symbol holds the type used to declare file positions in libc.
956 * It can be fpos_t, long, uint, etc... It may be necessary to include
957 * <sys/types.h> to get any typedef'ed information.
958 */
959#define Fpos_t $fpostype /* File position type */
960
961/* Gid_t:
962 * This symbol holds the return type of getgid() and the type of
963 * argument to setrgid() and related functions. Typically,
964 * it is the type of group ids in the kernel. It can be int, ushort,
965 * uid_t, etc... It may be necessary to include <sys/types.h> to get
966 * any typedef'ed information.
378cc40b 967 */
a0d0e21e 968#define Gid_t $gidtype /* Type for getgid(), etc... */
378cc40b 969
ecfc5424 970/* Groups_t:
971 * This symbol holds the type used for the second argument to
972 * getgroups(). Usually, this is the same of gidtype, but
973 * sometimes it isn't. It can be int, ushort, uid_t, etc...
974 * It may be necessary to include <sys/types.h> to get any
975 * typedef'ed information. This is only required if you have
976 * getgroups().
977 */
978#ifdef HAS_GETGROUPS
979#define Groups_t $groupstype /* Type for 2nd arg to getgroups() */
980#endif
981
232e078e 982/* DB_Prefix_t:
983 * This symbol contains the type of the prefix structure element
984 * in the <db.h> header file. In older versions of DB, it was
985 * int, while in newer ones it is u_int32_t.
986 */
987/* DB_Hash_t:
988 * This symbol contains the type of the prefix structure element
989 * in the <db.h> header file. In older versions of DB, it was
990 * int, while in newer ones it is size_t.
991 */
992#define DB_Hash_t $db_hashtype /**/
993#define DB_Prefix_t $db_prefixtype /**/
994
2304df62 995/* I_DIRENT:
996 * This symbol, if defined, indicates to the C program that it should
997 * include <dirent.h>. Using this symbol also triggers the definition
998 * of the Direntry_t define which ends up being 'struct dirent' or
999 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 1000 */
2304df62 1001/* DIRNAMLEN:
1002 * This symbol, if defined, indicates to the C program that the length
1003 * of directory entry names is provided by a d_namlen field. Otherwise
1004 * you need to do strlen() on the d_name field.
1005 */
a0d0e21e 1006/* Direntry_t:
1007 * This symbol is set to 'struct direct' or 'struct dirent' depending on
1008 * whether dirent is available or not. You should use this pseudo type to
1009 * portably declare your directory entries.
1010 */
2304df62 1011#$i_dirent I_DIRENT /**/
1012#$d_dirnamlen DIRNAMLEN /**/
a0d0e21e 1013#define Direntry_t $direntrytype
1014
1015/* I_DLFCN:
1016 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1017 * be included.
1018 */
1019#$i_dlfcn I_DLFCN /**/
1c3d792e 1020
2304df62 1021/* I_FCNTL:
fe14fcc3 1022 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 1023 */
2304df62 1024#$i_fcntl I_FCNTL /**/
a687059c 1025
a0d0e21e 1026/* I_FLOAT:
1027 * This symbol, if defined, indicates to the C program that it should
1028 * include <float.h> to get definition of symbols like DBL_MAX or
1029 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 1030 */
a0d0e21e 1031#$i_float I_FLOAT /**/
a687059c 1032
2304df62 1033/* I_GRP:
a687059c 1034 * This symbol, if defined, indicates to the C program that it should
2304df62 1035 * include <grp.h>.
a687059c 1036 */
2304df62 1037#$i_grp I_GRP /**/
a687059c 1038
a0d0e21e 1039/* I_LIMITS:
1040 * This symbol, if defined, indicates to the C program that it should
1041 * include <limits.h> to get definition of symbols like WORD_BIT or
1042 * LONG_MAX, i.e. machine dependant limitations.
1043 */
1044#$i_limits I_LIMITS /**/
1045
1046/* I_MATH:
1047 * This symbol, if defined, indicates to the C program that it should
1048 * include <math.h>.
1049 */
1050#$i_math I_MATH /**/
1051
1052/* I_MEMORY:
1053 * This symbol, if defined, indicates to the C program that it should
1054 * include <memory.h>.
1055 */
1056#$i_memory I_MEMORY /**/
1057
232e078e 1058/* I_NDBM:
16d20bd9 1059 * This symbol, if defined, indicates that <ndbm.h> exists and should
232e078e 1060 * be included.
1061 */
1062#$i_ndbm I_NDBM /**/
1063
ecfc5424 1064/* I_NET_ERRNO:
1065 * This symbol, if defined, indicates that <net/errno.h> exists and
1066 * should be included.
2304df62 1067 */
ecfc5424 1068#$i_neterrno I_NET_ERRNO /**/
2304df62 1069
1070/* I_NETINET_IN:
03a14243 1071 * This symbol, if defined, indicates to the C program that it should
2304df62 1072 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 1073 */
2304df62 1074#$i_niin I_NETINET_IN /**/
03a14243 1075
a0d0e21e 1076/* I_PWD:
1077 * This symbol, if defined, indicates to the C program that it should
1078 * include <pwd.h>.
a687059c 1079 */
a0d0e21e 1080/* PWQUOTA:
1081 * This symbol, if defined, indicates to the C program that struct passwd
1082 * contains pw_quota.
1083 */
1084/* PWAGE:
1085 * This symbol, if defined, indicates to the C program that struct passwd
1086 * contains pw_age.
1087 */
1088/* PWCHANGE:
1089 * This symbol, if defined, indicates to the C program that struct passwd
1090 * contains pw_change.
1091 */
1092/* PWCLASS:
1093 * This symbol, if defined, indicates to the C program that struct passwd
1094 * contains pw_class.
1095 */
1096/* PWEXPIRE:
1097 * This symbol, if defined, indicates to the C program that struct passwd
1098 * contains pw_expire.
1099 */
1100/* PWCOMMENT:
1101 * This symbol, if defined, indicates to the C program that struct passwd
1102 * contains pw_comment.
1103 */
1104#$i_pwd I_PWD /**/
1105#$d_pwquota PWQUOTA /**/
1106#$d_pwage PWAGE /**/
1107#$d_pwchange PWCHANGE /**/
1108#$d_pwclass PWCLASS /**/
1109#$d_pwexpire PWEXPIRE /**/
1110#$d_pwcomment PWCOMMENT /**/
a687059c 1111
2304df62 1112/* I_STDDEF:
1113 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c 1114 * be included.
1115 */
2304df62 1116#$i_stddef I_STDDEF /**/
a687059c 1117
a0d0e21e 1118/* I_STDLIB:
1119 * This symbol, if defined, indicates that <stdlib.h> exists and should
1120 * be included.
1121 */
1122#$i_stdlib I_STDLIB /**/
1123
1124/* I_STRING:
85e6fe83 1125 * This symbol, if defined, indicates to the C program that it should
1126 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1127 */
1128#$i_string I_STRING /**/
1129
2304df62 1130/* I_SYS_DIR:
1131 * This symbol, if defined, indicates to the C program that it should
1132 * include <sys/dir.h>.
d8f2e4cc 1133 */
2304df62 1134#$i_sysdir I_SYS_DIR /**/
1135
1136/* I_SYS_FILE:
1137 * This symbol, if defined, indicates to the C program that it should
1138 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 1139 */
2304df62 1140#$i_sysfile I_SYS_FILE /**/
1141
1142/* I_SYS_IOCTL:
1143 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1144 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 1145 */
2304df62 1146#$i_sysioctl I_SYS_IOCTL /**/
1147
1148/* I_SYS_NDIR:
1149 * This symbol, if defined, indicates to the C program that it should
1150 * include <sys/ndir.h>.
1151 */
1152#$i_sysndir I_SYS_NDIR /**/
1153
a0d0e21e 1154/* I_SYS_PARAM:
1155 * This symbol, if defined, indicates to the C program that it should
1156 * include <sys/param.h>.
1157 */
1158#$i_sysparam I_SYS_PARAM /**/
1159
e876cf0b 1160/* I_SYS_RESOURCE:
1161 * This symbol, if defined, indicates to the C program that it should
1162 * include <sys/resource.h>.
1163 */
1164#$i_sysresrc I_SYS_RESOURCE /**/
1165
2304df62 1166/* I_SYS_SELECT:
1167 * This symbol, if defined, indicates to the C program that it should
1168 * include <sys/select.h> in order to get definition of struct timeval.
1169 */
1170#$i_sysselct I_SYS_SELECT /**/
1171
a0d0e21e 1172/* I_SYS_TIMES:
1173 * This symbol, if defined, indicates to the C program that it should
1174 * include <sys/times.h>.
1175 */
1176#$i_systimes I_SYS_TIMES /**/
1177
fed7345c 1178/* I_SYS_TYPES:
1179 * This symbol, if defined, indicates to the C program that it should
1180 * include <sys/types.h>.
1181 */
1182#$i_systypes I_SYS_TYPES /**/
1183
25f94b33 1184/* I_SYS_UN:
1185 * This symbol, if defined, indicates to the C program that it should
1186 * include <sys/un.h> to get UNIX domain socket definitions.
1187 */
1188#$i_sysun I_SYS_UN /**/
1189
e876cf0b 1190/* I_SYS_WAIT:
1191 * This symbol, if defined, indicates to the C program that it should
1192 * include <sys/wait.h>.
1193 */
1194#$i_syswait I_SYS_WAIT /**/
1195
a0d0e21e 1196/* I_TERMIO:
1197 * This symbol, if defined, indicates that the program should include
1198 * <termio.h> rather than <sgtty.h>. There are also differences in
1199 * the ioctl() calls that depend on the value of this symbol.
1200 */
1201/* I_TERMIOS:
1202 * This symbol, if defined, indicates that the program should include
1203 * the POSIX termios.h rather than sgtty.h or termio.h.
1204 * There are also differences in the ioctl() calls that depend on the
1205 * value of this symbol.
1206 */
1207/* I_SGTTY:
1208 * This symbol, if defined, indicates that the program should include
1209 * <sgtty.h> rather than <termio.h>. There are also differences in
1210 * the ioctl() calls that depend on the value of this symbol.
1211 */
1212#$i_termio I_TERMIO /**/
1213#$i_termios I_TERMIOS /**/
1214#$i_sgtty I_SGTTY /**/
1215
2304df62 1216/* I_TIME:
1217 * This symbol, if defined, indicates to the C program that it should
1218 * include <time.h>.
1219 */
1220/* I_SYS_TIME:
1221 * This symbol, if defined, indicates to the C program that it should
1222 * include <sys/time.h>.
fe14fcc3 1223 */
85e6fe83 1224/* I_SYS_TIME_KERNEL:
1225 * This symbol, if defined, indicates to the C program that it should
1226 * include <sys/time.h> with KERNEL defined.
1227 */
2304df62 1228#$i_time I_TIME /**/
1229#$i_systime I_SYS_TIME /**/
85e6fe83 1230#$i_systimek I_SYS_TIME_KERNEL /**/
1231
1232/* I_UNISTD:
1233 * This symbol, if defined, indicates to the C program that it should
1234 * include <unistd.h>.
1235 */
1236#$i_unistd I_UNISTD /**/
d8f2e4cc 1237
2304df62 1238/* I_UTIME:
d8f2e4cc 1239 * This symbol, if defined, indicates to the C program that it should
2304df62 1240 * include <utime.h>.
d8f2e4cc 1241 */
2304df62 1242#$i_utime I_UTIME /**/
d8f2e4cc 1243
e876cf0b 1244/* I_STDARG:
1245 * This symbol, if defined, indicates that <stdarg.h> exists and should
1246 * be included.
1247 */
1248/* I_VARARGS:
1249 * This symbol, if defined, indicates to the C program that it should
1250 * include <varargs.h>.
1251 */
1252#$i_stdarg I_STDARG /**/
1253#$i_varargs I_VARARGS /**/
1254
a0d0e21e 1255/* I_VFORK:
1256 * This symbol, if defined, indicates to the C program that it should
1257 * include vfork.h.
1258 */
1259#$i_vfork I_VFORK /**/
a687059c 1260
e876cf0b 1261/* INTSIZE:
1262 * This symbol contains the size of an int, so that the C preprocessor
1263 * can make decisions based on it.
1264 */
1265#define INTSIZE $intsize /**/
1266
85e6fe83 1267/* Off_t:
1268 * This symbol holds the type used to declare offsets in the kernel.
1269 * It can be int, long, off_t, etc... It may be necessary to include
1270 * <sys/types.h> to get any typedef'ed information.
1271 */
1272#define Off_t $lseektype /* <offset> type */
1273
ecfc5424 1274/* Mode_t:
1275 * This symbol holds the type used to declare file modes
1276 * for systems calls. It is usually mode_t, but may be
1277 * int or unsigned short. It may be necessary to include <sys/types.h>
1278 * to get any typedef'ed information.
1279 */
1280#define Mode_t $modetype /* file mode parameter for system calls */
1281
a0d0e21e 1282/* CAN_PROTOTYPE:
1283 * If defined, this macro indicates that the C compiler can handle
1284 * function prototypes.
85e6fe83 1285 */
a0d0e21e 1286/* _:
1287 * This macro is used to declare function parameters for folks who want
1288 * to make declarations with prototypes using a different style than
1289 * the above macros. Use double parentheses. For example:
1290 *
1291 * int main _((int argc, char *argv[]));
1292 */
1293#$prototype CAN_PROTOTYPE /**/
1294#ifdef CAN_PROTOTYPE
1295#define _(args) args
1296#else
1297#define _(args) ()
1298#endif
85e6fe83 1299
2304df62 1300/* RANDBITS:
1301 * This symbol contains the number of bits of random number the rand()
1302 * function produces. Usual values are 15, 16, and 31.
fe14fcc3 1303 */
2304df62 1304#define RANDBITS $randbits /**/
1305
1306/* SCRIPTDIR:
1307 * This symbol holds the name of the directory in which the user wants
1308 * to put publicly executable scripts for the package in question. It
1309 * is often a directory that is mounted across diverse architectures.
1310 * Programs must be prepared to deal with ~name expansion.
fe14fcc3 1311 */
2304df62 1312#define SCRIPTDIR "$scriptdir" /**/
1313
a0d0e21e 1314/* Select_fd_set_t:
1315 * This symbol holds the type used for the 2nd, 3rd, and 4th
1316 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1317 * is defined, and 'int *' otherwise. This is only useful if you
1318 * have select(), of course.
1319 */
1320#define Select_fd_set_t $selecttype /**/
1321
a0d0e21e 1322/* Size_t:
1323 * This symbol holds the type used to declare length parameters
1324 * for string functions. It is usually size_t, but may be
1325 * unsigned long, int, etc. It may be necessary to include
1326 * <sys/types.h> to get any typedef'ed information.
1327 */
1328#define Size_t $sizetype /* length paramater for string functions */
1329
2304df62 1330/* STDCHAR:
1331 * This symbol is defined to be the type of char used in stdio.h.
1332 * It has the values "unsigned char" or "char".
fe14fcc3 1333 */
2304df62 1334#define STDCHAR $stdchar /**/
1335
1336/* Uid_t:
1337 * This symbol holds the type used to declare user ids in the kernel.
1338 * It can be int, ushort, uid_t, etc... It may be necessary to include
1339 * <sys/types.h> to get any typedef'ed information.
fe14fcc3 1340 */
2304df62 1341#define Uid_t $uidtype /* UID type */
fe14fcc3 1342
a0d0e21e 1343/* LOC_SED:
1344 * This symbol holds the complete pathname to the sed program.
85e6fe83 1345 */
1aef975c 1346#define LOC_SED "$full_sed" /**/
1347
760ac839 1348/* OSNAME:
1349 * This symbol contains the name of the operating system, as determined
1350 * by Configure. You shouldn't rely on it too much; the specific
1351 * feature tests from Configure are generally more reliable.
1352 */
1353#define OSNAME "$osname" /**/
1354
e876cf0b 1355/* ARCHLIB:
1356 * This variable, if defined, holds the name of the directory in
1357 * which the user wants to put architecture-dependent public
1358 * library files for $package. It is most often a local directory
1359 * such as /usr/local/lib. Programs using this variable must be
1360 * prepared to deal with filename expansion. If ARCHLIB is the
1361 * same as PRIVLIB, it is not defined, since presumably the
1362 * program already searches PRIVLIB.
1363 */
4633a7c4 1364/* ARCHLIB_EXP:
1365 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1366 * in programs that are not prepared to deal with ~ expansion at run-time.
1367 */
e876cf0b 1368#$d_archlib ARCHLIB "$archlib" /**/
4633a7c4 1369#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1370
8e07c86e 1371/* BYTEORDER:
e876cf0b 1372 * This symbol holds the hexadecimal constant defined in byteorder,
8e07c86e 1373 * i.e. 0x1234 or 0x4321, etc...
e876cf0b 1374 * On NeXT 4 (and greater), you can build "Fat" Multiple Architecture
1375 * Binaries (MAB) on either big endian or little endian machines.
1376 * The endian-ness is available at compile-time. This only matters
1377 * for perl, where the config.h can be generated and installed on
1378 * one system, and used by a different architecture to build an
1379 * extension. Older versions of NeXT that might not have
1380 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1381 * so the default case (for NeXT) is big endian to catch them.
1382 * This might matter for NeXT 3.0.
8e07c86e 1383 */
40750cc0 1384#ifndef NeXT
8e07c86e 1385#define BYTEORDER 0x$byteorder /* large digits for MSB */
760ac839 1386#else /* NeXT */
1387#ifdef __LITTLE_ENDIAN__
40750cc0 1388#define BYTEORDER 0x1234
760ac839 1389#else /* __BIG_ENDIAN__ */
1390#define BYTEORDER 0x4321
40750cc0 1391#endif /* ENDIAN CHECK */
760ac839 1392#endif /* NeXT */
8e07c86e 1393
1aef975c 1394/* CSH:
1395 * This symbol, if defined, indicates that the C-shell exists.
1396 * If defined, contains the full pathname of csh.
1397 */
1398#$d_csh CSH "$full_csh" /**/
85e6fe83 1399
a0d0e21e 1400/* DLSYM_NEEDS_UNDERSCORE:
1401 * This symbol, if defined, indicates that we need to prepend an
1402 * underscore to the symbol name before calling dlsym(). This only
1403 * makes sense if you *have* dlsym, which we will presume is the
1404 * case if you're using dl_dlopen.xs.
85e6fe83 1405 */
c1b76f5d 1406#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
a0d0e21e 1407
bccf77a5 1408/* SETUID_SCRIPTS_ARE_SECURE_NOW:
1409 * This symbol, if defined, indicates that the bug that prevents
1410 * setuid scripts from being secure is not present in this kernel.
1411 */
1412/* DOSUID:
1413 * This symbol, if defined, indicates that the C program should
1414 * check the script that it is executing for setuid/setgid bits, and
1415 * attempt to emulate setuid/setgid on systems that have disabled
1416 * setuid #! scripts because the kernel can't do it securely.
1417 * It is up to the package designer to make sure that this emulation
1418 * is done securely. Among other things, it should do an fstat on
1419 * the script it just opened to make sure it really is a setuid/setgid
1420 * script, it should make sure the arguments passed correspond exactly
1421 * to the argument on the #! line, and it should not trust any
1422 * subprocesses to which it must pass the filename rather than the
1423 * file descriptor of the script to be executed.
1424 */
1425#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1426#$d_dosuid DOSUID /**/
1427
8e07c86e 1428/* Gconvert:
1429 * This preprocessor macro is defined to convert a floating point
1430 * number to a string without a trailing decimal point. This
1431 * emulates the behavior of sprintf("%g"), but is sometimes much more
1432 * efficient. If gconvert() is not available, but gcvt() drops the
1433 * trailing decimal point, then gcvt() is used. If all else fails,
1434 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1435 * macro are: value, number of digits, whether trailing zeros should
1436 * be retained, and the output buffer.
1437 * Possible values are:
1438 * d_Gconvert='gconvert((x),(n),(t),(b))'
1439 * d_Gconvert='gcvt((x),(n),(b))'
1440 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1441 * The last two assume trailing zeros should not be kept.
1442 */
1443#define Gconvert(x,n,t,b) $d_Gconvert
1444
c1b76f5d 1445/* HAS_GETPGID:
1446 * This symbol, if defined, indicates to the C program that
1447 * the getpgid(pid) function is available to get the
1448 * process group id.
1449 */
1450#$d_getpgid HAS_GETPGID /**/
1451
1452/* HAS_GETPGRP:
1453 * This symbol, if defined, indicates that the getpgrp routine is
1454 * available to get the current process group.
1455 */
1456/* USE_BSD_GETPGRP:
1457 * This symbol, if defined, indicates that getpgrp needs one
1458 * arguments whereas USG one needs none.
1459 */
1460#$d_getpgrp HAS_GETPGRP /**/
1461#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
1462
1463/* HAS_SETPGID:
1464 * This symbol, if defined, indicates to the C program that
1465 * the setpgid(pid, gpid) function is available to set the
1466 * process group id.
1467 */
1468#$d_setpgid HAS_SETPGID /**/
1469
1470/* HAS_SETPGRP:
1471 * This symbol, if defined, indicates that the setpgrp routine is
1472 * available to set the current process group.
1473 */
1474/* USE_BSD_SETPGRP:
1475 * This symbol, if defined, indicates that setpgrp needs two
1476 * arguments whereas USG one needs none. See also HAS_SETPGID
1477 * for a POSIX interface.
1478 */
1479/* USE_BSDPGRP:
1480 * This symbol, if defined, indicates that the BSD notion of process
1481 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
1482 * instead of the USG setpgrp(). This should be obsolete since
1483 * there are systems which have BSD-ish setpgrp but USG-ish getpgrp.
1484 */
1485#$d_setpgrp HAS_SETPGRP /**/
1486#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
1487#$d_bsdpgrp USE_BSDPGRP /**/
1488
760ac839 1489/* USE_SFIO:
1490 * This symbol, if defined, indicates that sfio should
1491 * be used.
1492 */
1493#$d_sfio USE_SFIO /**/
1494
a5f75d66 1495/* Sigjmp_buf:
760ac839 1496 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
a5f75d66 1497 */
1498/* Sigsetjmp:
760ac839 1499 * This macro is used in the same way as sigsetjmp(), but will invoke
1500 * traditional setjmp() if sigsetjmp isn't available.
1501 * See HAS_SIGSETJMP.
a5f75d66 1502 */
1503/* Siglongjmp:
760ac839 1504 * This macro is used in the same way as siglongjmp(), but will invoke
1505 * traditional longjmp() if siglongjmp isn't available.
1506 * See HAS_SIGSETJMP.
a5f75d66 1507 */
1508#$d_sigsetjmp HAS_SIGSETJMP /**/
1509#ifdef HAS_SIGSETJMP
1510#define Sigjmp_buf sigjmp_buf
760ac839 1511#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1512#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
a5f75d66 1513#else
1514#define Sigjmp_buf jmp_buf
760ac839 1515#define Sigsetjmp(buf,save_mask) setjmp((buf))
1516#define Siglongjmp(buf,retval) longjmp((buf),(retval))
a5f75d66 1517#endif
1518
2304df62 1519/* USE_DYNAMIC_LOADING:
1520 * This symbol, if defined, indicates that dynamic loading of
1521 * some sort is available.
a687059c 1522 */
2304df62 1523#$usedl USE_DYNAMIC_LOADING /**/
a687059c 1524
8e07c86e 1525/* I_DBM:
1526 * This symbol, if defined, indicates that <dbm.h> exists and should
1527 * be included.
1528 */
1529/* I_RPCSVC_DBM:
1530 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
1531 * should be included.
1532 */
1533#$i_dbm I_DBM /**/
1534#$i_rpcsvcdbm I_RPCSVC_DBM /**/
1535
4633a7c4 1536/* I_LOCALE:
1537 * This symbol, if defined, indicates to the C program that it should
1538 * include <locale.h>.
1539 */
1540#$i_locale I_LOCALE /**/
1541
760ac839 1542/* I_SFIO:
1543 * This symbol, if defined, indicates to the C program that it should
1544 * include <sfio.h>.
1545 */
1546#$i_sfio I_SFIO /**/
1547
1aef975c 1548/* I_SYS_STAT:
1549 * This symbol, if defined, indicates to the C program that it should
1550 * include <sys/stat.h>.
1551 */
1552#$i_sysstat I_SYS_STAT /**/
1553
e876cf0b 1554/* I_VALUES:
bccf77a5 1555 * This symbol, if defined, indicates to the C program that it should
e876cf0b 1556 * include <values.h> to get definition of symbols like MINFLOAT or
1557 * MAXLONG, i.e. machine dependant limitations. Probably, you
1558 * should use <limits.h> instead, if it is available.
bccf77a5 1559 */
e876cf0b 1560#$i_values I_VALUES /**/
8e07c86e 1561
94b6baf5 1562/* Free_t:
1563 * This variable contains the return type of free(). It is usually
1564 * void, but occasionally int.
1565 */
2304df62 1566/* Malloc_t:
1567 * This symbol is the type of pointer returned by malloc and realloc.
36ce8bec 1568 */
2304df62 1569#define Malloc_t $malloctype /**/
94b6baf5 1570#define Free_t $freetype /**/
36ce8bec 1571
85e6fe83 1572/* MYMALLOC:
1573 * This symbol, if defined, indicates that we're using our own malloc.
1574 */
1575#$d_mymalloc MYMALLOC /**/
1576
bccf77a5 1577/* VAL_O_NONBLOCK:
1578 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1579 * non-blocking I/O for the file descriptor. Note that there is no way
1580 * back, i.e. you cannot turn it blocking again this way. If you wish to
1581 * alternatively switch between blocking and non-blocking, use the
1582 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1583 */
1584/* VAL_EAGAIN:
1585 * This symbol holds the errno error code set by read() when no data was
1586 * present on the non-blocking file descriptor.
1587 */
1588/* RD_NODATA:
1589 * This symbol holds the return code from read() when no data is present
1590 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1591 * not defined, then you can't distinguish between no data and EOF by
1592 * issuing a read(). You'll have to find another way to tell for sure!
1593 */
1594/* EOF_NONBLOCK:
1595 * This symbol, if defined, indicates to the C program that a read() on
1596 * a non-blocking file descriptor will return 0 on EOF, and not the value
1597 * held in RD_NODATA (-1 usually, in that case!).
1598 */
1599#define VAL_O_NONBLOCK $o_nonblock
1600#define VAL_EAGAIN $eagain
1601#define RD_NODATA $rd_nodata
1602#$d_eofnblk EOF_NONBLOCK
1603
e876cf0b 1604/* OLDARCHLIB:
1605 * This variable, if defined, holds the name of the directory in
1606 * which the user has perl5.000 or perl5.001 architecture-dependent
1607 * public library files for $package. For the most part, these
1608 * files will work with 5.002 (and later), but that is not
1609 * guaranteed.
1610 */
4633a7c4 1611/* OLDARCHLIB_EXP:
1612 * This symbol contains the ~name expanded version of OLDARCHLIB, to be
1613 * used in programs that are not prepared to deal with ~ expansion at
1614 * run-time.
1615 */
e876cf0b 1616#$d_oldarchlib OLDARCHLIB "$oldarchlib" /**/
4633a7c4 1617#$d_oldarchlib OLDARCHLIB_EXP "$oldarchlibexp" /**/
1618
e876cf0b 1619/* PRIVLIB:
1620 * This symbol contains the name of the private library for this package.
1621 * The library is private in the sense that it needn't be in anyone's
1622 * execution path, but it should be accessible by the world. The program
1623 * should be prepared to do ~ expansion.
1624 */
4633a7c4 1625/* PRIVLIB_EXP:
1626 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1627 * in programs that are not prepared to deal with ~ expansion at run-time.
1628 */
e876cf0b 1629#define PRIVLIB "$privlib" /**/
4633a7c4 1630#define PRIVLIB_EXP "$privlibexp" /**/
1631
e876cf0b 1632/* SH_PATH:
1633 * This symbol contains the full pathname to the shell used on this
1634 * on this system to execute Bourne shell scripts. Usually, this will be
1635 * /bin/sh, though it's possible that some systems will have /bin/ksh,
6c509264 1636 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1637 * D:/bin/sh.exe.
e876cf0b 1638 */
1639#define SH_PATH "$sh" /**/
1640
8e07c86e 1641/* SIG_NAME:
4633a7c4 1642 * This symbol contains a list of signal names in order of
1643 * signal number. This is intended
8e07c86e 1644 * to be used as a static array initialization, like this:
1645 * char *sig_name[] = { SIG_NAME };
1646 * The signals in the list are separated with commas, and each signal
1647 * is surrounded by double quotes. There is no leading SIG in the signal
4633a7c4 1648 * name, i.e. SIGQUIT is known as "QUIT".
1649 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1650 * etc., where nn is the actual signal number (e.g. NUM37).
8e07c86e 1651 * The signal number for sig_name[i] is stored in sig_num[i].
1652 * The last element is 0 to terminate the list with a NULL. This
1653 * corresponds to the 0 at the end of the sig_num list.
8e07c86e 1654 */
8e07c86e 1655/* SIG_NUM:
4633a7c4 1656 * This symbol contains a list of signal numbers, in the same order as the
8e07c86e 1657 * SIG_NAME list. It is suitable for static array initialization, as in:
1658 * int sig_num[] = { SIG_NUM };
1659 * The signals in the list are separated with commas, and the indices
1660 * within that list and the SIG_NAME list match, so it's easy to compute
1661 * the signal name from a number or vice versa at the price of a small
4633a7c4 1662 * dynamic linear lookup.
1663 * Duplicates are allowed, but are moved to the end of the list.
1664 * The signal number corresponding to sig_name[i] is sig_number[i].
1665 * if (i < NSIG) then sig_number[i] == i.
1666 * The last element is 0, corresponding to the 0 at the end of
1667 * the sig_name list.
8e07c86e 1668 */
4633a7c4 1669#define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`",0 /**/
8e07c86e 1670#define SIG_NUM `echo $sig_num 0 | sed 's/ /,/g'` /**/
1671
e876cf0b 1672/* SITEARCH:
1673 * This symbol contains the name of the private library for this package.
1674 * The library is private in the sense that it needn't be in anyone's
1675 * execution path, but it should be accessible by the world. The program
1676 * should be prepared to do ~ expansion.
1677 * The standard distribution will put nothing in this directory.
1678 * Individual sites may place their own extensions and modules in
1679 * this directory.
1680 */
4633a7c4 1681/* SITEARCH_EXP:
1682 * This symbol contains the ~name expanded version of SITEARCH, to be used
16d20bd9 1683 * in programs that are not prepared to deal with ~ expansion at run-time.
1684 */
e876cf0b 1685#define SITEARCH "$sitearch" /**/
4633a7c4 1686#define SITEARCH_EXP "$sitearchexp" /**/
16d20bd9 1687
e876cf0b 1688/* SITELIB:
1689 * This symbol contains the name of the private library for this package.
1690 * The library is private in the sense that it needn't be in anyone's
1691 * execution path, but it should be accessible by the world. The program
1692 * should be prepared to do ~ expansion.
1693 * The standard distribution will put nothing in this directory.
1694 * Individual sites may place their own extensions and modules in
1695 * this directory.
1696 */
25f94b33 1697/* SITELIB_EXP:
1698 * This symbol contains the ~name expanded version of SITELIB, to be used
1699 * in programs that are not prepared to deal with ~ expansion at run-time.
1700 */
e876cf0b 1701#define SITELIB "$sitelib" /**/
25f94b33 1702#define SITELIB_EXP "$sitelibexp" /**/
1703
760ac839 1704/* SSize_t:
1705 * This symbol holds the type used by functions that return
1706 * a count of bytes or an error condition. It must be a signed type.
1707 * It is usually ssize_t, but may be long or int, etc.
1708 * It may be necessary to include <sys/types.h> or <unistd.h>
1709 * to get any typedef'ed information.
1710 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1711 */
1712#define SSize_t $ssizetype /* signed count of bytes */
1713
568ef1f6 1714/* STARTPERL:
1715 * This variable contains the string to put in front of a perl
1716 * script to make sure (one hopes) that it runs with perl and not
1717 * some shell.
1718 */
1719#define STARTPERL "$startperl" /**/
1720
e876cf0b 1721/* USE_PERLIO:
1722 * This symbol, if defined, indicates that the PerlIO abstraction should
1723 * be used throughout. If not defined, stdio should be
1724 * used in a fully backward compatible manner.
1725 */
1726#$useperlio USE_PERLIO /**/
1727
8e07c86e 1728/* VOIDFLAGS:
1729 * This symbol indicates how much support of the void type is given by this
1730 * compiler. What various bits mean:
1731 *
1732 * 1 = supports declaration of void
1733 * 2 = supports arrays of pointers to functions returning void
1734 * 4 = supports comparisons between pointers to void functions and
1735 * addresses of void functions
1736 * 8 = suports declaration of generic void pointers
1737 *
1738 * The package designer should define VOIDUSED to indicate the requirements
1739 * of the package. This can be done either by #defining VOIDUSED before
1740 * including config.h, or by defining defvoidused in Myinit.U. If the
1741 * latter approach is taken, only those flags will be tested. If the
1742 * level of void support necessary is not present, defines void to int.
1743 */
1744#ifndef VOIDUSED
1745#define VOIDUSED $defvoidused
1746#endif
1747#define VOIDFLAGS $voidflags
1748#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1749#define void int /* is void to be avoided? */
1750#define M_VOID /* Xenix strikes again */
1751#endif
1752
fe14fcc3 1753#endif
8d063cd8 1754!GROK!THIS!