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