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