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