add the 'y' and 'Y' options to ps, and add the 'iac' keyword. The 'y'
[dragonfly.git] / contrib / perl5 / config_h.SH
1 case $CONFIG in
2 '')
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         ;;
13 esac
14 case "$0" in
15 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
16 esac
17 echo "Extracting config.h (with variable substitutions)"
18 sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
19 /*
20  * This file was produced by running the config_h.SH script, which
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,
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.
27  *
28  * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
29  */
30
31 /*
32  * Package name      : $package
33  * Source directory  : $src
34  * Configuration time: $cf_time
35  * Configured by     : $cf_by
36  * Target system     : $myuname
37  */
38
39 #ifndef _config_h_
40 #define _config_h_
41
42 /* LOC_SED:
43  *      This symbol holds the complete pathname to the sed program.
44  */
45 #define LOC_SED         "$full_sed"     /**/
46
47 /* BIN:
48  *      This symbol holds the path of the bin directory where the package will
49  *      be installed. Program must be prepared to deal with ~name substitution.
50  */
51 /* BIN_EXP:
52  *      This symbol is the filename expanded version of the BIN symbol, for
53  *      programs that do not want to deal with that at run-time.
54  */
55 #define BIN "$bin"      /**/
56 #define BIN_EXP "$binexp"       /**/
57
58 /* CPPSTDIN:
59  *      This symbol contains the first part of the string which will invoke
60  *      the C preprocessor on the standard input and produce to standard
61  *      output.  Typical value of "cc -E" or "/lib/cpp", but it can also
62  *      call a wrapper. See CPPRUN.
63  */
64 /* CPPMINUS:
65  *      This symbol contains the second part of the string which will invoke
66  *      the C preprocessor on the standard input and produce to standard
67  *      output.  This symbol will have the value "-" if CPPSTDIN needs a minus
68  *      to specify standard input, otherwise the value is "".
69  */
70 #define CPPSTDIN "$cppstdin"
71 #define CPPMINUS "$cppminus"
72
73 /* HAS_ALARM:
74  *      This symbol, if defined, indicates that the alarm routine is
75  *      available.
76  */
77 #$d_alarm HAS_ALARM             /**/
78
79 /* HASATTRIBUTE:
80  *      This symbol indicates the C compiler can check for function attributes,
81  *      such as printf formats. This is normally only supported by GNU cc.
82  */
83 #$d_attribut HASATTRIBUTE       /**/
84 #ifndef HASATTRIBUTE
85 #define __attribute__(_arg_)
86 #endif
87
88 /* HAS_BCMP:
89  *      This symbol is defined if the bcmp() routine is available to
90  *      compare blocks of memory.
91  */
92 #$d_bcmp HAS_BCMP       /**/
93
94 /* HAS_BCOPY:
95  *      This symbol is defined if the bcopy() routine is available to
96  *      copy blocks of memory.
97  */
98 #$d_bcopy HAS_BCOPY     /**/
99
100 /* HAS_BZERO:
101  *      This symbol is defined if the bzero() routine is available to
102  *      set a memory block to 0.
103  */
104 #$d_bzero HAS_BZERO     /**/
105
106 /* HAS_CHOWN:
107  *      This symbol, if defined, indicates that the chown routine is
108  *      available.
109  */
110 #$d_chown HAS_CHOWN             /**/
111
112 /* HAS_CHROOT:
113  *      This symbol, if defined, indicates that the chroot routine is
114  *      available.
115  */
116 #$d_chroot HAS_CHROOT           /**/
117
118 /* HAS_CHSIZE:
119  *      This symbol, if defined, indicates that the chsize routine is available
120  *      to truncate files.  You might need a -lx to get this routine.
121  */
122 #$d_chsize      HAS_CHSIZE              /**/
123
124 /* HASCONST:
125  *      This symbol, if defined, indicates that this C compiler knows about
126  *      the const type. There is no need to actually test for that symbol
127  *      within your programs. The mere use of the "const" keyword will
128  *      trigger the necessary tests.
129  */
130 #$d_const HASCONST      /**/
131 #ifndef HASCONST
132 #define const
133 #endif
134
135 /* HAS_CRYPT:
136  *      This symbol, if defined, indicates that the crypt routine is available
137  *      to encrypt passwords and the like.
138  */
139 #$d_crypt HAS_CRYPT             /**/
140
141 /* HAS_CUSERID:
142  *      This symbol, if defined, indicates that the cuserid routine is
143  *      available to get character login names.
144  */
145 #$d_cuserid HAS_CUSERID         /**/
146
147 /* HAS_DBL_DIG:
148  *      This symbol, if defined, indicates that this system's <float.h>
149  *      or <limits.h> defines the symbol DBL_DIG, which is the number
150  *      of significant digits in a double precision number.  If this
151  *      symbol is not defined, a guess of 15 is usually pretty good.
152  */
153 #$d_dbl_dig HAS_DBL_DIG         /* */
154
155 /* HAS_DIFFTIME:
156  *      This symbol, if defined, indicates that the difftime routine is
157  *      available.
158  */
159 #$d_difftime HAS_DIFFTIME               /**/
160
161 /* HAS_DLERROR:
162  *      This symbol, if defined, indicates that the dlerror routine is
163  *      available to return a string describing the last error that
164  *      occurred from a call to dlopen(), dlclose() or dlsym().
165  */
166 #$d_dlerror HAS_DLERROR /**/
167
168 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
169  *      This symbol, if defined, indicates that the bug that prevents
170  *      setuid scripts from being secure is not present in this kernel.
171  */
172 /* DOSUID:
173  *      This symbol, if defined, indicates that the C program should
174  *      check the script that it is executing for setuid/setgid bits, and
175  *      attempt to emulate setuid/setgid on systems that have disabled
176  *      setuid #! scripts because the kernel can't do it securely.
177  *      It is up to the package designer to make sure that this emulation
178  *      is done securely.  Among other things, it should do an fstat on
179  *      the script it just opened to make sure it really is a setuid/setgid
180  *      script, it should make sure the arguments passed correspond exactly
181  *      to the argument on the #! line, and it should not trust any
182  *      subprocesses to which it must pass the filename rather than the
183  *      file descriptor of the script to be executed.
184  */
185 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW      /**/
186 #$d_dosuid DOSUID               /**/
187
188 /* HAS_DUP2:
189  *      This symbol, if defined, indicates that the dup2 routine is
190  *      available to duplicate file descriptors.
191  */
192 #$d_dup2 HAS_DUP2       /**/
193
194 /* HAS_FCHMOD:
195  *      This symbol, if defined, indicates that the fchmod routine is available
196  *      to change mode of opened files.  If unavailable, use chmod().
197  */
198 #$d_fchmod HAS_FCHMOD           /**/
199
200 /* HAS_FCHOWN:
201  *      This symbol, if defined, indicates that the fchown routine is available
202  *      to change ownership of opened files.  If unavailable, use chown().
203  */
204 #$d_fchown HAS_FCHOWN           /**/
205
206 /* HAS_FCNTL:
207  *      This symbol, if defined, indicates to the C program that
208  *      the fcntl() function exists.
209  */
210 #$d_fcntl HAS_FCNTL             /**/
211
212 /* HAS_FGETPOS:
213  *      This symbol, if defined, indicates that the fgetpos routine is
214  *      available to get the file position indicator, similar to ftell().
215  */
216 #$d_fgetpos HAS_FGETPOS /**/
217
218 /* FLEXFILENAMES:
219  *      This symbol, if defined, indicates that the system supports filenames
220  *      longer than 14 characters.
221  */
222 #$d_flexfnam    FLEXFILENAMES           /**/
223
224 /* HAS_FLOCK:
225  *      This symbol, if defined, indicates that the flock routine is
226  *      available to do file locking.
227  */
228 #$d_flock HAS_FLOCK             /**/
229
230 /* HAS_FORK:
231  *      This symbol, if defined, indicates that the fork routine is
232  *      available.
233  */
234 #$d_fork HAS_FORK               /**/
235
236 /* HAS_FSETPOS:
237  *      This symbol, if defined, indicates that the fsetpos routine is
238  *      available to set the file position indicator, similar to fseek().
239  */
240 #$d_fsetpos HAS_FSETPOS /**/
241
242 /* I_SYS_MOUNT:
243  *      This symbol, if defined, indicates to the C program that it should
244  *      include <sys/mount.h>.
245  */
246 #$i_sysmount I_SYS_MOUNT                /**/
247
248 /* HAS_FSTATFS:
249  *      This symbol, if defined, indicates that the fstatfs routine is
250  *      available to stat the filesystem of a file descriptor.
251  */
252 #$d_fstatfs HAS_FSTATFS /**/
253
254 /* HAS_STRUCT_STATFS_FLAGS:
255  *      This symbol, if defined, indicates that the struct statfs has
256  *      the f_flags member for mount flags.
257  */
258 #$d_statfsflags HAS_STRUCT_STATFS_FLAGS /**/
259
260 /* I_SYS_STATVFS:
261  *      This symbol, if defined, indicates to the C program that it should
262  *      include <sys/statvfs.h>.
263  */
264 #$i_sysstatvfs I_SYS_STATVFS            /**/
265
266 /* HAS_FSTATVFS:
267  *      This symbol, if defined, indicates that the fstatvfs routine is
268  *      available to stat the filesystem of a file descriptor.
269  */
270 #$d_fstatvfs HAS_FSTATVFS       /**/
271
272 /* I_MNTENT:
273  *      This symbol, if defined, indicates to the C program that it should
274  *      include <mntent.h>.
275  */
276 #$i_mntent I_MNTENT             /**/
277
278 /* HAS_GETMNTENT:
279  *      This symbol, if defined, indicates that the getmntent routine is
280  *      available to lookup mount entries in some data base or other.
281  */
282 #$d_getmntent HAS_GETMNTENT     /**/
283
284 /* HAS_HASMNTOPT:
285  *      This symbol, if defined, indicates that the hasmntopt routine is
286  *      available to query mount entries returned by getmntent.
287  */
288 #$d_hasmntopt HAS_HASMNTOPT     /**/
289
290 /* HAS_GETTIMEOFDAY:
291  *      This symbol, if defined, indicates that the gettimeofday() system
292  *      call is available for a sub-second accuracy clock. Usually, the file
293  *      <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
294  *      The type "Timeval" should be used to refer to "struct timeval".
295  */
296 #$d_gettimeod HAS_GETTIMEOFDAY  /**/
297 #ifdef HAS_GETTIMEOFDAY
298 #define Timeval struct timeval  /* Structure used by gettimeofday() */
299 #endif
300
301 /* HAS_GETGROUPS:
302  *      This symbol, if defined, indicates that the getgroups() routine is
303  *      available to get the list of process groups.  If unavailable, multiple
304  *      groups are probably not supported.
305  */
306 #$d_getgrps HAS_GETGROUPS               /**/
307
308 /* HAS_UNAME:
309  *      This symbol, if defined, indicates that the C program may use the
310  *      uname() routine to derive the host name.  See also HAS_GETHOSTNAME
311  *      and PHOSTNAME.
312  */
313 #$d_uname HAS_UNAME             /**/
314
315 /* HAS_GETLOGIN:
316  *      This symbol, if defined, indicates that the getlogin routine is
317  *      available to get the login name.
318  */
319 #$d_getlogin HAS_GETLOGIN               /**/
320
321 /* HAS_GETPGID:
322  *      This symbol, if defined, indicates to the C program that 
323  *      the getpgid(pid) function is available to get the
324  *      process group id.
325  */
326 #$d_getpgid HAS_GETPGID         /**/
327
328 /* HAS_GETPGRP:
329  *      This symbol, if defined, indicates that the getpgrp routine is
330  *      available to get the current process group.
331  */
332 /* USE_BSD_GETPGRP:
333  *      This symbol, if defined, indicates that getpgrp needs one
334  *      arguments whereas USG one needs none.
335  */
336 #$d_getpgrp HAS_GETPGRP         /**/
337 #$d_bsdgetpgrp USE_BSD_GETPGRP  /**/
338
339 /* HAS_GETPGRP2:
340  *      This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
341  *      routine is available to get the current process group.
342  */
343 #$d_getpgrp2 HAS_GETPGRP2               /**/
344
345 /* HAS_GETPPID:
346  *      This symbol, if defined, indicates that the getppid routine is
347  *      available to get the parent process ID.
348  */
349 #$d_getppid HAS_GETPPID         /**/
350
351 /* HAS_GETPRIORITY:
352  *      This symbol, if defined, indicates that the getpriority routine is
353  *      available to get a process's priority.
354  */
355 #$d_getprior HAS_GETPRIORITY            /**/
356
357 /* HAS_HTONL:
358  *      This symbol, if defined, indicates that the htonl() routine (and
359  *      friends htons() ntohl() ntohs()) are available to do network
360  *      order byte swapping.
361  */
362 /* HAS_HTONS:
363  *      This symbol, if defined, indicates that the htons() routine (and
364  *      friends htonl() ntohl() ntohs()) are available to do network
365  *      order byte swapping.
366  */
367 /* HAS_NTOHL:
368  *      This symbol, if defined, indicates that the ntohl() routine (and
369  *      friends htonl() htons() ntohs()) are available to do network
370  *      order byte swapping.
371  */
372 /* HAS_NTOHS:
373  *      This symbol, if defined, indicates that the ntohs() routine (and
374  *      friends htonl() htons() ntohl()) are available to do network
375  *      order byte swapping.
376  */
377 #$d_htonl HAS_HTONL             /**/
378 #$d_htonl HAS_HTONS             /**/
379 #$d_htonl HAS_NTOHL             /**/
380 #$d_htonl HAS_NTOHS             /**/
381
382 /* HAS_INET_ATON:
383  *      This symbol, if defined, indicates to the C program that the
384  *      inet_aton() function is available to parse IP address "dotted-quad"
385  *      strings.
386  */
387 #$d_inetaton HAS_INET_ATON              /**/
388
389 /* HAS_KILLPG:
390  *      This symbol, if defined, indicates that the killpg routine is available
391  *      to kill process groups.  If unavailable, you probably should use kill
392  *      with a negative process number.
393  */
394 #$d_killpg HAS_KILLPG   /**/
395
396 /* HAS_LINK:
397  *      This symbol, if defined, indicates that the link routine is
398  *      available to create hard links.
399  */
400 #$d_link HAS_LINK       /**/
401
402 /* HAS_LOCALECONV:
403  *      This symbol, if defined, indicates that the localeconv routine is
404  *      available for numeric and monetary formatting conventions.
405  */
406 #$d_locconv HAS_LOCALECONV      /**/
407
408 /* HAS_LOCKF:
409  *      This symbol, if defined, indicates that the lockf routine is
410  *      available to do file locking.
411  */
412 #$d_lockf HAS_LOCKF             /**/
413
414 /* HAS_LSTAT:
415  *      This symbol, if defined, indicates that the lstat routine is
416  *      available to do file stats on symbolic links.
417  */
418 #$d_lstat HAS_LSTAT             /**/
419
420 /* HAS_MBLEN:
421  *      This symbol, if defined, indicates that the mblen routine is available
422  *      to find the number of bytes in a multibye character.
423  */
424 #$d_mblen HAS_MBLEN             /**/
425
426 /* HAS_MBSTOWCS:
427  *      This symbol, if defined, indicates that the mbstowcs routine is
428  *      available to covert a multibyte string into a wide character string.
429  */
430 #$d_mbstowcs    HAS_MBSTOWCS            /**/
431
432 /* HAS_MBTOWC:
433  *      This symbol, if defined, indicates that the mbtowc routine is available
434  *      to covert a multibyte to a wide character.
435  */
436 #$d_mbtowc HAS_MBTOWC           /**/
437
438 /* HAS_MEMCMP:
439  *      This symbol, if defined, indicates that the memcmp routine is available
440  *      to compare blocks of memory.
441  */
442 #$d_memcmp HAS_MEMCMP   /**/
443
444 /* HAS_MEMCPY:
445  *      This symbol, if defined, indicates that the memcpy routine is available
446  *      to copy blocks of memory.
447  */
448 #$d_memcpy HAS_MEMCPY   /**/
449
450 /* HAS_MEMMOVE:
451  *      This symbol, if defined, indicates that the memmove routine is available
452  *      to copy potentially overlapping blocks of memory. This should be used
453  *      only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
454  *      own version.
455  */
456 #$d_memmove HAS_MEMMOVE /**/
457
458 /* HAS_MEMSET:
459  *      This symbol, if defined, indicates that the memset routine is available
460  *      to set blocks of memory.
461  */
462 #$d_memset HAS_MEMSET   /**/
463
464 /* HAS_MKDIR:
465  *      This symbol, if defined, indicates that the mkdir routine is available
466  *      to create directories.  Otherwise you should fork off a new process to
467  *      exec /bin/mkdir.
468  */
469 #$d_mkdir HAS_MKDIR             /**/
470
471 /* HAS_MKFIFO:
472  *      This symbol, if defined, indicates that the mkfifo routine is
473  *      available to create FIFOs. Otherwise, mknod should be able to
474  *      do it for you. However, if mkfifo is there, mknod might require
475  *      super-user privileges which mkfifo will not.
476  */
477 #$d_mkfifo HAS_MKFIFO           /**/
478
479 /* HAS_MKTIME:
480  *      This symbol, if defined, indicates that the mktime routine is
481  *      available.
482  */
483 #$d_mktime HAS_MKTIME           /**/
484
485 /* HAS_MSG:
486  *      This symbol, if defined, indicates that the entire msg*(2) library is
487  *      supported (IPC mechanism based on message queues).
488  */
489 #$d_msg HAS_MSG         /**/
490
491 /* HAS_NICE:
492  *      This symbol, if defined, indicates that the nice routine is
493  *      available.
494  */
495 #$d_nice HAS_NICE               /**/
496
497 /* HAS_PATHCONF:
498  *      This symbol, if defined, indicates that pathconf() is available
499  *      to determine file-system related limits and options associated
500  *      with a given filename.
501  */
502 /* HAS_FPATHCONF:
503  *      This symbol, if defined, indicates that pathconf() is available
504  *      to determine file-system related limits and options associated
505  *      with a given open file descriptor.
506  */
507 #$d_pathconf HAS_PATHCONF               /**/
508 #$d_fpathconf HAS_FPATHCONF             /**/
509
510 /* HAS_PAUSE:
511  *      This symbol, if defined, indicates that the pause routine is
512  *      available to suspend a process until a signal is received.
513  */
514 #$d_pause HAS_PAUSE             /**/
515
516 /* HAS_PIPE:
517  *      This symbol, if defined, indicates that the pipe routine is
518  *      available to create an inter-process channel.
519  */
520 #$d_pipe HAS_PIPE               /**/
521
522 /* HAS_POLL:
523  *      This symbol, if defined, indicates that the poll routine is
524  *      available to poll active file descriptors. You may safely
525  *      include <poll.h> when this symbol is defined.
526  */
527 #$d_poll HAS_POLL               /**/
528
529 /* HAS_READDIR:
530  *      This symbol, if defined, indicates that the readdir routine is
531  *      available to read directory entries. You may have to include
532  *      <dirent.h>. See I_DIRENT.
533  */
534 #$d_readdir HAS_READDIR         /**/
535
536 /* HAS_SEEKDIR:
537  *      This symbol, if defined, indicates that the seekdir routine is
538  *      available. You may have to include <dirent.h>. See I_DIRENT.
539  */
540 #$d_seekdir HAS_SEEKDIR         /**/
541
542 /* HAS_TELLDIR:
543  *      This symbol, if defined, indicates that the telldir routine is
544  *      available. You may have to include <dirent.h>. See I_DIRENT.
545  */
546 #$d_telldir HAS_TELLDIR         /**/
547
548 /* HAS_REWINDDIR:
549  *      This symbol, if defined, indicates that the rewinddir routine is
550  *      available. You may have to include <dirent.h>. See I_DIRENT.
551  */
552 #$d_rewinddir HAS_REWINDDIR             /**/
553
554 /* HAS_READLINK:
555  *      This symbol, if defined, indicates that the readlink routine is
556  *      available to read the value of a symbolic link.
557  */
558 #$d_readlink HAS_READLINK               /**/
559
560 /* HAS_RENAME:
561  *      This symbol, if defined, indicates that the rename routine is available
562  *      to rename files.  Otherwise you should do the unlink(), link(), unlink()
563  *      trick.
564  */
565 #$d_rename HAS_RENAME   /**/
566
567 /* HAS_RMDIR:
568  *      This symbol, if defined, indicates that the rmdir routine is
569  *      available to remove directories. Otherwise you should fork off a
570  *      new process to exec /bin/rmdir.
571  */
572 #$d_rmdir HAS_RMDIR             /**/
573
574 /* HAS_SELECT:
575  *      This symbol, if defined, indicates that the select routine is
576  *      available to select active file descriptors. If the timeout field
577  *      is used, <sys/time.h> may need to be included.
578  */
579 #$d_select HAS_SELECT   /**/
580
581 /* HAS_SEM:
582  *      This symbol, if defined, indicates that the entire sem*(2) library is
583  *      supported.
584  */
585 #$d_sem HAS_SEM         /**/
586
587 /* HAS_SETEGID:
588  *      This symbol, if defined, indicates that the setegid routine is available
589  *      to change the effective gid of the current program.
590  */
591 #$d_setegid HAS_SETEGID         /**/
592
593 /* HAS_SETEUID:
594  *      This symbol, if defined, indicates that the seteuid routine is available
595  *      to change the effective uid of the current program.
596  */
597 #$d_seteuid HAS_SETEUID         /**/
598
599 /* HAS_SETLINEBUF:
600  *      This symbol, if defined, indicates that the setlinebuf routine is
601  *      available to change stderr or stdout from block-buffered or unbuffered
602  *      to a line-buffered mode.
603  */
604 #$d_setlinebuf HAS_SETLINEBUF           /**/
605
606 /* HAS_SETLOCALE:
607  *      This symbol, if defined, indicates that the setlocale routine is
608  *      available to handle locale-specific ctype implementations.
609  */
610 #$d_setlocale HAS_SETLOCALE     /**/
611
612 /* HAS_SETPGID:
613  *      This symbol, if defined, indicates that the setpgid(pid, gpid)
614  *      routine is available to set process group ID.
615  */
616 #$d_setpgid HAS_SETPGID /**/
617
618 /* HAS_SETPGRP:
619  *      This symbol, if defined, indicates that the setpgrp routine is
620  *      available to set the current process group.
621  */
622 /* USE_BSD_SETPGRP:
623  *      This symbol, if defined, indicates that setpgrp needs two
624  *      arguments whereas USG one needs none.  See also HAS_SETPGID
625  *      for a POSIX interface.
626  */
627 #$d_setpgrp HAS_SETPGRP         /**/
628 #$d_bsdsetpgrp USE_BSD_SETPGRP  /**/
629
630 /* HAS_SETPGRP2:
631  *      This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
632  *      routine is available to set the current process group.
633  */
634 #$d_setpgrp2 HAS_SETPGRP2               /**/
635
636 /* HAS_SETPRIORITY:
637  *      This symbol, if defined, indicates that the setpriority routine is
638  *      available to set a process's priority.
639  */
640 #$d_setprior HAS_SETPRIORITY            /**/
641
642 /* HAS_SETREGID:
643  *      This symbol, if defined, indicates that the setregid routine is
644  *      available to change the real and effective gid of the current
645  *      process.
646  */
647 /* HAS_SETRESGID:
648  *      This symbol, if defined, indicates that the setresgid routine is
649  *      available to change the real, effective and saved gid of the current
650  *      process.
651  */
652 #$d_setregid HAS_SETREGID               /**/
653 #$d_setresgid HAS_SETRESGID             /**/
654
655 /* HAS_SETREUID:
656  *      This symbol, if defined, indicates that the setreuid routine is
657  *      available to change the real and effective uid of the current
658  *      process.
659  */
660 /* HAS_SETRESUID:
661  *      This symbol, if defined, indicates that the setresuid routine is
662  *      available to change the real, effective and saved uid of the current
663  *      process.
664  */
665 #$d_setreuid HAS_SETREUID               /**/
666 #$d_setresuid HAS_SETRESUID             /**/
667
668 /* HAS_SETRGID:
669  *      This symbol, if defined, indicates that the setrgid routine is available
670  *      to change the real gid of the current program.
671  */
672 #$d_setrgid HAS_SETRGID         /**/
673
674 /* HAS_SETRUID:
675  *      This symbol, if defined, indicates that the setruid routine is available
676  *      to change the real uid of the current program.
677  */
678 #$d_setruid HAS_SETRUID         /**/
679
680 /* HAS_SETSID:
681  *      This symbol, if defined, indicates that the setsid routine is
682  *      available to set the process group ID.
683  */
684 #$d_setsid HAS_SETSID   /**/
685
686 /* HAS_SHM:
687  *      This symbol, if defined, indicates that the entire shm*(2) library is
688  *      supported.
689  */
690 #$d_shm HAS_SHM         /**/
691
692 /* Shmat_t:
693  *      This symbol holds the return type of the shmat() system call.
694  *      Usually set to 'void *' or 'char *'.
695  */
696 /* HAS_SHMAT_PROTOTYPE:
697  *      This symbol, if defined, indicates that the sys/shm.h includes
698  *      a prototype for shmat().  Otherwise, it is up to the program to
699  *      guess one.  Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
700  *      but not always right so it should be emitted by the program only
701  *      when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
702  */
703 #define Shmat_t $shmattype      /**/
704 #$d_shmatprototype HAS_SHMAT_PROTOTYPE  /**/
705
706 /* USE_STAT_BLOCKS:
707  *      This symbol is defined if this system has a stat structure declaring
708  *      st_blksize and st_blocks.
709  */
710 #$d_statblks USE_STAT_BLOCKS    /**/
711
712 /* HAS_STRCHR:
713  *      This symbol is defined to indicate that the strchr()/strrchr()
714  *      functions are available for string searching. If not, try the
715  *      index()/rindex() pair.
716  */
717 /* HAS_INDEX:
718  *      This symbol is defined to indicate that the index()/rindex()
719  *      functions are available for string searching.
720  */
721 #$d_strchr HAS_STRCHR   /**/
722 #$d_index HAS_INDEX     /**/
723
724 /* HAS_STRCOLL:
725  *      This symbol, if defined, indicates that the strcoll routine is
726  *      available to compare strings using collating information.
727  */
728 #$d_strcoll HAS_STRCOLL /**/
729
730 /* USE_STRUCT_COPY:
731  *      This symbol, if defined, indicates that this C compiler knows how
732  *      to copy structures.  If undefined, you'll need to use a block copy
733  *      routine of some sort instead.
734  */
735 #$d_strctcpy    USE_STRUCT_COPY /**/
736
737 /* HAS_STRERROR:
738  *      This symbol, if defined, indicates that the strerror routine is
739  *      available to translate error numbers to strings. See the writeup
740  *      of Strerror() in this file before you try to define your own.
741  */
742 /* HAS_SYS_ERRLIST:
743  *      This symbol, if defined, indicates that the sys_errlist array is
744  *      available to translate error numbers to strings. The extern int
745  *      sys_nerr gives the size of that table.
746  */
747 /* Strerror:
748  *      This preprocessor symbol is defined as a macro if strerror() is
749  *      not available to translate error numbers to strings but sys_errlist[]
750  *      array is there.
751  */
752 #$d_strerror HAS_STRERROR               /**/
753 #$d_syserrlst HAS_SYS_ERRLIST   /**/
754 #define Strerror(e) $d_strerrm
755
756 /* HAS_STRTOD:
757  *      This symbol, if defined, indicates that the strtod routine is
758  *      available to provide better numeric string conversion than atof().
759  */
760 #$d_strtod HAS_STRTOD   /**/
761
762 /* HAS_STRTOL:
763  *      This symbol, if defined, indicates that the strtol routine is available
764  *      to provide better numeric string conversion than atoi() and friends.
765  */
766 #$d_strtol HAS_STRTOL   /**/
767
768 /* HAS_STRTOUL:
769  *      This symbol, if defined, indicates that the strtoul routine is
770  *      available to provide conversion of strings to unsigned long.
771  */
772 #$d_strtoul HAS_STRTOUL /**/
773
774 /* HAS_STRXFRM:
775  *      This symbol, if defined, indicates that the strxfrm() routine is
776  *      available to transform strings.
777  */
778 #$d_strxfrm HAS_STRXFRM /**/
779
780 /* HAS_SYMLINK:
781  *      This symbol, if defined, indicates that the symlink routine is available
782  *      to create symbolic links.
783  */
784 #$d_symlink HAS_SYMLINK /**/
785
786 /* HAS_SYSCALL:
787  *      This symbol, if defined, indicates that the syscall routine is
788  *      available to call arbitrary system calls. If undefined, that's tough.
789  */
790 #$d_syscall HAS_SYSCALL /**/
791
792 /* HAS_SYSCONF:
793  *      This symbol, if defined, indicates that sysconf() is available
794  *      to determine system related limits and options.
795  */
796 #$d_sysconf HAS_SYSCONF /**/
797
798 /* HAS_SYSTEM:
799  *      This symbol, if defined, indicates that the system routine is
800  *      available to issue a shell command.
801  */
802 #$d_system HAS_SYSTEM   /**/
803
804 /* HAS_TCGETPGRP:
805  *      This symbol, if defined, indicates that the tcgetpgrp routine is
806  *      available to get foreground process group ID.
807  */
808 #$d_tcgetpgrp HAS_TCGETPGRP             /**/
809
810 /* HAS_TCSETPGRP:
811  *      This symbol, if defined, indicates that the tcsetpgrp routine is
812  *      available to set foreground process group ID.
813  */
814 #$d_tcsetpgrp HAS_TCSETPGRP             /**/
815
816 /* HAS_TRUNCATE:
817  *      This symbol, if defined, indicates that the truncate routine is
818  *      available to truncate files.
819  */
820 #$d_truncate HAS_TRUNCATE       /**/
821
822 /* HAS_TZNAME:
823  *      This symbol, if defined, indicates that the tzname[] array is
824  *      available to access timezone names.
825  */
826 #$d_tzname HAS_TZNAME           /**/
827
828 /* HAS_UMASK:
829  *      This symbol, if defined, indicates that the umask routine is
830  *      available to set and get the value of the file creation mask.
831  */
832 #$d_umask HAS_UMASK             /**/
833
834 /* HAS_VFORK:
835  *      This symbol, if defined, indicates that vfork() exists.
836  */
837 #$d_vfork HAS_VFORK     /**/
838
839 /* HASVOLATILE:
840  *      This symbol, if defined, indicates that this C compiler knows about
841  *      the volatile declaration.
842  */
843 #$d_volatile    HASVOLATILE     /**/
844 #ifndef HASVOLATILE
845 #define volatile
846 #endif
847
848 /* HAS_WAIT4:
849  *      This symbol, if defined, indicates that wait4() exists.
850  */
851 #$d_wait4 HAS_WAIT4     /**/
852
853 /* HAS_WAITPID:
854  *      This symbol, if defined, indicates that the waitpid routine is
855  *      available to wait for child process.
856  */
857 #$d_waitpid HAS_WAITPID /**/
858
859 /* HAS_WCSTOMBS:
860  *      This symbol, if defined, indicates that the wcstombs routine is
861  *      available to convert wide character strings to multibyte strings.
862  */
863 #$d_wcstombs HAS_WCSTOMBS       /**/
864
865 /* HAS_WCTOMB:
866  *      This symbol, if defined, indicates that the wctomb routine is available
867  *      to covert a wide character to a multibyte.
868  */
869 #$d_wctomb HAS_WCTOMB           /**/
870
871 /* EBCDIC:
872  *      This symbol, if defined, indicates that this system uses
873  *      EBCDIC encoding.
874  */
875 #$ebcdic        EBCDIC          /**/
876
877 /* I_ARPA_INET:
878  *      This symbol, if defined, indicates that <arpa/inet.h> exists and should
879  *      be included.
880  */
881 #$i_arpainet I_ARPA_INET        /**/
882
883 /* I_DBM:
884  *      This symbol, if defined, indicates that <dbm.h> exists and should
885  *      be included.
886  */
887 /* I_RPCSVC_DBM:
888  *      This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
889  *      should be included.
890  */
891 #$i_dbm I_DBM   /**/
892 #$i_rpcsvcdbm I_RPCSVC_DBM      /**/
893
894 /* I_DIRENT:
895  *      This symbol, if defined, indicates to the C program that it should
896  *      include <dirent.h>. Using this symbol also triggers the definition
897  *      of the Direntry_t define which ends up being 'struct dirent' or
898  *      'struct direct' depending on the availability of <dirent.h>.
899  */
900 /* DIRNAMLEN:
901  *      This symbol, if defined, indicates to the C program that the length
902  *      of directory entry names is provided by a d_namlen field.  Otherwise
903  *      you need to do strlen() on the d_name field.
904  */
905 /* Direntry_t:
906  *      This symbol is set to 'struct direct' or 'struct dirent' depending on
907  *      whether dirent is available or not. You should use this pseudo type to
908  *      portably declare your directory entries.
909  */
910 #$i_dirent I_DIRENT             /**/
911 #$d_dirnamlen DIRNAMLEN /**/
912 #define Direntry_t $direntrytype
913
914 /* I_DLFCN:
915  *      This symbol, if defined, indicates that <dlfcn.h> exists and should
916  *      be included.
917  */
918 #$i_dlfcn I_DLFCN               /**/
919
920 /* I_FCNTL:
921  *      This manifest constant tells the C program to include <fcntl.h>.
922  */
923 #$i_fcntl I_FCNTL       /**/
924
925 /* I_FLOAT:
926  *      This symbol, if defined, indicates to the C program that it should
927  *      include <float.h> to get definition of symbols like DBL_MAX or
928  *      DBL_MIN, i.e. machine dependent floating point values.
929  */
930 #$i_float I_FLOAT               /**/
931
932 /* I_GRP:
933  *      This symbol, if defined, indicates to the C program that it should
934  *      include <grp.h>.
935  */
936 /* GRPASSWD:
937  *      This symbol, if defined, indicates to the C program that struct group
938  *      contains gr_passwd.
939  */
940 /* HAS_SETGRENT:
941  *      This symbol, if defined, indicates that the getgrent routine is
942  *      available for initializing sequential access of the group database.
943  */
944 /* HAS_GETGRENT:
945  *      This symbol, if defined, indicates that the getgrent routine is
946  *      available for sequential access of the group database.
947  */
948 /* HAS_ENDGRENT:
949  *      This symbol, if defined, indicates that the getgrent routine is
950  *      available for finalizing sequential access of the group database.
951  */
952 #$i_grp I_GRP           /**/
953 #$d_grpasswd GRPASSWD   /**/
954 #$d_setgrent HAS_SETGRENT       /**/
955 #$d_getgrent HAS_GETGRENT       /**/
956 #$d_endgrent HAS_ENDGRENT       /**/
957
958 /* I_LIMITS:
959  *      This symbol, if defined, indicates to the C program that it should
960  *      include <limits.h> to get definition of symbols like WORD_BIT or
961  *      LONG_MAX, i.e. machine dependant limitations.
962  */
963 #$i_limits I_LIMITS             /**/
964
965 /* I_LOCALE:
966  *      This symbol, if defined, indicates to the C program that it should
967  *      include <locale.h>.
968  */
969 #$i_locale      I_LOCALE                /**/
970
971 /* I_MATH:
972  *      This symbol, if defined, indicates to the C program that it should
973  *      include <math.h>.
974  */
975 #$i_math I_MATH         /**/
976
977 /* I_MEMORY:
978  *      This symbol, if defined, indicates to the C program that it should
979  *      include <memory.h>.
980  */
981 #$i_memory I_MEMORY             /**/
982
983 /* I_NDBM:
984  *      This symbol, if defined, indicates that <ndbm.h> exists and should
985  *      be included.
986  */
987 #$i_ndbm I_NDBM /**/
988
989 /* I_NET_ERRNO:
990  *      This symbol, if defined, indicates that <net/errno.h> exists and 
991  *      should be included.
992  */
993 #$i_neterrno I_NET_ERRNO                /**/
994
995 /* I_NETINET_IN:
996  *      This symbol, if defined, indicates to the C program that it should
997  *      include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
998  */
999 #$i_niin I_NETINET_IN   /**/
1000
1001 /* I_SFIO:
1002  *      This symbol, if defined, indicates to the C program that it should
1003  *      include <sfio.h>.
1004  */
1005 #$i_sfio        I_SFIO          /**/
1006
1007 /* I_STDDEF:
1008  *      This symbol, if defined, indicates that <stddef.h> exists and should
1009  *      be included.
1010  */
1011 #$i_stddef I_STDDEF     /**/
1012
1013 /* I_STDLIB:
1014  *      This symbol, if defined, indicates that <stdlib.h> exists and should
1015  *      be included.
1016  */
1017 #$i_stdlib I_STDLIB             /**/
1018
1019 /* I_STRING:
1020  *      This symbol, if defined, indicates to the C program that it should
1021  *      include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1022  */
1023 #$i_string I_STRING             /**/
1024
1025 /* I_SYS_DIR:
1026  *      This symbol, if defined, indicates to the C program that it should
1027  *      include <sys/dir.h>.
1028  */
1029 #$i_sysdir I_SYS_DIR            /**/
1030
1031 /* I_SYS_FILE:
1032  *      This symbol, if defined, indicates to the C program that it should
1033  *      include <sys/file.h> to get definition of R_OK and friends.
1034  */
1035 #$i_sysfile I_SYS_FILE          /**/
1036
1037 /* I_SYS_IOCTL:
1038  *      This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1039  *      be included. Otherwise, include <sgtty.h> or <termio.h>.
1040  */
1041 #$i_sysioctl    I_SYS_IOCTL             /**/
1042
1043 /* I_SYS_NDIR:
1044  *      This symbol, if defined, indicates to the C program that it should
1045  *      include <sys/ndir.h>.
1046  */
1047 #$i_sysndir I_SYS_NDIR  /**/
1048
1049 /* I_SYS_PARAM:
1050  *      This symbol, if defined, indicates to the C program that it should
1051  *      include <sys/param.h>.
1052  */
1053 #$i_sysparam I_SYS_PARAM                /**/
1054
1055 /* I_SYS_RESOURCE:
1056  *      This symbol, if defined, indicates to the C program that it should
1057  *      include <sys/resource.h>.
1058  */
1059 #$i_sysresrc I_SYS_RESOURCE             /**/
1060
1061 /* I_SYS_SELECT:
1062  *      This symbol, if defined, indicates to the C program that it should
1063  *      include <sys/select.h> in order to get definition of struct timeval.
1064  */
1065 #$i_sysselct I_SYS_SELECT       /**/
1066
1067 /* I_SYS_STAT:
1068  *      This symbol, if defined, indicates to the C program that it should
1069  *      include <sys/stat.h>.
1070  */
1071 #$i_sysstat     I_SYS_STAT              /**/
1072
1073 /* I_SYS_TIMES:
1074  *      This symbol, if defined, indicates to the C program that it should
1075  *      include <sys/times.h>.
1076  */
1077 #$i_systimes    I_SYS_TIMES             /**/
1078
1079 /* I_SYS_TYPES:
1080  *      This symbol, if defined, indicates to the C program that it should
1081  *      include <sys/types.h>.
1082  */
1083 #$i_systypes    I_SYS_TYPES             /**/
1084
1085 /* I_SYS_UN:
1086  *      This symbol, if defined, indicates to the C program that it should
1087  *      include <sys/un.h> to get UNIX domain socket definitions.
1088  */
1089 #$i_sysun I_SYS_UN              /**/
1090
1091 /* I_SYS_WAIT:
1092  *      This symbol, if defined, indicates to the C program that it should
1093  *      include <sys/wait.h>.
1094  */
1095 #$i_syswait I_SYS_WAIT  /**/
1096
1097 /* I_TERMIO:
1098  *      This symbol, if defined, indicates that the program should include
1099  *      <termio.h> rather than <sgtty.h>.  There are also differences in
1100  *      the ioctl() calls that depend on the value of this symbol.
1101  */
1102 /* I_TERMIOS:
1103  *      This symbol, if defined, indicates that the program should include
1104  *      the POSIX termios.h rather than sgtty.h or termio.h.
1105  *      There are also differences in the ioctl() calls that depend on the
1106  *      value of this symbol.
1107  */
1108 /* I_SGTTY:
1109  *      This symbol, if defined, indicates that the program should include
1110  *      <sgtty.h> rather than <termio.h>.  There are also differences in
1111  *      the ioctl() calls that depend on the value of this symbol.
1112  */
1113 #$i_termio I_TERMIO             /**/
1114 #$i_termios I_TERMIOS           /**/
1115 #$i_sgtty I_SGTTY               /**/
1116
1117 /* I_UNISTD:
1118  *      This symbol, if defined, indicates to the C program that it should
1119  *      include <unistd.h>.
1120  */
1121 #$i_unistd I_UNISTD             /**/
1122
1123 /* I_UTIME:
1124  *      This symbol, if defined, indicates to the C program that it should
1125  *      include <utime.h>.
1126  */
1127 #$i_utime I_UTIME               /**/
1128
1129 /* I_VALUES:
1130  *      This symbol, if defined, indicates to the C program that it should
1131  *      include <values.h> to get definition of symbols like MINFLOAT or
1132  *      MAXLONG, i.e. machine dependant limitations.  Probably, you
1133  *      should use <limits.h> instead, if it is available.
1134  */
1135 #$i_values I_VALUES             /**/
1136
1137 /* I_STDARG:
1138  *      This symbol, if defined, indicates that <stdarg.h> exists and should
1139  *      be included.
1140  */
1141 /* I_VARARGS:
1142  *      This symbol, if defined, indicates to the C program that it should
1143  *      include <varargs.h>.
1144  */
1145 #$i_stdarg I_STDARG             /**/
1146 #$i_varargs I_VARARGS   /**/
1147
1148 /* I_VFORK:
1149  *      This symbol, if defined, indicates to the C program that it should
1150  *      include vfork.h.
1151  */
1152 #$i_vfork I_VFORK       /**/
1153
1154 /* CAN_PROTOTYPE:
1155  *      If defined, this macro indicates that the C compiler can handle
1156  *      function prototypes.
1157  */
1158 /* _:
1159  *      This macro is used to declare function parameters for folks who want
1160  *      to make declarations with prototypes using a different style than
1161  *      the above macros.  Use double parentheses.  For example:
1162  *
1163  *              int main _((int argc, char *argv[]));
1164  */
1165 #$prototype     CAN_PROTOTYPE   /**/
1166 #ifdef CAN_PROTOTYPE
1167 #define _(args) args
1168 #else
1169 #define _(args) ()
1170 #endif
1171
1172 /* SH_PATH:
1173  *      This symbol contains the full pathname to the shell used on this
1174  *      on this system to execute Bourne shell scripts.  Usually, this will be
1175  *      /bin/sh, though it's possible that some systems will have /bin/ksh,
1176  *      /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1177  *      D:/bin/sh.exe.
1178  */
1179 #define SH_PATH "$sh"  /**/
1180
1181 /* STDCHAR:
1182  *      This symbol is defined to be the type of char used in stdio.h.
1183  *      It has the values "unsigned char" or "char".
1184  */
1185 #define STDCHAR $stdchar        /**/
1186
1187 /* MEM_ALIGNBYTES:
1188  *       This symbol contains the number of bytes required to align a
1189  *       double. Usual values are 2, 4 and 8.
1190  *       On NeXT starting with 3.2, you can build "Fat" Multiple Architecture
1191  *       Binaries (MAB) for targets with varying alignment.  This only matters
1192  *       for perl, where the config.h can be generated and installed on one
1193  *       system, and used by a different architecture to build an extension.
1194  *       The default is eight, for safety.
1195  */
1196 #define MEM_ALIGNBYTES $alignbytes      /**/
1197
1198 /* BYTEORDER:
1199  *      This symbol holds the hexadecimal constant defined in byteorder,
1200  *      i.e. 0x1234 or 0x4321, etc...
1201  *      On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1202  *      Binaries (MAB) on either big endian or little endian machines.
1203  *      The endian-ness is available at compile-time.  This only matters
1204  *      for perl, where the config.h can be generated and installed on 
1205  *      one system, and used by a different architecture to build an
1206  *      extension.  Older versions of NeXT that might not have
1207  *      defined either *_ENDIAN__ were all on Motorola 680x0 series,
1208  *      so the default case (for NeXT) is big endian to catch them. 
1209  *      This might matter for NeXT 3.0.
1210  */
1211 #ifndef NeXT
1212 #define BYTEORDER 0x$byteorder  /* large digits for MSB */
1213 #else  /* NeXT */
1214 #ifdef __LITTLE_ENDIAN__
1215 #define BYTEORDER 0x1234
1216 #else /* __BIG_ENDIAN__ */
1217 #define BYTEORDER 0x4321
1218 #endif /* ENDIAN CHECK */
1219 #endif /* NeXT */
1220
1221 /* CASTI32:
1222  *      This symbol is defined if the C compiler can cast negative
1223  *      or large floating point numbers to 32-bit ints.
1224  */
1225 #$d_casti32     CASTI32         /**/
1226
1227 /* CASTNEGFLOAT:
1228  *      This symbol is defined if the C compiler can cast negative
1229  *      numbers to unsigned longs, ints and shorts.
1230  */
1231 /* CASTFLAGS:
1232  *      This symbol contains flags that say what difficulties the compiler
1233  *      has casting odd floating values to unsigned long:
1234  *              0 = ok
1235  *              1 = couldn't cast < 0
1236  *              2 = couldn't cast >= 0x80000000
1237  *              4 = couldn't cast in argument expression list
1238  */
1239 #$d_castneg     CASTNEGFLOAT            /**/
1240 #define CASTFLAGS $castflags            /**/
1241
1242 /* VOID_CLOSEDIR:
1243  *      This symbol, if defined, indicates that the closedir() routine
1244  *      does not return a value.
1245  */
1246 #$d_void_closedir VOID_CLOSEDIR         /**/
1247
1248 /* Gconvert:
1249  *      This preprocessor macro is defined to convert a floating point
1250  *      number to a string without a trailing decimal point.  This
1251  *      emulates the behavior of sprintf("%g"), but is sometimes much more
1252  *      efficient.  If gconvert() is not available, but gcvt() drops the
1253  *      trailing decimal point, then gcvt() is used.  If all else fails,
1254  *      a macro using sprintf("%g") is used. Arguments for the Gconvert
1255  *      macro are: value, number of digits, whether trailing zeros should
1256  *      be retained, and the output buffer.
1257  *      Possible values are:
1258  *              d_Gconvert='gconvert((x),(n),(t),(b))'
1259  *              d_Gconvert='gcvt((x),(n),(b))'
1260  *              d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1261  *      The last two assume trailing zeros should not be kept.
1262  */
1263 #define Gconvert(x,n,t,b) $d_Gconvert
1264
1265 /* HAS_GNULIBC:
1266  *      This symbol, if defined, indicates to the C program that 
1267  *      the GNU C library is being used.
1268  */
1269 #$d_gnulibc HAS_GNULIBC         /**/
1270 /* HAS_ISASCII:
1271  *      This manifest constant lets the C program know that isascii 
1272  *      is available.
1273  */
1274 #$d_isascii HAS_ISASCII         /**/
1275
1276 /* HAS_LCHOWN:
1277  *      This symbol, if defined, indicates that the lchown routine is
1278  *      available to operate on a symbolic link (instead of following the
1279  *      link).
1280  */
1281 #$d_lchown HAS_LCHOWN           /**/
1282
1283 /* HAS_OPEN3:
1284  *      This manifest constant lets the C program know that the three
1285  *      argument form of open(2) is available.
1286  */
1287 #$d_open3 HAS_OPEN3             /**/
1288
1289 /* HAS_SAFE_BCOPY:
1290  *      This symbol, if defined, indicates that the bcopy routine is available
1291  *      to copy potentially overlapping memory blocks. Otherwise you should
1292  *      probably use memmove() or memcpy(). If neither is defined, roll your
1293  *      own version.
1294  */
1295 #$d_safebcpy HAS_SAFE_BCOPY     /**/
1296
1297 /* HAS_SAFE_MEMCPY:
1298  *      This symbol, if defined, indicates that the memcpy routine is available
1299  *      to copy potentially overlapping memory blocks. Otherwise you should
1300  *      probably use memmove() or memcpy(). If neither is defined, roll your
1301  *      own version.
1302  */
1303 #$d_safemcpy HAS_SAFE_MEMCPY    /**/
1304
1305 /* HAS_SANE_MEMCMP:
1306  *      This symbol, if defined, indicates that the memcmp routine is available
1307  *      and can be used to compare relative magnitudes of chars with their high
1308  *      bits set.  If it is not defined, roll your own version.
1309  */
1310 #$d_sanemcmp HAS_SANE_MEMCMP    /**/
1311
1312 /* HAS_SIGACTION:
1313  *      This symbol, if defined, indicates that Vr4's sigaction() routine
1314  *      is available.
1315  */
1316 #$d_sigaction HAS_SIGACTION     /**/
1317
1318 /* Sigjmp_buf:
1319  *      This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1320  */
1321 /* Sigsetjmp:
1322  *      This macro is used in the same way as sigsetjmp(), but will invoke
1323  *      traditional setjmp() if sigsetjmp isn't available.
1324  *      See HAS_SIGSETJMP.
1325  */
1326 /* Siglongjmp:
1327  *      This macro is used in the same way as siglongjmp(), but will invoke
1328  *      traditional longjmp() if siglongjmp isn't available.
1329  *      See HAS_SIGSETJMP.
1330  */
1331 #$d_sigsetjmp HAS_SIGSETJMP     /**/
1332 #ifdef HAS_SIGSETJMP
1333 #define Sigjmp_buf sigjmp_buf
1334 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1335 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1336 #else
1337 #define Sigjmp_buf jmp_buf
1338 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1339 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1340 #endif
1341
1342 /* USE_STDIO_PTR:
1343  *      This symbol is defined if the _ptr and _cnt fields (or similar)
1344  *      of the stdio FILE structure can be used to access the stdio buffer
1345  *      for a file handle.  If this is defined, then the FILE_ptr(fp)
1346  *      and FILE_cnt(fp) macros will also be defined and should be used
1347  *      to access these fields.
1348  */
1349 /* FILE_ptr:
1350  *      This macro is used to access the _ptr field (or equivalent) of the
1351  *      FILE structure pointed to by its argument. This macro will always be
1352  *      defined if USE_STDIO_PTR is defined.
1353  */
1354 /* STDIO_PTR_LVALUE:
1355  *      This symbol is defined if the FILE_ptr macro can be used as an
1356  *      lvalue.
1357  */
1358 /* FILE_cnt:
1359  *      This macro is used to access the _cnt field (or equivalent) of the
1360  *      FILE structure pointed to by its argument. This macro will always be
1361  *      defined if USE_STDIO_PTR is defined.
1362  */
1363 /* STDIO_CNT_LVALUE:
1364  *      This symbol is defined if the FILE_cnt macro can be used as an
1365  *      lvalue.
1366  */
1367 #$d_stdstdio USE_STDIO_PTR      /**/
1368 #ifdef USE_STDIO_PTR
1369 #define FILE_ptr(fp)    $stdio_ptr
1370 #$d_stdio_ptr_lval STDIO_PTR_LVALUE             /**/
1371 #define FILE_cnt(fp)    $stdio_cnt
1372 #$d_stdio_cnt_lval STDIO_CNT_LVALUE             /**/
1373 #endif
1374
1375 /* USE_STDIO_BASE:
1376  *      This symbol is defined if the _base field (or similar) of the
1377  *      stdio FILE structure can be used to access the stdio buffer for
1378  *      a file handle.  If this is defined, then the FILE_base(fp) macro
1379  *      will also be defined and should be used to access this field.
1380  *      Also, the FILE_bufsiz(fp) macro will be defined and should be used
1381  *      to determine the number of bytes in the buffer.  USE_STDIO_BASE
1382  *      will never be defined unless USE_STDIO_PTR is.
1383  */
1384 /* FILE_base:
1385  *      This macro is used to access the _base field (or equivalent) of the
1386  *      FILE structure pointed to by its argument. This macro will always be
1387  *      defined if USE_STDIO_BASE is defined.
1388  */
1389 /* FILE_bufsiz:
1390  *      This macro is used to determine the number of bytes in the I/O
1391  *      buffer pointed to by _base field (or equivalent) of the FILE
1392  *      structure pointed to its argument. This macro will always be defined
1393  *      if USE_STDIO_BASE is defined.
1394  */
1395 #$d_stdiobase USE_STDIO_BASE    /**/
1396 #ifdef USE_STDIO_BASE
1397 #define FILE_base(fp)   $stdio_base
1398 #define FILE_bufsiz(fp) $stdio_bufsiz
1399 #endif
1400
1401 /* HAS_VPRINTF:
1402  *      This symbol, if defined, indicates that the vprintf routine is available
1403  *      to printf with a pointer to an argument list.  If unavailable, you
1404  *      may need to write your own, probably in terms of _doprnt().
1405  */
1406 /* USE_CHAR_VSPRINTF:
1407  *      This symbol is defined if this system has vsprintf() returning type
1408  *      (char*).  The trend seems to be to declare it as "int vsprintf()".  It
1409  *      is up to the package author to declare vsprintf correctly based on the
1410  *      symbol.
1411  */
1412 #$d_vprintf HAS_VPRINTF /**/
1413 #$d_charvspr USE_CHAR_VSPRINTF  /**/
1414
1415 /* DOUBLESIZE:
1416  *      This symbol contains the size of a double, so that the C preprocessor
1417  *      can make decisions based on it.
1418  */
1419 #define DOUBLESIZE $doublesize          /**/
1420
1421 /* I_TIME:
1422  *      This symbol, if defined, indicates to the C program that it should
1423  *      include <time.h>.
1424  */
1425 /* I_SYS_TIME:
1426  *      This symbol, if defined, indicates to the C program that it should
1427  *      include <sys/time.h>.
1428  */
1429 /* I_SYS_TIME_KERNEL:
1430  *      This symbol, if defined, indicates to the C program that it should
1431  *      include <sys/time.h> with KERNEL defined.
1432  */
1433 #$i_time I_TIME         /**/
1434 #$i_systime I_SYS_TIME          /**/
1435 #$i_systimek I_SYS_TIME_KERNEL          /**/
1436
1437 /* INTSIZE:
1438  *      This symbol contains the value of sizeof(int) so that the C
1439  *      preprocessor can make decisions based on it.
1440  */
1441 /* LONGSIZE:
1442  *      This symbol contains the value of sizeof(long) so that the C
1443  *      preprocessor can make decisions based on it.
1444  */
1445 /* SHORTSIZE:
1446  *      This symbol contains the value of sizeof(short) so that the C
1447  *      preprocessor can make decisions based on it.
1448  */
1449 #define INTSIZE $intsize                /**/
1450 #define LONGSIZE $longsize              /**/
1451 #define SHORTSIZE $shortsize            /**/
1452
1453 /* VAL_O_NONBLOCK:
1454  *      This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1455  *      non-blocking I/O for the file descriptor. Note that there is no way
1456  *      back, i.e. you cannot turn it blocking again this way. If you wish to
1457  *      alternatively switch between blocking and non-blocking, use the
1458  *      ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1459  */
1460 /* VAL_EAGAIN:
1461  *      This symbol holds the errno error code set by read() when no data was
1462  *      present on the non-blocking file descriptor.
1463  */
1464 /* RD_NODATA:
1465  *      This symbol holds the return code from read() when no data is present
1466  *      on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1467  *      not defined, then you can't distinguish between no data and EOF by
1468  *      issuing a read(). You'll have to find another way to tell for sure!
1469  */
1470 /* EOF_NONBLOCK:
1471  *      This symbol, if defined, indicates to the C program that a read() on
1472  *      a non-blocking file descriptor will return 0 on EOF, and not the value
1473  *      held in RD_NODATA (-1 usually, in that case!).
1474  */
1475 #define VAL_O_NONBLOCK $o_nonblock
1476 #define VAL_EAGAIN $eagain
1477 #define RD_NODATA $rd_nodata
1478 #$d_eofnblk EOF_NONBLOCK
1479
1480 /* PTRSIZE:
1481  *      This symbol contains the size of a pointer, so that the C preprocessor
1482  *      can make decisions based on it.  It will be sizeof(void *) if
1483  *      the compiler supports (void *); otherwise it will be
1484  *      sizeof(char *).
1485  */
1486 #define PTRSIZE $ptrsize                /**/
1487
1488 /* RANDBITS:
1489  *      This symbol contains the number of bits of random number the rand()
1490  *      function produces.  Usual values are 15, 16, and 31.
1491  */
1492 #define RANDBITS $randbits              /**/
1493
1494 /* SSize_t:
1495  *      This symbol holds the type used by functions that return
1496  *      a count of bytes or an error condition.  It must be a signed type.
1497  *      It is usually ssize_t, but may be long or int, etc.
1498  *      It may be necessary to include <sys/types.h> or <unistd.h>
1499  *      to get any typedef'ed information.
1500  *      We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1501  */
1502 #define SSize_t $ssizetype       /* signed count of bytes */
1503
1504 /* OSNAME:
1505  *      This symbol contains the name of the operating system, as determined
1506  *      by Configure.  You shouldn't rely on it too much; the specific
1507  *      feature tests from Configure are generally more reliable.
1508  */
1509 #define OSNAME "$osname"                /**/
1510
1511 /* CAT2:
1512  *      This macro catenates 2 tokens together.
1513  */
1514 /* STRINGIFY:
1515  *      This macro surrounds its token with double quotes.
1516  */
1517 #if $cpp_stuff == 1
1518 #define CAT2(a,b)a/**/b
1519 #define STRINGIFY(a)"a"
1520                 /* If you can get stringification with catify, tell me how! */
1521 #endif
1522 #if $cpp_stuff == 42
1523 #define CAT2(a,b)a ## b
1524 #define StGiFy(a)# a
1525 #define STRINGIFY(a)StGiFy(a)
1526 #endif
1527 #if $cpp_stuff != 1 && $cpp_stuff != 42
1528 #include "Bletch: How does this C preprocessor catenate tokens?"
1529 #endif
1530
1531 /* CSH:
1532  *      This symbol, if defined, contains the full pathname of csh.
1533  */
1534 #$d_csh HAS_CSH         /**/
1535 #ifdef HAS_CSH
1536 #define CSH "$full_csh" /**/
1537 #endif
1538
1539 /* HAS_ENDHOSTENT:
1540  *      This symbol, if defined, indicates that the endhostent() routine is
1541  *      available to close whatever was being used for host queries.
1542  */
1543 #$d_endhent HAS_ENDHOSTENT              /**/
1544
1545 /* HAS_ENDNETENT:
1546  *      This symbol, if defined, indicates that the endnetent() routine is
1547  *      available to close whatever was being used for network queries.
1548  */
1549 #$d_endnent HAS_ENDNETENT               /**/
1550
1551 /* HAS_ENDPROTOENT:
1552  *      This symbol, if defined, indicates that the endprotoent() routine is
1553  *      available to close whatever was being used for protocol queries.
1554  */
1555 #$d_endpent HAS_ENDPROTOENT             /**/
1556
1557 /* HAS_ENDSERVENT:
1558  *      This symbol, if defined, indicates that the endservent() routine is
1559  *      available to close whatever was being used for service queries.
1560  */
1561 #$d_endsent HAS_ENDSERVENT              /**/
1562
1563 /* HAS_GETHOSTBYADDR:
1564  *      This symbol, if defined, indicates that the gethostbyaddr() routine is
1565  *      available to look up hosts by their IP addresses.
1566  */
1567 #$d_gethbyaddr HAS_GETHOSTBYADDR                /**/
1568
1569 /* HAS_GETHOSTBYNAME:
1570  *      This symbol, if defined, indicates that the gethostbyname() routine is
1571  *      available to look up host names in some data base or other.
1572  */
1573 #$d_gethbyname HAS_GETHOSTBYNAME                /**/
1574
1575 /* HAS_GETHOSTENT:
1576  *      This symbol, if defined, indicates that the gethostent() routine is
1577  *      available to look up host names in some data base or another.
1578  */
1579 #$d_gethent HAS_GETHOSTENT              /**/
1580
1581 /* HAS_GETNETBYADDR:
1582  *      This symbol, if defined, indicates that the getnetbyaddr() routine is
1583  *      available to look up networks by their IP addresses.
1584  */
1585 #$d_getnbyaddr HAS_GETNETBYADDR         /**/
1586
1587 /* HAS_GETNETBYNAME:
1588  *      This symbol, if defined, indicates that the getnetbyname() routine is
1589  *      available to look up networks by their names.
1590  */
1591 #$d_getnbyname HAS_GETNETBYNAME         /**/
1592
1593 /* HAS_GETNETENT:
1594  *      This symbol, if defined, indicates that the getnetent() routine is
1595  *      available to look up network names in some data base or another.
1596  */
1597 #$d_getnent HAS_GETNETENT               /**/
1598
1599 /* HAS_GETPROTOENT:
1600  *      This symbol, if defined, indicates that the getprotoent() routine is
1601  *      available to look up protocols in some data base or another.
1602  */
1603 #$d_getpent HAS_GETPROTOENT             /**/
1604
1605 /* HAS_GETPROTOBYNAME:
1606  *      This symbol, if defined, indicates that the getprotobyname()
1607  *      routine is available to look up protocols by their name.
1608  */
1609 /* HAS_GETPROTOBYNUMBER:
1610  *      This symbol, if defined, indicates that the getprotobynumber()
1611  *      routine is available to look up protocols by their number.
1612  */
1613 #$d_getpbyname HAS_GETPROTOBYNAME               /**/
1614 #$d_getpbynumber HAS_GETPROTOBYNUMBER           /**/
1615
1616 /* HAS_GETSERVENT:
1617  *      This symbol, if defined, indicates that the getservent() routine is
1618  *      available to look up network services in some data base or another.
1619  */
1620 #$d_getsent HAS_GETSERVENT              /**/
1621
1622 /* HAS_GETSERVBYNAME:
1623  *      This symbol, if defined, indicates that the getservbyname()
1624  *      routine is available to look up services by their name.
1625  */
1626 /* HAS_GETSERVBYPORT:
1627  *      This symbol, if defined, indicates that the getservbyport()
1628  *      routine is available to look up services by their port.
1629  */
1630 #$d_getsbyname HAS_GETSERVBYNAME                /**/
1631 #$d_getsbyport HAS_GETSERVBYPORT                /**/
1632
1633 /* HAS_LONG_DOUBLE:
1634  *      This symbol will be defined if the C compiler supports long
1635  *      doubles.
1636  */
1637 /* LONG_DOUBLESIZE:
1638  *      This symbol contains the size of a long double, so that the 
1639  *      C preprocessor can make decisions based on it.  It is only
1640  *      defined if the system supports long doubles.
1641  */
1642 #$d_longdbl HAS_LONG_DOUBLE             /**/
1643 #ifdef HAS_LONG_DOUBLE
1644 #define LONG_DOUBLESIZE $longdblsize            /**/
1645 #endif
1646
1647 /* HAS_LONG_LONG:
1648  *      This symbol will be defined if the C compiler supports
1649  *      long long.
1650  */
1651 /* LONGLONGSIZE:
1652  *      This symbol contains the size of a long long, so that the 
1653  *      C preprocessor can make decisions based on it.  It is only
1654  *      defined if the system supports long long.
1655  */
1656 #$d_longlong HAS_LONG_LONG              /**/
1657 #ifdef HAS_LONG_LONG
1658 #define LONGLONGSIZE $longlongsize              /**/
1659 #endif
1660
1661 /* HAS_SETGROUPS:
1662  *      This symbol, if defined, indicates that the setgroups() routine is
1663  *      available to set the list of process groups.  If unavailable, multiple
1664  *      groups are probably not supported.
1665  */
1666 #$d_setgrps HAS_SETGROUPS               /**/
1667
1668 /* HAS_SETHOSTENT:
1669  *      This symbol, if defined, indicates that the sethostent() routine is
1670  *      available.
1671  */
1672 #$d_sethent HAS_SETHOSTENT              /**/
1673
1674 /* HAS_SETNETENT:
1675  *      This symbol, if defined, indicates that the setnetent() routine is
1676  *      available.
1677  */
1678 #$d_setnent HAS_SETNETENT               /**/
1679
1680 /* HAS_SETPROTOENT:
1681  *      This symbol, if defined, indicates that the setprotoent() routine is
1682  *      available.
1683  */
1684 #$d_setpent HAS_SETPROTOENT             /**/
1685
1686 /* HAS_SETPROCTITLE:
1687  *      This symbol, if defined, indicates that the setproctitle routine is
1688  *      available to set process title.
1689  */
1690 #$d_setproctitle HAS_SETPROCTITLE               /**/
1691
1692 /* HAS_SETSERVENT:
1693  *      This symbol, if defined, indicates that the setservent() routine is
1694  *      available.
1695  */
1696 #$d_setsent HAS_SETSERVENT              /**/
1697
1698 /* HAS_SETVBUF:
1699  *      This symbol, if defined, indicates that the setvbuf routine is
1700  *      available to change buffering on an open stdio stream.
1701  *      to a line-buffered mode.
1702  */
1703 #$d_setvbuf HAS_SETVBUF         /**/
1704
1705 /* HAS_SOCKET:
1706  *      This symbol, if defined, indicates that the BSD socket interface is
1707  *      supported.
1708  */
1709 /* HAS_SOCKETPAIR:
1710  *      This symbol, if defined, indicates that the BSD socketpair() call is
1711  *      supported.
1712  */
1713 #$d_socket HAS_SOCKET           /**/
1714 #$d_sockpair HAS_SOCKETPAIR     /**/
1715
1716 /* HAS_UNION_SEMUN:
1717  *      This symbol, if defined, indicates that the union semun is
1718  *      defined by including <sys/sem.h>.  If not, the user code
1719  *      probably needs to define it as:
1720  *      union semun {
1721  *          int val;
1722  *          struct semid_ds *buf;
1723  *          unsigned short *array;
1724  *      }
1725  */
1726 /* USE_SEMCTL_SEMUN:
1727  *      This symbol, if defined, indicates that union semun is
1728  *      used for semctl IPC_STAT.
1729  */
1730 /* USE_SEMCTL_SEMID_DS:
1731  *      This symbol, if defined, indicates that struct semid_ds * is
1732  *      used for semctl IPC_STAT.
1733  */
1734 #$d_union_semun HAS_UNION_SEMUN /**/
1735 #$d_semctl_semun USE_SEMCTL_SEMUN       /**/
1736 #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
1737
1738 /* Signal_t:
1739  *      This symbol's value is either "void" or "int", corresponding to the
1740  *      appropriate return type of a signal handler.  Thus, you can declare
1741  *      a signal handler using "Signal_t (*handler)()", and define the
1742  *      handler using "Signal_t handler(sig)".
1743  */
1744 #define Signal_t $signal_t      /* Signal handler's return type */
1745
1746 /* Groups_t:
1747  *      This symbol holds the type used for the second argument to
1748  *      getgroups() and setgropus().  Usually, this is the same as
1749  *      gidtype (gid_t) , but sometimes it isn't.
1750  *      It can be int, ushort, uid_t, etc... 
1751  *      It may be necessary to include <sys/types.h> to get any 
1752  *      typedef'ed information.  This is only required if you have
1753  *      getgroups() or setgropus()..
1754  */
1755 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1756 #define Groups_t $groupstype    /* Type for 2nd arg to [sg]etgroups() */
1757 #endif
1758
1759 /* I_NETDB:
1760  *      This symbol, if defined, indicates that <netdb.h> exists and
1761  *      should be included.
1762  */
1763 #$i_netdb I_NETDB               /**/
1764
1765 /* I_PWD:
1766  *      This symbol, if defined, indicates to the C program that it should
1767  *      include <pwd.h>.
1768  */
1769 /* PWQUOTA:
1770  *      This symbol, if defined, indicates to the C program that struct passwd
1771  *      contains pw_quota.
1772  */
1773 /* PWAGE:
1774  *      This symbol, if defined, indicates to the C program that struct passwd
1775  *      contains pw_age.
1776  */
1777 /* PWCHANGE:
1778  *      This symbol, if defined, indicates to the C program that struct passwd
1779  *      contains pw_change.
1780  */
1781 /* PWCLASS:
1782  *      This symbol, if defined, indicates to the C program that struct passwd
1783  *      contains pw_class.
1784  */
1785 /* PWEXPIRE:
1786  *      This symbol, if defined, indicates to the C program that struct passwd
1787  *      contains pw_expire.
1788  */
1789 /* PWCOMMENT:
1790  *      This symbol, if defined, indicates to the C program that struct passwd
1791  *      contains pw_comment.
1792  */
1793 /* PWGECOS:
1794  *      This symbol, if defined, indicates to the C program that struct passwd
1795  *      contains pw_gecos.
1796  */
1797 /* PWPASSWD:
1798  *      This symbol, if defined, indicates to the C program that struct passwd
1799  *      contains pw_passwd.
1800  */
1801 /* HAS_SETPWENT:
1802  *      This symbol, if defined, indicates that the getpwrent routine is
1803  *      available for initializing sequential access of the passwd database.
1804  */
1805 /* HAS_GETPWENT:
1806  *      This symbol, if defined, indicates that the getpwent routine is
1807  *      available for sequential access of the password database.
1808  */
1809 /* HAS_ENDPWENT:
1810  *      This symbol, if defined, indicates that the getpwent routine is
1811  *      available for finalizing sequential access of the passwd database.
1812  */
1813 #$i_pwd I_PWD           /**/
1814 #$d_pwquota PWQUOTA     /**/
1815 #$d_pwage PWAGE /**/
1816 #$d_pwchange PWCHANGE   /**/
1817 #$d_pwclass PWCLASS     /**/
1818 #$d_pwexpire PWEXPIRE   /**/
1819 #$d_pwcomment PWCOMMENT /**/
1820 #$d_pwgecos PWGECOS     /**/
1821 #$d_pwpasswd PWPASSWD   /**/
1822 #$d_setpwent HAS_SETPWENT       /**/
1823 #$d_getpwent HAS_GETPWENT       /**/
1824 #$d_endpwent HAS_ENDPWENT       /**/
1825
1826 /* Free_t:
1827  *      This variable contains the return type of free().  It is usually
1828  * void, but occasionally int.
1829  */
1830 /* Malloc_t:
1831  *      This symbol is the type of pointer returned by malloc and realloc.
1832  */
1833 #define Malloc_t $malloctype                    /**/
1834 #define Free_t $freetype                        /**/
1835
1836 /* MYMALLOC:
1837  *      This symbol, if defined, indicates that we're using our own malloc.
1838  */
1839 #$d_mymalloc MYMALLOC                   /**/
1840
1841 /* SIG_NAME:
1842  *      This symbol contains a list of signal names in order of
1843  *      signal number. This is intended
1844  *      to be used as a static array initialization, like this:
1845  *              char *sig_name[] = { SIG_NAME };
1846  *      The signals in the list are separated with commas, and each signal
1847  *      is surrounded by double quotes. There is no leading SIG in the signal
1848  *      name, i.e. SIGQUIT is known as "QUIT".
1849  *      Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1850  *      etc., where nn is the actual signal number (e.g. NUM37).
1851  *      The signal number for sig_name[i] is stored in sig_num[i].
1852  *      The last element is 0 to terminate the list with a NULL.  This
1853  *      corresponds to the 0 at the end of the sig_num list.
1854  */
1855 /* SIG_NUM:
1856  *      This symbol contains a list of signal numbers, in the same order as the
1857  *      SIG_NAME list. It is suitable for static array initialization, as in:
1858  *              int sig_num[] = { SIG_NUM };
1859  *      The signals in the list are separated with commas, and the indices
1860  *      within that list and the SIG_NAME list match, so it's easy to compute
1861  *      the signal name from a number or vice versa at the price of a small
1862  *      dynamic linear lookup. 
1863  *      Duplicates are allowed, but are moved to the end of the list.
1864  *      The signal number corresponding to sig_name[i] is sig_number[i].
1865  *      if (i < NSIG) then sig_number[i] == i.  
1866  *      The last element is 0, corresponding to the 0 at the end of
1867  *      the sig_name list.
1868  */
1869 #define SIG_NAME $sig_name_init         /**/
1870 #define SIG_NUM  $sig_num_init          /**/
1871
1872 /* VOIDFLAGS:
1873  *      This symbol indicates how much support of the void type is given by this
1874  *      compiler.  What various bits mean:
1875  *
1876  *          1 = supports declaration of void
1877  *          2 = supports arrays of pointers to functions returning void
1878  *          4 = supports comparisons between pointers to void functions and
1879  *                  addresses of void functions
1880  *          8 = suports declaration of generic void pointers
1881  *
1882  *      The package designer should define VOIDUSED to indicate the requirements
1883  *      of the package.  This can be done either by #defining VOIDUSED before
1884  *      including config.h, or by defining defvoidused in Myinit.U.  If the
1885  *      latter approach is taken, only those flags will be tested.  If the
1886  *      level of void support necessary is not present, defines void to int.
1887  */
1888 #ifndef VOIDUSED
1889 #define VOIDUSED $defvoidused
1890 #endif
1891 #define VOIDFLAGS $voidflags
1892 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1893 #define void int                /* is void to be avoided? */
1894 #define M_VOID                  /* Xenix strikes again */
1895 #endif
1896
1897 /* ARCHLIB:
1898  *      This variable, if defined, holds the name of the directory in
1899  *      which the user wants to put architecture-dependent public
1900  *      library files for $package.  It is most often a local directory
1901  *      such as /usr/local/lib.  Programs using this variable must be
1902  *      prepared to deal with filename expansion.  If ARCHLIB is the
1903  *      same as PRIVLIB, it is not defined, since presumably the
1904  *      program already searches PRIVLIB.
1905  */
1906 /* ARCHLIB_EXP:
1907  *      This symbol contains the ~name expanded version of ARCHLIB, to be used
1908  *      in programs that are not prepared to deal with ~ expansion at run-time.
1909  */
1910 #$d_archlib ARCHLIB "$archlib"          /**/
1911 #$d_archlib ARCHLIB_EXP "$archlibexp"           /**/
1912
1913 /* DLSYM_NEEDS_UNDERSCORE:
1914  *      This symbol, if defined, indicates that we need to prepend an
1915  *      underscore to the symbol name before calling dlsym().  This only
1916  *      makes sense if you *have* dlsym, which we will presume is the
1917  *      case if you're using dl_dlopen.xs.
1918  */
1919 #$d_dlsymun     DLSYM_NEEDS_UNDERSCORE  /**/
1920
1921 /* USE_SFIO:
1922  *      This symbol, if defined, indicates that sfio should
1923  *      be used.
1924  */
1925 #$d_sfio        USE_SFIO                /**/
1926
1927 /* USE_DYNAMIC_LOADING:
1928  *      This symbol, if defined, indicates that dynamic loading of
1929  *      some sort is available.
1930  */
1931 #$usedl USE_DYNAMIC_LOADING             /**/
1932
1933 /* DB_Prefix_t:
1934  *      This symbol contains the type of the prefix structure element
1935  *      in the <db.h> header file.  In older versions of DB, it was
1936  *      int, while in newer ones it is u_int32_t.
1937  */
1938 /* DB_Hash_t:
1939  *      This symbol contains the type of the prefix structure element
1940  *      in the <db.h> header file.  In older versions of DB, it was
1941  *      int, while in newer ones it is size_t.
1942  */
1943 #define DB_Hash_t       $db_hashtype            /**/
1944 #define DB_Prefix_t     $db_prefixtype          /**/
1945
1946 /* PRIVLIB:
1947  *      This symbol contains the name of the private library for this package.
1948  *      The library is private in the sense that it needn't be in anyone's
1949  *      execution path, but it should be accessible by the world.  The program
1950  *      should be prepared to do ~ expansion.
1951  */
1952 /* PRIVLIB_EXP:
1953  *      This symbol contains the ~name expanded version of PRIVLIB, to be used
1954  *      in programs that are not prepared to deal with ~ expansion at run-time.
1955  */
1956 #define PRIVLIB "$privlib"              /**/
1957 #define PRIVLIB_EXP "$privlibexp"               /**/
1958
1959 /* SELECT_MIN_BITS:
1960  *      This symbol holds the minimum number of bits operated by select.
1961  *      That is, if you do select(n, ...), how many bits at least will be
1962  *      cleared in the masks if some activity is detected.  Usually this
1963  *      is either n or 32*ceil(n/32), especially many little-endians do
1964  *      the latter.  This is only useful if you have select(), naturally.
1965  */
1966 #define SELECT_MIN_BITS         $selectminbits  /**/
1967
1968 /* SITEARCH:
1969  *      This symbol contains the name of the private library for this package.
1970  *      The library is private in the sense that it needn't be in anyone's
1971  *      execution path, but it should be accessible by the world.  The program
1972  *      should be prepared to do ~ expansion.
1973  *      The standard distribution will put nothing in this directory.
1974  *      Individual sites may place their own extensions and modules in
1975  *      this directory.
1976  */
1977 /* SITEARCH_EXP:
1978  *      This symbol contains the ~name expanded version of SITEARCH, to be used
1979  *      in programs that are not prepared to deal with ~ expansion at run-time.
1980  */
1981 #define SITEARCH "$sitearch"            /**/
1982 #define SITEARCH_EXP "$sitearchexp"             /**/
1983
1984 /* SITELIB:
1985  *      This symbol contains the name of the private library for this package.
1986  *      The library is private in the sense that it needn't be in anyone's
1987  *      execution path, but it should be accessible by the world.  The program
1988  *      should be prepared to do ~ expansion.
1989  *      The standard distribution will put nothing in this directory.
1990  *      Individual sites may place their own extensions and modules in
1991  *      this directory.
1992  */
1993 /* SITELIB_EXP:
1994  *      This symbol contains the ~name expanded version of SITELIB, to be used
1995  *      in programs that are not prepared to deal with ~ expansion at run-time.
1996  */
1997 #define SITELIB "$sitelib"              /**/
1998 #define SITELIB_EXP "$sitelibexp"               /**/
1999
2000 /* STARTPERL:
2001  *      This variable contains the string to put in front of a perl
2002  *      script to make sure (one hopes) that it runs with perl and not
2003  *      some shell.
2004  */
2005 #define STARTPERL "$startperl"          /**/
2006
2007 /* USE_PERLIO:
2008  *      This symbol, if defined, indicates that the PerlIO abstraction should
2009  *      be used throughout.  If not defined, stdio should be
2010  *      used in a fully backward compatible manner.
2011  */
2012 #$useperlio     USE_PERLIO              /**/
2013
2014 /* HAS_GETHOST_PROTOS:
2015  *      This symbol, if defined, indicates that <netdb.h> includes
2016  *      prototypes for gethostent(), gethostbyname(), and
2017  *      gethostbyaddr().  Otherwise, it is up to the program to guess
2018  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2019  */
2020 #$d_gethostprotos       HAS_GETHOST_PROTOS      /**/
2021
2022 /* HAS_GETNET_PROTOS:
2023  *      This symbol, if defined, indicates that <netdb.h> includes
2024  *      prototypes for getnetent(), getnetbyname(), and
2025  *      getnetbyaddr().  Otherwise, it is up to the program to guess
2026  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2027  */
2028 #$d_getnetprotos        HAS_GETNET_PROTOS       /**/
2029
2030 /* HAS_GETPROTO_PROTOS:
2031  *      This symbol, if defined, indicates that <netdb.h> includes
2032  *      prototypes for getprotoent(), getprotobyname(), and
2033  *      getprotobyaddr().  Otherwise, it is up to the program to guess
2034  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2035  */
2036 #$d_getprotoprotos      HAS_GETPROTO_PROTOS     /**/
2037
2038 /* HAS_GETSERV_PROTOS:
2039  *      This symbol, if defined, indicates that <netdb.h> includes
2040  *      prototypes for getservent(), getservbyname(), and
2041  *      getservbyaddr().  Otherwise, it is up to the program to guess
2042  *      them.  See netdbtype.U for probing for various Netdb_xxx_t types.
2043  */
2044 #$d_getservprotos       HAS_GETSERV_PROTOS      /**/
2045
2046 /* Netdb_host_t:
2047  *      This symbol holds the type used for the 1st argument
2048  *      to gethostbyaddr().
2049  */
2050 /* Netdb_hlen_t:
2051  *      This symbol holds the type used for the 2nd argument
2052  *      to gethostbyaddr().
2053  */
2054 /* Netdb_name_t:
2055  *      This symbol holds the type used for the argument to
2056  *      gethostbyname().
2057  */
2058 /* Netdb_net_t:
2059  *      This symbol holds the type used for the 1st argument to
2060  *      getnetbyaddr().
2061  */
2062 #define Netdb_host_t            $netdb_host_type /**/
2063 #define Netdb_hlen_t            $netdb_hlen_type /**/
2064 #define Netdb_name_t            $netdb_name_type /**/
2065 #define Netdb_net_t             $netdb_net_type /**/
2066
2067 /* Select_fd_set_t:
2068  *      This symbol holds the type used for the 2nd, 3rd, and 4th
2069  *      arguments to select.  Usually, this is 'fd_set *', if HAS_FD_SET
2070  *      is defined, and 'int *' otherwise.  This is only useful if you 
2071  *      have select(), of course.
2072  */
2073 #define Select_fd_set_t         $selecttype     /**/
2074
2075 /* ARCHNAME:
2076  *      This symbol holds a string representing the architecture name.
2077  *      It may be used to construct an architecture-dependant pathname
2078  *      where library files may be held under a private library, for
2079  *      instance.
2080  */
2081 #define ARCHNAME "$archname"            /**/
2082
2083 /* I_MACH_CTHREADS:
2084  *    This symbol, if defined, indicates to the C program that it should
2085  *    include <mach/cthreads.h>.
2086  */
2087 #$i_machcthreads        I_MACH_CTHREADS         /**/
2088
2089 /* I_PTHREAD:
2090  *    This symbol, if defined, indicates to the C program that it should
2091  *    include <pthread.h>.
2092  */
2093 #$i_pthread   I_PTHREAD               /**/
2094
2095 /* HAS_PTHREAD_YIELD:
2096  *      This symbol, if defined, indicates that the pthread_yield 
2097  *      routine is available to yield the execution of the current
2098  *      thread.
2099  */
2100 /* HAS_SCHED_YIELD:
2101  *      This symbol, if defined, indicates that the sched_yield
2102  *      routine is available to yield the execution of the current
2103  *      thread.
2104  */
2105 #$d_pthread_yield HAS_PTHREAD_YIELD     /**/
2106 #$d_sched_yield HAS_SCHED_YIELD /**/
2107
2108 /* PTHREADS_CREATED_JOINABLE:
2109  *      This symbol, if defined, indicates that pthreads are created
2110  *      in the joinable (aka undetached) state.
2111  */
2112 #$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
2113
2114 /* USE_THREADS:
2115  *      This symbol, if defined, indicates that Perl should
2116  *      be built to use threads.
2117  */
2118 /* OLD_PTHREADS_API:
2119  *      This symbol, if defined, indicates that Perl should
2120  *      be built to use the old draft POSIX threads API.
2121  */
2122 #$usethreads    USE_THREADS             /**/
2123 #$d_oldpthreads OLD_PTHREADS_API                /**/
2124
2125 /* Time_t:
2126  *      This symbol holds the type returned by time(). It can be long,
2127  *      or time_t on BSD sites (in which case <sys/types.h> should be
2128  *      included).
2129  */
2130 #define Time_t $timetype                /* Time type */
2131
2132 /* HAS_TIMES:
2133  *      This symbol, if defined, indicates that the times() routine exists.
2134  *      Note that this became obsolete on some systems (SUNOS), which now
2135  * use getrusage(). It may be necessary to include <sys/times.h>.
2136  */
2137 #$d_times HAS_TIMES             /**/
2138
2139 /* Fpos_t:
2140  *      This symbol holds the type used to declare file positions in libc.
2141  *      It can be fpos_t, long, uint, etc... It may be necessary to include
2142  *      <sys/types.h> to get any typedef'ed information.
2143  */
2144 #define Fpos_t $fpostype                /* File position type */
2145
2146 /* Gid_t:
2147  *      This symbol holds the return type of getgid() and the type of
2148  *      argument to setrgid() and related functions.  Typically,
2149  *      it is the type of group ids in the kernel. It can be int, ushort,
2150  *      uid_t, etc... It may be necessary to include <sys/types.h> to get
2151  *      any typedef'ed information.
2152  */
2153 #define Gid_t $gidtype          /* Type for getgid(), etc... */
2154
2155 /* Off_t:
2156  *      This symbol holds the type used to declare offsets in the kernel.
2157  *      It can be int, long, off_t, etc... It may be necessary to include
2158  *      <sys/types.h> to get any typedef'ed information.
2159  */
2160 #define Off_t $lseektype                /* <offset> type */
2161
2162 /* Mode_t:
2163  *      This symbol holds the type used to declare file modes 
2164  *      for systems calls.  It is usually mode_t, but may be
2165  *      int or unsigned short.  It may be necessary to include <sys/types.h>
2166  *      to get any typedef'ed information.
2167  */
2168 #define Mode_t $modetype         /* file mode parameter for system calls */
2169
2170 /* Pid_t:
2171  *      This symbol holds the type used to declare process ids in the kernel.
2172  *      It can be int, uint, pid_t, etc... It may be necessary to include
2173  *      <sys/types.h> to get any typedef'ed information.
2174  */
2175 #define Pid_t $pidtype          /* PID type */
2176
2177 /* Size_t:
2178  *      This symbol holds the type used to declare length parameters
2179  *      for string functions.  It is usually size_t, but may be
2180  *      unsigned long, int, etc.  It may be necessary to include
2181  *      <sys/types.h> to get any typedef'ed information.
2182  */
2183 #define Size_t $sizetype         /* length paramater for string functions */
2184
2185 /* Uid_t:
2186  *      This symbol holds the type used to declare user ids in the kernel.
2187  *      It can be int, ushort, uid_t, etc... It may be necessary to include
2188  *      <sys/types.h> to get any typedef'ed information.
2189  */
2190 #define Uid_t $uidtype          /* UID type */
2191
2192 /* I_LIBUTIL:
2193  *      This symbol, if defined, indicates that <libutil.h> exists and
2194  *      should be included.
2195  */
2196 #$i_libutil     I_LIBUTIL               /**/
2197
2198 #endif
2199 !GROK!THIS!