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