2 '') CONFIG_SH=config.sh ;;
5 '') CONFIG_H=config.h ;;
7 case $PERL_CONFIG_SH in
9 if test -f $CONFIG_SH; then TOP=.;
10 elif test -f ../$CONFIG_SH; then TOP=..;
11 elif test -f ../../$CONFIG_SH; then TOP=../..;
12 elif test -f ../../../$CONFIG_SH; then TOP=../../..;
13 elif test -f ../../../../$CONFIG_SH; then TOP=../../../..;
15 echo "Can't find $CONFIG_SH."; exit 1
21 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
23 echo "Extracting $CONFIG_H (with variable substitutions)"
24 sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
26 * This file was produced by running the config_h.SH script, which
27 * gets its values from $CONFIG_SH, which is generally produced by
30 * Feel free to modify any of this as the need arises. Note, however,
31 * that running config_h.SH again will wipe out any changes you've made.
32 * For a more permanent change edit $CONFIG_SH and rerun config_h.SH.
34 * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
38 * Package name : $package
39 * Source directory : $src
40 * Configuration time: $cf_time
41 * Configured by : $cf_by
42 * Target system : $myuname
49 * This symbol holds the complete pathname to the sed program.
51 #define LOC_SED "$full_sed" /**/
54 * This symbol, if defined, indicates that the alarm routine is
57 #$d_alarm HAS_ALARM /**/
60 * This symbol indicates the C compiler can check for function attributes,
61 * such as printf formats. This is normally only supported by GNU cc.
63 #$d_attribut HASATTRIBUTE /**/
65 #define __attribute__(_arg_)
69 * This symbol is defined if the bcmp() routine is available to
70 * compare blocks of memory.
72 #$d_bcmp HAS_BCMP /**/
75 * This symbol is defined if the bcopy() routine is available to
76 * copy blocks of memory.
78 #$d_bcopy HAS_BCOPY /**/
81 * This symbol is defined if the bzero() routine is available to
82 * set a memory block to 0.
84 #$d_bzero HAS_BZERO /**/
87 * This symbol, if defined, indicates that the chown routine is
90 #$d_chown HAS_CHOWN /**/
93 * This symbol, if defined, indicates that the chroot routine is
96 #$d_chroot HAS_CHROOT /**/
99 * This symbol, if defined, indicates that the chsize routine is available
100 * to truncate files. You might need a -lx to get this routine.
102 #$d_chsize HAS_CHSIZE /**/
105 * This symbol, if defined, indicates that this C compiler knows about
106 * the const type. There is no need to actually test for that symbol
107 * within your programs. The mere use of the "const" keyword will
108 * trigger the necessary tests.
110 #$d_const HASCONST /**/
116 * This symbol, if defined, indicates that the crypt routine is available
117 * to encrypt passwords and the like.
119 #$d_crypt HAS_CRYPT /**/
122 * This symbol, if defined, indicates that the cuserid routine is
123 * available to get character login names.
125 #$d_cuserid HAS_CUSERID /**/
128 * This symbol, if defined, indicates that this system's <float.h>
129 * or <limits.h> defines the symbol DBL_DIG, which is the number
130 * of significant digits in a double precision number. If this
131 * symbol is not defined, a guess of 15 is usually pretty good.
133 #$d_dbl_dig HAS_DBL_DIG /* */
136 * This symbol, if defined, indicates that the difftime routine is
139 #$d_difftime HAS_DIFFTIME /**/
142 * This symbol, if defined, indicates that the dlerror routine is
143 * available to return a string describing the last error that
144 * occurred from a call to dlopen(), dlclose() or dlsym().
146 #$d_dlerror HAS_DLERROR /**/
149 * This symbol, if defined, indicates that the dup2 routine is
150 * available to duplicate file descriptors.
152 #$d_dup2 HAS_DUP2 /**/
155 * This symbol, if defined, indicates that the fchmod routine is available
156 * to change mode of opened files. If unavailable, use chmod().
158 #$d_fchmod HAS_FCHMOD /**/
161 * This symbol, if defined, indicates that the fchown routine is available
162 * to change ownership of opened files. If unavailable, use chown().
164 #$d_fchown HAS_FCHOWN /**/
167 * This symbol, if defined, indicates to the C program that
168 * the fcntl() function exists.
170 #$d_fcntl HAS_FCNTL /**/
173 * This symbol, if defined, indicates that the fgetpos routine is
174 * available to get the file position indicator, similar to ftell().
176 #$d_fgetpos HAS_FGETPOS /**/
179 * This symbol, if defined, indicates that the flock routine is
180 * available to do file locking.
182 #$d_flock HAS_FLOCK /**/
185 * This symbol, if defined, indicates that the fork routine is
188 #$d_fork HAS_FORK /**/
191 * This symbol, if defined, indicates that the fsetpos routine is
192 * available to set the file position indicator, similar to fseek().
194 #$d_fsetpos HAS_FSETPOS /**/
197 * This symbol, if defined, indicates that the gettimeofday() system
198 * call is available for a sub-second accuracy clock. Usually, the file
199 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
200 * The type "Timeval" should be used to refer to "struct timeval".
202 #$d_gettimeod HAS_GETTIMEOFDAY /**/
203 #ifdef HAS_GETTIMEOFDAY
204 #define Timeval struct timeval /* Structure used by gettimeofday() */
208 * This symbol, if defined, indicates that the getgroups() routine is
209 * available to get the list of process groups. If unavailable, multiple
210 * groups are probably not supported.
212 #$d_getgrps HAS_GETGROUPS /**/
215 * This symbol, if defined, indicates that the getlogin routine is
216 * available to get the login name.
218 #$d_getlogin HAS_GETLOGIN /**/
221 * This symbol, if defined, indicates to the C program that
222 * the getpgid(pid) function is available to get the
225 #$d_getpgid HAS_GETPGID /**/
228 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
229 * routine is available to get the current process group.
231 #$d_getpgrp2 HAS_GETPGRP2 /**/
234 * This symbol, if defined, indicates that the getppid routine is
235 * available to get the parent process ID.
237 #$d_getppid HAS_GETPPID /**/
240 * This symbol, if defined, indicates that the getpriority routine is
241 * available to get a process's priority.
243 #$d_getprior HAS_GETPRIORITY /**/
246 * This symbol, if defined, indicates to the C program that the
247 * inet_aton() function is available to parse IP address "dotted-quad"
250 #$d_inetaton HAS_INET_ATON /**/
253 * This symbol, if defined, indicates that the killpg routine is available
254 * to kill process groups. If unavailable, you probably should use kill
255 * with a negative process number.
257 #$d_killpg HAS_KILLPG /**/
260 * This symbol, if defined, indicates that the link routine is
261 * available to create hard links.
263 #$d_link HAS_LINK /**/
266 * This symbol, if defined, indicates that the localeconv routine is
267 * available for numeric and monetary formatting conventions.
269 #$d_locconv HAS_LOCALECONV /**/
272 * This symbol, if defined, indicates that the lockf routine is
273 * available to do file locking.
275 #$d_lockf HAS_LOCKF /**/
278 * This symbol, if defined, indicates that the lstat routine is
279 * available to do file stats on symbolic links.
281 #$d_lstat HAS_LSTAT /**/
284 * This symbol, if defined, indicates that the mblen routine is available
285 * to find the number of bytes in a multibye character.
287 #$d_mblen HAS_MBLEN /**/
290 * This symbol, if defined, indicates that the mbstowcs routine is
291 * available to covert a multibyte string into a wide character string.
293 #$d_mbstowcs HAS_MBSTOWCS /**/
296 * This symbol, if defined, indicates that the mbtowc routine is available
297 * to covert a multibyte to a wide character.
299 #$d_mbtowc HAS_MBTOWC /**/
302 * This symbol, if defined, indicates that the memcmp routine is available
303 * to compare blocks of memory.
305 #$d_memcmp HAS_MEMCMP /**/
308 * This symbol, if defined, indicates that the memcpy routine is available
309 * to copy blocks of memory.
311 #$d_memcpy HAS_MEMCPY /**/
314 * This symbol, if defined, indicates that the memmove routine is available
315 * to copy potentially overlapping blocks of memory. This should be used
316 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
319 #$d_memmove HAS_MEMMOVE /**/
322 * This symbol, if defined, indicates that the memset routine is available
323 * to set blocks of memory.
325 #$d_memset HAS_MEMSET /**/
328 * This symbol, if defined, indicates that the mkdir routine is available
329 * to create directories. Otherwise you should fork off a new process to
332 #$d_mkdir HAS_MKDIR /**/
335 * This symbol, if defined, indicates that the mkfifo routine is
336 * available to create FIFOs. Otherwise, mknod should be able to
337 * do it for you. However, if mkfifo is there, mknod might require
338 * super-user privileges which mkfifo will not.
340 #$d_mkfifo HAS_MKFIFO /**/
343 * This symbol, if defined, indicates that the mktime routine is
346 #$d_mktime HAS_MKTIME /**/
349 * This symbol, if defined, indicates that the msync system call is
350 * available to synchronize a mapped file.
352 #$d_msync HAS_MSYNC /**/
355 * This symbol, if defined, indicates that the munmap system call is
356 * available to unmap a region, usually mapped by mmap().
358 #$d_munmap HAS_MUNMAP /**/
361 * This symbol, if defined, indicates that the nice routine is
364 #$d_nice HAS_NICE /**/
367 * This symbol, if defined, indicates that pathconf() is available
368 * to determine file-system related limits and options associated
369 * with a given filename.
372 * This symbol, if defined, indicates that pathconf() is available
373 * to determine file-system related limits and options associated
374 * with a given open file descriptor.
376 #$d_pathconf HAS_PATHCONF /**/
377 #$d_fpathconf HAS_FPATHCONF /**/
380 * This symbol, if defined, indicates that the pause routine is
381 * available to suspend a process until a signal is received.
383 #$d_pause HAS_PAUSE /**/
386 * This symbol, if defined, indicates that the pipe routine is
387 * available to create an inter-process channel.
389 #$d_pipe HAS_PIPE /**/
392 * This symbol, if defined, indicates that the poll routine is
393 * available to poll active file descriptors. You may safely
394 * include <poll.h> when this symbol is defined.
396 #$d_poll HAS_POLL /**/
399 * This symbol, if defined, indicates that the readdir routine is
400 * available to read directory entries. You may have to include
401 * <dirent.h>. See I_DIRENT.
403 #$d_readdir HAS_READDIR /**/
406 * This symbol, if defined, indicates that the seekdir routine is
407 * available. You may have to include <dirent.h>. See I_DIRENT.
409 #$d_seekdir HAS_SEEKDIR /**/
412 * This symbol, if defined, indicates that the telldir routine is
413 * available. You may have to include <dirent.h>. See I_DIRENT.
415 #$d_telldir HAS_TELLDIR /**/
418 * This symbol, if defined, indicates that the rewinddir routine is
419 * available. You may have to include <dirent.h>. See I_DIRENT.
421 #$d_rewinddir HAS_REWINDDIR /**/
424 * This symbol, if defined, indicates that the readlink routine is
425 * available to read the value of a symbolic link.
427 #$d_readlink HAS_READLINK /**/
430 * This symbol, if defined, indicates that the rename routine is available
431 * to rename files. Otherwise you should do the unlink(), link(), unlink()
434 #$d_rename HAS_RENAME /**/
437 * This symbol, if defined, indicates that the rmdir routine is
438 * available to remove directories. Otherwise you should fork off a
439 * new process to exec /bin/rmdir.
441 #$d_rmdir HAS_RMDIR /**/
444 * This symbol, if defined, indicates that the select routine is
445 * available to select active file descriptors. If the timeout field
446 * is used, <sys/time.h> may need to be included.
448 #$d_select HAS_SELECT /**/
451 * This symbol, if defined, indicates that the setegid routine is available
452 * to change the effective gid of the current program.
454 #$d_setegid HAS_SETEGID /**/
457 * This symbol, if defined, indicates that the seteuid routine is available
458 * to change the effective uid of the current program.
460 #$d_seteuid HAS_SETEUID /**/
463 * This symbol, if defined, indicates that the setlinebuf routine is
464 * available to change stderr or stdout from block-buffered or unbuffered
465 * to a line-buffered mode.
467 #$d_setlinebuf HAS_SETLINEBUF /**/
470 * This symbol, if defined, indicates that the setlocale routine is
471 * available to handle locale-specific ctype implementations.
473 #$d_setlocale HAS_SETLOCALE /**/
476 * This symbol, if defined, indicates that the setpgid(pid, gpid)
477 * routine is available to set process group ID.
479 #$d_setpgid HAS_SETPGID /**/
482 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
483 * routine is available to set the current process group.
485 #$d_setpgrp2 HAS_SETPGRP2 /**/
488 * This symbol, if defined, indicates that the setpriority routine is
489 * available to set a process's priority.
491 #$d_setprior HAS_SETPRIORITY /**/
494 * This symbol, if defined, indicates that the setregid routine is
495 * available to change the real and effective gid of the current
499 * This symbol, if defined, indicates that the setresgid routine is
500 * available to change the real, effective and saved gid of the current
503 #$d_setregid HAS_SETREGID /**/
504 #$d_setresgid HAS_SETRESGID /**/
507 * This symbol, if defined, indicates that the setreuid routine is
508 * available to change the real and effective uid of the current
512 * This symbol, if defined, indicates that the setresuid routine is
513 * available to change the real, effective and saved uid of the current
516 #$d_setreuid HAS_SETREUID /**/
517 #$d_setresuid HAS_SETRESUID /**/
520 * This symbol, if defined, indicates that the setrgid routine is available
521 * to change the real gid of the current program.
523 #$d_setrgid HAS_SETRGID /**/
526 * This symbol, if defined, indicates that the setruid routine is available
527 * to change the real uid of the current program.
529 #$d_setruid HAS_SETRUID /**/
532 * This symbol, if defined, indicates that the setsid routine is
533 * available to set the process group ID.
535 #$d_setsid HAS_SETSID /**/
538 * This symbol holds the return type of the shmat() system call.
539 * Usually set to 'void *' or 'char *'.
541 /* HAS_SHMAT_PROTOTYPE:
542 * This symbol, if defined, indicates that the sys/shm.h includes
543 * a prototype for shmat(). Otherwise, it is up to the program to
544 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
545 * but not always right so it should be emitted by the program only
546 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
548 #define Shmat_t $shmattype /**/
549 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
552 * This symbol is defined to indicate that the strchr()/strrchr()
553 * functions are available for string searching. If not, try the
554 * index()/rindex() pair.
557 * This symbol is defined to indicate that the index()/rindex()
558 * functions are available for string searching.
560 #$d_strchr HAS_STRCHR /**/
561 #$d_index HAS_INDEX /**/
564 * This symbol, if defined, indicates that the strcoll routine is
565 * available to compare strings using collating information.
567 #$d_strcoll HAS_STRCOLL /**/
570 * This symbol, if defined, indicates that this C compiler knows how
571 * to copy structures. If undefined, you'll need to use a block copy
572 * routine of some sort instead.
574 #$d_strctcpy USE_STRUCT_COPY /**/
577 * This symbol, if defined, indicates that the strtod routine is
578 * available to provide better numeric string conversion than atof().
580 #$d_strtod HAS_STRTOD /**/
583 * This symbol, if defined, indicates that the strtol routine is available
584 * to provide better numeric string conversion than atoi() and friends.
586 #$d_strtol HAS_STRTOL /**/
589 * This symbol, if defined, indicates that the strxfrm() routine is
590 * available to transform strings.
592 #$d_strxfrm HAS_STRXFRM /**/
595 * This symbol, if defined, indicates that the symlink routine is available
596 * to create symbolic links.
598 #$d_symlink HAS_SYMLINK /**/
601 * This symbol, if defined, indicates that the syscall routine is
602 * available to call arbitrary system calls. If undefined, that's tough.
604 #$d_syscall HAS_SYSCALL /**/
607 * This symbol, if defined, indicates that sysconf() is available
608 * to determine system related limits and options.
610 #$d_sysconf HAS_SYSCONF /**/
613 * This symbol, if defined, indicates that the system routine is
614 * available to issue a shell command.
616 #$d_system HAS_SYSTEM /**/
619 * This symbol, if defined, indicates that the tcgetpgrp routine is
620 * available to get foreground process group ID.
622 #$d_tcgetpgrp HAS_TCGETPGRP /**/
625 * This symbol, if defined, indicates that the tcsetpgrp routine is
626 * available to set foreground process group ID.
628 #$d_tcsetpgrp HAS_TCSETPGRP /**/
631 * This symbol, if defined, indicates that the truncate routine is
632 * available to truncate files.
634 #$d_truncate HAS_TRUNCATE /**/
637 * This symbol, if defined, indicates that the tzname[] array is
638 * available to access timezone names.
640 #$d_tzname HAS_TZNAME /**/
643 * This symbol, if defined, indicates that the umask routine is
644 * available to set and get the value of the file creation mask.
646 #$d_umask HAS_UMASK /**/
649 * This symbol, if defined, indicates that the usleep routine is
650 * available to let the process sleep on a sub-second accuracy.
652 #$d_usleep HAS_USLEEP /**/
655 * This symbol, if defined, indicates that this C compiler knows about
656 * the volatile declaration.
658 #$d_volatile HASVOLATILE /**/
664 * This symbol, if defined, indicates that wait4() exists.
666 #$d_wait4 HAS_WAIT4 /**/
669 * This symbol, if defined, indicates that the waitpid routine is
670 * available to wait for child process.
672 #$d_waitpid HAS_WAITPID /**/
675 * This symbol, if defined, indicates that the wcstombs routine is
676 * available to convert wide character strings to multibyte strings.
678 #$d_wcstombs HAS_WCSTOMBS /**/
681 * This symbol, if defined, indicates that the wctomb routine is available
682 * to covert a wide character to a multibyte.
684 #$d_wctomb HAS_WCTOMB /**/
687 * This symbol, if defined, indicates to the C program that it should
688 * include <arpa/inet.h> to get inet_addr and friends declarations.
690 #$i_arpainet I_ARPA_INET /**/
693 * This symbol, if defined, indicates that <dbm.h> exists and should
697 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
698 * should be included.
701 #$i_rpcsvcdbm I_RPCSVC_DBM /**/
704 * This symbol, if defined, indicates to the C program that it should
705 * include <dirent.h>. Using this symbol also triggers the definition
706 * of the Direntry_t define which ends up being 'struct dirent' or
707 * 'struct direct' depending on the availability of <dirent.h>.
710 * This symbol, if defined, indicates to the C program that the length
711 * of directory entry names is provided by a d_namlen field. Otherwise
712 * you need to do strlen() on the d_name field.
715 * This symbol is set to 'struct direct' or 'struct dirent' depending on
716 * whether dirent is available or not. You should use this pseudo type to
717 * portably declare your directory entries.
719 #$i_dirent I_DIRENT /**/
720 #$d_dirnamlen DIRNAMLEN /**/
721 #define Direntry_t $direntrytype
724 * This symbol, if defined, indicates that <dlfcn.h> exists and should
727 #$i_dlfcn I_DLFCN /**/
730 * This manifest constant tells the C program to include <fcntl.h>.
732 #$i_fcntl I_FCNTL /**/
735 * This symbol, if defined, indicates to the C program that it should
736 * include <float.h> to get definition of symbols like DBL_MAX or
737 * DBL_MIN, i.e. machine dependent floating point values.
739 #$i_float I_FLOAT /**/
742 * This symbol, if defined, indicates to the C program that it should
743 * include <limits.h> to get definition of symbols like WORD_BIT or
744 * LONG_MAX, i.e. machine dependant limitations.
746 #$i_limits I_LIMITS /**/
749 * This symbol, if defined, indicates to the C program that it should
750 * include <locale.h>.
752 #$i_locale I_LOCALE /**/
755 * This symbol, if defined, indicates to the C program that it should
761 * This symbol, if defined, indicates to the C program that it should
762 * include <memory.h>.
764 #$i_memory I_MEMORY /**/
767 * This symbol, if defined, indicates that <ndbm.h> exists and should
773 * This symbol, if defined, indicates that <net/errno.h> exists and
774 * should be included.
776 #$i_neterrno I_NET_ERRNO /**/
779 * This symbol, if defined, indicates to the C program that it should
780 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
782 #$i_niin I_NETINET_IN /**/
785 * This symbol, if defined, indicates to the C program that it should
791 * This symbol, if defined, indicates that <stddef.h> exists and should
794 #$i_stddef I_STDDEF /**/
797 * This symbol, if defined, indicates that <stdlib.h> exists and should
800 #$i_stdlib I_STDLIB /**/
803 * This symbol, if defined, indicates to the C program that it should
804 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
806 #$i_string I_STRING /**/
809 * This symbol, if defined, indicates to the C program that it should
810 * include <sys/dir.h>.
812 #$i_sysdir I_SYS_DIR /**/
815 * This symbol, if defined, indicates to the C program that it should
816 * include <sys/file.h> to get definition of R_OK and friends.
818 #$i_sysfile I_SYS_FILE /**/
821 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
822 * be included. Otherwise, include <sgtty.h> or <termio.h>.
825 * This symbol, if defined, indicates the <sys/sockio.h> should be included
826 * to get socket ioctl options, like SIOCATMARK.
828 #$i_sysioctl I_SYS_IOCTL /**/
829 #$i_syssockio I_SYS_SOCKIO /**/
832 * This symbol, if defined, indicates to the C program that it should
833 * include <sys/ndir.h>.
835 #$i_sysndir I_SYS_NDIR /**/
838 * This symbol, if defined, indicates to the C program that it should
839 * include <sys/param.h>.
841 #$i_sysparam I_SYS_PARAM /**/
844 * This symbol, if defined, indicates to the C program that it should
845 * include <sys/resource.h>.
847 #$i_sysresrc I_SYS_RESOURCE /**/
850 * This symbol, if defined, indicates to the C program that it should
851 * include <sys/select.h> in order to get definition of struct timeval.
853 #$i_sysselct I_SYS_SELECT /**/
856 * This symbol, if defined, indicates to the C program that it should
857 * include <sys/stat.h>.
859 #$i_sysstat I_SYS_STAT /**/
862 * This symbol, if defined, indicates to the C program that it should
863 * include <sys/times.h>.
865 #$i_systimes I_SYS_TIMES /**/
868 * This symbol, if defined, indicates to the C program that it should
869 * include <sys/types.h>.
871 #$i_systypes I_SYS_TYPES /**/
874 * This symbol, if defined, indicates to the C program that it should
875 * include <sys/un.h> to get UNIX domain socket definitions.
877 #$i_sysun I_SYS_UN /**/
880 * This symbol, if defined, indicates to the C program that it should
881 * include <sys/wait.h>.
883 #$i_syswait I_SYS_WAIT /**/
886 * This symbol, if defined, indicates that the program should include
887 * <termio.h> rather than <sgtty.h>. There are also differences in
888 * the ioctl() calls that depend on the value of this symbol.
891 * This symbol, if defined, indicates that the program should include
892 * the POSIX termios.h rather than sgtty.h or termio.h.
893 * There are also differences in the ioctl() calls that depend on the
894 * value of this symbol.
897 * This symbol, if defined, indicates that the program should include
898 * <sgtty.h> rather than <termio.h>. There are also differences in
899 * the ioctl() calls that depend on the value of this symbol.
901 #$i_termio I_TERMIO /**/
902 #$i_termios I_TERMIOS /**/
903 #$i_sgtty I_SGTTY /**/
906 * This symbol, if defined, indicates to the C program that it should
907 * include <unistd.h>.
909 #$i_unistd I_UNISTD /**/
912 * This symbol, if defined, indicates to the C program that it should
915 #$i_utime I_UTIME /**/
918 * This symbol, if defined, indicates to the C program that it should
919 * include <values.h> to get definition of symbols like MINFLOAT or
920 * MAXLONG, i.e. machine dependant limitations. Probably, you
921 * should use <limits.h> instead, if it is available.
923 #$i_values I_VALUES /**/
926 * This symbol, if defined, indicates to the C program that it should
929 #$i_vfork I_VFORK /**/
932 * If defined, this macro indicates that the C compiler can handle
933 * function prototypes.
936 * This macro is used to declare function parameters for folks who want
937 * to make declarations with prototypes using a different style than
938 * the above macros. Use double parentheses. For example:
940 * int main _((int argc, char *argv[]));
942 #$prototype CAN_PROTOTYPE /**/
950 * This symbol contains the value of sizeof(int) so that the C
951 * preprocessor can make decisions based on it.
954 * This symbol contains the value of sizeof(long) so that the C
955 * preprocessor can make decisions based on it.
958 * This symbol contains the value of sizeof(short) so that the C
959 * preprocessor can make decisions based on it.
961 #define INTSIZE $intsize /**/
962 #define LONGSIZE $longsize /**/
963 #define SHORTSIZE $shortsize /**/
966 * This symbol, if defined, signifies that the build
967 * process will produce some binary files that are going to be
968 * used in a cross-platform environment. This is the case for
969 * example with the NeXT "fat" binaries that contain executables
972 #$multiarch MULTIARCH /**/
975 * This symbol, if defined, tells that there's a 64-bit integer type,
976 * Quad_t, and its unsigned counterpar, Uquad_t. QUADKIND will be one
977 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T.
979 #$d_quad HAS_QUAD /**/
981 # define Quad_t $quadtype /**/
982 # define Uquad_t $uquadtype /**/
983 # define QUADKIND $quadkind /**/
984 # define QUAD_IS_INT 1
985 # define QUAD_IS_LONG 2
986 # define QUAD_IS_LONG_LONG 3
987 # define QUAD_IS_INT64_T 4
991 * This symbol, if defined, indicates that the accessx routine is
992 * available to do extended access checks.
994 #$d_accessx HAS_ACCESSX /**/
997 * This symbol, if defined, indicates that the eaccess routine is
998 * available to do extended access checks.
1000 #$d_eaccess HAS_EACCESS /**/
1003 * This symbol, if defined, indicates to the C program that it should
1004 * include <sys/access.h>.
1006 #$i_sysaccess I_SYS_ACCESS /**/
1009 * This symbol, if defined, indicates to the C program that it should
1010 * include <sys/security.h>.
1012 #$i_syssecrt I_SYS_SECURITY /**/
1015 * This symbol contains the name of the operating system, as determined
1016 * by Configure. You shouldn't rely on it too much; the specific
1017 * feature tests from Configure are generally more reliable.
1020 * This symbol contains the version of the operating system, as determined
1021 * by Configure. You shouldn't rely on it too much; the specific
1022 * feature tests from Configure are generally more reliable.
1024 #define OSNAME "$osname" /**/
1025 #define OSVERS "$osvers" /**/
1028 * This symbol contains the number of bytes required to align a
1029 * double, or a long double when applicable. Usual values are 2,
1030 * 4 and 8. The default is eight, for safety.
1032 #if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
1033 # define MEM_ALIGNBYTES 8
1035 #define MEM_ALIGNBYTES $alignbytes
1039 * This variable, if defined, holds the name of the directory in
1040 * which the user wants to put architecture-dependent public
1041 * library files for $package. It is most often a local directory
1042 * such as /usr/local/lib. Programs using this variable must be
1043 * prepared to deal with filename expansion. If ARCHLIB is the
1044 * same as PRIVLIB, it is not defined, since presumably the
1045 * program already searches PRIVLIB.
1048 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1049 * in programs that are not prepared to deal with ~ expansion at run-time.
1051 #$d_archlib ARCHLIB "$archlib" /**/
1052 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1055 * This symbol holds a string representing the architecture name.
1056 * It may be used to construct an architecture-dependant pathname
1057 * where library files may be held under a private library, for
1060 #define ARCHNAME "$archname" /**/
1063 * This symbol, if defined, indicates that the atolf routine is
1064 * available to convert strings into long doubles.
1066 #$d_atolf HAS_ATOLF /**/
1069 * This symbol, if defined, indicates that the atoll routine is
1070 * available to convert strings into long longs.
1072 #$d_atoll HAS_ATOLL /**/
1075 * This symbol holds the path of the bin directory where the package will
1076 * be installed. Program must be prepared to deal with ~name substitution.
1079 * This symbol is the filename expanded version of the BIN symbol, for
1080 * programs that do not want to deal with that at run-time.
1082 #define BIN "$bin" /**/
1083 #define BIN_EXP "$binexp" /**/
1085 /* PERL_BINCOMPAT_5005:
1086 * This symbol, if defined, indicates that this version of Perl should be
1087 * binary-compatible with Perl 5.005. This is impossible for builds
1088 * that use features like threads and multiplicity it is always $undef
1089 * for those versions.
1091 #$d_bincompat5005 PERL_BINCOMPAT_5005 /**/
1094 * This symbol holds the hexadecimal constant defined in byteorder,
1095 * i.e. 0x1234 or 0x4321, etc...
1096 * If the compiler supports cross-compiling or multiple-architecture
1097 * binaries (eg. on NeXT systems), use compiler-defined macros to
1098 * determine the byte order.
1099 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1100 * Binaries (MAB) on either big endian or little endian machines.
1101 * The endian-ness is available at compile-time. This only matters
1102 * for perl, where the config.h can be generated and installed on
1103 * one system, and used by a different architecture to build an
1104 * extension. Older versions of NeXT that might not have
1105 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1106 * so the default case (for NeXT) is big endian to catch them.
1107 * This might matter for NeXT 3.0.
1109 #if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
1110 # ifdef __LITTLE_ENDIAN__
1112 # define BYTEORDER 0x1234
1115 # define BYTEORDER 0x12345678
1119 # ifdef __BIG_ENDIAN__
1121 # define BYTEORDER 0x4321
1124 # define BYTEORDER 0x87654321
1129 # if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1130 # define BYTEORDER 0x4321
1133 #define BYTEORDER 0x$byteorder /* large digits for MSB */
1137 * This macro catenates 2 tokens together.
1140 * This macro surrounds its token with double quotes.
1143 #define CAT2(a,b) a/**/b
1144 #define STRINGIFY(a) "a"
1145 /* If you can get stringification with catify, tell me how! */
1147 #if $cpp_stuff == 42
1148 #define PeRl_CaTiFy(a, b) a ## b
1149 #define PeRl_StGiFy(a) #a
1150 /* the additional level of indirection enables these macros to be
1151 * used as arguments to other macros. See K&R 2nd ed., page 231. */
1152 #define CAT2(a,b) PeRl_CaTiFy(a,b)
1153 #define StGiFy(a) PeRl_StGiFy(a)
1154 #define STRINGIFY(a) PeRl_StGiFy(a)
1156 #if $cpp_stuff != 1 && $cpp_stuff != 42
1157 # include "Bletch: How does this C preprocessor catenate tokens?"
1161 * This symbol contains the first part of the string which will invoke
1162 * the C preprocessor on the standard input and produce to standard
1163 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1164 * call a wrapper. See CPPRUN.
1167 * This symbol contains the second part of the string which will invoke
1168 * the C preprocessor on the standard input and produce to standard
1169 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1170 * to specify standard input, otherwise the value is "".
1173 * This symbol contains the string which will invoke a C preprocessor on
1174 * the standard input and produce to standard output. It needs to end
1175 * with CPPLAST, after all other preprocessor flags have been specified.
1176 * The main difference with CPPSTDIN is that this program will never be a
1177 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1178 * available directly to the user. Note that it may well be different from
1179 * the preprocessor used to compile the C program.
1182 * This symbol is intended to be used along with CPPRUN in the same manner
1183 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
1185 #define CPPSTDIN "$cppstdin"
1186 #define CPPMINUS "$cppminus"
1187 #define CPPRUN "$cpprun"
1188 #define CPPLAST "$cpplast"
1191 * This symbol, if defined, indicates that the _fwalk system call is
1192 * available to apply a function to all the file handles.
1194 #$d__fwalk HAS__FWALK /**/
1197 * This manifest constant lets the C program know that the access()
1198 * system call is available to check for accessibility using real UID/GID.
1199 * (always present on UNIX.)
1201 #$d_access HAS_ACCESS /**/
1204 * This symbol is defined if the C compiler can cast negative
1205 * or large floating point numbers to 32-bit ints.
1207 #$d_casti32 CASTI32 /**/
1210 * This symbol is defined if the C compiler can cast negative
1211 * numbers to unsigned longs, ints and shorts.
1214 * This symbol contains flags that say what difficulties the compiler
1215 * has casting odd floating values to unsigned long:
1217 * 1 = couldn't cast < 0
1218 * 2 = couldn't cast >= 0x80000000
1219 * 4 = couldn't cast in argument expression list
1221 #$d_castneg CASTNEGFLOAT /**/
1222 #define CASTFLAGS $castflags /**/
1225 * This symbol, if defined, indicates that the class routine is
1226 * available to classify doubles. Available for example in AIX.
1227 * The returned values are defined in <float.h> and are:
1229 * FP_PLUS_NORM Positive normalized, nonzero
1230 * FP_MINUS_NORM Negative normalized, nonzero
1231 * FP_PLUS_DENORM Positive denormalized, nonzero
1232 * FP_MINUS_DENORM Negative denormalized, nonzero
1234 * FP_MINUS_ZERO -0.0
1237 * FP_NANS Signaling Not a Number (NaNS)
1238 * FP_NANQ Quiet Not a Number (NaNQ)
1240 #$d_class HAS_CLASS /**/
1243 * This symbol, if defined, indicates that the closedir() routine
1244 * does not return a value.
1246 #$d_void_closedir VOID_CLOSEDIR /**/
1248 /* HAS_STRUCT_CMSGHDR:
1249 * This symbol, if defined, indicates that the struct cmsghdr
1252 #$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
1255 * This symbol, if defined, indicates that the C-shell exists.
1258 * This symbol, if defined, contains the full pathname of csh.
1260 #$d_csh HAS_CSH /**/
1262 #define CSH "$full_csh" /**/
1265 /* DLSYM_NEEDS_UNDERSCORE:
1266 * This symbol, if defined, indicates that we need to prepend an
1267 * underscore to the symbol name before calling dlsym(). This only
1268 * makes sense if you *have* dlsym, which we will presume is the
1269 * case if you're using dl_dlopen.xs.
1271 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1273 /* HAS_DRAND48_PROTO:
1274 * This symbol, if defined, indicates that the system provides
1275 * a prototype for the drand48() function. Otherwise, it is up
1276 * to the program to supply one. A good guess is
1277 * extern double drand48 _((void));
1279 #$d_drand48proto HAS_DRAND48_PROTO /**/
1282 * This symbol, if defined, indicates that the getgrent routine is
1283 * available for finalizing sequential access of the group database.
1285 #$d_endgrent HAS_ENDGRENT /**/
1288 * This symbol, if defined, indicates that the endhostent() routine is
1289 * available to close whatever was being used for host queries.
1291 #$d_endhent HAS_ENDHOSTENT /**/
1294 * This symbol, if defined, indicates that the endnetent() routine is
1295 * available to close whatever was being used for network queries.
1297 #$d_endnent HAS_ENDNETENT /**/
1300 * This symbol, if defined, indicates that the endprotoent() routine is
1301 * available to close whatever was being used for protocol queries.
1303 #$d_endpent HAS_ENDPROTOENT /**/
1306 * This symbol, if defined, indicates that the getgrent routine is
1307 * available for finalizing sequential access of the passwd database.
1309 #$d_endpwent HAS_ENDPWENT /**/
1312 * This symbol, if defined, indicates that the endservent() routine is
1313 * available to close whatever was being used for service queries.
1315 #$d_endsent HAS_ENDSERVENT /**/
1318 * This symbol, if defined, indicates that the fchdir routine is
1319 * available to change directory using a file descriptor.
1321 #$d_fchdir HAS_FCHDIR /**/
1324 * This symbol, if defined, indicates that fcntl() can be used
1325 * for file locking. Normally on Unix systems this is defined.
1326 * It may be undefined on VMS.
1328 #$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
1331 * This symbol, when defined, indicates presence of the fd_set typedef
1334 #$d_fd_set HAS_FD_SET /**/
1337 * This symbol, if defined, indicates that the finite routine is
1338 * available to check whether a double is finite (non-infinity non-NaN).
1340 #$d_finite HAS_FINITE /**/
1343 * This symbol, if defined, indicates that the finitel routine is
1344 * available to check whether a long double is finite
1345 * (non-infinity non-NaN).
1347 #$d_finitel HAS_FINITEL /**/
1350 * This symbol, if defined, indicates that the system supports filenames
1351 * longer than 14 characters.
1353 #$d_flexfnam FLEXFILENAMES /**/
1356 * This symbol, if defined, indicates that the fp_class routine is
1357 * available to classify doubles. Available for example in Digital UNIX.
1358 * The returned values are defined in <math.h> and are:
1360 * FP_SNAN Signaling NaN (Not-a-Number)
1361 * FP_QNAN Quiet NaN (Not-a-Number)
1362 * FP_POS_INF +infinity
1363 * FP_NEG_INF -infinity
1364 * FP_POS_NORM Positive normalized
1365 * FP_NEG_NORM Negative normalized
1366 * FP_POS_DENORM Positive denormalized
1367 * FP_NEG_DENORM Negative denormalized
1368 * FP_POS_ZERO +0.0 (positive zero)
1369 * FP_NEG_ZERO -0.0 (negative zero)
1371 #$d_fp_class HAS_FP_CLASS /**/
1374 * This symbol, if defined, indicates that the fpclass routine is
1375 * available to classify doubles. Available for example in Solaris/SVR4.
1376 * The returned values are defined in <ieeefp.h> and are:
1378 * FP_SNAN signaling NaN
1380 * FP_NINF negative infinity
1381 * FP_PINF positive infinity
1382 * FP_NDENORM negative denormalized non-zero
1383 * FP_PDENORM positive denormalized non-zero
1384 * FP_NZERO negative zero
1385 * FP_PZERO positive zero
1386 * FP_NNORM negative normalized non-zero
1387 * FP_PNORM positive normalized non-zero
1389 #$d_fpclass HAS_FPCLASS /**/
1392 * This symbol, if defined, indicates that the fpclassify routine is
1393 * available to classify doubles. Available for example in HP-UX.
1394 * The returned values are defined in <math.h> and are
1396 * FP_NORMAL Normalized
1398 * FP_INFINITE Infinity
1399 * FP_SUBNORMAL Denormalized
1403 #$d_fpclassify HAS_FPCLASSIFY /**/
1406 * This symbol will be defined if the C compiler supports fpos64_t.
1408 #$d_fpos64_t HAS_FPOS64_T /**/
1411 * This symbol, if defined, indicates that the frexpl routine is
1412 * available to break a long double floating-point number into
1413 * a normalized fraction and an integral power of 2.
1415 #$d_frexpl HAS_FREXPL /**/
1417 /* HAS_STRUCT_FS_DATA:
1418 * This symbol, if defined, indicates that the struct fs_data
1419 * to do statfs() is supported.
1421 #$d_fs_data_s HAS_STRUCT_FS_DATA /**/
1424 * This symbol, if defined, indicates that the fseeko routine is
1425 * available to fseek beyond 32 bits (useful for ILP32 hosts).
1427 #$d_fseeko HAS_FSEEKO /**/
1430 * This symbol, if defined, indicates that the fstatfs routine is
1431 * available to stat filesystems by file descriptors.
1433 #$d_fstatfs HAS_FSTATFS /**/
1436 * This symbol, if defined, indicates that the fsync routine is
1437 * available to write a file's modified data and attributes to
1438 * permanent storage.
1440 #$d_fsync HAS_FSYNC /**/
1443 * This symbol, if defined, indicates that the ftello routine is
1444 * available to ftell beyond 32 bits (useful for ILP32 hosts).
1446 #$d_ftello HAS_FTELLO /**/
1449 * This preprocessor macro is defined to convert a floating point
1450 * number to a string without a trailing decimal point. This
1451 * emulates the behavior of sprintf("%g"), but is sometimes much more
1452 * efficient. If gconvert() is not available, but gcvt() drops the
1453 * trailing decimal point, then gcvt() is used. If all else fails,
1454 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1455 * macro are: value, number of digits, whether trailing zeros should
1456 * be retained, and the output buffer.
1457 * Possible values are:
1458 * d_Gconvert='gconvert((x),(n),(t),(b))'
1459 * d_Gconvert='gcvt((x),(n),(b))'
1460 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1461 * The last two assume trailing zeros should not be kept.
1463 #define Gconvert(x,n,t,b) $d_Gconvert
1466 * This symbol, if defined, indicates that the getcwd routine is
1467 * available to get the current working directory.
1469 #$d_getcwd HAS_GETCWD /**/
1472 * This symbol, if defined, indicates that the getespwnam system call is
1473 * available to retrieve enchanced (shadow) password entries by name.
1475 #$d_getespwnam HAS_GETESPWNAM /**/
1478 * This symbol, if defined, indicates that the getfsstat routine is
1479 * available to stat filesystems in bulk.
1481 #$d_getfsstat HAS_GETFSSTAT /**/
1484 * This symbol, if defined, indicates that the getgrent routine is
1485 * available for sequential access of the group database.
1487 #$d_getgrent HAS_GETGRENT /**/
1489 /* HAS_GETHOSTBYADDR:
1490 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1491 * available to look up hosts by their IP addresses.
1493 #$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1495 /* HAS_GETHOSTBYNAME:
1496 * This symbol, if defined, indicates that the gethostbyname() routine is
1497 * available to look up host names in some data base or other.
1499 #$d_gethbyname HAS_GETHOSTBYNAME /**/
1502 * This symbol, if defined, indicates that the gethostent() routine is
1503 * available to look up host names in some data base or another.
1505 #$d_gethent HAS_GETHOSTENT /**/
1508 * This symbol, if defined, indicates that the C program may use the
1509 * gethostname() routine to derive the host name. See also HAS_UNAME
1513 * This symbol, if defined, indicates that the C program may use the
1514 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1518 * This symbol, if defined, indicates the command to feed to the
1519 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1520 * and HAS_UNAME. Note that the command uses a fully qualified path,
1521 * so that it is safe even if used by a process with super-user
1525 * This symbol, if defined, indicates that the C program may use the
1526 * contents of PHOSTNAME as a command to feed to the popen() routine
1527 * to derive the host name.
1529 #$d_gethname HAS_GETHOSTNAME /**/
1530 #$d_uname HAS_UNAME /**/
1531 #$d_phostname HAS_PHOSTNAME /**/
1532 #ifdef HAS_PHOSTNAME
1533 #define PHOSTNAME "$aphostname" /* How to get the host name */
1536 /* HAS_GETHOST_PROTOS:
1537 * This symbol, if defined, indicates that <netdb.h> includes
1538 * prototypes for gethostent(), gethostbyname(), and
1539 * gethostbyaddr(). Otherwise, it is up to the program to guess
1540 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1542 #$d_gethostprotos HAS_GETHOST_PROTOS /**/
1545 * This symbol, if defined, indicates that the getitimer routine is
1546 * available to return interval timers.
1548 #$d_getitimer HAS_GETITIMER /**/
1551 * This symbol, if defined, indicates that the getmnt routine is
1552 * available to get filesystem mount info by filename.
1554 #$d_getmnt HAS_GETMNT /**/
1557 * This symbol, if defined, indicates that the getmntent routine is
1558 * available to iterate through mounted file systems to get their info.
1560 #$d_getmntent HAS_GETMNTENT /**/
1562 /* HAS_GETNETBYADDR:
1563 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1564 * available to look up networks by their IP addresses.
1566 #$d_getnbyaddr HAS_GETNETBYADDR /**/
1568 /* HAS_GETNETBYNAME:
1569 * This symbol, if defined, indicates that the getnetbyname() routine is
1570 * available to look up networks by their names.
1572 #$d_getnbyname HAS_GETNETBYNAME /**/
1575 * This symbol, if defined, indicates that the getnetent() routine is
1576 * available to look up network names in some data base or another.
1578 #$d_getnent HAS_GETNETENT /**/
1580 /* HAS_GETNET_PROTOS:
1581 * This symbol, if defined, indicates that <netdb.h> includes
1582 * prototypes for getnetent(), getnetbyname(), and
1583 * getnetbyaddr(). Otherwise, it is up to the program to guess
1584 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1586 #$d_getnetprotos HAS_GETNET_PROTOS /**/
1589 * This symbol, if defined, indicates that the getpagesize system call
1590 * is available to get system page size, which is the granularity of
1591 * many memory management calls.
1593 #$d_getpagsz HAS_GETPAGESIZE /**/
1596 * This symbol, if defined, indicates that the getprotoent() routine is
1597 * available to look up protocols in some data base or another.
1599 #$d_getpent HAS_GETPROTOENT /**/
1602 * This symbol, if defined, indicates that the getpgrp routine is
1603 * available to get the current process group.
1606 * This symbol, if defined, indicates that getpgrp needs one
1607 * arguments whereas USG one needs none.
1609 #$d_getpgrp HAS_GETPGRP /**/
1610 #$d_bsdgetpgrp USE_BSD_GETPGRP /**/
1612 /* HAS_GETPROTOBYNAME:
1613 * This symbol, if defined, indicates that the getprotobyname()
1614 * routine is available to look up protocols by their name.
1616 /* HAS_GETPROTOBYNUMBER:
1617 * This symbol, if defined, indicates that the getprotobynumber()
1618 * routine is available to look up protocols by their number.
1620 #$d_getpbyname HAS_GETPROTOBYNAME /**/
1621 #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1623 /* HAS_GETPROTO_PROTOS:
1624 * This symbol, if defined, indicates that <netdb.h> includes
1625 * prototypes for getprotoent(), getprotobyname(), and
1626 * getprotobyaddr(). Otherwise, it is up to the program to guess
1627 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1629 #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
1632 * This symbol, if defined, indicates that the getprpwnam system call is
1633 * available to retrieve protected (shadow) password entries by name.
1635 #$d_getprpwnam HAS_GETPRPWNAM /**/
1638 * This symbol, if defined, indicates that the getpwent routine is
1639 * available for sequential access of the passwd database.
1640 * If this is not available, the older getpw() function may be available.
1642 #$d_getpwent HAS_GETPWENT /**/
1645 * This symbol, if defined, indicates that the getservent() routine is
1646 * available to look up network services in some data base or another.
1648 #$d_getsent HAS_GETSERVENT /**/
1650 /* HAS_GETSERV_PROTOS:
1651 * This symbol, if defined, indicates that <netdb.h> includes
1652 * prototypes for getservent(), getservbyname(), and
1653 * getservbyaddr(). Otherwise, it is up to the program to guess
1654 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1656 #$d_getservprotos HAS_GETSERV_PROTOS /**/
1659 * This symbol, if defined, indicates that the getspnam system call is
1660 * available to retrieve SysV shadow password entries by name.
1662 #$d_getspnam HAS_GETSPNAM /**/
1664 /* HAS_GETSERVBYNAME:
1665 * This symbol, if defined, indicates that the getservbyname()
1666 * routine is available to look up services by their name.
1668 /* HAS_GETSERVBYPORT:
1669 * This symbol, if defined, indicates that the getservbyport()
1670 * routine is available to look up services by their port.
1672 #$d_getsbyname HAS_GETSERVBYNAME /**/
1673 #$d_getsbyport HAS_GETSERVBYPORT /**/
1676 * This symbol, if defined, indicates to the C program that
1677 * the GNU C library is being used.
1679 #$d_gnulibc HAS_GNULIBC /**/
1680 #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
1681 # define _GNU_SOURCE
1684 * This symbol, if defined, indicates that the hasmntopt routine is
1685 * available to query the mount options of file systems.
1687 #$d_hasmntopt HAS_HASMNTOPT /**/
1690 * This symbol, if defined, indicates that the htonl() routine (and
1691 * friends htons() ntohl() ntohs()) are available to do network
1692 * order byte swapping.
1695 * This symbol, if defined, indicates that the htons() routine (and
1696 * friends htonl() ntohl() ntohs()) are available to do network
1697 * order byte swapping.
1700 * This symbol, if defined, indicates that the ntohl() routine (and
1701 * friends htonl() htons() ntohs()) are available to do network
1702 * order byte swapping.
1705 * This symbol, if defined, indicates that the ntohs() routine (and
1706 * friends htonl() htons() ntohl()) are available to do network
1707 * order byte swapping.
1709 #$d_htonl HAS_HTONL /**/
1710 #$d_htonl HAS_HTONS /**/
1711 #$d_htonl HAS_NTOHL /**/
1712 #$d_htonl HAS_NTOHS /**/
1715 * This symbol will defined if the C compiler supports int64_t.
1716 * Usually the <inttypes.h> needs to be included, but sometimes
1717 * <sys/types.h> is enough.
1719 #$d_int64_t HAS_INT64_T /**/
1722 * This manifest constant lets the C program know that isascii
1725 #$d_isascii HAS_ISASCII /**/
1728 * This symbol, if defined, indicates that the isfinite routine is
1729 * available to check whether a double is finite (non-infinity non-NaN).
1731 #$d_isfinite HAS_ISFINITE /**/
1734 * This symbol, if defined, indicates that the isinf routine is
1735 * available to check whether a double is an infinity.
1737 #$d_isinf HAS_ISINF /**/
1740 * This symbol, if defined, indicates that the isnan routine is
1741 * available to check whether a double is a NaN.
1743 #$d_isnan HAS_ISNAN /**/
1746 * This symbol, if defined, indicates that the isnanl routine is
1747 * available to check whether a long double is a NaN.
1749 #$d_isnanl HAS_ISNANL /**/
1752 * This symbol, if defined, indicates that the lchown routine is
1753 * available to operate on a symbolic link (instead of following the
1756 #$d_lchown HAS_LCHOWN /**/
1759 * This symbol, if defined, indicates that this system's <float.h>
1760 * or <limits.h> defines the symbol LDBL_DIG, which is the number
1761 * of significant digits in a long double precision number. Unlike
1762 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
1764 #$d_ldbl_dig HAS_LDBL_DIG /* */
1767 * This symbol will be defined if the C compiler supports long
1771 * This symbol contains the size of a long double, so that the
1772 * C preprocessor can make decisions based on it. It is only
1773 * defined if the system supports long doubles.
1775 #$d_longdbl HAS_LONG_DOUBLE /**/
1776 #ifdef HAS_LONG_DOUBLE
1777 #define LONG_DOUBLESIZE $longdblsize /**/
1781 * This symbol will be defined if the C compiler supports long long.
1784 * This symbol contains the size of a long long, so that the
1785 * C preprocessor can make decisions based on it. It is only
1786 * defined if the system supports long long.
1788 #$d_longlong HAS_LONG_LONG /**/
1789 #ifdef HAS_LONG_LONG
1790 #define LONGLONGSIZE $longlongsize /**/
1794 * This symbol, if defined, indicates that the system provides
1795 * a prototype for the lseek() function. Otherwise, it is up
1796 * to the program to supply one. A good guess is
1797 * extern off_t lseek(int, off_t, int);
1799 #$d_lseekproto HAS_LSEEK_PROTO /**/
1802 * This symbol, if defined, indicates that the madvise system call is
1803 * available to map a file into memory.
1805 #$d_madvise HAS_MADVISE /**/
1808 * This symbol, if defined, indicates that the memchr routine is available
1809 * to locate characters within a C string.
1811 #$d_memchr HAS_MEMCHR /**/
1814 * This symbol, if defined, indicates that the mkdtemp routine is
1815 * available to exclusively create a uniquely named temporary directory.
1817 #$d_mkdtemp HAS_MKDTEMP /**/
1820 * This symbol, if defined, indicates that the mkstemp routine is
1821 * available to exclusively create and open a uniquely named
1824 #$d_mkstemp HAS_MKSTEMP /**/
1827 * This symbol, if defined, indicates that the mkstemps routine is
1828 * available to excluslvely create and open a uniquely named
1829 * (with a suffix) temporary file.
1831 #$d_mkstemps HAS_MKSTEMPS /**/
1834 * This symbol, if defined, indicates that the mmap system call is
1835 * available to map a file into memory.
1838 * This symbol holds the return type of the mmap() system call
1839 * (and simultaneously the type of the first argument).
1840 * Usually set to 'void *' or 'cadd_t'.
1842 #$d_mmap HAS_MMAP /**/
1843 #define Mmap_t $mmaptype /**/
1846 * This symbol, if defined, indicates that the modfl routine is
1847 * available to split a long double x into a fractional part f and
1848 * an integer part i such that |f| < 1.0 and (f + i) = x.
1850 /* HAS_MODFL_POW32_BUG:
1851 * This symbol, if defined, indicates that the modfl routine is
1852 * broken for long doubles >= pow(2, 32).
1853 * For example from 4294967303.150000 one would get 4294967302.000000
1854 * and 1.150000. The bug has been seen in certain versions of glibc,
1855 * release 2.2.2 is known to be okay.
1857 #$d_modfl HAS_MODFL /**/
1858 #$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/
1861 * This symbol, if defined, indicates that the mprotect system call is
1862 * available to modify the access protection of a memory mapped file.
1864 #$d_mprotect HAS_MPROTECT /**/
1867 * This symbol, if defined, indicates that the entire msg*(2) library is
1868 * supported (IPC mechanism based on message queues).
1870 #$d_msg HAS_MSG /**/
1872 /* HAS_STRUCT_MSGHDR:
1873 * This symbol, if defined, indicates that the struct msghdr
1876 #$d_msghdr_s HAS_STRUCT_MSGHDR /**/
1879 * This symbol will be defined if the C compiler supports off64_t.
1881 #$d_off64_t HAS_OFF64_T /**/
1884 * This manifest constant lets the C program know that the three
1885 * argument form of open(2) is available.
1887 #$d_open3 HAS_OPEN3 /**/
1889 /* OLD_PTHREAD_CREATE_JOINABLE:
1890 * This symbol, if defined, indicates how to create pthread
1891 * in joinable (aka undetached) state. NOTE: not defined
1892 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
1893 * (the new version of the constant).
1894 * If defined, known values are PTHREAD_CREATE_UNDETACHED
1897 #$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
1899 /* HAS_PTHREAD_YIELD:
1900 * This symbol, if defined, indicates that the pthread_yield
1901 * routine is available to yield the execution of the current
1902 * thread. sched_yield is preferable to pthread_yield.
1905 * This symbol defines the way to yield the execution of
1906 * the current thread. Known ways are sched_yield,
1907 * pthread_yield, and pthread_yield with NULL.
1910 * This symbol, if defined, indicates that the sched_yield
1911 * routine is available to yield the execution of the current
1912 * thread. sched_yield is preferable to pthread_yield.
1914 #$d_pthread_yield HAS_PTHREAD_YIELD /**/
1915 #define SCHED_YIELD $sched_yield /**/
1916 #$d_sched_yield HAS_SCHED_YIELD /**/
1919 * This symbol, if defined, indicates that the readv routine is
1920 * available to do gather reads. You will also need <sys/uio.h>
1921 * and there I_SYSUIO.
1923 #$d_readv HAS_READV /**/
1926 * This symbol, if defined, indicates that the recvmsg routine is
1927 * available to send structured socket messages.
1929 #$d_recvmsg HAS_RECVMSG /**/
1932 * This symbol, if defined, indicates that the bcopy routine is available
1933 * to copy potentially overlapping memory blocks. Normally, you should
1934 * probably use memmove() or memcpy(). If neither is defined, roll your
1937 #$d_safebcpy HAS_SAFE_BCOPY /**/
1940 * This symbol, if defined, indicates that the memcpy routine is available
1941 * to copy potentially overlapping memory blocks. If you need to
1942 * copy overlapping memory blocks, you should check HAS_MEMMOVE and
1943 * use memmove() instead, if available.
1945 #$d_safemcpy HAS_SAFE_MEMCPY /**/
1948 * This symbol, if defined, indicates that the memcmp routine is available
1949 * and can be used to compare relative magnitudes of chars with their high
1950 * bits set. If it is not defined, roll your own version.
1952 #$d_sanemcmp HAS_SANE_MEMCMP /**/
1955 * This symbol, if defined, indicates that the system provides
1956 * a prototype for the sbrk() function. Otherwise, it is up
1957 * to the program to supply one. Good guesses are
1958 * extern void* sbrk _((int));
1959 * extern void* sbrk _((size_t));
1961 #$d_sbrkproto HAS_SBRK_PROTO /**/
1964 * This symbol, if defined, indicates that the entire sem*(2) library is
1967 #$d_sem HAS_SEM /**/
1970 * This symbol, if defined, indicates that the sendmsg routine is
1971 * available to send structured socket messages.
1973 #$d_sendmsg HAS_SENDMSG /**/
1976 * This symbol, if defined, indicates that the setgrent routine is
1977 * available for initializing sequential access of the group database.
1979 #$d_setgrent HAS_SETGRENT /**/
1982 * This symbol, if defined, indicates that the setgroups() routine is
1983 * available to set the list of process groups. If unavailable, multiple
1984 * groups are probably not supported.
1986 #$d_setgrps HAS_SETGROUPS /**/
1989 * This symbol, if defined, indicates that the sethostent() routine is
1992 #$d_sethent HAS_SETHOSTENT /**/
1995 * This symbol, if defined, indicates that the setitimer routine is
1996 * available to set interval timers.
1998 #$d_setitimer HAS_SETITIMER /**/
2001 * This symbol, if defined, indicates that the setnetent() routine is
2004 #$d_setnent HAS_SETNETENT /**/
2007 * This symbol, if defined, indicates that the setprotoent() routine is
2010 #$d_setpent HAS_SETPROTOENT /**/
2013 * This symbol, if defined, indicates that the setpgrp routine is
2014 * available to set the current process group.
2017 * This symbol, if defined, indicates that setpgrp needs two
2018 * arguments whereas USG one needs none. See also HAS_SETPGID
2019 * for a POSIX interface.
2021 #$d_setpgrp HAS_SETPGRP /**/
2022 #$d_bsdsetpgrp USE_BSD_SETPGRP /**/
2024 /* HAS_SETPROCTITLE:
2025 * This symbol, if defined, indicates that the setproctitle routine is
2026 * available to set process title.
2028 #$d_setproctitle HAS_SETPROCTITLE /**/
2031 * This symbol, if defined, indicates that the setpwent routine is
2032 * available for initializing sequential access of the passwd database.
2034 #$d_setpwent HAS_SETPWENT /**/
2037 * This symbol, if defined, indicates that the setservent() routine is
2040 #$d_setsent HAS_SETSERVENT /**/
2043 * This symbol, if defined, indicates that the setvbuf routine is
2044 * available to change buffering on an open stdio stream.
2045 * to a line-buffered mode.
2047 #$d_setvbuf HAS_SETVBUF /**/
2050 * This symbol, if defined, indicates that sfio should
2053 #$d_sfio USE_SFIO /**/
2056 * This symbol, if defined, indicates that the entire shm*(2) library is
2059 #$d_shm HAS_SHM /**/
2062 * This symbol, if defined, indicates that Vr4's sigaction() routine
2065 #$d_sigaction HAS_SIGACTION /**/
2068 * This variable indicates to the C program that the sigsetjmp()
2069 * routine is available to save the calling process's registers
2070 * and stack environment for later use by siglongjmp(), and
2071 * to optionally save the process's signal mask. See
2072 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
2075 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
2078 * This macro is used in the same way as sigsetjmp(), but will invoke
2079 * traditional setjmp() if sigsetjmp isn't available.
2080 * See HAS_SIGSETJMP.
2083 * This macro is used in the same way as siglongjmp(), but will invoke
2084 * traditional longjmp() if siglongjmp isn't available.
2085 * See HAS_SIGSETJMP.
2087 #$d_sigsetjmp HAS_SIGSETJMP /**/
2088 #ifdef HAS_SIGSETJMP
2089 #define Sigjmp_buf sigjmp_buf
2090 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
2091 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
2093 #define Sigjmp_buf jmp_buf
2094 #define Sigsetjmp(buf,save_mask) setjmp((buf))
2095 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
2099 * This symbol, if defined, indicates that the BSD socket interface is
2103 * This symbol, if defined, indicates that the BSD socketpair() call is
2107 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
2108 * Checking just with #ifdef might not be enough because this symbol
2109 * has been known to be an enum.
2111 /* HAS_MSG_DONTROUTE:
2112 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
2113 * Checking just with #ifdef might not be enough because this symbol
2114 * has been known to be an enum.
2117 * This symbol, if defined, indicates that the MSG_OOB is supported.
2118 * Checking just with #ifdef might not be enough because this symbol
2119 * has been known to be an enum.
2122 * This symbol, if defined, indicates that the MSG_PEEK is supported.
2123 * Checking just with #ifdef might not be enough because this symbol
2124 * has been known to be an enum.
2127 * This symbol, if defined, indicates that the MSG_PROXY is supported.
2128 * Checking just with #ifdef might not be enough because this symbol
2129 * has been known to be an enum.
2132 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
2133 * Checking just with #ifdef might not be enough because this symbol
2134 * has been known to be an enum.
2136 #$d_socket HAS_SOCKET /**/
2137 #$d_sockpair HAS_SOCKETPAIR /**/
2138 #$d_msg_ctrunc HAS_MSG_CTRUNC /**/
2139 #$d_msg_dontroute HAS_MSG_DONTROUTE /**/
2140 #$d_msg_oob HAS_MSG_OOB /**/
2141 #$d_msg_peek HAS_MSG_PEEK /**/
2142 #$d_msg_proxy HAS_MSG_PROXY /**/
2143 #$d_scm_rights HAS_SCM_RIGHTS /**/
2146 * This symbol, if defined, indicates that the socks5_init routine is
2147 * available to initialize SOCKS 5.
2149 #$d_socks5_init HAS_SOCKS5_INIT /**/
2152 * This symbol, if defined, indicates that the sqrtl routine is
2153 * available to do long double square roots.
2155 #$d_sqrtl HAS_SQRTL /**/
2158 * This symbol is defined if this system has a stat structure declaring
2159 * st_blksize and st_blocks.
2161 #ifndef USE_STAT_BLOCKS
2162 #$d_statblks USE_STAT_BLOCKS /**/
2165 /* HAS_STRUCT_STATFS_F_FLAGS:
2166 * This symbol, if defined, indicates that the struct statfs
2167 * does have the f_flags member containing the mount flags of
2168 * the filesystem containing the file.
2169 * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
2170 * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
2171 * have statfs() and struct statfs, they have ustat() and getmnt()
2172 * with struct ustat and struct fs_data.
2174 #$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/
2176 /* HAS_STRUCT_STATFS:
2177 * This symbol, if defined, indicates that the struct statfs
2178 * to do statfs() is supported.
2180 #$d_statfs_s HAS_STRUCT_STATFS /**/
2183 * This symbol, if defined, indicates that the fstatvfs routine is
2184 * available to stat filesystems by file descriptors.
2186 #$d_fstatvfs HAS_FSTATVFS /**/
2189 * This symbol is defined if the _ptr and _cnt fields (or similar)
2190 * of the stdio FILE structure can be used to access the stdio buffer
2191 * for a file handle. If this is defined, then the FILE_ptr(fp)
2192 * and FILE_cnt(fp) macros will also be defined and should be used
2193 * to access these fields.
2196 * This macro is used to access the _ptr field (or equivalent) of the
2197 * FILE structure pointed to by its argument. This macro will always be
2198 * defined if USE_STDIO_PTR is defined.
2200 /* STDIO_PTR_LVALUE:
2201 * This symbol is defined if the FILE_ptr macro can be used as an
2205 * This macro is used to access the _cnt field (or equivalent) of the
2206 * FILE structure pointed to by its argument. This macro will always be
2207 * defined if USE_STDIO_PTR is defined.
2209 /* STDIO_CNT_LVALUE:
2210 * This symbol is defined if the FILE_cnt macro can be used as an
2213 /* STDIO_PTR_LVAL_SETS_CNT:
2214 * This symbol is defined if using the FILE_ptr macro as an lvalue
2215 * to increase the pointer by n has the side effect of decreasing the
2216 * value of File_cnt(fp) by n.
2218 /* STDIO_PTR_LVAL_NOCHANGE_CNT:
2219 * This symbol is defined if using the FILE_ptr macro as an lvalue
2220 * to increase the pointer by n leaves File_cnt(fp) unchanged.
2222 #$d_stdstdio USE_STDIO_PTR /**/
2223 #ifdef USE_STDIO_PTR
2224 #define FILE_ptr(fp) $stdio_ptr
2225 #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
2226 #define FILE_cnt(fp) $stdio_cnt
2227 #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
2228 #$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
2229 #$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
2233 * This symbol is defined if the _base field (or similar) of the
2234 * stdio FILE structure can be used to access the stdio buffer for
2235 * a file handle. If this is defined, then the FILE_base(fp) macro
2236 * will also be defined and should be used to access this field.
2237 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
2238 * to determine the number of bytes in the buffer. USE_STDIO_BASE
2239 * will never be defined unless USE_STDIO_PTR is.
2242 * This macro is used to access the _base field (or equivalent) of the
2243 * FILE structure pointed to by its argument. This macro will always be
2244 * defined if USE_STDIO_BASE is defined.
2247 * This macro is used to determine the number of bytes in the I/O
2248 * buffer pointed to by _base field (or equivalent) of the FILE
2249 * structure pointed to its argument. This macro will always be defined
2250 * if USE_STDIO_BASE is defined.
2252 #$d_stdiobase USE_STDIO_BASE /**/
2253 #ifdef USE_STDIO_BASE
2254 #define FILE_base(fp) $stdio_base
2255 #define FILE_bufsiz(fp) $stdio_bufsiz
2259 * This symbol, if defined, indicates that the strerror routine is
2260 * available to translate error numbers to strings. See the writeup
2261 * of Strerror() in this file before you try to define your own.
2264 * This symbol, if defined, indicates that the sys_errlist array is
2265 * available to translate error numbers to strings. The extern int
2266 * sys_nerr gives the size of that table.
2269 * This preprocessor symbol is defined as a macro if strerror() is
2270 * not available to translate error numbers to strings but sys_errlist[]
2273 #$d_strerror HAS_STRERROR /**/
2274 #$d_syserrlst HAS_SYS_ERRLIST /**/
2275 #define Strerror(e) $d_strerrm
2278 * This symbol, if defined, indicates that the strtold routine is
2279 * available to convert strings to long doubles.
2281 #$d_strtold HAS_STRTOLD /**/
2284 * This symbol, if defined, indicates that the strtoll routine is
2285 * available to convert strings to long longs.
2287 #$d_strtoll HAS_STRTOLL /**/
2290 * This symbol, if defined, indicates that the strtoq routine is
2291 * available to convert strings to long longs (quads).
2293 #$d_strtoq HAS_STRTOQ /**/
2296 * This symbol, if defined, indicates that the strtoul routine is
2297 * available to provide conversion of strings to unsigned long.
2299 #$d_strtoul HAS_STRTOUL /**/
2302 * This symbol, if defined, indicates that the strtoull routine is
2303 * available to convert strings to unsigned long longs.
2305 #$d_strtoull HAS_STRTOULL /**/
2308 * This symbol, if defined, indicates that the strtouq routine is
2309 * available to convert strings to unsigned long longs (quads).
2311 #$d_strtouq HAS_STRTOUQ /**/
2313 /* HAS_TELLDIR_PROTO:
2314 * This symbol, if defined, indicates that the system provides
2315 * a prototype for the telldir() function. Otherwise, it is up
2316 * to the program to supply one. A good guess is
2317 * extern long telldir _((DIR*));
2319 #$d_telldirproto HAS_TELLDIR_PROTO /**/
2322 * This symbol holds the type returned by time(). It can be long,
2323 * or time_t on BSD sites (in which case <sys/types.h> should be
2326 #define Time_t $timetype /* Time type */
2329 * This symbol, if defined, indicates that the times() routine exists.
2330 * Note that this became obsolete on some systems (SUNOS), which now
2331 * use getrusage(). It may be necessary to include <sys/times.h>.
2333 #$d_times HAS_TIMES /**/
2336 * This symbol, if defined, indicates that the ualarm routine is
2337 * available to do alarms with microsecond granularity.
2339 #$d_ualarm HAS_UALARM /**/
2342 * This symbol, if defined, indicates that the union semun is
2343 * defined by including <sys/sem.h>. If not, the user code
2344 * probably needs to define it as:
2347 * struct semid_ds *buf;
2348 * unsigned short *array;
2351 /* USE_SEMCTL_SEMUN:
2352 * This symbol, if defined, indicates that union semun is
2353 * used for semctl IPC_STAT.
2355 /* USE_SEMCTL_SEMID_DS:
2356 * This symbol, if defined, indicates that struct semid_ds * is
2357 * used for semctl IPC_STAT.
2359 #$d_union_semun HAS_UNION_SEMUN /**/
2360 #$d_semctl_semun USE_SEMCTL_SEMUN /**/
2361 #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
2364 * This symbol, if defined, indicates that the unordered routine is
2365 * available to check whether two doubles are unordered
2366 * (effectively: whether either of them is NaN)
2368 #$d_unordered HAS_UNORDERED /**/
2371 * This symbol, if defined, indicates that the ustat system call is
2372 * available to query file system statistics by dev_t.
2374 #$d_ustat HAS_USTAT /**/
2377 * This symbol, if defined, indicates that vfork() exists.
2379 #$d_vfork HAS_VFORK /**/
2382 * This symbol's value is either "void" or "int", corresponding to the
2383 * appropriate return type of a signal handler. Thus, you can declare
2384 * a signal handler using "Signal_t (*handler)()", and define the
2385 * handler using "Signal_t handler(sig)".
2387 #define Signal_t $signal_t /* Signal handler's return type */
2390 * This symbol, if defined, indicates that the vprintf routine is available
2391 * to printf with a pointer to an argument list. If unavailable, you
2392 * may need to write your own, probably in terms of _doprnt().
2394 /* USE_CHAR_VSPRINTF:
2395 * This symbol is defined if this system has vsprintf() returning type
2396 * (char*). The trend seems to be to declare it as "int vsprintf()". It
2397 * is up to the package author to declare vsprintf correctly based on the
2400 #$d_vprintf HAS_VPRINTF /**/
2401 #$d_charvspr USE_CHAR_VSPRINTF /**/
2404 * This symbol, if defined, indicates that the writev routine is
2405 * available to do scatter writes.
2407 #$d_writev HAS_WRITEV /**/
2409 /* USE_DYNAMIC_LOADING:
2410 * This symbol, if defined, indicates that dynamic loading of
2411 * some sort is available.
2413 #$usedl USE_DYNAMIC_LOADING /**/
2416 * This symbol contains the size of a double, so that the C preprocessor
2417 * can make decisions based on it.
2419 #define DOUBLESIZE $doublesize /**/
2422 * This symbol, if defined, indicates that this system uses
2425 #$ebcdic EBCDIC /**/
2428 * This symbol, if defined, tells that fflush(NULL) does flush
2429 * all pending stdio output.
2432 * This symbol, if defined, tells that to flush
2433 * all pending stdio output one must loop through all
2434 * the stdio file handles stored in an array and fflush them.
2435 * Note that if fflushNULL is defined, fflushall will not
2436 * even be probed for and will be left undefined.
2438 #$fflushNULL FFLUSH_NULL /**/
2439 #$fflushall FFLUSH_ALL /**/
2442 * This symbol holds the type used to declare file positions in libc.
2443 * It can be fpos_t, long, uint, etc... It may be necessary to include
2444 * <sys/types.h> to get any typedef'ed information.
2446 #define Fpos_t $fpostype /* File position type */
2449 * This symbol defines the format string used for printing a Gid_t.
2451 #define Gid_t_f $gidformat /**/
2454 * This symbol holds the signedess of a Gid_t.
2455 * 1 for unsigned, -1 for signed.
2457 #define Gid_t_sign $gidsign /* GID sign */
2460 * This symbol holds the size of a Gid_t in bytes.
2462 #define Gid_t_size $gidsize /* GID size */
2465 * This symbol holds the return type of getgid() and the type of
2466 * argument to setrgid() and related functions. Typically,
2467 * it is the type of group ids in the kernel. It can be int, ushort,
2468 * gid_t, etc... It may be necessary to include <sys/types.h> to get
2469 * any typedef'ed information.
2471 #define Gid_t $gidtype /* Type for getgid(), etc... */
2474 * This symbol holds the type used for the second argument to
2475 * getgroups() and setgroups(). Usually, this is the same as
2476 * gidtype (gid_t) , but sometimes it isn't.
2477 * It can be int, ushort, gid_t, etc...
2478 * It may be necessary to include <sys/types.h> to get any
2479 * typedef'ed information. This is only required if you have
2480 * getgroups() or setgroups()..
2482 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
2483 #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
2487 * This symbol contains the type of the prefix structure element
2488 * in the <db.h> header file. In older versions of DB, it was
2489 * int, while in newer ones it is u_int32_t.
2492 * This symbol contains the type of the prefix structure element
2493 * in the <db.h> header file. In older versions of DB, it was
2494 * int, while in newer ones it is size_t.
2496 /* DB_VERSION_MAJOR_CFG:
2497 * This symbol, if defined, defines the major version number of
2498 * Berkeley DB found in the <db.h> header when Perl was configured.
2500 /* DB_VERSION_MINOR_CFG:
2501 * This symbol, if defined, defines the minor version number of
2502 * Berkeley DB found in the <db.h> header when Perl was configured.
2503 * For DB version 1 this is always 0.
2505 /* DB_VERSION_PATCH_CFG:
2506 * This symbol, if defined, defines the patch version number of
2507 * Berkeley DB found in the <db.h> header when Perl was configured.
2508 * For DB version 1 this is always 0.
2510 #define DB_Hash_t $db_hashtype /**/
2511 #define DB_Prefix_t $db_prefixtype /**/
2512 #define DB_VERSION_MAJOR_CFG $db_version_major /**/
2513 #define DB_VERSION_MINOR_CFG $db_version_minor /**/
2514 #define DB_VERSION_PATCH_CFG $db_version_patch /**/
2517 * This symbol, if defined, indicates that <fp_class.h> exists and
2518 * should be included.
2520 #$i_fp_class I_FP_CLASS /**/
2523 * This symbol, if defined, indicates to the C program that it should
2527 * This symbol, if defined, indicates to the C program that struct group
2528 * in <grp.h> contains gr_passwd.
2531 #$d_grpasswd GRPASSWD /**/
2534 * This symbol, if defined, indicates that <ieeefp.h> exists and
2535 * should be included.
2537 #$i_ieeefp I_IEEEFP /**/
2540 * This symbol, if defined, indicates to the C program that it should
2541 * include <inttypes.h>.
2543 #$i_inttypes I_INTTYPES /**/
2546 * This symbol, if defined, indicates that <libutil.h> exists and
2547 * should be included.
2549 #$i_libutil I_LIBUTIL /**/
2552 * This symbol, if defined, indicates to the C program that it should
2553 * include <mach/cthreads.h>.
2555 #$i_machcthr I_MACH_CTHREADS /**/
2558 * This symbol, if defined, indicates that <mntent.h> exists and
2559 * should be included.
2561 #$i_mntent I_MNTENT /**/
2564 * This symbol, if defined, indicates that <netdb.h> exists and
2565 * should be included.
2567 #$i_netdb I_NETDB /**/
2570 * This symbol, if defined, indicates to the C program that it should
2571 * include <netinet/tcp.h>.
2573 #$i_netinettcp I_NETINET_TCP /**/
2576 * This symbol, if defined, indicates that <poll.h> exists and
2577 * should be included.
2579 #$i_poll I_POLL /**/
2582 * This symbol, if defined, indicates that <prot.h> exists and
2583 * should be included.
2585 #$i_prot I_PROT /**/
2588 * This symbol, if defined, indicates to the C program that it should
2589 * include <pthread.h>.
2591 #$i_pthread I_PTHREAD /**/
2594 * This symbol, if defined, indicates to the C program that it should
2598 * This symbol, if defined, indicates to the C program that struct passwd
2599 * contains pw_quota.
2602 * This symbol, if defined, indicates to the C program that struct passwd
2606 * This symbol, if defined, indicates to the C program that struct passwd
2607 * contains pw_change.
2610 * This symbol, if defined, indicates to the C program that struct passwd
2611 * contains pw_class.
2614 * This symbol, if defined, indicates to the C program that struct passwd
2615 * contains pw_expire.
2618 * This symbol, if defined, indicates to the C program that struct passwd
2619 * contains pw_comment.
2622 * This symbol, if defined, indicates to the C program that struct passwd
2623 * contains pw_gecos.
2626 * This symbol, if defined, indicates to the C program that struct passwd
2627 * contains pw_passwd.
2630 #$d_pwquota PWQUOTA /**/
2631 #$d_pwage PWAGE /**/
2632 #$d_pwchange PWCHANGE /**/
2633 #$d_pwclass PWCLASS /**/
2634 #$d_pwexpire PWEXPIRE /**/
2635 #$d_pwcomment PWCOMMENT /**/
2636 #$d_pwgecos PWGECOS /**/
2637 #$d_pwpasswd PWPASSWD /**/
2640 * This symbol, if defined, indicates that <shadow.h> exists and
2641 * should be included.
2643 #$i_shadow I_SHADOW /**/
2646 * This symbol, if defined, indicates that <socks.h> exists and
2647 * should be included.
2649 #$i_socks I_SOCKS /**/
2652 * This symbol, if defined, indicates that <sunmath.h> exists and
2653 * should be included.
2655 #$i_sunmath I_SUNMATH /**/
2658 * This symbol, if defined, indicates that <syslog.h> exists and
2659 * should be included.
2661 #$i_syslog I_SYSLOG /**/
2664 * This symbol, if defined, indicates that <sys/mode.h> exists and
2665 * should be included.
2667 #$i_sysmode I_SYSMODE /**/
2670 * This symbol, if defined, indicates that <sys/mount.h> exists and
2671 * should be included.
2673 #$i_sysmount I_SYS_MOUNT /**/
2676 * This symbol, if defined, indicates that <sys/statfs.h> exists.
2678 #$i_sysstatfs I_SYS_STATFS /**/
2681 * This symbol, if defined, indicates that <sys/statvfs.h> exists and
2682 * should be included.
2684 #$i_sysstatvfs I_SYS_STATVFS /**/
2687 * This symbol, if defined, indicates that <sys/uio.h> exists and
2688 * should be included.
2690 #$i_sysuio I_SYSUIO /**/
2693 * This symbol, if defined, indicates that <sys/utsname.h> exists and
2694 * should be included.
2696 #$i_sysutsname I_SYSUTSNAME /**/
2699 * This symbol, if defined, indicates that <sys/vfs.h> exists and
2700 * should be included.
2702 #$i_sysvfs I_SYS_VFS /**/
2705 * This symbol, if defined, indicates to the C program that it should
2709 * This symbol, if defined, indicates to the C program that it should
2710 * include <sys/time.h>.
2712 /* I_SYS_TIME_KERNEL:
2713 * This symbol, if defined, indicates to the C program that it should
2714 * include <sys/time.h> with KERNEL defined.
2716 #$i_time I_TIME /**/
2717 #$i_systime I_SYS_TIME /**/
2718 #$i_systimek I_SYS_TIME_KERNEL /**/
2721 * This symbol, if defined, indicates that <ustat.h> exists and
2722 * should be included.
2724 #$i_ustat I_USTAT /**/
2726 /* PERL_INC_VERSION_LIST:
2727 * This variable specifies the list of subdirectories in over
2728 * which perl.c:incpush() and lib/lib.pm will automatically
2729 * search when adding directories to @INC, in a format suitable
2730 * for a C initialization string. See the inc_version_list entry
2731 * in Porting/Glossary for more details.
2733 #define PERL_INC_VERSION_LIST $inc_version_list_init /**/
2735 /* INSTALL_USR_BIN_PERL:
2736 * This symbol, if defined, indicates that Perl is to be installed
2737 * also as /usr/bin/perl.
2739 #$installusrbinperl INSTALL_USR_BIN_PERL /**/
2742 * This symbol, if defined, contains the string used by stdio to
2743 * format long doubles (format 'f') for output.
2746 * This symbol, if defined, contains the string used by stdio to
2747 * format long doubles (format 'g') for output.
2750 * This symbol, if defined, contains the string used by stdio to
2751 * format long doubles (format 'e') for output.
2754 * This symbol, if defined, contains the string used by stdio to
2755 * format long doubles (format 'f') for input.
2757 #$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/
2758 #$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/
2759 #$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/
2760 #$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/
2763 * This symbol holds the type used to declare offsets in the kernel.
2764 * It can be int, long, off_t, etc... It may be necessary to include
2765 * <sys/types.h> to get any typedef'ed information.
2768 * This symbol holds the number of bytes used by the Off_t.
2771 * This symbol holds the number of bytes used by the Off_t.
2773 #define Off_t $lseektype /* <offset> type */
2774 #define LSEEKSIZE $lseeksize /* <offset> size */
2775 #define Off_t_size $lseeksize /* <offset> size */
2778 * This variable contains the return type of free(). It is usually
2779 * void, but occasionally int.
2782 * This symbol is the type of pointer returned by malloc and realloc.
2784 #define Malloc_t $malloctype /**/
2785 #define Free_t $freetype /**/
2788 * This symbol, if defined, indicates that we're using our own malloc.
2790 #$d_mymalloc MYMALLOC /**/
2793 * This symbol holds the type used to declare file modes
2794 * for systems calls. It is usually mode_t, but may be
2795 * int or unsigned short. It may be necessary to include <sys/types.h>
2796 * to get any typedef'ed information.
2798 #define Mode_t $modetype /* file mode parameter for system calls */
2801 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
2802 * non-blocking I/O for the file descriptor. Note that there is no way
2803 * back, i.e. you cannot turn it blocking again this way. If you wish to
2804 * alternatively switch between blocking and non-blocking, use the
2805 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
2808 * This symbol holds the errno error code set by read() when no data was
2809 * present on the non-blocking file descriptor.
2812 * This symbol holds the return code from read() when no data is present
2813 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
2814 * not defined, then you can't distinguish between no data and EOF by
2815 * issuing a read(). You'll have to find another way to tell for sure!
2818 * This symbol, if defined, indicates to the C program that a read() on
2819 * a non-blocking file descriptor will return 0 on EOF, and not the value
2820 * held in RD_NODATA (-1 usually, in that case!).
2822 #define VAL_O_NONBLOCK $o_nonblock
2823 #define VAL_EAGAIN $eagain
2824 #define RD_NODATA $rd_nodata
2825 #$d_eofnblk EOF_NONBLOCK
2828 * This symbol, if defined, indicates that the system stores
2829 * the variable argument list datatype, va_list, in a format
2830 * that cannot be copied by simple assignment, so that some
2831 * other means must be used when copying is required.
2832 * As such systems vary in their provision (or non-provision)
2833 * of copying mechanisms, handy.h defines a platform-
2834 * independent macro, Perl_va_copy(src, dst), to do the job.
2836 #$need_va_copy NEED_VA_COPY /**/
2839 * This symbol holds the type used for the 1st argument
2840 * to gethostbyaddr().
2843 * This symbol holds the type used for the 2nd argument
2844 * to gethostbyaddr().
2847 * This symbol holds the type used for the argument to
2851 * This symbol holds the type used for the 1st argument to
2854 #define Netdb_host_t $netdb_host_type /**/
2855 #define Netdb_hlen_t $netdb_hlen_type /**/
2856 #define Netdb_name_t $netdb_name_type /**/
2857 #define Netdb_net_t $netdb_net_type /**/
2859 /* PERL_OTHERLIBDIRS:
2860 * This variable contains a colon-separated set of paths for the perl
2861 * binary to search for additional library files or modules.
2862 * These directories will be tacked to the end of @INC.
2863 * Perl will automatically search below each path for version-
2864 * and architecture-specific directories. See PERL_INC_VERSION_LIST
2867 #$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
2870 * This symbol defines the C type used for Perl's IV.
2873 * This symbol defines the C type used for Perl's UV.
2876 * This symbol defines the C type used for Perl's I8.
2879 * This symbol defines the C type used for Perl's U8.
2882 * This symbol defines the C type used for Perl's I16.
2885 * This symbol defines the C type used for Perl's U16.
2888 * This symbol defines the C type used for Perl's I32.
2891 * This symbol defines the C type used for Perl's U32.
2894 * This symbol defines the C type used for Perl's I64.
2897 * This symbol defines the C type used for Perl's U64.
2900 * This symbol defines the C type used for Perl's NV.
2903 * This symbol contains the sizeof(IV).
2906 * This symbol contains the sizeof(UV).
2909 * This symbol contains the sizeof(I8).
2912 * This symbol contains the sizeof(U8).
2915 * This symbol contains the sizeof(I16).
2918 * This symbol contains the sizeof(U16).
2921 * This symbol contains the sizeof(I32).
2924 * This symbol contains the sizeof(U32).
2927 * This symbol contains the sizeof(I64).
2930 * This symbol contains the sizeof(U64).
2933 * This symbol contains the sizeof(NV).
2936 * This symbol, if defined, indicates that a variable of type NVTYPE
2937 * can preserve all the bits of a variable of type UVTYPE.
2939 /* NV_PRESERVES_UV_BITS:
2940 * This symbol contains the number of bits a variable of type NVTYPE
2941 * can preserve of a variable of type UVTYPE.
2943 #define IVTYPE $ivtype /**/
2944 #define UVTYPE $uvtype /**/
2945 #define I8TYPE $i8type /**/
2946 #define U8TYPE $u8type /**/
2947 #define I16TYPE $i16type /**/
2948 #define U16TYPE $u16type /**/
2949 #define I32TYPE $i32type /**/
2950 #define U32TYPE $u32type /**/
2952 #define I64TYPE $i64type /**/
2953 #define U64TYPE $u64type /**/
2955 #define NVTYPE $nvtype /**/
2956 #define IVSIZE $ivsize /**/
2957 #define UVSIZE $uvsize /**/
2958 #define I8SIZE $i8size /**/
2959 #define U8SIZE $u8size /**/
2960 #define I16SIZE $i16size /**/
2961 #define U16SIZE $u16size /**/
2962 #define I32SIZE $i32size /**/
2963 #define U32SIZE $u32size /**/
2965 #define I64SIZE $i64size /**/
2966 #define U64SIZE $u64size /**/
2968 #define NVSIZE $nvsize /**/
2969 #$d_nv_preserves_uv NV_PRESERVES_UV
2970 #define NV_PRESERVES_UV_BITS $d_nv_preserves_uv_bits
2973 * This symbol defines the format string used for printing a Perl IV
2974 * as a signed decimal integer.
2977 * This symbol defines the format string used for printing a Perl UV
2978 * as an unsigned decimal integer.
2981 * This symbol defines the format string used for printing a Perl UV
2982 * as an unsigned octal integer.
2985 * This symbol defines the format string used for printing a Perl UV
2986 * as an unsigned hexadecimal integer in lowercase abcdef.
2989 * This symbol defines the format string used for printing a Perl UV
2990 * as an unsigned hexadecimal integer in uppercase ABCDEF.
2993 * This symbol defines the format string used for printing a Perl NV
2994 * using %e-ish floating point format.
2997 * This symbol defines the format string used for printing a Perl NV
2998 * using %f-ish floating point format.
3001 * This symbol defines the format string used for printing a Perl NV
3002 * using %g-ish floating point format.
3004 #define IVdf $ivdformat /**/
3005 #define UVuf $uvuformat /**/
3006 #define UVof $uvoformat /**/
3007 #define UVxf $uvxformat /**/
3008 #define UVXf $uvXUformat /**/
3009 #define NVef $nveformat /**/
3010 #define NVff $nvfformat /**/
3011 #define NVgf $nvgformat /**/
3014 * This symbol holds the type used to declare process ids in the kernel.
3015 * It can be int, uint, pid_t, etc... It may be necessary to include
3016 * <sys/types.h> to get any typedef'ed information.
3018 #define Pid_t $pidtype /* PID type */
3021 * This symbol contains the name of the private library for this package.
3022 * The library is private in the sense that it needn't be in anyone's
3023 * execution path, but it should be accessible by the world. The program
3024 * should be prepared to do ~ expansion.
3027 * This symbol contains the ~name expanded version of PRIVLIB, to be used
3028 * in programs that are not prepared to deal with ~ expansion at run-time.
3030 #define PRIVLIB "$privlib" /**/
3031 #define PRIVLIB_EXP "$privlibexp" /**/
3034 * This symbol contains the size of a pointer, so that the C preprocessor
3035 * can make decisions based on it. It will be sizeof(void *) if
3036 * the compiler supports (void *); otherwise it will be
3039 #define PTRSIZE $ptrsize /**/
3042 * This macro is to be used to generate uniformly distributed
3043 * random numbers over the range [0., 1.[. You may have to supply
3044 * an 'extern double drand48();' in your program since SunOS 4.1.3
3045 * doesn't provide you with anything relevant in its headers.
3046 * See HAS_DRAND48_PROTO.
3049 * This symbol defines the type of the argument of the
3050 * random seed function.
3053 * This symbol defines the macro to be used in seeding the
3054 * random number generator (see Drand01).
3057 * This symbol indicates how many bits are produced by the
3058 * function used to generate normalized random numbers.
3059 * Values include 15, 16, 31, and 48.
3061 #define Drand01() $drand01 /**/
3062 #define Rand_seed_t $randseedtype /**/
3063 #define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
3064 #define RANDBITS $randbits /**/
3067 * This symbol holds the minimum number of bits operated by select.
3068 * That is, if you do select(n, ...), how many bits at least will be
3069 * cleared in the masks if some activity is detected. Usually this
3070 * is either n or 32*ceil(n/32), especially many little-endians do
3071 * the latter. This is only useful if you have select(), naturally.
3073 #define SELECT_MIN_BITS $selectminbits /**/
3076 * This symbol holds the type used for the 2nd, 3rd, and 4th
3077 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
3078 * is defined, and 'int *' otherwise. This is only useful if you
3079 * have select(), of course.
3081 #define Select_fd_set_t $selecttype /**/
3084 * This symbol contains a list of signal names in order of
3085 * signal number. This is intended
3086 * to be used as a static array initialization, like this:
3087 * char *sig_name[] = { SIG_NAME };
3088 * The signals in the list are separated with commas, and each signal
3089 * is surrounded by double quotes. There is no leading SIG in the signal
3090 * name, i.e. SIGQUIT is known as "QUIT".
3091 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
3092 * etc., where nn is the actual signal number (e.g. NUM37).
3093 * The signal number for sig_name[i] is stored in sig_num[i].
3094 * The last element is 0 to terminate the list with a NULL. This
3095 * corresponds to the 0 at the end of the sig_num list.
3098 * This symbol contains a list of signal numbers, in the same order as the
3099 * SIG_NAME list. It is suitable for static array initialization, as in:
3100 * int sig_num[] = { SIG_NUM };
3101 * The signals in the list are separated with commas, and the indices
3102 * within that list and the SIG_NAME list match, so it's easy to compute
3103 * the signal name from a number or vice versa at the price of a small
3104 * dynamic linear lookup.
3105 * Duplicates are allowed, but are moved to the end of the list.
3106 * The signal number corresponding to sig_name[i] is sig_number[i].
3107 * if (i < NSIG) then sig_number[i] == i.
3108 * The last element is 0, corresponding to the 0 at the end of
3109 * the sig_name list.
3112 * This variable contains the number of elements of the sig_name
3113 * and sig_num arrays, excluding the final NULL entry.
3115 #define SIG_NAME $sig_name_init /**/
3116 #define SIG_NUM $sig_num_init /**/
3117 #define SIG_SIZE $sig_size /**/
3120 * This symbol contains the name of the private library for this package.
3121 * The library is private in the sense that it needn't be in anyone's
3122 * execution path, but it should be accessible by the world. The program
3123 * should be prepared to do ~ expansion.
3124 * The standard distribution will put nothing in this directory.
3125 * After perl has been installed, users may install their own local
3126 * architecture-dependent modules in this directory with
3127 * MakeMaker Makefile.PL
3128 * or equivalent. See INSTALL for details.
3131 * This symbol contains the ~name expanded version of SITEARCH, to be used
3132 * in programs that are not prepared to deal with ~ expansion at run-time.
3134 #define SITEARCH "$sitearch" /**/
3135 #define SITEARCH_EXP "$sitearchexp" /**/
3138 * This symbol contains the name of the private library for this package.
3139 * The library is private in the sense that it needn't be in anyone's
3140 * execution path, but it should be accessible by the world. The program
3141 * should be prepared to do ~ expansion.
3142 * The standard distribution will put nothing in this directory.
3143 * After perl has been installed, users may install their own local
3144 * architecture-independent modules in this directory with
3145 * MakeMaker Makefile.PL
3146 * or equivalent. See INSTALL for details.
3149 * This symbol contains the ~name expanded version of SITELIB, to be used
3150 * in programs that are not prepared to deal with ~ expansion at run-time.
3153 * This define is SITELIB_EXP with any trailing version-specific component
3154 * removed. The elements in inc_version_list (inc_version_list.U) can
3155 * be tacked onto this variable to generate a list of directories to search.
3157 #define SITELIB "$sitelib" /**/
3158 #define SITELIB_EXP "$sitelibexp" /**/
3159 #define SITELIB_STEM "$sitelib_stem" /**/
3162 * This symbol holds the size of a Size_t in bytes.
3164 #define Size_t_size $sizesize /* */
3167 * This symbol holds the type used to declare length parameters
3168 * for string functions. It is usually size_t, but may be
3169 * unsigned long, int, etc. It may be necessary to include
3170 * <sys/types.h> to get any typedef'ed information.
3172 #define Size_t $sizetype /* length paramater for string functions */
3175 * This symbol holds the type used for the size argument of
3176 * various socket calls (just the base type, not the pointer-to).
3178 #define Sock_size_t $socksizetype /**/
3181 * This symbol holds the type used by functions that return
3182 * a count of bytes or an error condition. It must be a signed type.
3183 * It is usually ssize_t, but may be long or int, etc.
3184 * It may be necessary to include <sys/types.h> or <unistd.h>
3185 * to get any typedef'ed information.
3186 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
3188 #define SSize_t $ssizetype /* signed count of bytes */
3191 * This variable contains the string to put in front of a perl
3192 * script to make sure (one hopes) that it runs with perl and not
3195 #define STARTPERL "$startperl" /**/
3198 * This symbol is defined to be the type of char used in stdio.h.
3199 * It has the values "unsigned char" or "char".
3201 #define STDCHAR $stdchar /**/
3203 /* HAS_STDIO_STREAM_ARRAY:
3204 * This symbol, if defined, tells that there is an array
3205 * holding the stdio streams.
3207 /* STDIO_STREAM_ARRAY:
3208 * This symbol tells the name of the array holding the stdio streams.
3209 * Usual values include _iob, __iob, and __sF.
3211 #$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/
3212 #define STDIO_STREAM_ARRAY $stdio_stream_array
3215 * This symbol defines the format string used for printing a Uid_t.
3217 #define Uid_t_f $uidformat /**/
3220 * This symbol holds the signedess of a Uid_t.
3221 * 1 for unsigned, -1 for signed.
3223 #define Uid_t_sign $uidsign /* UID sign */
3226 * This symbol holds the size of a Uid_t in bytes.
3228 #define Uid_t_size $uidsize /* UID size */
3231 * This symbol holds the type used to declare user ids in the kernel.
3232 * It can be int, ushort, uid_t, etc... It may be necessary to include
3233 * <sys/types.h> to get any typedef'ed information.
3235 #define Uid_t $uidtype /* UID type */
3238 * This symbol, if defined, indicates that 64-bit integers should
3239 * be used when available. If not defined, the native integers
3240 * will be employed (be they 32 or 64 bits). The minimal possible
3241 * 64-bitness is used, just enough to get 64-bit integers into Perl.
3242 * This may mean using for example "long longs", while your memory
3243 * may still be limited to 2 gigabytes.
3246 * This symbol, if defined, indicates that 64-bit integers should
3247 * be used when available. If not defined, the native integers
3248 * will be used (be they 32 or 64 bits). The maximal possible
3249 * 64-bitness is employed: LP64 or ILP64, meaning that you will
3250 * be able to use more than 2 gigabytes of memory. This mode is
3251 * even more binary incompatible than USE_64_BIT_INT. You may not
3252 * be able to run the resulting executable in a 32-bit CPU at all or
3253 * you may need at least to reboot your OS to 64-bit mode.
3255 #ifndef USE_64_BIT_INT
3256 #$use64bitint USE_64_BIT_INT /**/
3259 #ifndef USE_64_BIT_ALL
3260 #$use64bitall USE_64_BIT_ALL /**/
3264 * This symbol, if defined, indicates that large file support
3265 * should be used when available.
3267 #ifndef USE_LARGE_FILES
3268 #$uselargefiles USE_LARGE_FILES /**/
3272 * This symbol, if defined, indicates that long doubles should
3273 * be used when available.
3275 #ifndef USE_LONG_DOUBLE
3276 #$uselongdouble USE_LONG_DOUBLE /**/
3280 * This symbol, if defined, indicates that 64-bit interfaces and
3281 * long doubles should be used when available.
3283 #ifndef USE_MORE_BITS
3284 #$usemorebits USE_MORE_BITS /**/
3288 * This symbol, if defined, indicates that Perl should
3289 * be built to use multiplicity.
3291 #ifndef MULTIPLICITY
3292 #$usemultiplicity MULTIPLICITY /**/
3296 * This symbol, if defined, indicates that the PerlIO abstraction should
3297 * be used throughout. If not defined, stdio should be
3298 * used in a fully backward compatible manner.
3301 #$useperlio USE_PERLIO /**/
3305 * This symbol, if defined, indicates that Perl should
3306 * be built to use socks.
3309 #$usesocks USE_SOCKS /**/
3313 * This symbol, if defined, indicates that Perl should be built to
3314 * use the interpreter-based threading implementation.
3317 * This symbol, if defined, indicates that Perl should be built to
3318 * use the 5.005-based threading implementation.
3320 /* OLD_PTHREADS_API:
3321 * This symbol, if defined, indicates that Perl should
3322 * be built to use the old draft POSIX threads API.
3324 /* USE_REENTRANT_API:
3325 * This symbol, if defined, indicates that Perl should
3326 * try to use the various _r versions of library functions.
3327 * This is extremely experimental.
3329 #$use5005threads USE_5005THREADS /**/
3330 #$useithreads USE_ITHREADS /**/
3331 #if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
3332 #define USE_THREADS /* until src is revised*/
3334 #$d_oldpthreads OLD_PTHREADS_API /**/
3335 #$usereentrant USE_REENTRANT_API /**/
3338 * If defined, this symbol contains the name of a private library.
3339 * The library is private in the sense that it needn't be in anyone's
3340 * execution path, but it should be accessible by the world.
3341 * It may have a ~ on the front.
3342 * The standard distribution will put nothing in this directory.
3343 * Vendors who distribute perl may wish to place their own
3344 * architecture-dependent modules and extensions in this directory with
3345 * MakeMaker Makefile.PL INSTALLDIRS=vendor
3346 * or equivalent. See INSTALL for details.
3348 /* PERL_VENDORARCH_EXP:
3349 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
3350 * in programs that are not prepared to deal with ~ expansion at run-time.
3352 #$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
3353 #$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
3355 /* PERL_VENDORLIB_EXP:
3356 * This symbol contains the ~name expanded version of VENDORLIB, to be used
3357 * in programs that are not prepared to deal with ~ expansion at run-time.
3359 /* PERL_VENDORLIB_STEM:
3360 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
3361 * removed. The elements in inc_version_list (inc_version_list.U) can
3362 * be tacked onto this variable to generate a list of directories to search.
3364 #$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
3365 #$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
3368 * This symbol indicates how much support of the void type is given by this
3369 * compiler. What various bits mean:
3371 * 1 = supports declaration of void
3372 * 2 = supports arrays of pointers to functions returning void
3373 * 4 = supports comparisons between pointers to void functions and
3374 * addresses of void functions
3375 * 8 = suports declaration of generic void pointers
3377 * The package designer should define VOIDUSED to indicate the requirements
3378 * of the package. This can be done either by #defining VOIDUSED before
3379 * including config.h, or by defining defvoidused in Myinit.U. If the
3380 * latter approach is taken, only those flags will be tested. If the
3381 * level of void support necessary is not present, defines void to int.
3384 #define VOIDUSED $defvoidused
3386 #define VOIDFLAGS $voidflags
3387 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
3388 #define void int /* is void to be avoided? */
3389 #define M_VOID /* Xenix strikes again */
3392 /* PERL_XS_APIVERSION:
3393 * This variable contains the version of the oldest perl binary
3394 * compatible with the present perl. perl.c:incpush() and
3395 * lib/lib.pm will automatically search in $sitearch for older
3396 * directories across major versions back to xs_apiversion.
3397 * This is only useful if you have a perl library directory tree
3398 * structured like the default one.
3399 * See INSTALL for how this works.
3400 * The versioned site_perl directory was introduced in 5.005,
3401 * so that is the lowest possible value.
3402 * Since this can depend on compile time options (such as
3403 * bincompat) it is set by Configure. Other non-default sources
3404 * of potential incompatibility, such as multiplicity, threads,
3405 * debugging, 64bits, sfio, etc., are not checked for currently,
3406 * though in principle we could go snooping around in old
3409 /* PERL_PM_APIVERSION:
3410 * This variable contains the version of the oldest perl
3411 * compatible with the present perl. (That is, pure perl modules
3412 * written for pm_apiversion will still work for the current
3413 * version). perl.c:incpush() and lib/lib.pm will automatically
3414 * search in $sitelib for older directories across major versions
3415 * back to pm_apiversion. This is only useful if you have a perl
3416 * library directory tree structured like the default one. The
3417 * versioned site_perl library was introduced in 5.005, so that's
3418 * the default setting for this variable. It's hard to imagine
3419 * it changing before Perl6. It is included here for symmetry
3420 * with xs_apiveprsion -- the searching algorithms will
3421 * (presumably) be similar.
3422 * See the INSTALL file for how this works.
3424 #define PERL_XS_APIVERSION "$xs_apiversion"
3425 #define PERL_PM_APIVERSION "$pm_apiversion"
3427 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
3428 * This symbol, if defined, indicates that the bug that prevents
3429 * setuid scripts from being secure is not present in this kernel.
3432 * This symbol, if defined, indicates that the C program should
3433 * check the script that it is executing for setuid/setgid bits, and
3434 * attempt to emulate setuid/setgid on systems that have disabled
3435 * setuid #! scripts because the kernel can't do it securely.
3436 * It is up to the package designer to make sure that this emulation
3437 * is done securely. Among other things, it should do an fstat on
3438 * the script it just opened to make sure it really is a setuid/setgid
3439 * script, it should make sure the arguments passed correspond exactly
3440 * to the argument on the #! line, and it should not trust any
3441 * subprocesses to which it must pass the filename rather than the
3442 * file descriptor of the script to be executed.
3444 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
3445 #$d_dosuid DOSUID /**/
3448 * This symbol, if defined, indicates that <stdarg.h> exists and should
3452 * This symbol, if defined, indicates to the C program that it should
3453 * include <varargs.h>.
3455 #$i_stdarg I_STDARG /**/
3456 #$i_varargs I_VARARGS /**/
3459 * This symbol contains the full pathname to the shell used on this
3460 * on this system to execute Bourne shell scripts. Usually, this will be
3461 * /bin/sh, though it's possible that some systems will have /bin/ksh,
3462 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
3465 #define SH_PATH "$sh" /**/
3467 /* USE_CROSS_COMPILE:
3468 * This symbol, if defined, indicates that Perl is being cross-compiled.
3471 * This symbol, if defined, indicates the target architecture
3472 * Perl has been cross-compiled to. Undefined if not a cross-compile.
3474 #ifndef USE_CROSS_COMPILE
3475 #$usecrosscompile USE_CROSS_COMPILE /**/
3476 #define PERL_TARGETARCH "$targetarch" /**/
3479 /* HAS_DBMINIT_PROTO:
3480 * This symbol, if defined, indicates that the system provides
3481 * a prototype for the dbminit() function. Otherwise, it is up
3482 * to the program to supply one. A good guess is
3483 * extern int dbminit(char *);
3485 #$d_dbminitproto HAS_DBMINIT_PROTO /**/
3488 * This symbol, if defined, indicates that the system provides
3489 * a prototype for the flock() function. Otherwise, it is up
3490 * to the program to supply one. A good guess is
3491 * extern int flock(int, int);
3493 #$d_flockproto HAS_FLOCK_PROTO /**/
3496 * This symbol, if defined, indicates that the fpclassl routine is
3497 * available to classify long doubles. Available for example in IRIX.
3498 * The returned values are defined in <ieeefp.h> and are:
3500 * FP_SNAN signaling NaN
3502 * FP_NINF negative infinity
3503 * FP_PINF positive infinity
3504 * FP_NDENORM negative denormalized non-zero
3505 * FP_PDENORM positive denormalized non-zero
3506 * FP_NZERO negative zero
3507 * FP_PZERO positive zero
3508 * FP_NNORM negative normalized non-zero
3509 * FP_PNORM positive normalized non-zero
3511 #$d_fpclassl HAS_FPCLASSL /**/
3514 * This symbol, if defined, indicates that the nl_langinfo routine is
3515 * available to return local data. You will also need <langinfo.h>
3516 * and therefore I_LANGINFO.
3518 #$d_nl_langinfo HAS_NL_LANGINFO /**/
3521 * This symbol, if defined, indicates that the sigprocmask
3522 * system call is available to examine or change the signal mask
3523 * of the calling process.
3525 #$d_sigprocmask HAS_SIGPROCMASK /**/
3528 * This symbol, if defined, indicates that the sockatmark routine is
3529 * available to test whether a socket is at the out-of-band mark.
3531 #$d_sockatmark HAS_SOCKATMARK /**/
3533 /* HAS_SOCKATMARK_PROTO:
3534 * This symbol, if defined, indicates that the system provides
3535 * a prototype for the sockatmark() function. Otherwise, it is up
3536 * to the program to supply one. A good guess is
3537 * extern int sockatmark _((int));
3539 #$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/
3541 /* HAS_SETRESGID_PROTO:
3542 * This symbol, if defined, indicates that the system provides
3543 * a prototype for the setresgid() function. Otherwise, it is up
3544 * to the program to supply one. Good guesses are
3545 * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid);
3547 #$d_sresgproto HAS_SETRESGID_PROTO /**/
3549 /* HAS_SETRESUID_PROTO:
3550 * This symbol, if defined, indicates that the system provides
3551 * a prototype for the setresuid() function. Otherwise, it is up
3552 * to the program to supply one. Good guesses are
3553 * extern int setresuid(uid_t ruid, uid_t euid, uid_t suid);
3555 #$d_sresuproto HAS_SETRESUID_PROTO /**/
3558 * This symbol, if defined, indicates that the strftime routine is
3559 * available to do time formatting.
3561 #$d_strftime HAS_STRFTIME /**/
3563 /* HAS_SYSCALL_PROTO:
3564 * This symbol, if defined, indicates that the system provides
3565 * a prototype for the syscall() function. Otherwise, it is up
3566 * to the program to supply one. Good guesses are
3567 * extern int syscall(int, ...);
3568 * extern int syscall(long, ...);
3570 #$d_syscallproto HAS_SYSCALL_PROTO /**/
3572 /* U32_ALIGNMENT_REQUIRED:
3573 * This symbol, if defined, indicates that you must access
3574 * character data through U32-aligned pointers.
3576 #$d_u32align U32_ALIGNMENT_REQUIRED /**/
3578 /* HAS_USLEEP_PROTO:
3579 * This symbol, if defined, indicates that the system provides
3580 * a prototype for the usleep() function. Otherwise, it is up
3581 * to the program to supply one. A good guess is
3582 * extern int usleep(useconds_t);
3584 #$d_usleepproto HAS_USLEEP_PROTO /**/
3587 * This symbol, if defined, indicates that <fp.h> exists and
3588 * should be included.
3593 * This symbol, if defined, indicates that <langinfo.h> exists and
3594 * should be included.
3596 #$i_langinfo I_LANGINFO /**/
3598 /* HAS_PTHREAD_ATFORK:
3599 * This symbol, if defined, indicates that the pthread_atfork routine
3600 * is available setup fork handlers.
3602 #$d_pthread_atfork HAS_PTHREAD_ATFORK /**/