perl5.000 patch.0g: [various portability fixes, and use latest metaconfig for Configure]
[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!' -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.2 1993/08/24 12:13:20 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 /* ARCHLIB:
46  *      This variable, if defined, holds the name of the directory in
47  *      which the user wants to put architecture-dependent public
48  *      library files for $package.  It is most often a local directory
49  *      such as /usr/local/lib.  Programs using this variable must be
50  *      prepared to deal with filename expansion.  If ARCHLIB is the
51  *      same as PRIVLIB, it is not defined, since presumably the
52  *      program already searches PRIVLIB.
53  */
54 #$d_archlib ARCHLIB "$archlib"          /**/
55
56 /* BIN:
57  *      This symbol holds the path of the bin directory where the package will
58  *      be installed. Program must be prepared to deal with ~name substitution.
59  */
60 #define BIN "$bin"      /**/
61
62 /* BYTEORDER:
63  *      This symbol hold the hexadecimal constant defined in byteorder,
64  *      i.e. 0x1234 or 0x4321, etc...
65  */
66 #define BYTEORDER 0x$byteorder  /* large digits for MSB */
67
68 /* CAT2:
69  *      This macro catenates 2 tokens together.
70  */
71 /* STRINGIFY:
72  *      This macro surrounds its token with double quotes.
73  */
74 #if $cpp_stuff == 1
75 #define CAT2(a,b)a/**/b
76 #define CAT3(a,b,c)a/**/b/**/c
77 #define CAT4(a,b,c,d)a/**/b/**/c/**/d
78 #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
79 #define STRINGIFY(a)"a"
80                 /* If you can get stringification with catify, tell me how! */
81 #endif
82 #if $cpp_stuff == 42
83 #define CAT2(a,b)a ## b
84 #define CAT3(a,b,c)a ## b ## c
85 #define CAT4(a,b,c,d)a ## b ## c ## d
86 #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
87 #define StGiFy(a)# a
88 #define STRINGIFY(a)StGiFy(a)
89 #define SCAT2(a,b)StGiFy(a) StGiFy(b)
90 #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
91 #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
92 #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
93 #endif
94 #ifndef CAT2
95 #include "Bletch: How does this C preprocessor catenate tokens?"
96 #endif
97
98 /* CPPSTDIN:
99  *      This symbol contains the first part of the string which will invoke
100  *      the C preprocessor on the standard input and produce to standard
101  *      output.  Typical value of "cc -E" or "/lib/cpp", but it can also
102  *      call a wrapper. See CPPRUN.
103  */
104 /* CPPMINUS:
105  *      This symbol contains the second part of the string which will invoke
106  *      the C preprocessor on the standard input and produce to standard
107  *      output.  This symbol will have the value "-" if CPPSTDIN needs a minus
108  *      to specify standard input, otherwise the value is "".
109  */
110 #define CPPSTDIN "$cppstdin"
111 #define CPPMINUS "$cppminus"
112
113 /* HAS_ALARM:
114  *      This symbol, if defined, indicates that the alarm routine is
115  *      available.
116  */
117 #$d_alarm HAS_ALARM             /**/
118
119 /* HASATTRIBUTE:
120  *      This symbol indicates the C compiler can check for function attributes,
121  *      such as printf formats. This is normally only supported by GNU cc.
122  */
123 #$d_attribut HASATTRIBUTE       /**/
124 #ifndef HASATTRIBUTE
125 #define __attribute__(_arg_)
126 #endif
127
128 /* HAS_BCMP:
129  *      This symbol is defined if the bcmp() routine is available to
130  *      compare blocks of memory.
131  */
132 #$d_bcmp HAS_BCMP       /**/
133
134 /* HAS_BCOPY:
135  *      This symbol is defined if the bcopy() routine is available to
136  *      copy blocks of memory.
137  */
138 #$d_bcopy HAS_BCOPY     /**/
139
140 /* HAS_BZERO:
141  *      This symbol is defined if the bzero() routine is available to
142  *      set a memory block to 0.
143  */
144 #$d_bzero HAS_BZERO     /**/
145
146 /* CASTI32:
147  *      This symbol is defined if the C compiler can cast negative
148  *      or large floating point numbers to 32-bit ints.
149  */
150 #$d_casti32     CASTI32         /**/
151
152 /* CASTNEGFLOAT:
153  *      This symbol is defined if the C compiler can cast negative
154  *      numbers to unsigned longs, ints and shorts.
155  */
156 /* CASTFLAGS:
157  *      This symbol contains flags that say what difficulties the compiler
158  *      has casting odd floating values to unsigned long:
159  *              0 = ok
160  *              1 = couldn't cast < 0
161  *              2 = couldn't cast >= 0x80000000
162  */
163 #$d_castneg     CASTNEGFLOAT            /**/
164 #define CASTFLAGS $castflags            /**/
165
166 /* HAS_CHOWN:
167  *      This symbol, if defined, indicates that the chown routine is
168  *      available.
169  */
170 #$d_chown HAS_CHOWN             /**/
171
172 /* HAS_CHROOT:
173  *      This symbol, if defined, indicates that the chroot routine is
174  *      available.
175  */
176 #$d_chroot HAS_CHROOT           /**/
177
178 /* HAS_CHSIZE:
179  *      This symbol, if defined, indicates that the chsize routine is available
180  *      to truncate files.  You might need a -lx to get this routine.
181  */
182 #$d_chsize      HAS_CHSIZE              /**/
183
184 /* VOID_CLOSEDIR:
185  *      This symbol, if defined, indicates that the closedir() routine
186  *      does not return a value.
187  */
188 #$d_void_closedir VOID_CLOSEDIR         /**/
189
190 /* HASCONST:
191  *      This symbol, if defined, indicates that this C compiler knows about
192  *      the const type. There is no need to actually test for that symbol
193  *      within your programs. The mere use of the "const" keyword will
194  *      trigger the necessary tests.
195  */
196 #$d_const HASCONST      /**/
197 #ifndef HASCONST
198 #define const
199 #endif
200
201 /* HAS_CRYPT:
202  *      This symbol, if defined, indicates that the crypt routine is available
203  *      to encrypt passwords and the like.
204  */
205 #$d_crypt HAS_CRYPT             /**/
206
207 /* CSH:
208  *      This symbol, if defined, indicates that the C-shell exists.
209  *      If defined, contains the full pathname of csh.
210  */
211 #$d_csh CSH "$csh"              /**/
212
213 /* HAS_CUSERID:
214  *      This symbol, if defined, indicates that the cuserid routine is
215  *      available to get character login names.
216  */
217 #$d_cuserid HAS_CUSERID         /**/
218
219 /* HAS_DBL_DIG:
220  *      This symbol, if defined, indicates that this system's <float.h>
221  *      or <limits.h> defines the symbol DBL_DIG, which is the number
222  *      of significant digits in a double precision number.  If this
223  *      symbol is not defined, a guess of 15 is usually pretty good.
224  */
225 #$d_dbl_dig HAS_DBL_DIG         /* */
226
227 /* HAS_DIFFTIME:
228  *      This symbol, if defined, indicates that the difftime routine is
229  *      available.
230  */
231 #$d_difftime HAS_DIFFTIME               /**/
232
233 /* HAS_DLERROR:
234  *      This symbol, if defined, indicates that the dlerror routine is
235  *      available to return a string describing the last error that
236  *      occurred from a call to dlopen(), dlclose() or dlsym().
237  */
238 #$d_dlerror HAS_DLERROR /**/
239
240 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
241  *      This symbol, if defined, indicates that the bug that prevents
242  *      setuid scripts from being secure is not present in this kernel.
243  */
244 /* DOSUID:
245  *      This symbol, if defined, indicates that the C program should
246  *      check the script that it is executing for setuid/setgid bits, and
247  *      attempt to emulate setuid/setgid on systems that have disabled
248  *      setuid #! scripts because the kernel can't do it securely.
249  *      It is up to the package designer to make sure that this emulation
250  *      is done securely.  Among other things, it should do an fstat on
251  *      the script it just opened to make sure it really is a setuid/setgid
252  *      script, it should make sure the arguments passed correspond exactly
253  *      to the argument on the #! line, and it should not trust any
254  *      subprocesses to which it must pass the filename rather than the
255  *      file descriptor of the script to be executed.
256  */
257 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW      /**/
258 #$d_dosuid DOSUID               /**/
259
260 /* HAS_DREM:
261  *      This symbol, if defined, indicates that the drem routine is
262  *      available.  This routine is roughly the same as fmod, i.e. it
263  *      computes the remainder r=x-n*y, where n=rint(x/y), whereas fmod
264  *      uses n=trunc(x/y).
265  */
266 #$d_drem HAS_DREM               /**/
267
268 /* HAS_DUP2:
269  *      This symbol, if defined, indicates that the dup2 routine is
270  *      available to duplicate file descriptors.
271  */
272 #$d_dup2 HAS_DUP2       /**/
273
274 /* HAS_FCHMOD:
275  *      This symbol, if defined, indicates that the fchmod routine is available
276  *      to change mode of opened files.  If unavailable, use chmod().
277  */
278 #$d_fchmod HAS_FCHMOD           /**/
279
280 /* HAS_FCHOWN:
281  *      This symbol, if defined, indicates that the fchown routine is available
282  *      to change ownership of opened files.  If unavailable, use chown().
283  */
284 #$d_fchown HAS_FCHOWN           /**/
285
286 /* HAS_FCNTL:
287  *      This symbol, if defined, indicates to the C program that
288  *      the fcntl() function exists.
289  */
290 #$d_fcntl HAS_FCNTL             /**/
291
292 /* HAS_FGETPOS:
293  *      This symbol, if defined, indicates that the fgetpos routine is
294  *      available to get the file position indicator, similar to ftell().
295  */
296 #$d_fgetpos HAS_FGETPOS /**/
297
298 /* FLEXFILENAMES:
299  *      This symbol, if defined, indicates that the system supports filenames
300  *      longer than 14 characters.
301  */
302 #$d_flexfnam    FLEXFILENAMES           /**/
303
304 /* HAS_FLOCK:
305  *      This symbol, if defined, indicates that the flock routine is
306  *      available to do file locking.
307  */
308 #$d_flock HAS_FLOCK             /**/
309
310 /* HAS_FMOD:
311  *      This symbol, if defined, indicates that the fmod routine is
312  *      available to compute the remainder r=x-n*y where n=trunc(x/y).
313  */
314 #$d_fmod HAS_FMOD               /**/
315
316 /* HAS_FORK:
317  *      This symbol, if defined, indicates that the fork routine is
318  *      available.
319  */
320 #$d_fork HAS_FORK               /**/
321
322 /* HAS_FSETPOS:
323  *      This symbol, if defined, indicates that the fsetpos routine is
324  *      available to set the file position indicator, similar to fseek().
325  */
326 #$d_fsetpos HAS_FSETPOS /**/
327
328 /* Gconvert:
329  *      This preprocessor macro is defined to convert a floating point
330  *      number to a string without a trailing decimal point.  This
331  *      emulates the behavior of sprintf("%g"), but is sometimes much more
332  *      efficient.  If gconvert() is not available, but gcvt() drops the
333  *      trailing decimal point, then gcvt() is used.  If all else fails,
334  *      a macro using sprintf("%g") is used. Arguments for the Gconvert
335  *      macro are: value, number of digits, whether trailing zeros should
336  *      be retained, and the output buffer.
337  */
338 #define Gconvert(x,n,t,b) $d_Gconvert
339
340 /* HAS_GETGROUPS:
341  *      This symbol, if defined, indicates that the getgroups() routine is
342  *      available to get the list of process groups.  If unavailable, multiple
343  *      groups are probably not supported.
344  */
345 #$d_getgrps HAS_GETGROUPS               /**/
346
347 /* HAS_GETHOSTENT:
348  *      This symbol, if defined, indicates that the gethostent routine is
349  *      available to lookup host names in some data base or other.
350  */
351 #$d_gethent HAS_GETHOSTENT              /**/
352
353 /* HAS_UNAME:
354  *      This symbol, if defined, indicates that the C program may use the
355  *      uname() routine to derive the host name.  See also HAS_GETHOSTNAME
356  *      and PHOSTNAME.
357  */
358 #$d_uname HAS_UNAME             /**/
359
360 /* HAS_GETLOGIN:
361  *      This symbol, if defined, indicates that the getlogin routine is
362  *      available to get the login name.
363  */
364 #$d_getlogin HAS_GETLOGIN               /**/
365
366 /* HAS_GETPGRP:
367  *      This symbol, if defined, indicates that the getpgrp routine is
368  *      available to get the current process group.
369  */
370 #$d_getpgrp HAS_GETPGRP         /**/
371
372 /* HAS_GETPGRP2:
373  *      This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
374  *      routine is available to get the current process group.
375  */
376 #$d_getpgrp2 HAS_GETPGRP2               /**/
377
378 /* HAS_GETPPID:
379  *      This symbol, if defined, indicates that the getppid routine is
380  *      available to get the parent process ID.
381  */
382 #$d_getppid HAS_GETPPID         /**/
383
384 /* HAS_GETPRIORITY:
385  *      This symbol, if defined, indicates that the getpriority routine is
386  *      available to get a process's priority.
387  */
388 #$d_getprior HAS_GETPRIORITY            /**/
389
390 /* HAS_GROUP:
391  *      This symbol, if defined, indicates that the group routine is
392  *      available.
393  */
394 #$d_group HAS_GROUP             /**/
395
396 /* HAS_HTONL:
397  *      This symbol, if defined, indicates that the htonl() routine (and
398  *      friends htons() ntohl() ntohs()) are available to do network
399  *      order byte swapping.
400  */
401 /* HAS_HTONS:
402  *      This symbol, if defined, indicates that the htons() routine (and
403  *      friends htonl() ntohl() ntohs()) are available to do network
404  *      order byte swapping.
405  */
406 /* HAS_NTOHL:
407  *      This symbol, if defined, indicates that the ntohl() routine (and
408  *      friends htonl() htons() ntohs()) are available to do network
409  *      order byte swapping.
410  */
411 /* HAS_NTOHS:
412  *      This symbol, if defined, indicates that the ntohs() routine (and
413  *      friends htonl() htons() ntohl()) are available to do network
414  *      order byte swapping.
415  */
416 #$d_htonl HAS_HTONL             /**/
417 #$d_htonl HAS_HTONS             /**/
418 #$d_htonl HAS_NTOHL             /**/
419 #$d_htonl HAS_NTOHS             /**/
420
421 /* HAS_ISASCII:
422  *      This manifest constant lets the C program know that isascii 
423  *      is available.
424  */
425 #$d_isascii HAS_ISASCII         /**/
426
427 /* HAS_KILLPG:
428  *      This symbol, if defined, indicates that the killpg routine is available
429  *      to kill process groups.  If unavailable, you probably should use kill
430  *      with a negative process number.
431  */
432 #$d_killpg HAS_KILLPG   /**/
433
434 /* HAS_LINK:
435  *      This symbol, if defined, indicates that the link routine is
436  *      available to create hard links.
437  */
438 #$d_link HAS_LINK       /**/
439
440 /* USE_LINUX_STDIO:
441  *      This symbol is defined if this system has a FILE structure declaring
442  *      _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
443  */
444 #$d_linuxstd USE_LINUX_STDIO    /**/
445
446 /* HAS_LOCALECONV:
447  *      This symbol, if defined, indicates that the localeconv routine is
448  *      available for numeric and monetary formatting conventions.
449  */
450 #$d_locconv HAS_LOCALECONV      /**/
451
452 /* HAS_LOCKF:
453  *      This symbol, if defined, indicates that the lockf routine is
454  *      available to do file locking.
455  */
456 #$d_lockf HAS_LOCKF             /**/
457
458 /* HAS_LSTAT:
459  *      This symbol, if defined, indicates that the lstat routine is
460  *      available to do file stats on symbolic links.
461  */
462 #$d_lstat HAS_LSTAT             /**/
463
464 /* HAS_MBLEN:
465  *      This symbol, if defined, indicates that the mblen routine is available
466  *      to find the number of bytes in a multibye character.
467  */
468 #$d_mblen HAS_MBLEN             /**/
469
470 /* HAS_MBSTOWCS:
471  *      This symbol, if defined, indicates that the mbstowcs routine is
472  *      available to covert a multibyte string into a wide character string.
473  */
474 #$d_mbstowcs    HAS_MBSTOWCS            /**/
475
476 /* HAS_MBTOWC:
477  *      This symbol, if defined, indicates that the mbtowc routine is available
478  *      to covert a multibyte to a wide character.
479  */
480 #$d_mbtowc HAS_MBTOWC           /**/
481
482 /* HAS_MEMCMP:
483  *      This symbol, if defined, indicates that the memcmp routine is available
484  *      to compare blocks of memory.
485  */
486 #$d_memcmp HAS_MEMCMP   /**/
487
488 /* HAS_MEMCPY:
489  *      This symbol, if defined, indicates that the memcpy routine is available
490  *      to copy blocks of memory.
491  */
492 #$d_memcpy HAS_MEMCPY   /**/
493
494 /* HAS_MEMMOVE:
495  *      This symbol, if defined, indicates that the memmove routine is available
496  *      to copy potentially overlapping blocks of memory. This should be used
497  *      only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
498  *      own version.
499  */
500 #$d_memmove HAS_MEMMOVE /**/
501
502 /* HAS_MEMSET:
503  *      This symbol, if defined, indicates that the memset routine is available
504  *      to set blocks of memory.
505  */
506 #$d_memset HAS_MEMSET   /**/
507
508 /* HAS_MKDIR:
509  *      This symbol, if defined, indicates that the mkdir routine is available
510  *      to create directories.  Otherwise you should fork off a new process to
511  *      exec /bin/mkdir.
512  */
513 #$d_mkdir HAS_MKDIR             /**/
514
515 /* HAS_MKFIFO:
516  *      This symbol, if defined, indicates that the mkfifo routine is
517  *      available to create FIFOs. Otherwise, mknod should be able to
518  *      do it for you. However, if mkfifo is there, mknod might require
519  *      super-user privileges which mkfifo will not.
520  */
521 #$d_mkfifo HAS_MKFIFO           /**/
522
523 /* HAS_MKTIME:
524  *      This symbol, if defined, indicates that the mktime routine is
525  *      available.
526  */
527 #$d_mktime HAS_MKTIME           /**/
528
529 /* HAS_MSG:
530  *      This symbol, if defined, indicates that the entire msg*(2) library is
531  *      supported (IPC mechanism based on message queues).
532  */
533 #$d_msg HAS_MSG         /**/
534
535 /* HAS_NICE:
536  *      This symbol, if defined, indicates that the nice routine is
537  *      available.
538  */
539 #$d_nice HAS_NICE               /**/
540
541 /* HAS_OPEN3:
542  *      This manifest constant lets the C program know that the three
543  *      argument form of open(2) is available.
544  */
545 #$d_open3 HAS_OPEN3             /**/
546
547 /* HAS_PASSWD:
548  *      This symbol, if defined, indicates that the passwd routine is
549  *      available.
550  */
551 #$d_passwd HAS_PASSWD           /**/
552
553 /* HAS_PATHCONF:
554  *      This symbol, if defined, indicates that pathconf() is available
555  *      to determine file-system related limits and options associated
556  *      with a given filename.
557  */
558 /* HAS_FPATHCONF:
559  *      This symbol, if defined, indicates that pathconf() is available
560  *      to determine file-system related limits and options associated
561  *      with a given open file descriptor.
562  */
563 #$d_pathconf HAS_PATHCONF               /**/
564 #$d_fpathconf HAS_FPATHCONF             /**/
565
566 /* HAS_PAUSE:
567  *      This symbol, if defined, indicates that the pause routine is
568  *      available to suspend a process until a signal is received.
569  */
570 #$d_pause HAS_PAUSE             /**/
571
572 /* HAS_PIPE:
573  *      This symbol, if defined, indicates that the pipe routine is
574  *      available to create an inter-process channel.
575  */
576 #$d_pipe HAS_PIPE               /**/
577
578 /* HAS_READDIR:
579  *      This symbol, if defined, indicates that the readdir routine is
580  *      available to read directory entries. You may have to include
581  *      <dirent.h>. See I_DIRENT.
582  */
583 #$d_readdir HAS_READDIR         /**/
584
585 /* HAS_SEEKDIR:
586  *      This symbol, if defined, indicates that the seekdir routine is
587  *      available. You may have to include <dirent.h>. See I_DIRENT.
588  */
589 #$d_seekdir HAS_SEEKDIR         /**/
590
591 /* HAS_TELLDIR:
592  *      This symbol, if defined, indicates that the telldir routine is
593  *      available. You may have to include <dirent.h>. See I_DIRENT.
594  */
595 #$d_telldir HAS_TELLDIR         /**/
596
597 /* HAS_REWINDDIR:
598  *      This symbol, if defined, indicates that the rewinddir routine is
599  *      available. You may have to include <dirent.h>. See I_DIRENT.
600  */
601 #$d_rewinddir HAS_REWINDDIR             /**/
602
603 /* HAS_READLINK:
604  *      This symbol, if defined, indicates that the readlink routine is
605  *      available to read the value of a symbolic link.
606  */
607 #$d_readlink HAS_READLINK               /**/
608
609 /* HAS_RENAME:
610  *      This symbol, if defined, indicates that the rename routine is available
611  *      to rename files.  Otherwise you should do the unlink(), link(), unlink()
612  *      trick.
613  */
614 #$d_rename HAS_RENAME   /**/
615
616 /* HAS_RMDIR:
617  *      This symbol, if defined, indicates that the rmdir routine is
618  *      available to remove directories. Otherwise you should fork off a
619  *      new process to exec /bin/rmdir.
620  */
621 #$d_rmdir HAS_RMDIR             /**/
622
623 /* HAS_SAFE_BCOPY:
624  *      This symbol, if defined, indicates that the bcopy routine is available
625  *      to copy potentially overlapping memory blocks. Otherwise you should
626  *      probably use memmove() or memcpy(). If neither is defined, roll your
627  *      own version.
628  */
629 #$d_safebcpy HAS_SAFE_BCOPY     /**/
630
631 /* HAS_SAFE_MEMCPY:
632  *      This symbol, if defined, indicates that the memcpy routine is available
633  *      to copy potentially overlapping memory blocks. Otherwise you should
634  *      probably use memmove() or memcpy(). If neither is defined, roll your
635  *      own version.
636  */
637 #$d_safemcpy HAS_SAFE_MEMCPY    /**/
638
639 /* HAS_SELECT:
640  *      This symbol, if defined, indicates that the select routine is
641  *      available to select active file descriptors. If the timeout field
642  *      is used, <sys/time.h> may need to be included.
643  */
644 #$d_select HAS_SELECT   /**/
645
646 /* HAS_SEM:
647  *      This symbol, if defined, indicates that the entire sem*(2) library is
648  *      supported.
649  */
650 #$d_sem HAS_SEM         /**/
651
652 /* HAS_SETEGID:
653  *      This symbol, if defined, indicates that the setegid routine is available
654  *      to change the effective gid of the current program.
655  */
656 #$d_setegid HAS_SETEGID         /**/
657
658 /* HAS_SETEUID:
659  *      This symbol, if defined, indicates that the seteuid routine is available
660  *      to change the effective uid of the current program.
661  */
662 #$d_seteuid HAS_SETEUID         /**/
663
664 /* HAS_SETLINEBUF:
665  *      This symbol, if defined, indicates that the setlinebuf routine is
666  *      available to change stderr or stdout from block-buffered or unbuffered
667  *      to a line-buffered mode.
668  */
669 #$d_setlinebuf HAS_SETLINEBUF           /**/
670
671 /* HAS_SETLOCALE:
672  *      This symbol, if defined, indicates that the setlocale routine is
673  *      available to handle locale-specific ctype implementations.
674  */
675 #$d_setlocale HAS_SETLOCALE     /**/
676
677 /* HAS_SETPGID:
678  *      This symbol, if defined, indicates that the setpgid routine is
679  *      available to set process group ID.
680  */
681 #$d_setpgid HAS_SETPGID /**/
682
683 /* HAS_SETPGRP:
684  *      This symbol, if defined, indicates that the setpgrp routine is
685  *      available to set the current process group.
686  */
687 /* USE_BSDPGRP:
688  *      This symbol, if defined, indicates that the BSD notion of process
689  *      group is to be used. For instance, you have to say setpgrp(pid, pgrp)
690  *      instead of the USG setpgrp().
691  */
692 #$d_setpgrp HAS_SETPGRP         /**/
693 #$d_bsdpgrp USE_BSDPGRP         /**/
694
695 /* HAS_SETPGRP2:
696  *      This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
697  *      routine is available to set the current process group.
698  */
699 #$d_setpgrp2 HAS_SETPGRP2               /**/
700
701 /* HAS_SETPRIORITY:
702  *      This symbol, if defined, indicates that the setpriority routine is
703  *      available to set a process's priority.
704  */
705 #$d_setprior HAS_SETPRIORITY            /**/
706
707 /* HAS_SETREGID:
708  *      This symbol, if defined, indicates that the setregid routine is
709  *      available to change the real and effective gid of the current
710  *      process.
711  */
712 /* HAS_SETRESGID:
713  *      This symbol, if defined, indicates that the setresgid routine is
714  *      available to change the real, effective and saved gid of the current
715  *      process.
716  */
717 #$d_setregid HAS_SETREGID               /**/
718 #$d_setresgid HAS_SETRESGID             /**/
719
720 /* HAS_SETREUID:
721  *      This symbol, if defined, indicates that the setreuid routine is
722  *      available to change the real and effective uid of the current
723  *      process.
724  */
725 /* HAS_SETRESUID:
726  *      This symbol, if defined, indicates that the setresuid routine is
727  *      available to change the real, effective and saved uid of the current
728  *      process.
729  */
730 #$d_setreuid HAS_SETREUID               /**/
731 #$d_setresuid HAS_SETRESUID             /**/
732
733 /* HAS_SETRGID:
734  *      This symbol, if defined, indicates that the setrgid routine is available
735  *      to change the real gid of the current program.
736  */
737 #$d_setrgid HAS_SETRGID         /**/
738
739 /* HAS_SETRUID:
740  *      This symbol, if defined, indicates that the setruid routine is available
741  *      to change the real uid of the current program.
742  */
743 #$d_setruid HAS_SETRUID         /**/
744
745 /* HAS_SETSID:
746  *      This symbol, if defined, indicates that the setsid routine is
747  *      available to set the process group ID.
748  */
749 #$d_setsid HAS_SETSID   /**/
750
751 /* HAS_SHM:
752  *      This symbol, if defined, indicates that the entire shm*(2) library is
753  *      supported.
754  */
755 #$d_shm HAS_SHM         /**/
756
757 /* Shmat_t:
758  *      This symbol holds the return type of the shmat() system call.
759  *      Usually set to 'void *' or 'char *'.
760  */
761 /* HAS_SHMAT_PROTOTYPE:
762  *      This symbol, if defined, indicates that the sys/shm.h includes
763  *      a prototype for shmat().  Otherwise, it is up to the program to
764  *      guess one.  Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
765  *      but not always right so it should be emitted by the program only
766  *      when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
767  */
768 #define Shmat_t $shmattype      /**/
769 #$d_shmatprototype HAS_SHMAT_PROTOTYPE  /**/
770
771 /* HAS_SOCKET:
772  *      This symbol, if defined, indicates that the BSD socket interface is
773  *      supported.
774  */
775 /* HAS_SOCKETPAIR:
776  *      This symbol, if defined, indicates that the BSD socketpair() call is
777  *      supported.
778  */
779 #$d_socket HAS_SOCKET           /**/
780 #$d_sockpair HAS_SOCKETPAIR     /**/
781
782 /* USE_STAT_BLOCKS:
783  *      This symbol is defined if this system has a stat structure declaring
784  *      st_blksize and st_blocks.
785  */
786 #$d_statblks USE_STAT_BLOCKS    /**/
787
788 /* USE_STD_STDIO:
789  *      This symbol is defined if this system has a FILE structure declaring
790  *      _ptr and _cnt in stdio.h.
791  */
792 #$d_stdstdio USE_STD_STDIO      /**/
793
794 /* HAS_STRCHR:
795  *      This symbol is defined to indicate that the strchr()/strrchr()
796  *      functions are available for string searching. If not, try the
797  *      index()/rindex() pair.
798  */
799 /* HAS_INDEX:
800  *      This symbol is defined to indicate that the index()/rindex()
801  *      functions are available for string searching.
802  */
803 #$d_strchr HAS_STRCHR   /**/
804 #$d_index HAS_INDEX     /**/
805
806 /* HAS_STRCOLL:
807  *      This symbol, if defined, indicates that the strcoll routine is
808  *      available to compare strings using collating information.
809  */
810 #$d_strcoll HAS_STRCOLL /**/
811
812 /* USE_STRUCT_COPY:
813  *      This symbol, if defined, indicates that this C compiler knows how
814  *      to copy structures.  If undefined, you'll need to use a block copy
815  *      routine of some sort instead.
816  */
817 #$d_strctcpy    USE_STRUCT_COPY /**/
818
819 /* HAS_STRERROR:
820  *      This symbol, if defined, indicates that the strerror routine is
821  *      available to translate error numbers to strings. See the writeup
822  *      of Strerror() in this file before you try to define your own.
823  */
824 /* HAS_SYS_ERRLIST:
825  *      This symbol, if defined, indicates that the sys_errlist array is
826  *      available to translate error numbers to strings. The extern int
827  *      sys_nerr gives the size of that table.
828  */
829 /* Strerror:
830  *      This preprocessor symbol is defined as a macro if strerror() is
831  *      not available to translate error numbers to strings but sys_errlist[]
832  *      array is there.
833  */
834 #$d_strerror HAS_STRERROR               /**/
835 #$d_syserrlst HAS_SYS_ERRLIST   /**/
836 #define Strerror(e) $d_strerrm
837
838 /* HAS_STRXFRM:
839  *      This symbol, if defined, indicates that the strxfrm() routine is
840  *      available to transform strings.
841  */
842 #$d_strxfrm HAS_STRXFRM /**/
843
844 /* HAS_SYMLINK:
845  *      This symbol, if defined, indicates that the symlink routine is available
846  *      to create symbolic links.
847  */
848 #$d_symlink HAS_SYMLINK /**/
849
850 /* HAS_SYSCALL:
851  *      This symbol, if defined, indicates that the syscall routine is
852  *      available to call arbitrary system calls. If undefined, that's tough.
853  */
854 #$d_syscall HAS_SYSCALL /**/
855
856 /* HAS_SYSCONF:
857  *      This symbol, if defined, indicates that sysconf() is available
858  *      to determine system related limits and options.
859  */
860 #$d_sysconf HAS_SYSCONF /**/
861
862 /* HAS_SYSTEM:
863  *      This symbol, if defined, indicates that the system routine is
864  *      available to issue a shell command.
865  */
866 #$d_system HAS_SYSTEM   /**/
867
868 /* HAS_TCGETPGRP:
869  *      This symbol, if defined, indicates that the tcgetpgrp routine is
870  *      available to get foreground process group ID.
871  */
872 #$d_tcgetpgrp HAS_TCGETPGRP             /**/
873
874 /* HAS_TCSETPGRP:
875  *      This symbol, if defined, indicates that the tcsetpgrp routine is
876  *      available to set foreground process group ID.
877  */
878 #$d_tcsetpgrp HAS_TCSETPGRP             /**/
879
880 /* Time_t:
881  *      This symbol holds the type returned by time(). It can be long,
882  *      or time_t on BSD sites (in which case <sys/types.h> should be
883  *      included).
884  */
885 #define Time_t $timetype                /* Time type */
886
887 /* HAS_TIMES:
888  *      This symbol, if defined, indicates that the times() routine exists.
889  *      Note that this became obsolete on some systems (SUNOS), which now
890  * use getrusage(). It may be necessary to include <sys/times.h>.
891  */
892 #$d_times HAS_TIMES             /**/
893
894 /* HAS_TRUNCATE:
895  *      This symbol, if defined, indicates that the truncate routine is
896  *      available to truncate files.
897  */
898 #$d_truncate HAS_TRUNCATE       /**/
899
900 /* HAS_TZNAME:
901  *      This symbol, if defined, indicates that the tzname[] array is
902  *      available to access timezone names.
903  */
904 #$d_tzname HAS_TZNAME           /**/
905
906 /* HAS_UMASK:
907  *      This symbol, if defined, indicates that the umask routine is
908  *      available to set and get the value of the file creation mask.
909  */
910 #$d_umask HAS_UMASK             /**/
911
912 /* HAS_VFORK:
913  *      This symbol, if defined, indicates that vfork() exists.
914  */
915 #$d_vfork HAS_VFORK     /**/
916
917 /* VOIDSIG:
918  *      This symbol is defined if this system declares "void (*signal(...))()" in
919  *      signal.h.  The old way was to declare it as "int (*signal(...))()".  It
920  *      is up to the package author to declare things correctly based on the
921  *      symbol.
922  */
923 /* Signal_t:
924  *      This symbol's value is either "void" or "int", corresponding to the
925  *      appropriate return type of a signal handler.  Thus, you can declare
926  *      a signal handler using "Signal_t (*handler)()", and define the
927  *      handler using "Signal_t handler(sig)".
928  */
929 #$d_voidsig VOIDSIG     /**/
930 #define Signal_t $signal_t      /* Signal handler's return type */
931
932 /* HASVOLATILE:
933  *      This symbol, if defined, indicates that this C compiler knows about
934  *      the volatile declaration.
935  */
936 #$d_volatile    HASVOLATILE     /**/
937 #ifndef HASVOLATILE
938 #define volatile
939 #endif
940
941 /* HAS_VPRINTF:
942  *      This symbol, if defined, indicates that the vprintf routine is available
943  *      to printf with a pointer to an argument list.  If unavailable, you
944  *      may need to write your own, probably in terms of _doprnt().
945  */
946 /* USE_CHAR_VSPRINTF:
947  *      This symbol is defined if this system has vsprintf() returning type
948  *      (char*).  The trend seems to be to declare it as "int vsprintf()".  It
949  *      is up to the package author to declare vsprintf correctly based on the
950  *      symbol.
951  */
952 #$d_vprintf HAS_VPRINTF /**/
953 #$d_charvspr USE_CHAR_VSPRINTF  /**/
954
955 /* HAS_WAIT4:
956  *      This symbol, if defined, indicates that wait4() exists.
957  */
958 #$d_wait4 HAS_WAIT4     /**/
959
960 /* HAS_WAITPID:
961  *      This symbol, if defined, indicates that the waitpid routine is
962  *      available to wait for child process.
963  */
964 #$d_waitpid HAS_WAITPID /**/
965
966 /* HAS_WCSTOMBS:
967  *      This symbol, if defined, indicates that the wcstombs routine is
968  *      available to convert wide character strings to multibyte strings.
969  */
970 #$d_wcstombs HAS_WCSTOMBS       /**/
971
972 /* HAS_WCTOMB:
973  *      This symbol, if defined, indicates that the wctomb routine is available
974  *      to covert a wide character to a multibyte.
975  */
976 #$d_wctomb HAS_WCTOMB           /**/
977
978 /* Fpos_t:
979  *      This symbol holds the type used to declare file positions in libc.
980  *      It can be fpos_t, long, uint, etc... It may be necessary to include
981  *      <sys/types.h> to get any typedef'ed information.
982  */
983 #define Fpos_t $fpostype                /* File position type */
984
985 /* Gid_t:
986  *      This symbol holds the return type of getgid() and the type of
987  *      argument to setrgid() and related functions.  Typically,
988  *      it is the type of group ids in the kernel. It can be int, ushort,
989  *      uid_t, etc... It may be necessary to include <sys/types.h> to get
990  *      any typedef'ed information.
991  */
992 #define Gid_t $gidtype          /* Type for getgid(), etc... */
993
994 /* Groups_t:
995  *      This symbol holds the type used for the second argument to
996  *      getgroups().  Usually, this is the same of gidtype, but
997  *      sometimes it isn't.  It can be int, ushort, uid_t, etc... 
998  *      It may be necessary to include <sys/types.h> to get any 
999  *      typedef'ed information.  This is only required if you have
1000  *      getgroups().
1001  */
1002 #ifdef HAS_GETGROUPS
1003 #define Groups_t $groupstype    /* Type for 2nd arg to getgroups() */
1004 #endif
1005
1006 /* I_DIRENT:
1007  *      This symbol, if defined, indicates to the C program that it should
1008  *      include <dirent.h>. Using this symbol also triggers the definition
1009  *      of the Direntry_t define which ends up being 'struct dirent' or
1010  *      'struct direct' depending on the availability of <dirent.h>.
1011  */
1012 /* DIRNAMLEN:
1013  *      This symbol, if defined, indicates to the C program that the length
1014  *      of directory entry names is provided by a d_namlen field.  Otherwise
1015  *      you need to do strlen() on the d_name field.
1016  */
1017 /* Direntry_t:
1018  *      This symbol is set to 'struct direct' or 'struct dirent' depending on
1019  *      whether dirent is available or not. You should use this pseudo type to
1020  *      portably declare your directory entries.
1021  */
1022 #$i_dirent I_DIRENT             /**/
1023 #$d_dirnamlen DIRNAMLEN /**/
1024 #define Direntry_t $direntrytype
1025
1026 /* I_DLFCN:
1027  *      This symbol, if defined, indicates that <dlfcn.h> exists and should
1028  *      be included.
1029  */
1030 #$i_dlfcn I_DLFCN               /**/
1031
1032 /* I_FCNTL:
1033  *      This manifest constant tells the C program to include <fcntl.h>.
1034  */
1035 #$i_fcntl I_FCNTL       /**/
1036
1037 /* I_FLOAT:
1038  *      This symbol, if defined, indicates to the C program that it should
1039  *      include <float.h> to get definition of symbols like DBL_MAX or
1040  *      DBL_MIN, i.e. machine dependent floating point values.
1041  */
1042 #$i_float I_FLOAT               /**/
1043
1044 /* I_GRP:
1045  *      This symbol, if defined, indicates to the C program that it should
1046  *      include <grp.h>.
1047  */
1048 #$i_grp I_GRP           /**/
1049
1050 /* I_LIMITS:
1051  *      This symbol, if defined, indicates to the C program that it should
1052  *      include <limits.h> to get definition of symbols like WORD_BIT or
1053  *      LONG_MAX, i.e. machine dependant limitations.
1054  */
1055 #$i_limits I_LIMITS             /**/
1056
1057 /* I_MATH:
1058  *      This symbol, if defined, indicates to the C program that it should
1059  *      include <math.h>.
1060  */
1061 #$i_math I_MATH         /**/
1062
1063 /* I_MEMORY:
1064  *      This symbol, if defined, indicates to the C program that it should
1065  *      include <memory.h>.
1066  */
1067 #$i_memory I_MEMORY             /**/
1068
1069 /* I_NET_ERRNO:
1070  *      This symbol, if defined, indicates that <net/errno.h> exists and 
1071  *      should be included.
1072  */
1073 #$i_neterrno I_NET_ERRNO                /**/
1074
1075 /* I_NETINET_IN:
1076  *      This symbol, if defined, indicates to the C program that it should
1077  *      include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1078  */
1079 #$i_niin I_NETINET_IN   /**/
1080
1081 /* I_PWD:
1082  *      This symbol, if defined, indicates to the C program that it should
1083  *      include <pwd.h>.
1084  */
1085 /* PWQUOTA:
1086  *      This symbol, if defined, indicates to the C program that struct passwd
1087  *      contains pw_quota.
1088  */
1089 /* PWAGE:
1090  *      This symbol, if defined, indicates to the C program that struct passwd
1091  *      contains pw_age.
1092  */
1093 /* PWCHANGE:
1094  *      This symbol, if defined, indicates to the C program that struct passwd
1095  *      contains pw_change.
1096  */
1097 /* PWCLASS:
1098  *      This symbol, if defined, indicates to the C program that struct passwd
1099  *      contains pw_class.
1100  */
1101 /* PWEXPIRE:
1102  *      This symbol, if defined, indicates to the C program that struct passwd
1103  *      contains pw_expire.
1104  */
1105 /* PWCOMMENT:
1106  *      This symbol, if defined, indicates to the C program that struct passwd
1107  *      contains pw_comment.
1108  */
1109 #$i_pwd I_PWD           /**/
1110 #$d_pwquota PWQUOTA     /**/
1111 #$d_pwage PWAGE /**/
1112 #$d_pwchange PWCHANGE   /**/
1113 #$d_pwclass PWCLASS     /**/
1114 #$d_pwexpire PWEXPIRE   /**/
1115 #$d_pwcomment PWCOMMENT /**/
1116
1117 /* I_STDDEF:
1118  *      This symbol, if defined, indicates that <stddef.h> exists and should
1119  *      be included.
1120  */
1121 #$i_stddef I_STDDEF     /**/
1122
1123 /* I_STDLIB:
1124  *      This symbol, if defined, indicates that <stdlib.h> exists and should
1125  *      be included.
1126  */
1127 #$i_stdlib I_STDLIB             /**/
1128
1129 /* I_STRING:
1130  *      This symbol, if defined, indicates to the C program that it should
1131  *      include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1132  */
1133 #$i_string I_STRING             /**/
1134
1135 /* I_SYS_DIR:
1136  *      This symbol, if defined, indicates to the C program that it should
1137  *      include <sys/dir.h>.
1138  */
1139 #$i_sysdir I_SYS_DIR            /**/
1140
1141 /* I_SYS_FILE:
1142  *      This symbol, if defined, indicates to the C program that it should
1143  *      include <sys/file.h> to get definition of R_OK and friends.
1144  */
1145 #$i_sysfile I_SYS_FILE          /**/
1146
1147 /* I_SYS_IOCTL:
1148  *      This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1149  *      be included. Otherwise, include <sgtty.h> or <termio.h>.
1150  */
1151 #$i_sysioctl    I_SYS_IOCTL             /**/
1152
1153 /* I_SYS_NDIR:
1154  *      This symbol, if defined, indicates to the C program that it should
1155  *      include <sys/ndir.h>.
1156  */
1157 #$i_sysndir I_SYS_NDIR  /**/
1158
1159 /* I_SYS_PARAM:
1160  *      This symbol, if defined, indicates to the C program that it should
1161  *      include <sys/param.h>.
1162  */
1163 #$i_sysparam I_SYS_PARAM                /**/
1164
1165 /* I_SYS_SELECT:
1166  *      This symbol, if defined, indicates to the C program that it should
1167  *      include <sys/select.h> in order to get definition of struct timeval.
1168  */
1169 #$i_sysselct I_SYS_SELECT       /**/
1170
1171 /* I_SYS_TIMES:
1172  *      This symbol, if defined, indicates to the C program that it should
1173  *      include <sys/times.h>.
1174  */
1175 #$i_systimes    I_SYS_TIMES             /**/
1176
1177 /* I_TERMIO:
1178  *      This symbol, if defined, indicates that the program should include
1179  *      <termio.h> rather than <sgtty.h>.  There are also differences in
1180  *      the ioctl() calls that depend on the value of this symbol.
1181  */
1182 /* I_TERMIOS:
1183  *      This symbol, if defined, indicates that the program should include
1184  *      the POSIX termios.h rather than sgtty.h or termio.h.
1185  *      There are also differences in the ioctl() calls that depend on the
1186  *      value of this symbol.
1187  */
1188 /* I_SGTTY:
1189  *      This symbol, if defined, indicates that the program should include
1190  *      <sgtty.h> rather than <termio.h>.  There are also differences in
1191  *      the ioctl() calls that depend on the value of this symbol.
1192  */
1193 #$i_termio I_TERMIO             /**/
1194 #$i_termios I_TERMIOS           /**/
1195 #$i_sgtty I_SGTTY               /**/
1196
1197 /* I_TIME:
1198  *      This symbol, if defined, indicates to the C program that it should
1199  *      include <time.h>.
1200  */
1201 /* I_SYS_TIME:
1202  *      This symbol, if defined, indicates to the C program that it should
1203  *      include <sys/time.h>.
1204  */
1205 /* I_SYS_TIME_KERNEL:
1206  *      This symbol, if defined, indicates to the C program that it should
1207  *      include <sys/time.h> with KERNEL defined.
1208  */
1209 #$i_time I_TIME         /**/
1210 #$i_systime I_SYS_TIME          /**/
1211 #$i_systimek I_SYS_TIME_KERNEL          /**/
1212
1213 /* I_UNISTD:
1214  *      This symbol, if defined, indicates to the C program that it should
1215  *      include <unistd.h>.
1216  */
1217 #$i_unistd I_UNISTD             /**/
1218
1219 /* I_UTIME:
1220  *      This symbol, if defined, indicates to the C program that it should
1221  *      include <utime.h>.
1222  */
1223 #$i_utime I_UTIME               /**/
1224
1225 /* I_STDARG:
1226  *      This symbol, if defined, indicates that <stdarg.h> exists and should
1227  *      be included.
1228  */
1229 /* I_VARARGS:
1230  *      This symbol, if defined, indicates to the C program that it should
1231  *      include <varargs.h>.
1232  */
1233 #$i_stdarg I_STDARG             /**/
1234 #$i_varargs I_VARARGS   /**/
1235
1236 /* I_VFORK:
1237  *      This symbol, if defined, indicates to the C program that it should
1238  *      include vfork.h.
1239  */
1240 #$i_vfork I_VFORK       /**/
1241
1242 /* INTSIZE:
1243  *      This symbol contains the size of an int, so that the C preprocessor
1244  *      can make decisions based on it.
1245  */
1246 #define INTSIZE $intsize                /**/
1247
1248 /* Off_t:
1249  *      This symbol holds the type used to declare offsets in the kernel.
1250  *      It can be int, long, off_t, etc... It may be necessary to include
1251  *      <sys/types.h> to get any typedef'ed information.
1252  */
1253 #define Off_t $lseektype                /* <offset> type */
1254
1255 /* Mode_t:
1256  *      This symbol holds the type used to declare file modes 
1257  *      for systems calls.  It is usually mode_t, but may be
1258  *      int or unsigned short.  It may be necessary to include <sys/types.h>
1259  *      to get any typedef'ed information.
1260  */
1261 #define Mode_t $modetype         /* file mode parameter for system calls */
1262
1263 /* PRIVLIB:
1264  *      This symbol contains the name of the private library for this package.
1265  *      The library is private in the sense that it needn't be in anyone's
1266  *      execution path, but it should be accessible by the world.  The program
1267  *      should be prepared to do ~ expansion.
1268  */
1269 #define PRIVLIB "$privlib"              /**/
1270
1271 /* CAN_PROTOTYPE:
1272  *      If defined, this macro indicates that the C compiler can handle
1273  *      function prototypes.
1274  */
1275 /* _:
1276  *      This macro is used to declare function parameters for folks who want
1277  *      to make declarations with prototypes using a different style than
1278  *      the above macros.  Use double parentheses.  For example:
1279  *
1280  *              int main _((int argc, char *argv[]));
1281  */
1282 #$prototype     CAN_PROTOTYPE   /**/
1283 #ifdef CAN_PROTOTYPE
1284 #define _(args) args
1285 #else
1286 #define _(args) ()
1287 #endif
1288
1289 /* RANDBITS:
1290  *      This symbol contains the number of bits of random number the rand()
1291  *      function produces.  Usual values are 15, 16, and 31.
1292  */
1293 #define RANDBITS $randbits              /**/
1294
1295 /* SCRIPTDIR:
1296  *      This symbol holds the name of the directory in which the user wants
1297  *      to put publicly executable scripts for the package in question.  It
1298  *      is often a directory that is mounted across diverse architectures.
1299  *      Programs must be prepared to deal with ~name expansion.
1300  */
1301 #define SCRIPTDIR "$scriptdir"  /**/
1302
1303 /* Select_fd_set_t:
1304  *      This symbol holds the type used for the 2nd, 3rd, and 4th
1305  *      arguments to select.  Usually, this is 'fd_set *', if HAS_FD_SET
1306  *      is defined, and 'int *' otherwise.  This is only useful if you 
1307  *      have select(), of course.
1308  */
1309 #define Select_fd_set_t         $selecttype     /**/
1310
1311 /* SIG_NAME:
1312  *      This symbol contains a list of signal names in order. This is intended
1313  *      to be used as a static array initialization, like this:
1314  *              char *sig_name[] = { SIG_NAME };
1315  *      The signals in the list are separated with commas, and each signal
1316  *      is surrounded by double quotes. There is no leading SIG in the signal
1317  *      name, i.e. SIGQUIT is known as "QUIT".
1318  */
1319 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`"   /**/
1320
1321 /* Size_t:
1322  *      This symbol holds the type used to declare length parameters
1323  *      for string functions.  It is usually size_t, but may be
1324  *      unsigned long, int, etc.  It may be necessary to include
1325  *      <sys/types.h> to get any typedef'ed information.
1326  */
1327 #define Size_t $sizetype         /* length paramater for string functions */
1328
1329 /* SSize_t:
1330  *      This symbol holds the type used by functions that return
1331  *      a count of bytes or an error condition.  It must be a signed type.
1332  *      It is usually ssize_t, but may be long or int, etc.
1333  *      It may be necessary to include <sys/types.h> or <unistd.h>
1334  *      to get any typedef'ed information.
1335  *      We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1336  */
1337 #define SSize_t $ssizetype       /* signed count of bytes */
1338
1339 /* STDCHAR:
1340  *      This symbol is defined to be the type of char used in stdio.h.
1341  *      It has the values "unsigned char" or "char".
1342  */
1343 #define STDCHAR $stdchar        /**/
1344
1345 /* Uid_t:
1346  *      This symbol holds the type used to declare user ids in the kernel.
1347  *      It can be int, ushort, uid_t, etc... It may be necessary to include
1348  *      <sys/types.h> to get any typedef'ed information.
1349  */
1350 #define Uid_t $uidtype          /* UID type */
1351
1352 /* VOIDFLAGS:
1353  *      This symbol indicates how much support of the void type is given by this
1354  *      compiler.  What various bits mean:
1355  *
1356  *          1 = supports declaration of void
1357  *          2 = supports arrays of pointers to functions returning void
1358  *          4 = supports comparisons between pointers to void functions and
1359  *                  addresses of void functions
1360  *          8 = suports declaration of generic void pointers
1361  *
1362  *      The package designer should define VOIDUSED to indicate the requirements
1363  *      of the package.  This can be done either by #defining VOIDUSED before
1364  *      including config.h, or by defining defvoidused in Myinit.U.  If the
1365  *      latter approach is taken, only those flags will be tested.  If the
1366  *      level of void support necessary is not present, defines void to int.
1367  */
1368 #ifndef VOIDUSED
1369 #define VOIDUSED $defvoidused
1370 #endif
1371 #define VOIDFLAGS $voidflags
1372 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1373 #define void int                /* is void to be avoided? */
1374 #define M_VOID                  /* Xenix strikes again */
1375 #endif
1376
1377 /* EUNICE:
1378  *      This symbol, if defined, indicates that the program is being compiled
1379  *      under the EUNICE package under VMS.  The program will need to handle
1380  *      things like files that don't go away the first time you unlink them,
1381  *      due to version numbering.  It will also need to compensate for lack
1382  *      of a respectable link() command.
1383  */
1384 /* VMS:
1385  *      This symbol, if defined, indicates that the program is running under
1386  *      VMS.  It is currently only set in conjunction with the EUNICE symbol.
1387  */
1388 #$d_eunice EUNICE               /**/
1389 #$d_eunice VMS          /**/
1390
1391 /* LOC_SED:
1392  *      This symbol holds the complete pathname to the sed program.
1393  */
1394 #define LOC_SED         "$sed"  /**/
1395
1396 /* DLSYM_NEEDS_UNDERSCORE:
1397  *      This symbol, if defined, indicates that we need to prepend an
1398  *      underscore to the symbol name before calling dlsym().  This only
1399  *      makes sense if you *have* dlsym, which we will presume is the
1400  *      case if you're using dl_dlopen.xs.
1401  */
1402 #$d_dlsymun     DLSYM_NEEDS_UNDERSCORE  /* */
1403
1404 /* USE_DYNAMIC_LOADING:
1405  *      This symbol, if defined, indicates that dynamic loading of
1406  *      some sort is available.
1407  */
1408 #$usedl USE_DYNAMIC_LOADING             /**/
1409
1410 /* DB_Prefix_t:
1411  *      This symbol contains the type of the prefix structure element
1412  *      in the <db.h> header file.  In older versions of DB, it was
1413  *      int, while in newer ones it is u_int32_t.
1414  */
1415 /* DB_Hash_t:
1416  *      This symbol contains the type of the prefix structure element
1417  *      in the <db.h> header file.  In older versions of DB, it was
1418  *      int, while in newer ones it is size_t.
1419  */
1420 #define DB_Hash_t       "$db_hashtype"          /**/
1421 #define DB_Prefix_t     "$db_prefixtype"        /**/
1422
1423 /* I_NDBM:
1424  *      This symbol, if defined, indicates that ndbm.h exists and should
1425  *      be included.
1426  */
1427 #$i_ndbm I_NDBM /**/
1428
1429 /* Malloc_t:
1430  *      This symbol is the type of pointer returned by malloc and realloc.
1431  */
1432 #define Malloc_t $malloctype                    /**/
1433
1434 /* MYMALLOC:
1435  *      This symbol, if defined, indicates that we're using our own malloc.
1436  */
1437 #$d_mymalloc MYMALLOC                   /**/
1438
1439 #endif
1440 !GROK!THIS!