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 is defined if the bcmp() routine is available to
61 * compare blocks of memory.
63 #$d_bcmp HAS_BCMP /**/
66 * This symbol is defined if the bcopy() routine is available to
67 * copy blocks of memory.
69 #$d_bcopy HAS_BCOPY /**/
72 * This symbol is defined if the bzero() routine is available to
73 * set a memory block to 0.
75 #$d_bzero HAS_BZERO /**/
78 * This symbol, if defined, indicates that the chown routine is
81 #$d_chown HAS_CHOWN /**/
84 * This symbol, if defined, indicates that the chroot routine is
87 #$d_chroot HAS_CHROOT /**/
90 * This symbol, if defined, indicates that the chsize routine is available
91 * to truncate files. You might need a -lx to get this routine.
93 #$d_chsize HAS_CHSIZE /**/
96 * This symbol, if defined, indicates that this C compiler knows about
97 * the const type. There is no need to actually test for that symbol
98 * within your programs. The mere use of the "const" keyword will
99 * trigger the necessary tests.
101 #$d_const HASCONST /**/
107 * This symbol, if defined, indicates that the cuserid routine is
108 * available to get character login names.
110 #$d_cuserid HAS_CUSERID /**/
113 * This symbol, if defined, indicates that this system's <float.h>
114 * or <limits.h> defines the symbol DBL_DIG, which is the number
115 * of significant digits in a double precision number. If this
116 * symbol is not defined, a guess of 15 is usually pretty good.
118 #$d_dbl_dig HAS_DBL_DIG /* */
121 * This symbol, if defined, indicates that the difftime routine is
124 #$d_difftime HAS_DIFFTIME /**/
127 * This symbol, if defined, indicates that the dlerror routine is
128 * available to return a string describing the last error that
129 * occurred from a call to dlopen(), dlclose() or dlsym().
131 #$d_dlerror HAS_DLERROR /**/
134 * This symbol, if defined, indicates that the dup2 routine is
135 * available to duplicate file descriptors.
137 #$d_dup2 HAS_DUP2 /**/
140 * This symbol, if defined, indicates that the fchmod routine is available
141 * to change mode of opened files. If unavailable, use chmod().
143 #$d_fchmod HAS_FCHMOD /**/
146 * This symbol, if defined, indicates that the fchown routine is available
147 * to change ownership of opened files. If unavailable, use chown().
149 #$d_fchown HAS_FCHOWN /**/
152 * This symbol, if defined, indicates to the C program that
153 * the fcntl() function exists.
155 #$d_fcntl HAS_FCNTL /**/
158 * This symbol, if defined, indicates that the fgetpos routine is
159 * available to get the file position indicator, similar to ftell().
161 #$d_fgetpos HAS_FGETPOS /**/
164 * This symbol, if defined, indicates that the flock routine is
165 * available to do file locking.
167 #$d_flock HAS_FLOCK /**/
170 * This symbol, if defined, indicates that the fork routine is
173 #$d_fork HAS_FORK /**/
176 * This symbol, if defined, indicates that the fsetpos routine is
177 * available to set the file position indicator, similar to fseek().
179 #$d_fsetpos HAS_FSETPOS /**/
182 * This symbol, if defined, indicates that the gettimeofday() system
183 * call is available for a sub-second accuracy clock. Usually, the file
184 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
185 * The type "Timeval" should be used to refer to "struct timeval".
187 #$d_gettimeod HAS_GETTIMEOFDAY /**/
188 #ifdef HAS_GETTIMEOFDAY
189 #define Timeval struct timeval /* Structure used by gettimeofday() */
193 * This symbol, if defined, indicates that the getgroups() routine is
194 * available to get the list of process groups. If unavailable, multiple
195 * groups are probably not supported.
197 #$d_getgrps HAS_GETGROUPS /**/
200 * This symbol, if defined, indicates that the getlogin routine is
201 * available to get the login name.
203 #$d_getlogin HAS_GETLOGIN /**/
206 * This symbol, if defined, indicates to the C program that
207 * the getpgid(pid) function is available to get the
210 #$d_getpgid HAS_GETPGID /**/
213 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
214 * routine is available to get the current process group.
216 #$d_getpgrp2 HAS_GETPGRP2 /**/
219 * This symbol, if defined, indicates that the getppid routine is
220 * available to get the parent process ID.
222 #$d_getppid HAS_GETPPID /**/
225 * This symbol, if defined, indicates that the getpriority routine is
226 * available to get a process's priority.
228 #$d_getprior HAS_GETPRIORITY /**/
231 * This symbol, if defined, indicates to the C program that the
232 * inet_aton() function is available to parse IP address "dotted-quad"
235 #$d_inetaton HAS_INET_ATON /**/
238 * This symbol, if defined, indicates that the killpg routine is available
239 * to kill process groups. If unavailable, you probably should use kill
240 * with a negative process number.
242 #$d_killpg HAS_KILLPG /**/
245 * This symbol, if defined, indicates that the link routine is
246 * available to create hard links.
248 #$d_link HAS_LINK /**/
251 * This symbol, if defined, indicates that the localeconv routine is
252 * available for numeric and monetary formatting conventions.
254 #$d_locconv HAS_LOCALECONV /**/
257 * This symbol, if defined, indicates that the lockf routine is
258 * available to do file locking.
260 #$d_lockf HAS_LOCKF /**/
263 * This symbol, if defined, indicates that the lstat routine is
264 * available to do file stats on symbolic links.
266 #$d_lstat HAS_LSTAT /**/
269 * This symbol, if defined, indicates that the mblen routine is available
270 * to find the number of bytes in a multibye character.
272 #$d_mblen HAS_MBLEN /**/
275 * This symbol, if defined, indicates that the mbstowcs routine is
276 * available to covert a multibyte string into a wide character string.
278 #$d_mbstowcs HAS_MBSTOWCS /**/
281 * This symbol, if defined, indicates that the mbtowc routine is available
282 * to covert a multibyte to a wide character.
284 #$d_mbtowc HAS_MBTOWC /**/
287 * This symbol, if defined, indicates that the memcmp routine is available
288 * to compare blocks of memory.
290 #$d_memcmp HAS_MEMCMP /**/
293 * This symbol, if defined, indicates that the memcpy routine is available
294 * to copy blocks of memory.
296 #$d_memcpy HAS_MEMCPY /**/
299 * This symbol, if defined, indicates that the memmove routine is available
300 * to copy potentially overlapping blocks of memory. This should be used
301 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
304 #$d_memmove HAS_MEMMOVE /**/
307 * This symbol, if defined, indicates that the memset routine is available
308 * to set blocks of memory.
310 #$d_memset HAS_MEMSET /**/
313 * This symbol, if defined, indicates that the mkdir routine is available
314 * to create directories. Otherwise you should fork off a new process to
317 #$d_mkdir HAS_MKDIR /**/
320 * This symbol, if defined, indicates that the mkfifo routine is
321 * available to create FIFOs. Otherwise, mknod should be able to
322 * do it for you. However, if mkfifo is there, mknod might require
323 * super-user privileges which mkfifo will not.
325 #$d_mkfifo HAS_MKFIFO /**/
328 * This symbol, if defined, indicates that the mktime routine is
331 #$d_mktime HAS_MKTIME /**/
334 * This symbol, if defined, indicates that the msync system call is
335 * available to synchronize a mapped file.
337 #$d_msync HAS_MSYNC /**/
340 * This symbol, if defined, indicates that the munmap system call is
341 * available to unmap a region, usually mapped by mmap().
343 #$d_munmap HAS_MUNMAP /**/
346 * This symbol, if defined, indicates that the nice routine is
349 #$d_nice HAS_NICE /**/
352 * This symbol, if defined, indicates that pathconf() is available
353 * to determine file-system related limits and options associated
354 * with a given filename.
357 * This symbol, if defined, indicates that pathconf() is available
358 * to determine file-system related limits and options associated
359 * with a given open file descriptor.
361 #$d_pathconf HAS_PATHCONF /**/
362 #$d_fpathconf HAS_FPATHCONF /**/
365 * This symbol, if defined, indicates that the pause routine is
366 * available to suspend a process until a signal is received.
368 #$d_pause HAS_PAUSE /**/
371 * This symbol, if defined, indicates that the pipe routine is
372 * available to create an inter-process channel.
374 #$d_pipe HAS_PIPE /**/
377 * This symbol, if defined, indicates that the readdir routine is
378 * available to read directory entries. You may have to include
379 * <dirent.h>. See I_DIRENT.
381 #$d_readdir HAS_READDIR /**/
384 * This symbol, if defined, indicates that the seekdir routine is
385 * available. You may have to include <dirent.h>. See I_DIRENT.
387 #$d_seekdir HAS_SEEKDIR /**/
390 * This symbol, if defined, indicates that the telldir routine is
391 * available. You may have to include <dirent.h>. See I_DIRENT.
393 #$d_telldir HAS_TELLDIR /**/
396 * This symbol, if defined, indicates that the rewinddir routine is
397 * available. You may have to include <dirent.h>. See I_DIRENT.
399 #$d_rewinddir HAS_REWINDDIR /**/
402 * This symbol, if defined, indicates that the readlink routine is
403 * available to read the value of a symbolic link.
405 #$d_readlink HAS_READLINK /**/
408 * This symbol, if defined, indicates that the rename routine is available
409 * to rename files. Otherwise you should do the unlink(), link(), unlink()
412 #$d_rename HAS_RENAME /**/
415 * This symbol, if defined, indicates that the rmdir routine is
416 * available to remove directories. Otherwise you should fork off a
417 * new process to exec /bin/rmdir.
419 #$d_rmdir HAS_RMDIR /**/
422 * This symbol, if defined, indicates that the select routine is
423 * available to select active file descriptors. If the timeout field
424 * is used, <sys/time.h> may need to be included.
426 #$d_select HAS_SELECT /**/
429 * This symbol, if defined, indicates that the setegid routine is available
430 * to change the effective gid of the current program.
432 #$d_setegid HAS_SETEGID /**/
435 * This symbol, if defined, indicates that the seteuid routine is available
436 * to change the effective uid of the current program.
438 #$d_seteuid HAS_SETEUID /**/
441 * This symbol, if defined, indicates that the setlinebuf routine is
442 * available to change stderr or stdout from block-buffered or unbuffered
443 * to a line-buffered mode.
445 #$d_setlinebuf HAS_SETLINEBUF /**/
448 * This symbol, if defined, indicates that the setlocale routine is
449 * available to handle locale-specific ctype implementations.
451 #$d_setlocale HAS_SETLOCALE /**/
454 * This symbol, if defined, indicates that the setpgid(pid, gpid)
455 * routine is available to set process group ID.
457 #$d_setpgid HAS_SETPGID /**/
460 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
461 * routine is available to set the current process group.
463 #$d_setpgrp2 HAS_SETPGRP2 /**/
466 * This symbol, if defined, indicates that the setpriority routine is
467 * available to set a process's priority.
469 #$d_setprior HAS_SETPRIORITY /**/
472 * This symbol, if defined, indicates that the setregid routine is
473 * available to change the real and effective gid of the current
477 * This symbol, if defined, indicates that the setresgid routine is
478 * available to change the real, effective and saved gid of the current
481 #$d_setregid HAS_SETREGID /**/
482 #$d_setresgid HAS_SETRESGID /**/
485 * This symbol, if defined, indicates that the setreuid routine is
486 * available to change the real and effective uid of the current
490 * This symbol, if defined, indicates that the setresuid routine is
491 * available to change the real, effective and saved uid of the current
494 #$d_setreuid HAS_SETREUID /**/
495 #$d_setresuid HAS_SETRESUID /**/
498 * This symbol, if defined, indicates that the setrgid routine is available
499 * to change the real gid of the current program.
501 #$d_setrgid HAS_SETRGID /**/
504 * This symbol, if defined, indicates that the setruid routine is available
505 * to change the real uid of the current program.
507 #$d_setruid HAS_SETRUID /**/
510 * This symbol, if defined, indicates that the setsid routine is
511 * available to set the process group ID.
513 #$d_setsid HAS_SETSID /**/
516 * This symbol is defined to indicate that the strchr()/strrchr()
517 * functions are available for string searching. If not, try the
518 * index()/rindex() pair.
521 * This symbol is defined to indicate that the index()/rindex()
522 * functions are available for string searching.
524 #$d_strchr HAS_STRCHR /**/
525 #$d_index HAS_INDEX /**/
528 * This symbol, if defined, indicates that the strcoll routine is
529 * available to compare strings using collating information.
531 #$d_strcoll HAS_STRCOLL /**/
534 * This symbol, if defined, indicates that this C compiler knows how
535 * to copy structures. If undefined, you'll need to use a block copy
536 * routine of some sort instead.
538 #$d_strctcpy USE_STRUCT_COPY /**/
541 * This symbol, if defined, indicates that the strtod routine is
542 * available to provide better numeric string conversion than atof().
544 #$d_strtod HAS_STRTOD /**/
547 * This symbol, if defined, indicates that the strtol routine is available
548 * to provide better numeric string conversion than atoi() and friends.
550 #$d_strtol HAS_STRTOL /**/
553 * This symbol, if defined, indicates that the strxfrm() routine is
554 * available to transform strings.
556 #$d_strxfrm HAS_STRXFRM /**/
559 * This symbol, if defined, indicates that the symlink routine is available
560 * to create symbolic links.
562 #$d_symlink HAS_SYMLINK /**/
565 * This symbol, if defined, indicates that the syscall routine is
566 * available to call arbitrary system calls. If undefined, that's tough.
568 #$d_syscall HAS_SYSCALL /**/
571 * This symbol, if defined, indicates that sysconf() is available
572 * to determine system related limits and options.
574 #$d_sysconf HAS_SYSCONF /**/
577 * This symbol, if defined, indicates that the system routine is
578 * available to issue a shell command.
580 #$d_system HAS_SYSTEM /**/
583 * This symbol, if defined, indicates that the tcgetpgrp routine is
584 * available to get foreground process group ID.
586 #$d_tcgetpgrp HAS_TCGETPGRP /**/
589 * This symbol, if defined, indicates that the tcsetpgrp routine is
590 * available to set foreground process group ID.
592 #$d_tcsetpgrp HAS_TCSETPGRP /**/
595 * This symbol, if defined, indicates that the truncate routine is
596 * available to truncate files.
598 #$d_truncate HAS_TRUNCATE /**/
601 * This symbol, if defined, indicates that the tzname[] array is
602 * available to access timezone names.
604 #$d_tzname HAS_TZNAME /**/
607 * This symbol, if defined, indicates that the umask routine is
608 * available to set and get the value of the file creation mask.
610 #$d_umask HAS_UMASK /**/
613 * This symbol, if defined, indicates that the usleep routine is
614 * available to let the process sleep on a sub-second accuracy.
616 #$d_usleep HAS_USLEEP /**/
619 * This symbol, if defined, indicates that this C compiler knows about
620 * the volatile declaration.
622 #$d_volatile HASVOLATILE /**/
628 * This symbol, if defined, indicates that wait4() exists.
630 #$d_wait4 HAS_WAIT4 /**/
633 * This symbol, if defined, indicates that the waitpid routine is
634 * available to wait for child process.
636 #$d_waitpid HAS_WAITPID /**/
639 * This symbol, if defined, indicates that the wcstombs routine is
640 * available to convert wide character strings to multibyte strings.
642 #$d_wcstombs HAS_WCSTOMBS /**/
645 * This symbol, if defined, indicates that the wctomb routine is available
646 * to covert a wide character to a multibyte.
648 #$d_wctomb HAS_WCTOMB /**/
651 * This symbol, if defined, indicates to the C program that it should
652 * include <arpa/inet.h> to get inet_addr and friends declarations.
654 #$i_arpainet I_ARPA_INET /**/
657 * This symbol, if defined, indicates that <dbm.h> exists and should
661 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
662 * should be included.
665 #$i_rpcsvcdbm I_RPCSVC_DBM /**/
668 * This symbol, if defined, indicates to the C program that it should
669 * include <dirent.h>. Using this symbol also triggers the definition
670 * of the Direntry_t define which ends up being 'struct dirent' or
671 * 'struct direct' depending on the availability of <dirent.h>.
674 * This symbol, if defined, indicates to the C program that the length
675 * of directory entry names is provided by a d_namlen field. Otherwise
676 * you need to do strlen() on the d_name field.
679 * This symbol is set to 'struct direct' or 'struct dirent' depending on
680 * whether dirent is available or not. You should use this pseudo type to
681 * portably declare your directory entries.
683 #$i_dirent I_DIRENT /**/
684 #$d_dirnamlen DIRNAMLEN /**/
685 #define Direntry_t $direntrytype
688 * This symbol, if defined, indicates that <dlfcn.h> exists and should
691 #$i_dlfcn I_DLFCN /**/
694 * This manifest constant tells the C program to include <fcntl.h>.
696 #$i_fcntl I_FCNTL /**/
699 * This symbol, if defined, indicates to the C program that it should
700 * include <float.h> to get definition of symbols like DBL_MAX or
701 * DBL_MIN, i.e. machine dependent floating point values.
703 #$i_float I_FLOAT /**/
706 * This symbol, if defined, indicates to the C program that it should
707 * include <limits.h> to get definition of symbols like WORD_BIT or
708 * LONG_MAX, i.e. machine dependant limitations.
710 #$i_limits I_LIMITS /**/
713 * This symbol, if defined, indicates to the C program that it should
714 * include <locale.h>.
716 #$i_locale I_LOCALE /**/
719 * This symbol, if defined, indicates to the C program that it should
725 * This symbol, if defined, indicates to the C program that it should
726 * include <memory.h>.
728 #$i_memory I_MEMORY /**/
731 * This symbol, if defined, indicates that <net/errno.h> exists and
732 * should be included.
734 #$i_neterrno I_NET_ERRNO /**/
737 * This symbol, if defined, indicates to the C program that it should
738 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
740 #$i_niin I_NETINET_IN /**/
743 * This symbol, if defined, indicates to the C program that it should
749 * This symbol, if defined, indicates that <stddef.h> exists and should
752 #$i_stddef I_STDDEF /**/
755 * This symbol, if defined, indicates that <stdlib.h> exists and should
758 #$i_stdlib I_STDLIB /**/
761 * This symbol, if defined, indicates to the C program that it should
762 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
764 #$i_string I_STRING /**/
767 * This symbol, if defined, indicates to the C program that it should
768 * include <sys/dir.h>.
770 #$i_sysdir I_SYS_DIR /**/
773 * This symbol, if defined, indicates to the C program that it should
774 * include <sys/file.h> to get definition of R_OK and friends.
776 #$i_sysfile I_SYS_FILE /**/
779 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
780 * be included. Otherwise, include <sgtty.h> or <termio.h>.
783 * This symbol, if defined, indicates the <sys/sockio.h> should be included
784 * to get socket ioctl options, like SIOCATMARK.
786 #$i_sysioctl I_SYS_IOCTL /**/
787 #$i_syssockio I_SYS_SOCKIO /**/
790 * This symbol, if defined, indicates to the C program that it should
791 * include <sys/ndir.h>.
793 #$i_sysndir I_SYS_NDIR /**/
796 * This symbol, if defined, indicates to the C program that it should
797 * include <sys/param.h>.
799 #$i_sysparam I_SYS_PARAM /**/
802 * This symbol, if defined, indicates to the C program that it should
803 * include <sys/resource.h>.
805 #$i_sysresrc I_SYS_RESOURCE /**/
808 * This symbol, if defined, indicates to the C program that it should
809 * include <sys/select.h> in order to get definition of struct timeval.
811 #$i_sysselct I_SYS_SELECT /**/
814 * This symbol, if defined, indicates to the C program that it should
815 * include <sys/stat.h>.
817 #$i_sysstat I_SYS_STAT /**/
820 * This symbol, if defined, indicates to the C program that it should
821 * include <sys/times.h>.
823 #$i_systimes I_SYS_TIMES /**/
826 * This symbol, if defined, indicates to the C program that it should
827 * include <sys/types.h>.
829 #$i_systypes I_SYS_TYPES /**/
832 * This symbol, if defined, indicates to the C program that it should
833 * include <sys/un.h> to get UNIX domain socket definitions.
835 #$i_sysun I_SYS_UN /**/
838 * This symbol, if defined, indicates to the C program that it should
839 * include <sys/wait.h>.
841 #$i_syswait I_SYS_WAIT /**/
844 * This symbol, if defined, indicates that the program should include
845 * <termio.h> rather than <sgtty.h>. There are also differences in
846 * the ioctl() calls that depend on the value of this symbol.
849 * This symbol, if defined, indicates that the program should include
850 * the POSIX termios.h rather than sgtty.h or termio.h.
851 * There are also differences in the ioctl() calls that depend on the
852 * value of this symbol.
855 * This symbol, if defined, indicates that the program should include
856 * <sgtty.h> rather than <termio.h>. There are also differences in
857 * the ioctl() calls that depend on the value of this symbol.
859 #$i_termio I_TERMIO /**/
860 #$i_termios I_TERMIOS /**/
861 #$i_sgtty I_SGTTY /**/
864 * This symbol, if defined, indicates to the C program that it should
865 * include <unistd.h>.
867 #$i_unistd I_UNISTD /**/
870 * This symbol, if defined, indicates to the C program that it should
873 #$i_utime I_UTIME /**/
876 * This symbol, if defined, indicates to the C program that it should
877 * include <values.h> to get definition of symbols like MINFLOAT or
878 * MAXLONG, i.e. machine dependant limitations. Probably, you
879 * should use <limits.h> instead, if it is available.
881 #$i_values I_VALUES /**/
884 * This symbol, if defined, indicates to the C program that it should
887 #$i_vfork I_VFORK /**/
890 * This symbol, if defined, indicates that the accessx routine is
891 * available to do extended access checks.
893 #$d_accessx HAS_ACCESSX /**/
896 * This symbol, if defined, indicates that the eaccess routine is
897 * available to do extended access checks.
899 #$d_eaccess HAS_EACCESS /**/
902 * This symbol, if defined, indicates to the C program that it should
903 * include <sys/access.h>.
905 #$i_sysaccess I_SYS_ACCESS /**/
908 * This symbol, if defined, indicates to the C program that it should
909 * include <sys/security.h>.
911 #$i_syssecrt I_SYS_SECURITY /**/
913 /* USE_CROSS_COMPILE:
914 * This symbol, if defined, indicates that Perl is being cross-compiled.
917 * This symbol, if defined, indicates the target architecture
918 * Perl has been cross-compiled to. Undefined if not a cross-compile.
920 #ifndef USE_CROSS_COMPILE
921 #$usecrosscompile USE_CROSS_COMPILE /**/
922 #define PERL_TARGETARCH "$targetarch" /**/
926 * This symbol contains the name of the operating system, as determined
927 * by Configure. You shouldn't rely on it too much; the specific
928 * feature tests from Configure are generally more reliable.
931 * This symbol contains the version of the operating system, as determined
932 * by Configure. You shouldn't rely on it too much; the specific
933 * feature tests from Configure are generally more reliable.
935 #define OSNAME "$osname" /**/
936 #define OSVERS "$osvers" /**/
939 * This symbol, if defined, signifies that the build
940 * process will produce some binary files that are going to be
941 * used in a cross-platform environment. This is the case for
942 * example with the NeXT "fat" binaries that contain executables
945 #$multiarch MULTIARCH /**/
948 * This symbol contains the number of bytes required to align a
949 * double, or a long double when applicable. Usual values are 2,
950 * 4 and 8. The default is eight, for safety.
952 #if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
953 # define MEM_ALIGNBYTES 8
955 #define MEM_ALIGNBYTES $alignbytes
959 * This variable, if defined, holds the name of the directory in
960 * which the user wants to put architecture-dependent public
961 * library files for $package. It is most often a local directory
962 * such as /usr/local/lib. Programs using this variable must be
963 * prepared to deal with filename expansion. If ARCHLIB is the
964 * same as PRIVLIB, it is not defined, since presumably the
965 * program already searches PRIVLIB.
968 * This symbol contains the ~name expanded version of ARCHLIB, to be used
969 * in programs that are not prepared to deal with ~ expansion at run-time.
971 #$d_archlib ARCHLIB "$archlib" /**/
972 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
975 * This symbol holds a string representing the architecture name.
976 * It may be used to construct an architecture-dependant pathname
977 * where library files may be held under a private library, for
980 #define ARCHNAME "$archname" /**/
983 * This symbol, if defined, indicates that the atolf routine is
984 * available to convert strings into long doubles.
986 #$d_atolf HAS_ATOLF /**/
989 * This symbol, if defined, indicates that the atoll routine is
990 * available to convert strings into long longs.
992 #$d_atoll HAS_ATOLL /**/
995 * This symbol holds the path of the bin directory where the package will
996 * be installed. Program must be prepared to deal with ~name substitution.
999 * This symbol is the filename expanded version of the BIN symbol, for
1000 * programs that do not want to deal with that at run-time.
1002 /* PERL_RELOCATABLE_INC:
1003 * This symbol, if defined, indicates that we'd like to relocate entries
1004 * in @INC at run time based on the location of the perl binary.
1006 #define BIN "$bin" /**/
1007 #define BIN_EXP "$binexp" /**/
1008 #define PERL_RELOCATABLE_INC "$userelocatableinc" /**/
1011 * This symbol contains the value of sizeof(int) so that the C
1012 * preprocessor can make decisions based on it.
1015 * This symbol contains the value of sizeof(long) so that the C
1016 * preprocessor can make decisions based on it.
1019 * This symbol contains the value of sizeof(short) so that the C
1020 * preprocessor can make decisions based on it.
1022 #define INTSIZE $intsize /**/
1023 #define LONGSIZE $longsize /**/
1024 #define SHORTSIZE $shortsize /**/
1027 * This symbol holds the hexadecimal constant defined in byteorder,
1028 * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc...
1029 * If the compiler supports cross-compiling or multiple-architecture
1030 * binaries (eg. on NeXT systems), use compiler-defined macros to
1031 * determine the byte order.
1032 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1033 * Binaries (MAB) on either big endian or little endian machines.
1034 * The endian-ness is available at compile-time. This only matters
1035 * for perl, where the config.h can be generated and installed on
1036 * one system, and used by a different architecture to build an
1037 * extension. Older versions of NeXT that might not have
1038 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1039 * so the default case (for NeXT) is big endian to catch them.
1040 * This might matter for NeXT 3.0.
1042 #if defined(USE_CROSS_COMPILE) || defined(MULTIARCH)
1043 # ifdef __LITTLE_ENDIAN__
1045 # define BYTEORDER 0x1234
1048 # define BYTEORDER 0x12345678
1052 # ifdef __BIG_ENDIAN__
1054 # define BYTEORDER 0x4321
1057 # define BYTEORDER 0x87654321
1062 # if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1063 # define BYTEORDER 0x4321
1066 #define BYTEORDER 0x$byteorder /* large digits for MSB */
1070 * This macro concatenates 2 tokens together.
1073 * This macro surrounds its token with double quotes.
1076 #define CAT2(a,b) a/**/b
1077 #define STRINGIFY(a) "a"
1078 /* If you can get stringification with catify, tell me how! */
1080 #if $cpp_stuff == 42
1081 #define PeRl_CaTiFy(a, b) a ## b
1082 #define PeRl_StGiFy(a) #a
1083 /* the additional level of indirection enables these macros to be
1084 * used as arguments to other macros. See K&R 2nd ed., page 231. */
1085 #define CAT2(a,b) PeRl_CaTiFy(a,b)
1086 #define StGiFy(a) PeRl_StGiFy(a)
1087 #define STRINGIFY(a) PeRl_StGiFy(a)
1089 #if $cpp_stuff != 1 && $cpp_stuff != 42
1090 # include "Bletch: How does this C preprocessor concatenate tokens?"
1094 * This symbol contains the first part of the string which will invoke
1095 * the C preprocessor on the standard input and produce to standard
1096 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1097 * call a wrapper. See CPPRUN.
1100 * This symbol contains the second part of the string which will invoke
1101 * the C preprocessor on the standard input and produce to standard
1102 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1103 * to specify standard input, otherwise the value is "".
1106 * This symbol contains the string which will invoke a C preprocessor on
1107 * the standard input and produce to standard output. It needs to end
1108 * with CPPLAST, after all other preprocessor flags have been specified.
1109 * The main difference with CPPSTDIN is that this program will never be a
1110 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1111 * available directly to the user. Note that it may well be different from
1112 * the preprocessor used to compile the C program.
1115 * This symbol is intended to be used along with CPPRUN in the same manner
1116 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
1118 #define CPPSTDIN "$cppstdin"
1119 #define CPPMINUS "$cppminus"
1120 #define CPPRUN "$cpprun"
1121 #define CPPLAST "$cpplast"
1124 * This symbol, if defined, indicates that the _fwalk system call is
1125 * available to apply a function to all the file handles.
1127 #$d__fwalk HAS__FWALK /**/
1130 * This manifest constant lets the C program know that the access()
1131 * system call is available to check for accessibility using real UID/GID.
1132 * (always present on UNIX.)
1134 #$d_access HAS_ACCESS /**/
1137 * This symbol, if defined, indicates that the aintl routine is
1138 * available. If copysignl is also present we can emulate modfl.
1140 #$d_aintl HAS_AINTL /**/
1143 * This symbol, if defined, indicates that the asctime_r routine
1144 * is available to asctime re-entrantly.
1147 * This symbol encodes the prototype of asctime_r.
1148 * It is zero if d_asctime_r is undef, and one of the
1149 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_asctime_r
1152 #$d_asctime_r HAS_ASCTIME_R /**/
1153 #define ASCTIME_R_PROTO $asctime_r_proto /**/
1155 /* HASATTRIBUTE_FORMAT:
1156 * Can we handle GCC attribute for checking printf-style formats
1158 /* HASATTRIBUTE_MALLOC:
1159 * Can we handle GCC attribute for malloc-style functions.
1161 /* HASATTRIBUTE_NONNULL:
1162 * Can we handle GCC attribute for nonnull function parms.
1164 /* HASATTRIBUTE_NORETURN:
1165 * Can we handle GCC attribute for functions that do not return
1167 /* HASATTRIBUTE_PURE:
1168 * Can we handle GCC attribute for pure functions
1170 /* HASATTRIBUTE_UNUSED:
1171 * Can we handle GCC attribute for unused variables and arguments
1173 /* HASATTRIBUTE_WARN_UNUSED_RESULT:
1174 * Can we handle GCC attribute for warning on unused results
1176 #$d_attribute_format HASATTRIBUTE_FORMAT /**/
1177 #$d_attribute_noreturn HASATTRIBUTE_NORETURN /**/
1178 #$d_attribute_malloc HASATTRIBUTE_MALLOC /**/
1179 #$d_attribute_nonnull HASATTRIBUTE_NONNULL /**/
1180 #$d_attribute_pure HASATTRIBUTE_PURE /**/
1181 #$d_attribute_unused HASATTRIBUTE_UNUSED /**/
1182 #$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT /**/
1184 /* HAS_BUILTIN_CHOOSE_EXPR:
1185 * Can we handle GCC builtin for compile-time ternary-like expressions
1187 /* HAS_BUILTIN_EXPECT:
1188 * Can we handle GCC builtin for telling that certain values are more
1191 #$d_builtin_expect HAS_BUILTIN_EXPECT /**/
1192 #$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR /**/
1194 /* HAS_C99_VARIADIC_MACROS:
1195 * If defined, the compiler supports C99 variadic macros.
1197 #$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/
1200 * This symbol is defined if the C compiler can cast negative
1201 * or large floating point numbers to 32-bit ints.
1203 #$d_casti32 CASTI32 /**/
1206 * This symbol is defined if the C compiler can cast negative
1207 * numbers to unsigned longs, ints and shorts.
1210 * This symbol contains flags that say what difficulties the compiler
1211 * has casting odd floating values to unsigned long:
1213 * 1 = couldn't cast < 0
1214 * 2 = couldn't cast >= 0x80000000
1215 * 4 = couldn't cast in argument expression list
1217 #$d_castneg CASTNEGFLOAT /**/
1218 #define CASTFLAGS $castflags /**/
1221 * This symbol, if defined, indicates that the class routine is
1222 * available to classify doubles. Available for example in AIX.
1223 * The returned values are defined in <float.h> and are:
1225 * FP_PLUS_NORM Positive normalized, nonzero
1226 * FP_MINUS_NORM Negative normalized, nonzero
1227 * FP_PLUS_DENORM Positive denormalized, nonzero
1228 * FP_MINUS_DENORM Negative denormalized, nonzero
1230 * FP_MINUS_ZERO -0.0
1233 * FP_NANS Signaling Not a Number (NaNS)
1234 * FP_NANQ Quiet Not a Number (NaNQ)
1236 #$d_class HAS_CLASS /**/
1239 * This symbol, if defined, indicates that the clearenv () routine is
1240 * available for use.
1242 #$d_clearenv HAS_CLEARENV /**/
1245 * This symbol, if defined, indicates that the closedir() routine
1246 * does not return a value.
1248 #$d_void_closedir VOID_CLOSEDIR /**/
1250 /* HAS_STRUCT_CMSGHDR:
1251 * This symbol, if defined, indicates that the struct cmsghdr
1254 #$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
1257 * This symbol, if defined, indicates that the copysignl routine is
1258 * available. If aintl is also present we can emulate modfl.
1260 #$d_copysignl HAS_COPYSIGNL /**/
1263 * This symbol, if defined, indicates that the crypt routine is available
1264 * to encrypt passwords and the like.
1266 #$d_crypt HAS_CRYPT /**/
1269 * This symbol, if defined, indicates that the crypt_r routine
1270 * is available to crypt re-entrantly.
1273 * This symbol encodes the prototype of crypt_r.
1274 * It is zero if d_crypt_r is undef, and one of the
1275 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_crypt_r
1278 #$d_crypt_r HAS_CRYPT_R /**/
1279 #define CRYPT_R_PROTO $crypt_r_proto /**/
1282 * This symbol, if defined, indicates that the C-shell exists.
1285 * This symbol, if defined, contains the full pathname of csh.
1287 #$d_csh HAS_CSH /**/
1289 #define CSH "$full_csh" /**/
1293 * This symbol, if defined, indicates that the ctermid_r routine
1294 * is available to ctermid re-entrantly.
1297 * This symbol encodes the prototype of ctermid_r.
1298 * It is zero if d_ctermid_r is undef, and one of the
1299 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctermid_r
1302 #$d_ctermid_r HAS_CTERMID_R /**/
1303 #define CTERMID_R_PROTO $ctermid_r_proto /**/
1306 * This symbol, if defined, indicates that the ctime_r routine
1307 * is available to ctime re-entrantly.
1310 * This symbol encodes the prototype of ctime_r.
1311 * It is zero if d_ctime_r is undef, and one of the
1312 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ctime_r
1315 #$d_ctime_r HAS_CTIME_R /**/
1316 #define CTIME_R_PROTO $ctime_r_proto /**/
1318 /* HAS_DBMINIT_PROTO:
1319 * This symbol, if defined, indicates that the system provides
1320 * a prototype for the dbminit() function. Otherwise, it is up
1321 * to the program to supply one. A good guess is
1322 * extern int dbminit(char *);
1324 #$d_dbminitproto HAS_DBMINIT_PROTO /**/
1327 * This manifest constant lets the C program know that dirfd
1330 #$d_dirfd HAS_DIRFD /**/
1332 /* DLSYM_NEEDS_UNDERSCORE:
1333 * This symbol, if defined, indicates that we need to prepend an
1334 * underscore to the symbol name before calling dlsym(). This only
1335 * makes sense if you *have* dlsym, which we will presume is the
1336 * case if you're using dl_dlopen.xs.
1338 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1340 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
1341 * This symbol, if defined, indicates that the bug that prevents
1342 * setuid scripts from being secure is not present in this kernel.
1345 * This symbol, if defined, indicates that the C program should
1346 * check the script that it is executing for setuid/setgid bits, and
1347 * attempt to emulate setuid/setgid on systems that have disabled
1348 * setuid #! scripts because the kernel can't do it securely.
1349 * It is up to the package designer to make sure that this emulation
1350 * is done securely. Among other things, it should do an fstat on
1351 * the script it just opened to make sure it really is a setuid/setgid
1352 * script, it should make sure the arguments passed correspond exactly
1353 * to the argument on the #! line, and it should not trust any
1354 * subprocesses to which it must pass the filename rather than the
1355 * file descriptor of the script to be executed.
1357 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1358 #$d_dosuid DOSUID /**/
1361 * This symbol, if defined, indicates that the drand48_r routine
1362 * is available to drand48 re-entrantly.
1365 * This symbol encodes the prototype of drand48_r.
1366 * It is zero if d_drand48_r is undef, and one of the
1367 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_drand48_r
1370 #$d_drand48_r HAS_DRAND48_R /**/
1371 #define DRAND48_R_PROTO $drand48_r_proto /**/
1373 /* HAS_DRAND48_PROTO:
1374 * This symbol, if defined, indicates that the system provides
1375 * a prototype for the drand48() function. Otherwise, it is up
1376 * to the program to supply one. A good guess is
1377 * extern double drand48(void);
1379 #$d_drand48proto HAS_DRAND48_PROTO /**/
1382 * This symbol, if defined, indicates that the getgrent routine is
1383 * available for finalizing sequential access of the group database.
1385 #$d_endgrent HAS_ENDGRENT /**/
1388 * This symbol, if defined, indicates that the endgrent_r routine
1389 * is available to endgrent re-entrantly.
1391 /* ENDGRENT_R_PROTO:
1392 * This symbol encodes the prototype of endgrent_r.
1393 * It is zero if d_endgrent_r is undef, and one of the
1394 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endgrent_r
1397 #$d_endgrent_r HAS_ENDGRENT_R /**/
1398 #define ENDGRENT_R_PROTO $endgrent_r_proto /**/
1401 * This symbol, if defined, indicates that the endhostent() routine is
1402 * available to close whatever was being used for host queries.
1404 #$d_endhent HAS_ENDHOSTENT /**/
1406 /* HAS_ENDHOSTENT_R:
1407 * This symbol, if defined, indicates that the endhostent_r routine
1408 * is available to endhostent re-entrantly.
1410 /* ENDHOSTENT_R_PROTO:
1411 * This symbol encodes the prototype of endhostent_r.
1412 * It is zero if d_endhostent_r is undef, and one of the
1413 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endhostent_r
1416 #$d_endhostent_r HAS_ENDHOSTENT_R /**/
1417 #define ENDHOSTENT_R_PROTO $endhostent_r_proto /**/
1420 * This symbol, if defined, indicates that the endnetent() routine is
1421 * available to close whatever was being used for network queries.
1423 #$d_endnent HAS_ENDNETENT /**/
1426 * This symbol, if defined, indicates that the endnetent_r routine
1427 * is available to endnetent re-entrantly.
1429 /* ENDNETENT_R_PROTO:
1430 * This symbol encodes the prototype of endnetent_r.
1431 * It is zero if d_endnetent_r is undef, and one of the
1432 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endnetent_r
1435 #$d_endnetent_r HAS_ENDNETENT_R /**/
1436 #define ENDNETENT_R_PROTO $endnetent_r_proto /**/
1439 * This symbol, if defined, indicates that the endprotoent() routine is
1440 * available to close whatever was being used for protocol queries.
1442 #$d_endpent HAS_ENDPROTOENT /**/
1444 /* HAS_ENDPROTOENT_R:
1445 * This symbol, if defined, indicates that the endprotoent_r routine
1446 * is available to endprotoent re-entrantly.
1448 /* ENDPROTOENT_R_PROTO:
1449 * This symbol encodes the prototype of endprotoent_r.
1450 * It is zero if d_endprotoent_r is undef, and one of the
1451 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endprotoent_r
1454 #$d_endprotoent_r HAS_ENDPROTOENT_R /**/
1455 #define ENDPROTOENT_R_PROTO $endprotoent_r_proto /**/
1458 * This symbol, if defined, indicates that the getgrent routine is
1459 * available for finalizing sequential access of the passwd database.
1461 #$d_endpwent HAS_ENDPWENT /**/
1464 * This symbol, if defined, indicates that the endpwent_r routine
1465 * is available to endpwent re-entrantly.
1467 /* ENDPWENT_R_PROTO:
1468 * This symbol encodes the prototype of endpwent_r.
1469 * It is zero if d_endpwent_r is undef, and one of the
1470 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endpwent_r
1473 #$d_endpwent_r HAS_ENDPWENT_R /**/
1474 #define ENDPWENT_R_PROTO $endpwent_r_proto /**/
1477 * This symbol, if defined, indicates that the endservent() routine is
1478 * available to close whatever was being used for service queries.
1480 #$d_endsent HAS_ENDSERVENT /**/
1482 /* HAS_ENDSERVENT_R:
1483 * This symbol, if defined, indicates that the endservent_r routine
1484 * is available to endservent re-entrantly.
1486 /* ENDSERVENT_R_PROTO:
1487 * This symbol encodes the prototype of endservent_r.
1488 * It is zero if d_endservent_r is undef, and one of the
1489 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_endservent_r
1492 #$d_endservent_r HAS_ENDSERVENT_R /**/
1493 #define ENDSERVENT_R_PROTO $endservent_r_proto /**/
1496 * This symbol, if defined, indicates that the "fast stdio"
1497 * is available to manipulate the stdio buffers directly.
1499 #$d_faststdio HAS_FAST_STDIO /**/
1502 * This symbol, if defined, indicates that the fchdir routine is
1503 * available to change directory using a file descriptor.
1505 #$d_fchdir HAS_FCHDIR /**/
1508 * This symbol, if defined, indicates that fcntl() can be used
1509 * for file locking. Normally on Unix systems this is defined.
1510 * It may be undefined on VMS.
1512 #$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
1515 * This symbol, when defined, indicates presence of the fd_set typedef
1518 #$d_fd_set HAS_FD_SET /**/
1521 * This symbol, if defined, indicates that the finite routine is
1522 * available to check whether a double is finite (non-infinity non-NaN).
1524 #$d_finite HAS_FINITE /**/
1527 * This symbol, if defined, indicates that the finitel routine is
1528 * available to check whether a long double is finite
1529 * (non-infinity non-NaN).
1531 #$d_finitel HAS_FINITEL /**/
1534 * This symbol, if defined, indicates that the system supports filenames
1535 * longer than 14 characters.
1537 #$d_flexfnam FLEXFILENAMES /**/
1540 * This symbol, if defined, indicates that the system provides
1541 * a prototype for the flock() function. Otherwise, it is up
1542 * to the program to supply one. A good guess is
1543 * extern int flock(int, int);
1545 #$d_flockproto HAS_FLOCK_PROTO /**/
1548 * This symbol, if defined, indicates that the fp_class routine is
1549 * available to classify doubles. Available for example in Digital UNIX.
1550 * The returned values are defined in <math.h> and are:
1552 * FP_SNAN Signaling NaN (Not-a-Number)
1553 * FP_QNAN Quiet NaN (Not-a-Number)
1554 * FP_POS_INF +infinity
1555 * FP_NEG_INF -infinity
1556 * FP_POS_NORM Positive normalized
1557 * FP_NEG_NORM Negative normalized
1558 * FP_POS_DENORM Positive denormalized
1559 * FP_NEG_DENORM Negative denormalized
1560 * FP_POS_ZERO +0.0 (positive zero)
1561 * FP_NEG_ZERO -0.0 (negative zero)
1563 #$d_fp_class HAS_FP_CLASS /**/
1566 * This symbol, if defined, indicates that the fpclass routine is
1567 * available to classify doubles. Available for example in Solaris/SVR4.
1568 * The returned values are defined in <ieeefp.h> and are:
1570 * FP_SNAN signaling NaN
1572 * FP_NINF negative infinity
1573 * FP_PINF positive infinity
1574 * FP_NDENORM negative denormalized non-zero
1575 * FP_PDENORM positive denormalized non-zero
1576 * FP_NZERO negative zero
1577 * FP_PZERO positive zero
1578 * FP_NNORM negative normalized non-zero
1579 * FP_PNORM positive normalized non-zero
1581 #$d_fpclass HAS_FPCLASS /**/
1584 * This symbol, if defined, indicates that the fpclassify routine is
1585 * available to classify doubles. Available for example in HP-UX.
1586 * The returned values are defined in <math.h> and are
1588 * FP_NORMAL Normalized
1590 * FP_INFINITE Infinity
1591 * FP_SUBNORMAL Denormalized
1595 #$d_fpclassify HAS_FPCLASSIFY /**/
1598 * This symbol, if defined, indicates that the fpclassl routine is
1599 * available to classify long doubles. Available for example in IRIX.
1600 * The returned values are defined in <ieeefp.h> and are:
1602 * FP_SNAN signaling NaN
1604 * FP_NINF negative infinity
1605 * FP_PINF positive infinity
1606 * FP_NDENORM negative denormalized non-zero
1607 * FP_PDENORM positive denormalized non-zero
1608 * FP_NZERO negative zero
1609 * FP_PZERO positive zero
1610 * FP_NNORM negative normalized non-zero
1611 * FP_PNORM positive normalized non-zero
1613 #$d_fpclassl HAS_FPCLASSL /**/
1616 * This symbol will be defined if the C compiler supports fpos64_t.
1618 #$d_fpos64_t HAS_FPOS64_T /**/
1621 * This symbol, if defined, indicates that the frexpl routine is
1622 * available to break a long double floating-point number into
1623 * a normalized fraction and an integral power of 2.
1625 #$d_frexpl HAS_FREXPL /**/
1627 /* HAS_STRUCT_FS_DATA:
1628 * This symbol, if defined, indicates that the struct fs_data
1629 * to do statfs() is supported.
1631 #$d_fs_data_s HAS_STRUCT_FS_DATA /**/
1634 * This symbol, if defined, indicates that the fseeko routine is
1635 * available to fseek beyond 32 bits (useful for ILP32 hosts).
1637 #$d_fseeko HAS_FSEEKO /**/
1640 * This symbol, if defined, indicates that the fstatfs routine is
1641 * available to stat filesystems by file descriptors.
1643 #$d_fstatfs HAS_FSTATFS /**/
1646 * This symbol, if defined, indicates that the fsync routine is
1647 * available to write a file's modified data and attributes to
1648 * permanent storage.
1650 #$d_fsync HAS_FSYNC /**/
1653 * This symbol, if defined, indicates that the ftello routine is
1654 * available to ftell beyond 32 bits (useful for ILP32 hosts).
1656 #$d_ftello HAS_FTELLO /**/
1659 * This symbol, if defined, indicates that the futimes routine is
1660 * available to change file descriptor time stamps with struct timevals.
1662 #$d_futimes HAS_FUTIMES /**/
1665 * This preprocessor macro is defined to convert a floating point
1666 * number to a string without a trailing decimal point. This
1667 * emulates the behavior of sprintf("%g"), but is sometimes much more
1668 * efficient. If gconvert() is not available, but gcvt() drops the
1669 * trailing decimal point, then gcvt() is used. If all else fails,
1670 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1671 * macro are: value, number of digits, whether trailing zeros should
1672 * be retained, and the output buffer.
1673 * The usual values are:
1674 * d_Gconvert='gconvert((x),(n),(t),(b))'
1675 * d_Gconvert='gcvt((x),(n),(b))'
1676 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1677 * The last two assume trailing zeros should not be kept.
1679 #define Gconvert(x,n,t,b) $d_Gconvert
1682 * This symbol, if defined, indicates that the getcwd routine is
1683 * available to get the current working directory.
1685 #$d_getcwd HAS_GETCWD /**/
1688 * This symbol, if defined, indicates that the getespwnam system call is
1689 * available to retrieve enchanced (shadow) password entries by name.
1691 #$d_getespwnam HAS_GETESPWNAM /**/
1694 * This symbol, if defined, indicates that the getfsstat routine is
1695 * available to stat filesystems in bulk.
1697 #$d_getfsstat HAS_GETFSSTAT /**/
1700 * This symbol, if defined, indicates that the getgrent routine is
1701 * available for sequential access of the group database.
1703 #$d_getgrent HAS_GETGRENT /**/
1706 * This symbol, if defined, indicates that the getgrent_r routine
1707 * is available to getgrent re-entrantly.
1709 /* GETGRENT_R_PROTO:
1710 * This symbol encodes the prototype of getgrent_r.
1711 * It is zero if d_getgrent_r is undef, and one of the
1712 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrent_r
1715 #$d_getgrent_r HAS_GETGRENT_R /**/
1716 #define GETGRENT_R_PROTO $getgrent_r_proto /**/
1719 * This symbol, if defined, indicates that the getgrgid_r routine
1720 * is available to getgrgid re-entrantly.
1722 /* GETGRGID_R_PROTO:
1723 * This symbol encodes the prototype of getgrgid_r.
1724 * It is zero if d_getgrgid_r is undef, and one of the
1725 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrgid_r
1728 #$d_getgrgid_r HAS_GETGRGID_R /**/
1729 #define GETGRGID_R_PROTO $getgrgid_r_proto /**/
1732 * This symbol, if defined, indicates that the getgrnam_r routine
1733 * is available to getgrnam re-entrantly.
1735 /* GETGRNAM_R_PROTO:
1736 * This symbol encodes the prototype of getgrnam_r.
1737 * It is zero if d_getgrnam_r is undef, and one of the
1738 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getgrnam_r
1741 #$d_getgrnam_r HAS_GETGRNAM_R /**/
1742 #define GETGRNAM_R_PROTO $getgrnam_r_proto /**/
1744 /* HAS_GETHOSTBYADDR:
1745 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1746 * available to look up hosts by their IP addresses.
1748 #$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1750 /* HAS_GETHOSTBYNAME:
1751 * This symbol, if defined, indicates that the gethostbyname() routine is
1752 * available to look up host names in some data base or other.
1754 #$d_gethbyname HAS_GETHOSTBYNAME /**/
1757 * This symbol, if defined, indicates that the gethostent() routine is
1758 * available to look up host names in some data base or another.
1760 #$d_gethent HAS_GETHOSTENT /**/
1763 * This symbol, if defined, indicates that the C program may use the
1764 * gethostname() routine to derive the host name. See also HAS_UNAME
1768 * This symbol, if defined, indicates that the C program may use the
1769 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1773 * This symbol, if defined, indicates the command to feed to the
1774 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1775 * and HAS_UNAME. Note that the command uses a fully qualified path,
1776 * so that it is safe even if used by a process with super-user
1780 * This symbol, if defined, indicates that the C program may use the
1781 * contents of PHOSTNAME as a command to feed to the popen() routine
1782 * to derive the host name.
1784 #$d_gethname HAS_GETHOSTNAME /**/
1785 #$d_uname HAS_UNAME /**/
1786 #$d_phostname HAS_PHOSTNAME /**/
1787 #ifdef HAS_PHOSTNAME
1788 #define PHOSTNAME "$aphostname" /* How to get the host name */
1791 /* HAS_GETHOSTBYADDR_R:
1792 * This symbol, if defined, indicates that the gethostbyaddr_r routine
1793 * is available to gethostbyaddr re-entrantly.
1795 /* GETHOSTBYADDR_R_PROTO:
1796 * This symbol encodes the prototype of gethostbyaddr_r.
1797 * It is zero if d_gethostbyaddr_r is undef, and one of the
1798 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyaddr_r
1801 #$d_gethostbyaddr_r HAS_GETHOSTBYADDR_R /**/
1802 #define GETHOSTBYADDR_R_PROTO $gethostbyaddr_r_proto /**/
1804 /* HAS_GETHOSTBYNAME_R:
1805 * This symbol, if defined, indicates that the gethostbyname_r routine
1806 * is available to gethostbyname re-entrantly.
1808 /* GETHOSTBYNAME_R_PROTO:
1809 * This symbol encodes the prototype of gethostbyname_r.
1810 * It is zero if d_gethostbyname_r is undef, and one of the
1811 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostbyname_r
1814 #$d_gethostbyname_r HAS_GETHOSTBYNAME_R /**/
1815 #define GETHOSTBYNAME_R_PROTO $gethostbyname_r_proto /**/
1817 /* HAS_GETHOSTENT_R:
1818 * This symbol, if defined, indicates that the gethostent_r routine
1819 * is available to gethostent re-entrantly.
1821 /* GETHOSTENT_R_PROTO:
1822 * This symbol encodes the prototype of gethostent_r.
1823 * It is zero if d_gethostent_r is undef, and one of the
1824 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gethostent_r
1827 #$d_gethostent_r HAS_GETHOSTENT_R /**/
1828 #define GETHOSTENT_R_PROTO $gethostent_r_proto /**/
1830 /* HAS_GETHOST_PROTOS:
1831 * This symbol, if defined, indicates that <netdb.h> includes
1832 * prototypes for gethostent(), gethostbyname(), and
1833 * gethostbyaddr(). Otherwise, it is up to the program to guess
1834 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1836 #$d_gethostprotos HAS_GETHOST_PROTOS /**/
1839 * This symbol, if defined, indicates that the getitimer routine is
1840 * available to return interval timers.
1842 #$d_getitimer HAS_GETITIMER /**/
1845 * This symbol, if defined, indicates that the getlogin_r routine
1846 * is available to getlogin re-entrantly.
1848 /* GETLOGIN_R_PROTO:
1849 * This symbol encodes the prototype of getlogin_r.
1850 * It is zero if d_getlogin_r is undef, and one of the
1851 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getlogin_r
1854 #$d_getlogin_r HAS_GETLOGIN_R /**/
1855 #define GETLOGIN_R_PROTO $getlogin_r_proto /**/
1858 * This symbol, if defined, indicates that the getmnt routine is
1859 * available to get filesystem mount info by filename.
1861 #$d_getmnt HAS_GETMNT /**/
1864 * This symbol, if defined, indicates that the getmntent routine is
1865 * available to iterate through mounted file systems to get their info.
1867 #$d_getmntent HAS_GETMNTENT /**/
1869 /* HAS_GETNETBYADDR:
1870 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1871 * available to look up networks by their IP addresses.
1873 #$d_getnbyaddr HAS_GETNETBYADDR /**/
1875 /* HAS_GETNETBYNAME:
1876 * This symbol, if defined, indicates that the getnetbyname() routine is
1877 * available to look up networks by their names.
1879 #$d_getnbyname HAS_GETNETBYNAME /**/
1882 * This symbol, if defined, indicates that the getnetent() routine is
1883 * available to look up network names in some data base or another.
1885 #$d_getnent HAS_GETNETENT /**/
1887 /* HAS_GETNETBYADDR_R:
1888 * This symbol, if defined, indicates that the getnetbyaddr_r routine
1889 * is available to getnetbyaddr re-entrantly.
1891 /* GETNETBYADDR_R_PROTO:
1892 * This symbol encodes the prototype of getnetbyaddr_r.
1893 * It is zero if d_getnetbyaddr_r is undef, and one of the
1894 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyaddr_r
1897 #$d_getnetbyaddr_r HAS_GETNETBYADDR_R /**/
1898 #define GETNETBYADDR_R_PROTO $getnetbyaddr_r_proto /**/
1900 /* HAS_GETNETBYNAME_R:
1901 * This symbol, if defined, indicates that the getnetbyname_r routine
1902 * is available to getnetbyname re-entrantly.
1904 /* GETNETBYNAME_R_PROTO:
1905 * This symbol encodes the prototype of getnetbyname_r.
1906 * It is zero if d_getnetbyname_r is undef, and one of the
1907 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetbyname_r
1910 #$d_getnetbyname_r HAS_GETNETBYNAME_R /**/
1911 #define GETNETBYNAME_R_PROTO $getnetbyname_r_proto /**/
1914 * This symbol, if defined, indicates that the getnetent_r routine
1915 * is available to getnetent re-entrantly.
1917 /* GETNETENT_R_PROTO:
1918 * This symbol encodes the prototype of getnetent_r.
1919 * It is zero if d_getnetent_r is undef, and one of the
1920 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getnetent_r
1923 #$d_getnetent_r HAS_GETNETENT_R /**/
1924 #define GETNETENT_R_PROTO $getnetent_r_proto /**/
1926 /* HAS_GETNET_PROTOS:
1927 * This symbol, if defined, indicates that <netdb.h> includes
1928 * prototypes for getnetent(), getnetbyname(), and
1929 * getnetbyaddr(). Otherwise, it is up to the program to guess
1930 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
1932 #$d_getnetprotos HAS_GETNET_PROTOS /**/
1935 * This symbol, if defined, indicates that the getpagesize system call
1936 * is available to get system page size, which is the granularity of
1937 * many memory management calls.
1939 #$d_getpagsz HAS_GETPAGESIZE /**/
1942 * This symbol, if defined, indicates that the getprotoent() routine is
1943 * available to look up protocols in some data base or another.
1945 #$d_getpent HAS_GETPROTOENT /**/
1948 * This symbol, if defined, indicates that the getpgrp routine is
1949 * available to get the current process group.
1952 * This symbol, if defined, indicates that getpgrp needs one
1953 * arguments whereas USG one needs none.
1955 #$d_getpgrp HAS_GETPGRP /**/
1956 #$d_bsdgetpgrp USE_BSD_GETPGRP /**/
1958 /* HAS_GETPROTOBYNAME:
1959 * This symbol, if defined, indicates that the getprotobyname()
1960 * routine is available to look up protocols by their name.
1962 /* HAS_GETPROTOBYNUMBER:
1963 * This symbol, if defined, indicates that the getprotobynumber()
1964 * routine is available to look up protocols by their number.
1966 #$d_getpbyname HAS_GETPROTOBYNAME /**/
1967 #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1969 /* HAS_GETPROTOBYNAME_R:
1970 * This symbol, if defined, indicates that the getprotobyname_r routine
1971 * is available to getprotobyname re-entrantly.
1973 /* GETPROTOBYNAME_R_PROTO:
1974 * This symbol encodes the prototype of getprotobyname_r.
1975 * It is zero if d_getprotobyname_r is undef, and one of the
1976 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobyname_r
1979 #$d_getprotobyname_r HAS_GETPROTOBYNAME_R /**/
1980 #define GETPROTOBYNAME_R_PROTO $getprotobyname_r_proto /**/
1982 /* HAS_GETPROTOBYNUMBER_R:
1983 * This symbol, if defined, indicates that the getprotobynumber_r routine
1984 * is available to getprotobynumber re-entrantly.
1986 /* GETPROTOBYNUMBER_R_PROTO:
1987 * This symbol encodes the prototype of getprotobynumber_r.
1988 * It is zero if d_getprotobynumber_r is undef, and one of the
1989 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotobynumber_r
1992 #$d_getprotobynumber_r HAS_GETPROTOBYNUMBER_R /**/
1993 #define GETPROTOBYNUMBER_R_PROTO $getprotobynumber_r_proto /**/
1995 /* HAS_GETPROTOENT_R:
1996 * This symbol, if defined, indicates that the getprotoent_r routine
1997 * is available to getprotoent re-entrantly.
1999 /* GETPROTOENT_R_PROTO:
2000 * This symbol encodes the prototype of getprotoent_r.
2001 * It is zero if d_getprotoent_r is undef, and one of the
2002 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getprotoent_r
2005 #$d_getprotoent_r HAS_GETPROTOENT_R /**/
2006 #define GETPROTOENT_R_PROTO $getprotoent_r_proto /**/
2008 /* HAS_GETPROTO_PROTOS:
2009 * This symbol, if defined, indicates that <netdb.h> includes
2010 * prototypes for getprotoent(), getprotobyname(), and
2011 * getprotobyaddr(). Otherwise, it is up to the program to guess
2012 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2014 #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
2017 * This symbol, if defined, indicates that the getprpwnam system call is
2018 * available to retrieve protected (shadow) password entries by name.
2020 #$d_getprpwnam HAS_GETPRPWNAM /**/
2023 * This symbol, if defined, indicates that the getpwent routine is
2024 * available for sequential access of the passwd database.
2025 * If this is not available, the older getpw() function may be available.
2027 #$d_getpwent HAS_GETPWENT /**/
2030 * This symbol, if defined, indicates that the getpwent_r routine
2031 * is available to getpwent re-entrantly.
2033 /* GETPWENT_R_PROTO:
2034 * This symbol encodes the prototype of getpwent_r.
2035 * It is zero if d_getpwent_r is undef, and one of the
2036 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwent_r
2039 #$d_getpwent_r HAS_GETPWENT_R /**/
2040 #define GETPWENT_R_PROTO $getpwent_r_proto /**/
2043 * This symbol, if defined, indicates that the getpwnam_r routine
2044 * is available to getpwnam re-entrantly.
2046 /* GETPWNAM_R_PROTO:
2047 * This symbol encodes the prototype of getpwnam_r.
2048 * It is zero if d_getpwnam_r is undef, and one of the
2049 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwnam_r
2052 #$d_getpwnam_r HAS_GETPWNAM_R /**/
2053 #define GETPWNAM_R_PROTO $getpwnam_r_proto /**/
2056 * This symbol, if defined, indicates that the getpwuid_r routine
2057 * is available to getpwuid re-entrantly.
2059 /* GETPWUID_R_PROTO:
2060 * This symbol encodes the prototype of getpwuid_r.
2061 * It is zero if d_getpwuid_r is undef, and one of the
2062 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getpwuid_r
2065 #$d_getpwuid_r HAS_GETPWUID_R /**/
2066 #define GETPWUID_R_PROTO $getpwuid_r_proto /**/
2069 * This symbol, if defined, indicates that the getservent() routine is
2070 * available to look up network services in some data base or another.
2072 #$d_getsent HAS_GETSERVENT /**/
2074 /* HAS_GETSERVBYNAME_R:
2075 * This symbol, if defined, indicates that the getservbyname_r routine
2076 * is available to getservbyname re-entrantly.
2078 /* GETSERVBYNAME_R_PROTO:
2079 * This symbol encodes the prototype of getservbyname_r.
2080 * It is zero if d_getservbyname_r is undef, and one of the
2081 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyname_r
2084 #$d_getservbyname_r HAS_GETSERVBYNAME_R /**/
2085 #define GETSERVBYNAME_R_PROTO $getservbyname_r_proto /**/
2087 /* HAS_GETSERVBYPORT_R:
2088 * This symbol, if defined, indicates that the getservbyport_r routine
2089 * is available to getservbyport re-entrantly.
2091 /* GETSERVBYPORT_R_PROTO:
2092 * This symbol encodes the prototype of getservbyport_r.
2093 * It is zero if d_getservbyport_r is undef, and one of the
2094 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservbyport_r
2097 #$d_getservbyport_r HAS_GETSERVBYPORT_R /**/
2098 #define GETSERVBYPORT_R_PROTO $getservbyport_r_proto /**/
2100 /* HAS_GETSERVENT_R:
2101 * This symbol, if defined, indicates that the getservent_r routine
2102 * is available to getservent re-entrantly.
2104 /* GETSERVENT_R_PROTO:
2105 * This symbol encodes the prototype of getservent_r.
2106 * It is zero if d_getservent_r is undef, and one of the
2107 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getservent_r
2110 #$d_getservent_r HAS_GETSERVENT_R /**/
2111 #define GETSERVENT_R_PROTO $getservent_r_proto /**/
2113 /* HAS_GETSERV_PROTOS:
2114 * This symbol, if defined, indicates that <netdb.h> includes
2115 * prototypes for getservent(), getservbyname(), and
2116 * getservbyaddr(). Otherwise, it is up to the program to guess
2117 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2119 #$d_getservprotos HAS_GETSERV_PROTOS /**/
2122 * This symbol, if defined, indicates that the getspnam system call is
2123 * available to retrieve SysV shadow password entries by name.
2125 #$d_getspnam HAS_GETSPNAM /**/
2128 * This symbol, if defined, indicates that the getspnam_r routine
2129 * is available to getspnam re-entrantly.
2131 /* GETSPNAM_R_PROTO:
2132 * This symbol encodes the prototype of getspnam_r.
2133 * It is zero if d_getspnam_r is undef, and one of the
2134 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_getspnam_r
2137 #$d_getspnam_r HAS_GETSPNAM_R /**/
2138 #define GETSPNAM_R_PROTO $getspnam_r_proto /**/
2140 /* HAS_GETSERVBYNAME:
2141 * This symbol, if defined, indicates that the getservbyname()
2142 * routine is available to look up services by their name.
2144 /* HAS_GETSERVBYPORT:
2145 * This symbol, if defined, indicates that the getservbyport()
2146 * routine is available to look up services by their port.
2148 #$d_getsbyname HAS_GETSERVBYNAME /**/
2149 #$d_getsbyport HAS_GETSERVBYPORT /**/
2152 * This symbol, if defined, indicates that the gmtime_r routine
2153 * is available to gmtime re-entrantly.
2156 * This symbol encodes the prototype of gmtime_r.
2157 * It is zero if d_gmtime_r is undef, and one of the
2158 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_gmtime_r
2161 #$d_gmtime_r HAS_GMTIME_R /**/
2162 #define GMTIME_R_PROTO $gmtime_r_proto /**/
2165 * This symbol, if defined, indicates to the C program that
2166 * the GNU C library is being used. A better check is to use
2167 * the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc.
2169 #$d_gnulibc HAS_GNULIBC /**/
2170 #if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
2171 # define _GNU_SOURCE
2174 * This symbol, if defined, indicates that the hasmntopt routine is
2175 * available to query the mount options of file systems.
2177 #$d_hasmntopt HAS_HASMNTOPT /**/
2180 * This symbol, if defined, indicates that the htonl() routine (and
2181 * friends htons() ntohl() ntohs()) are available to do network
2182 * order byte swapping.
2185 * This symbol, if defined, indicates that the htons() routine (and
2186 * friends htonl() ntohl() ntohs()) are available to do network
2187 * order byte swapping.
2190 * This symbol, if defined, indicates that the ntohl() routine (and
2191 * friends htonl() htons() ntohs()) are available to do network
2192 * order byte swapping.
2195 * This symbol, if defined, indicates that the ntohs() routine (and
2196 * friends htonl() htons() ntohl()) are available to do network
2197 * order byte swapping.
2199 #$d_htonl HAS_HTONL /**/
2200 #$d_htonl HAS_HTONS /**/
2201 #$d_htonl HAS_NTOHL /**/
2202 #$d_htonl HAS_NTOHS /**/
2205 * This symbol, if defined, indicates that the ilogbl routine is
2206 * available. If scalbnl is also present we can emulate frexpl.
2208 #$d_ilogbl HAS_ILOGBL /**/
2211 * This symbol will defined if the C compiler supports int64_t.
2212 * Usually the <inttypes.h> needs to be included, but sometimes
2213 * <sys/types.h> is enough.
2215 #$d_int64_t HAS_INT64_T /**/
2218 * This manifest constant lets the C program know that isascii
2221 #$d_isascii HAS_ISASCII /**/
2224 * This symbol, if defined, indicates that the isfinite routine is
2225 * available to check whether a double is finite (non-infinity non-NaN).
2227 #$d_isfinite HAS_ISFINITE /**/
2230 * This symbol, if defined, indicates that the isinf routine is
2231 * available to check whether a double is an infinity.
2233 #$d_isinf HAS_ISINF /**/
2236 * This symbol, if defined, indicates that the isnan routine is
2237 * available to check whether a double is a NaN.
2239 #$d_isnan HAS_ISNAN /**/
2242 * This symbol, if defined, indicates that the isnanl routine is
2243 * available to check whether a long double is a NaN.
2245 #$d_isnanl HAS_ISNANL /**/
2248 * This symbol, if defined, indicates that the lchown routine is
2249 * available to operate on a symbolic link (instead of following the
2252 #$d_lchown HAS_LCHOWN /**/
2255 * This symbol, if defined, indicates that this system's <float.h>
2256 * or <limits.h> defines the symbol LDBL_DIG, which is the number
2257 * of significant digits in a long double precision number. Unlike
2258 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
2260 #$d_ldbl_dig HAS_LDBL_DIG /* */
2262 /* LIBM_LIB_VERSION:
2263 * This symbol, if defined, indicates that libm exports _LIB_VERSION
2264 * and that math.h defines the enum to manipulate it.
2266 #$d_libm_lib_version LIBM_LIB_VERSION /**/
2269 * This symbol, if defined, indicates that the localtime_r routine
2270 * is available to localtime re-entrantly.
2272 /* LOCALTIME_R_PROTO:
2273 * This symbol encodes the prototype of localtime_r.
2274 * It is zero if d_localtime_r is undef, and one of the
2275 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_localtime_r
2278 #$d_localtime_r HAS_LOCALTIME_R /**/
2279 #define LOCALTIME_R_PROTO $localtime_r_proto /**/
2282 * This symbol will be defined if the C compiler supports long
2286 * This symbol contains the size of a long double, so that the
2287 * C preprocessor can make decisions based on it. It is only
2288 * defined if the system supports long doubles.
2290 #$d_longdbl HAS_LONG_DOUBLE /**/
2291 #ifdef HAS_LONG_DOUBLE
2292 #define LONG_DOUBLESIZE $longdblsize /**/
2296 * This symbol will be defined if the C compiler supports long long.
2299 * This symbol contains the size of a long long, so that the
2300 * C preprocessor can make decisions based on it. It is only
2301 * defined if the system supports long long.
2303 #$d_longlong HAS_LONG_LONG /**/
2304 #ifdef HAS_LONG_LONG
2305 #define LONGLONGSIZE $longlongsize /**/
2309 * This symbol, if defined, indicates that the system provides
2310 * a prototype for the lseek() function. Otherwise, it is up
2311 * to the program to supply one. A good guess is
2312 * extern off_t lseek(int, off_t, int);
2314 #$d_lseekproto HAS_LSEEK_PROTO /**/
2317 * This symbol, if defined, indicates that the madvise system call is
2318 * available to map a file into memory.
2320 #$d_madvise HAS_MADVISE /**/
2323 * This symbol, if defined, indicates that the malloc_size
2324 * routine is available for use.
2326 #$d_malloc_size HAS_MALLOC_SIZE /**/
2328 /* HAS_MALLOC_GOOD_SIZE:
2329 * This symbol, if defined, indicates that the malloc_good_size
2330 * routine is available for use.
2332 #$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/
2335 * This symbol, if defined, indicates that the memchr routine is available
2336 * to locate characters within a C string.
2338 #$d_memchr HAS_MEMCHR /**/
2341 * This symbol, if defined, indicates that the mkdtemp routine is
2342 * available to exclusively create a uniquely named temporary directory.
2344 #$d_mkdtemp HAS_MKDTEMP /**/
2347 * This symbol, if defined, indicates that the mkstemp routine is
2348 * available to exclusively create and open a uniquely named
2351 #$d_mkstemp HAS_MKSTEMP /**/
2354 * This symbol, if defined, indicates that the mkstemps routine is
2355 * available to excluslvely create and open a uniquely named
2356 * (with a suffix) temporary file.
2358 #$d_mkstemps HAS_MKSTEMPS /**/
2361 * This symbol, if defined, indicates that the mmap system call is
2362 * available to map a file into memory.
2365 * This symbol holds the return type of the mmap() system call
2366 * (and simultaneously the type of the first argument).
2367 * Usually set to 'void *' or 'cadd_t'.
2369 #$d_mmap HAS_MMAP /**/
2370 #define Mmap_t $mmaptype /**/
2373 * This symbol, if defined, indicates that the modfl routine is
2374 * available to split a long double x into a fractional part f and
2375 * an integer part i such that |f| < 1.0 and (f + i) = x.
2378 * This symbol, if defined, indicates that the system provides
2379 * a prototype for the modfl() function. Otherwise, it is up
2380 * to the program to supply one.
2382 /* HAS_MODFL_POW32_BUG:
2383 * This symbol, if defined, indicates that the modfl routine is
2384 * broken for long doubles >= pow(2, 32).
2385 * For example from 4294967303.150000 one would get 4294967302.000000
2386 * and 1.150000. The bug has been seen in certain versions of glibc,
2387 * release 2.2.2 is known to be okay.
2389 #$d_modfl HAS_MODFL /**/
2390 #$d_modflproto HAS_MODFL_PROTO /**/
2391 #$d_modfl_pow32_bug HAS_MODFL_POW32_BUG /**/
2394 * This symbol, if defined, indicates that the mprotect system call is
2395 * available to modify the access protection of a memory mapped file.
2397 #$d_mprotect HAS_MPROTECT /**/
2400 * This symbol, if defined, indicates that the entire msg*(2) library is
2401 * supported (IPC mechanism based on message queues).
2403 #$d_msg HAS_MSG /**/
2405 /* HAS_STRUCT_MSGHDR:
2406 * This symbol, if defined, indicates that the struct msghdr
2409 #$d_msghdr_s HAS_STRUCT_MSGHDR /**/
2412 * This symbol, if defined, indicates that the nl_langinfo routine is
2413 * available to return local data. You will also need <langinfo.h>
2414 * and therefore I_LANGINFO.
2416 #$d_nl_langinfo HAS_NL_LANGINFO /**/
2419 * This symbol will be defined if the C compiler supports off64_t.
2421 #$d_off64_t HAS_OFF64_T /**/
2424 * This manifest constant lets the C program know that the three
2425 * argument form of open(2) is available.
2427 #$d_open3 HAS_OPEN3 /**/
2430 * This symbol is defined if PROCSELFEXE_PATH is a symlink
2431 * to the absolute pathname of the executing program.
2433 /* PROCSELFEXE_PATH:
2434 * If HAS_PROCSELFEXE is defined this symbol is the filename
2435 * of the symbolic link pointing to the absolute pathname of
2436 * the executing program.
2438 #$d_procselfexe HAS_PROCSELFEXE /**/
2439 #if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH)
2440 #define PROCSELFEXE_PATH $procselfexe /**/
2443 /* OLD_PTHREAD_CREATE_JOINABLE:
2444 * This symbol, if defined, indicates how to create pthread
2445 * in joinable (aka undetached) state. NOTE: not defined
2446 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
2447 * (the new version of the constant).
2448 * If defined, known values are PTHREAD_CREATE_UNDETACHED
2451 #$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
2453 /* HAS_PTHREAD_ATFORK:
2454 * This symbol, if defined, indicates that the pthread_atfork routine
2455 * is available to setup fork handlers.
2457 #$d_pthread_atfork HAS_PTHREAD_ATFORK /**/
2459 /* HAS_PTHREAD_ATTR_SETSCOPE:
2460 * This symbol, if defined, indicates that the pthread_attr_setscope
2461 * system call is available to set the contention scope attribute of
2462 * a thread attribute object.
2464 #$d_pthread_attr_setscope HAS_PTHREAD_ATTR_SETSCOPE /**/
2466 /* HAS_PTHREAD_YIELD:
2467 * This symbol, if defined, indicates that the pthread_yield
2468 * routine is available to yield the execution of the current
2469 * thread. sched_yield is preferable to pthread_yield.
2472 * This symbol defines the way to yield the execution of
2473 * the current thread. Known ways are sched_yield,
2474 * pthread_yield, and pthread_yield with NULL.
2477 * This symbol, if defined, indicates that the sched_yield
2478 * routine is available to yield the execution of the current
2479 * thread. sched_yield is preferable to pthread_yield.
2481 #$d_pthread_yield HAS_PTHREAD_YIELD /**/
2482 #define SCHED_YIELD $sched_yield /**/
2483 #$d_sched_yield HAS_SCHED_YIELD /**/
2486 * This symbol, if defined, indicates that the random_r routine
2487 * is available to random re-entrantly.
2490 * This symbol encodes the prototype of random_r.
2491 * It is zero if d_random_r is undef, and one of the
2492 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_random_r
2495 #$d_random_r HAS_RANDOM_R /**/
2496 #define RANDOM_R_PROTO $random_r_proto /**/
2499 * This symbol, if defined, indicates that the readdir64_r routine
2500 * is available to readdir64 re-entrantly.
2502 /* READDIR64_R_PROTO:
2503 * This symbol encodes the prototype of readdir64_r.
2504 * It is zero if d_readdir64_r is undef, and one of the
2505 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir64_r
2508 #$d_readdir64_r HAS_READDIR64_R /**/
2509 #define READDIR64_R_PROTO $readdir64_r_proto /**/
2512 * This symbol, if defined, indicates that the readdir_r routine
2513 * is available to readdir re-entrantly.
2516 * This symbol encodes the prototype of readdir_r.
2517 * It is zero if d_readdir_r is undef, and one of the
2518 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_readdir_r
2521 #$d_readdir_r HAS_READDIR_R /**/
2522 #define READDIR_R_PROTO $readdir_r_proto /**/
2525 * This symbol, if defined, indicates that the readv routine is
2526 * available to do gather reads. You will also need <sys/uio.h>
2527 * and there I_SYSUIO.
2529 #$d_readv HAS_READV /**/
2532 * This symbol, if defined, indicates that the recvmsg routine is
2533 * available to send structured socket messages.
2535 #$d_recvmsg HAS_RECVMSG /**/
2538 * This symbol, if defined, indicates that the bcopy routine is available
2539 * to copy potentially overlapping memory blocks. Normally, you should
2540 * probably use memmove() or memcpy(). If neither is defined, roll your
2543 #$d_safebcpy HAS_SAFE_BCOPY /**/
2546 * This symbol, if defined, indicates that the memcpy routine is available
2547 * to copy potentially overlapping memory blocks. If you need to
2548 * copy overlapping memory blocks, you should check HAS_MEMMOVE and
2549 * use memmove() instead, if available.
2551 #$d_safemcpy HAS_SAFE_MEMCPY /**/
2554 * This symbol, if defined, indicates that the memcmp routine is available
2555 * and can be used to compare relative magnitudes of chars with their high
2556 * bits set. If it is not defined, roll your own version.
2558 #$d_sanemcmp HAS_SANE_MEMCMP /**/
2561 * This symbol, if defined, indicates that the system provides
2562 * a prototype for the sbrk() function. Otherwise, it is up
2563 * to the program to supply one. Good guesses are
2564 * extern void* sbrk(int);
2565 * extern void* sbrk(size_t);
2567 #$d_sbrkproto HAS_SBRK_PROTO /**/
2570 * This symbol, if defined, indicates that the scalbnl routine is
2571 * available. If ilogbl is also present we can emulate frexpl.
2573 #$d_scalbnl HAS_SCALBNL /**/
2576 * This symbol, if defined, indicates that the entire sem*(2) library is
2579 #$d_sem HAS_SEM /**/
2582 * This symbol, if defined, indicates that the sendmsg routine is
2583 * available to send structured socket messages.
2585 #$d_sendmsg HAS_SENDMSG /**/
2588 * This symbol, if defined, indicates that the setgrent routine is
2589 * available for initializing sequential access of the group database.
2591 #$d_setgrent HAS_SETGRENT /**/
2594 * This symbol, if defined, indicates that the setgrent_r routine
2595 * is available to setgrent re-entrantly.
2597 /* SETGRENT_R_PROTO:
2598 * This symbol encodes the prototype of setgrent_r.
2599 * It is zero if d_setgrent_r is undef, and one of the
2600 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setgrent_r
2603 #$d_setgrent_r HAS_SETGRENT_R /**/
2604 #define SETGRENT_R_PROTO $setgrent_r_proto /**/
2607 * This symbol, if defined, indicates that the setgroups() routine is
2608 * available to set the list of process groups. If unavailable, multiple
2609 * groups are probably not supported.
2611 #$d_setgrps HAS_SETGROUPS /**/
2614 * This symbol, if defined, indicates that the sethostent() routine is
2617 #$d_sethent HAS_SETHOSTENT /**/
2619 /* HAS_SETHOSTENT_R:
2620 * This symbol, if defined, indicates that the sethostent_r routine
2621 * is available to sethostent re-entrantly.
2623 /* SETHOSTENT_R_PROTO:
2624 * This symbol encodes the prototype of sethostent_r.
2625 * It is zero if d_sethostent_r is undef, and one of the
2626 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_sethostent_r
2629 #$d_sethostent_r HAS_SETHOSTENT_R /**/
2630 #define SETHOSTENT_R_PROTO $sethostent_r_proto /**/
2633 * This symbol, if defined, indicates that the setitimer routine is
2634 * available to set interval timers.
2636 #$d_setitimer HAS_SETITIMER /**/
2639 * This symbol, if defined, indicates that the setlocale_r routine
2640 * is available to setlocale re-entrantly.
2642 /* SETLOCALE_R_PROTO:
2643 * This symbol encodes the prototype of setlocale_r.
2644 * It is zero if d_setlocale_r is undef, and one of the
2645 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setlocale_r
2648 #$d_setlocale_r HAS_SETLOCALE_R /**/
2649 #define SETLOCALE_R_PROTO $setlocale_r_proto /**/
2652 * This symbol, if defined, indicates that the setnetent() routine is
2655 #$d_setnent HAS_SETNETENT /**/
2658 * This symbol, if defined, indicates that the setnetent_r routine
2659 * is available to setnetent re-entrantly.
2661 /* SETNETENT_R_PROTO:
2662 * This symbol encodes the prototype of setnetent_r.
2663 * It is zero if d_setnetent_r is undef, and one of the
2664 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setnetent_r
2667 #$d_setnetent_r HAS_SETNETENT_R /**/
2668 #define SETNETENT_R_PROTO $setnetent_r_proto /**/
2671 * This symbol, if defined, indicates that the setprotoent() routine is
2674 #$d_setpent HAS_SETPROTOENT /**/
2677 * This symbol, if defined, indicates that the setpgrp routine is
2678 * available to set the current process group.
2681 * This symbol, if defined, indicates that setpgrp needs two
2682 * arguments whereas USG one needs none. See also HAS_SETPGID
2683 * for a POSIX interface.
2685 #$d_setpgrp HAS_SETPGRP /**/
2686 #$d_bsdsetpgrp USE_BSD_SETPGRP /**/
2688 /* HAS_SETPROCTITLE:
2689 * This symbol, if defined, indicates that the setproctitle routine is
2690 * available to set process title.
2692 #$d_setproctitle HAS_SETPROCTITLE /**/
2694 /* HAS_SETPROTOENT_R:
2695 * This symbol, if defined, indicates that the setprotoent_r routine
2696 * is available to setprotoent re-entrantly.
2698 /* SETPROTOENT_R_PROTO:
2699 * This symbol encodes the prototype of setprotoent_r.
2700 * It is zero if d_setprotoent_r is undef, and one of the
2701 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setprotoent_r
2704 #$d_setprotoent_r HAS_SETPROTOENT_R /**/
2705 #define SETPROTOENT_R_PROTO $setprotoent_r_proto /**/
2708 * This symbol, if defined, indicates that the setpwent routine is
2709 * available for initializing sequential access of the passwd database.
2711 #$d_setpwent HAS_SETPWENT /**/
2714 * This symbol, if defined, indicates that the setpwent_r routine
2715 * is available to setpwent re-entrantly.
2717 /* SETPWENT_R_PROTO:
2718 * This symbol encodes the prototype of setpwent_r.
2719 * It is zero if d_setpwent_r is undef, and one of the
2720 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setpwent_r
2723 #$d_setpwent_r HAS_SETPWENT_R /**/
2724 #define SETPWENT_R_PROTO $setpwent_r_proto /**/
2727 * This symbol, if defined, indicates that the setservent() routine is
2730 #$d_setsent HAS_SETSERVENT /**/
2732 /* HAS_SETSERVENT_R:
2733 * This symbol, if defined, indicates that the setservent_r routine
2734 * is available to setservent re-entrantly.
2736 /* SETSERVENT_R_PROTO:
2737 * This symbol encodes the prototype of setservent_r.
2738 * It is zero if d_setservent_r is undef, and one of the
2739 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_setservent_r
2742 #$d_setservent_r HAS_SETSERVENT_R /**/
2743 #define SETSERVENT_R_PROTO $setservent_r_proto /**/
2746 * This symbol, if defined, indicates that the setvbuf routine is
2747 * available to change buffering on an open stdio stream.
2748 * to a line-buffered mode.
2750 #$d_setvbuf HAS_SETVBUF /**/
2753 * This symbol, if defined, indicates that sfio should
2756 #$d_sfio USE_SFIO /**/
2759 * This symbol, if defined, indicates that the entire shm*(2) library is
2762 #$d_shm HAS_SHM /**/
2765 * This symbol holds the return type of the shmat() system call.
2766 * Usually set to 'void *' or 'char *'.
2768 /* HAS_SHMAT_PROTOTYPE:
2769 * This symbol, if defined, indicates that the sys/shm.h includes
2770 * a prototype for shmat(). Otherwise, it is up to the program to
2771 * guess one. Shmat_t shmat(int, Shmat_t, int) is a good guess,
2772 * but not always right so it should be emitted by the program only
2773 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
2775 #define Shmat_t $shmattype /**/
2776 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
2779 * This symbol, if defined, indicates that Vr4's sigaction() routine
2782 #$d_sigaction HAS_SIGACTION /**/
2785 * This symbol, if defined, indicates that the sigprocmask
2786 * system call is available to examine or change the signal mask
2787 * of the calling process.
2789 #$d_sigprocmask HAS_SIGPROCMASK /**/
2792 * This variable indicates to the C program that the sigsetjmp()
2793 * routine is available to save the calling process's registers
2794 * and stack environment for later use by siglongjmp(), and
2795 * to optionally save the process's signal mask. See
2796 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
2799 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
2802 * This macro is used in the same way as sigsetjmp(), but will invoke
2803 * traditional setjmp() if sigsetjmp isn't available.
2804 * See HAS_SIGSETJMP.
2807 * This macro is used in the same way as siglongjmp(), but will invoke
2808 * traditional longjmp() if siglongjmp isn't available.
2809 * See HAS_SIGSETJMP.
2811 #$d_sigsetjmp HAS_SIGSETJMP /**/
2812 #ifdef HAS_SIGSETJMP
2813 #define Sigjmp_buf sigjmp_buf
2814 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
2815 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
2817 #define Sigjmp_buf jmp_buf
2818 #define Sigsetjmp(buf,save_mask) setjmp((buf))
2819 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
2822 /* USE_SITECUSTOMIZE:
2823 * This symbol, if defined, indicates that sitecustomize should
2826 #ifndef USE_SITECUSTOMIZE
2827 #$usesitecustomize USE_SITECUSTOMIZE /**/
2831 * This symbol, if defined, indicates that the snprintf () library
2832 * function is available for use.
2835 * This symbol, if defined, indicates that the vsnprintf () library
2836 * function is available for use.
2838 #$d_snprintf HAS_SNPRINTF /**/
2839 #$d_vsnprintf HAS_VSNPRINTF /**/
2842 * This symbol, if defined, indicates that the sockatmark routine is
2843 * available to test whether a socket is at the out-of-band mark.
2845 #$d_sockatmark HAS_SOCKATMARK /**/
2847 /* HAS_SOCKATMARK_PROTO:
2848 * This symbol, if defined, indicates that the system provides
2849 * a prototype for the sockatmark() function. Otherwise, it is up
2850 * to the program to supply one. A good guess is
2851 * extern int sockatmark(int);
2853 #$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/
2856 * This symbol, if defined, indicates that the BSD socket interface is
2860 * This symbol, if defined, indicates that the BSD socketpair() call is
2864 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
2865 * Checking just with #ifdef might not be enough because this symbol
2866 * has been known to be an enum.
2868 /* HAS_MSG_DONTROUTE:
2869 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
2870 * Checking just with #ifdef might not be enough because this symbol
2871 * has been known to be an enum.
2874 * This symbol, if defined, indicates that the MSG_OOB is supported.
2875 * Checking just with #ifdef might not be enough because this symbol
2876 * has been known to be an enum.
2879 * This symbol, if defined, indicates that the MSG_PEEK is supported.
2880 * Checking just with #ifdef might not be enough because this symbol
2881 * has been known to be an enum.
2884 * This symbol, if defined, indicates that the MSG_PROXY is supported.
2885 * Checking just with #ifdef might not be enough because this symbol
2886 * has been known to be an enum.
2889 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
2890 * Checking just with #ifdef might not be enough because this symbol
2891 * has been known to be an enum.
2893 #$d_socket HAS_SOCKET /**/
2894 #$d_sockpair HAS_SOCKETPAIR /**/
2895 #$d_msg_ctrunc HAS_MSG_CTRUNC /**/
2896 #$d_msg_dontroute HAS_MSG_DONTROUTE /**/
2897 #$d_msg_oob HAS_MSG_OOB /**/
2898 #$d_msg_peek HAS_MSG_PEEK /**/
2899 #$d_msg_proxy HAS_MSG_PROXY /**/
2900 #$d_scm_rights HAS_SCM_RIGHTS /**/
2903 * This symbol, if defined, indicates that the socks5_init routine is
2904 * available to initialize SOCKS 5.
2906 #$d_socks5_init HAS_SOCKS5_INIT /**/
2908 /* SPRINTF_RETURNS_STRLEN:
2909 * This variable defines whether sprintf returns the length of the string
2910 * (as per the ANSI spec). Some C libraries retain compatibility with
2911 * pre-ANSI C and return a pointer to the passed in buffer; for these
2912 * this variable will be undef.
2914 #$d_sprintf_returns_strlen SPRINTF_RETURNS_STRLEN /**/
2917 * This symbol, if defined, indicates that the sqrtl routine is
2918 * available to do long double square roots.
2920 #$d_sqrtl HAS_SQRTL /**/
2923 * This symbol, if defined, indicates that the srand48_r routine
2924 * is available to srand48 re-entrantly.
2927 * This symbol encodes the prototype of srand48_r.
2928 * It is zero if d_srand48_r is undef, and one of the
2929 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srand48_r
2932 #$d_srand48_r HAS_SRAND48_R /**/
2933 #define SRAND48_R_PROTO $srand48_r_proto /**/
2936 * This symbol, if defined, indicates that the srandom_r routine
2937 * is available to srandom re-entrantly.
2940 * This symbol encodes the prototype of srandom_r.
2941 * It is zero if d_srandom_r is undef, and one of the
2942 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_srandom_r
2945 #$d_srandom_r HAS_SRANDOM_R /**/
2946 #define SRANDOM_R_PROTO $srandom_r_proto /**/
2948 /* HAS_SETRESGID_PROTO:
2949 * This symbol, if defined, indicates that the system provides
2950 * a prototype for the setresgid() function. Otherwise, it is up
2951 * to the program to supply one. Good guesses are
2952 * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid);
2954 #$d_sresgproto HAS_SETRESGID_PROTO /**/
2956 /* HAS_SETRESUID_PROTO:
2957 * This symbol, if defined, indicates that the system provides
2958 * a prototype for the setresuid() function. Otherwise, it is up
2959 * to the program to supply one. Good guesses are
2960 * extern int setresuid(uid_t ruid, uid_t euid, uid_t suid);
2962 #$d_sresuproto HAS_SETRESUID_PROTO /**/
2965 * This symbol is defined if this system has a stat structure declaring
2966 * st_blksize and st_blocks.
2968 #ifndef USE_STAT_BLOCKS
2969 #$d_statblks USE_STAT_BLOCKS /**/
2972 /* HAS_STRUCT_STATFS_F_FLAGS:
2973 * This symbol, if defined, indicates that the struct statfs
2974 * does have the f_flags member containing the mount flags of
2975 * the filesystem containing the file.
2976 * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
2977 * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
2978 * have statfs() and struct statfs, they have ustat() and getmnt()
2979 * with struct ustat and struct fs_data.
2981 #$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/
2983 /* HAS_STRUCT_STATFS:
2984 * This symbol, if defined, indicates that the struct statfs
2985 * to do statfs() is supported.
2987 #$d_statfs_s HAS_STRUCT_STATFS /**/
2990 * This symbol, if defined, indicates that the fstatvfs routine is
2991 * available to stat filesystems by file descriptors.
2993 #$d_fstatvfs HAS_FSTATVFS /**/
2996 * This symbol is defined if the _ptr and _cnt fields (or similar)
2997 * of the stdio FILE structure can be used to access the stdio buffer
2998 * for a file handle. If this is defined, then the FILE_ptr(fp)
2999 * and FILE_cnt(fp) macros will also be defined and should be used
3000 * to access these fields.
3003 * This macro is used to access the _ptr field (or equivalent) of the
3004 * FILE structure pointed to by its argument. This macro will always be
3005 * defined if USE_STDIO_PTR is defined.
3007 /* STDIO_PTR_LVALUE:
3008 * This symbol is defined if the FILE_ptr macro can be used as an
3012 * This macro is used to access the _cnt field (or equivalent) of the
3013 * FILE structure pointed to by its argument. This macro will always be
3014 * defined if USE_STDIO_PTR is defined.
3016 /* STDIO_CNT_LVALUE:
3017 * This symbol is defined if the FILE_cnt macro can be used as an
3020 /* STDIO_PTR_LVAL_SETS_CNT:
3021 * This symbol is defined if using the FILE_ptr macro as an lvalue
3022 * to increase the pointer by n has the side effect of decreasing the
3023 * value of File_cnt(fp) by n.
3025 /* STDIO_PTR_LVAL_NOCHANGE_CNT:
3026 * This symbol is defined if using the FILE_ptr macro as an lvalue
3027 * to increase the pointer by n leaves File_cnt(fp) unchanged.
3029 #$d_stdstdio USE_STDIO_PTR /**/
3030 #ifdef USE_STDIO_PTR
3031 #define FILE_ptr(fp) $stdio_ptr
3032 #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
3033 #define FILE_cnt(fp) $stdio_cnt
3034 #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
3035 #$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
3036 #$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
3040 * This symbol is defined if the _base field (or similar) of the
3041 * stdio FILE structure can be used to access the stdio buffer for
3042 * a file handle. If this is defined, then the FILE_base(fp) macro
3043 * will also be defined and should be used to access this field.
3044 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
3045 * to determine the number of bytes in the buffer. USE_STDIO_BASE
3046 * will never be defined unless USE_STDIO_PTR is.
3049 * This macro is used to access the _base field (or equivalent) of the
3050 * FILE structure pointed to by its argument. This macro will always be
3051 * defined if USE_STDIO_BASE is defined.
3054 * This macro is used to determine the number of bytes in the I/O
3055 * buffer pointed to by _base field (or equivalent) of the FILE
3056 * structure pointed to its argument. This macro will always be defined
3057 * if USE_STDIO_BASE is defined.
3059 #$d_stdiobase USE_STDIO_BASE /**/
3060 #ifdef USE_STDIO_BASE
3061 #define FILE_base(fp) $stdio_base
3062 #define FILE_bufsiz(fp) $stdio_bufsiz
3066 * This symbol, if defined, indicates that the strerror routine is
3067 * available to translate error numbers to strings. See the writeup
3068 * of Strerror() in this file before you try to define your own.
3071 * This symbol, if defined, indicates that the sys_errlist array is
3072 * available to translate error numbers to strings. The extern int
3073 * sys_nerr gives the size of that table.
3076 * This preprocessor symbol is defined as a macro if strerror() is
3077 * not available to translate error numbers to strings but sys_errlist[]
3080 #$d_strerror HAS_STRERROR /**/
3081 #$d_syserrlst HAS_SYS_ERRLIST /**/
3082 #define Strerror(e) $d_strerrm
3085 * This symbol, if defined, indicates that the strerror_r routine
3086 * is available to strerror re-entrantly.
3088 /* STRERROR_R_PROTO:
3089 * This symbol encodes the prototype of strerror_r.
3090 * It is zero if d_strerror_r is undef, and one of the
3091 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_strerror_r
3094 #$d_strerror_r HAS_STRERROR_R /**/
3095 #define STRERROR_R_PROTO $strerror_r_proto /**/
3098 * This symbol, if defined, indicates that the strftime routine is
3099 * available to do time formatting.
3101 #$d_strftime HAS_STRFTIME /**/
3104 * This symbol, if defined, indicates that the strlcat () routine is
3105 * available to do string concatenation.
3107 #$d_strlcat HAS_STRLCAT /**/
3110 * This symbol, if defined, indicates that the strlcpy () routine is
3111 * available to do string copying.
3113 #$d_strlcpy HAS_STRLCPY /**/
3116 * This symbol, if defined, indicates that the strtold routine is
3117 * available to convert strings to long doubles.
3119 #$d_strtold HAS_STRTOLD /**/
3122 * This symbol, if defined, indicates that the strtoll routine is
3123 * available to convert strings to long longs.
3125 #$d_strtoll HAS_STRTOLL /**/
3128 * This symbol, if defined, indicates that the strtoq routine is
3129 * available to convert strings to long longs (quads).
3131 #$d_strtoq HAS_STRTOQ /**/
3134 * This symbol, if defined, indicates that the strtoul routine is
3135 * available to provide conversion of strings to unsigned long.
3137 #$d_strtoul HAS_STRTOUL /**/
3140 * This symbol, if defined, indicates that the strtoull routine is
3141 * available to convert strings to unsigned long longs.
3143 #$d_strtoull HAS_STRTOULL /**/
3146 * This symbol, if defined, indicates that the strtouq routine is
3147 * available to convert strings to unsigned long longs (quads).
3149 #$d_strtouq HAS_STRTOUQ /**/
3151 /* HAS_SYSCALL_PROTO:
3152 * This symbol, if defined, indicates that the system provides
3153 * a prototype for the syscall() function. Otherwise, it is up
3154 * to the program to supply one. Good guesses are
3155 * extern int syscall(int, ...);
3156 * extern int syscall(long, ...);
3158 #$d_syscallproto HAS_SYSCALL_PROTO /**/
3160 /* HAS_TELLDIR_PROTO:
3161 * This symbol, if defined, indicates that the system provides
3162 * a prototype for the telldir() function. Otherwise, it is up
3163 * to the program to supply one. A good guess is
3164 * extern long telldir(DIR*);
3166 #$d_telldirproto HAS_TELLDIR_PROTO /**/
3169 * This symbol, if defined, indicates that the time() routine exists.
3172 * This symbol holds the type returned by time(). It can be long,
3173 * or time_t on BSD sites (in which case <sys/types.h> should be
3176 #$d_time HAS_TIME /**/
3177 #define Time_t $timetype /* Time type */
3180 * This symbol, if defined, indicates that the times() routine exists.
3181 * Note that this became obsolete on some systems (SUNOS), which now
3182 * use getrusage(). It may be necessary to include <sys/times.h>.
3184 #$d_times HAS_TIMES /**/
3187 * This symbol, if defined, indicates that the tmpnam_r routine
3188 * is available to tmpnam re-entrantly.
3191 * This symbol encodes the prototype of tmpnam_r.
3192 * It is zero if d_tmpnam_r is undef, and one of the
3193 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_tmpnam_r
3196 #$d_tmpnam_r HAS_TMPNAM_R /**/
3197 #define TMPNAM_R_PROTO $tmpnam_r_proto /**/
3200 * This symbol, if defined, indicates that the ttyname_r routine
3201 * is available to ttyname re-entrantly.
3204 * This symbol encodes the prototype of ttyname_r.
3205 * It is zero if d_ttyname_r is undef, and one of the
3206 * REENTRANT_PROTO_T_ABC macros of reentr.h if d_ttyname_r
3209 #$d_ttyname_r HAS_TTYNAME_R /**/
3210 #define TTYNAME_R_PROTO $ttyname_r_proto /**/
3212 /* U32_ALIGNMENT_REQUIRED:
3213 * This symbol, if defined, indicates that you must access
3214 * character data through U32-aligned pointers.
3216 #ifndef U32_ALIGNMENT_REQUIRED
3217 #$d_u32align U32_ALIGNMENT_REQUIRED /**/
3221 * This symbol, if defined, indicates that the ualarm routine is
3222 * available to do alarms with microsecond granularity.
3224 #$d_ualarm HAS_UALARM /**/
3227 * This symbol, if defined, indicates that the union semun is
3228 * defined by including <sys/sem.h>. If not, the user code
3229 * probably needs to define it as:
3232 * struct semid_ds *buf;
3233 * unsigned short *array;
3236 /* USE_SEMCTL_SEMUN:
3237 * This symbol, if defined, indicates that union semun is
3238 * used for semctl IPC_STAT.
3240 /* USE_SEMCTL_SEMID_DS:
3241 * This symbol, if defined, indicates that struct semid_ds * is
3242 * used for semctl IPC_STAT.
3244 #$d_union_semun HAS_UNION_SEMUN /**/
3245 #$d_semctl_semun USE_SEMCTL_SEMUN /**/
3246 #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
3249 * This symbol, if defined, indicates that the unordered routine is
3250 * available to check whether two doubles are unordered
3251 * (effectively: whether either of them is NaN)
3253 #$d_unordered HAS_UNORDERED /**/
3256 * This symbol, if defined, indicates that the unsetenv () routine is
3257 * available for use.
3259 #$d_unsetenv HAS_UNSETENV /**/
3261 /* HAS_USLEEP_PROTO:
3262 * This symbol, if defined, indicates that the system provides
3263 * a prototype for the usleep() function. Otherwise, it is up
3264 * to the program to supply one. A good guess is
3265 * extern int usleep(useconds_t);
3267 #$d_usleepproto HAS_USLEEP_PROTO /**/
3270 * This symbol, if defined, indicates that the ustat system call is
3271 * available to query file system statistics by dev_t.
3273 #$d_ustat HAS_USTAT /**/
3276 * This symbol, if defined, indicates that vfork() exists.
3278 #$d_vfork HAS_VFORK /**/
3281 * This symbol's value is either "void" or "int", corresponding to the
3282 * appropriate return type of a signal handler. Thus, you can declare
3283 * a signal handler using "Signal_t (*handler)()", and define the
3284 * handler using "Signal_t handler(sig)".
3286 #define Signal_t $signal_t /* Signal handler's return type */
3289 * This symbol, if defined, indicates that the vprintf routine is available
3290 * to printf with a pointer to an argument list. If unavailable, you
3291 * may need to write your own, probably in terms of _doprnt().
3293 /* USE_CHAR_VSPRINTF:
3294 * This symbol is defined if this system has vsprintf() returning type
3295 * (char*). The trend seems to be to declare it as "int vsprintf()". It
3296 * is up to the package author to declare vsprintf correctly based on the
3299 #$d_vprintf HAS_VPRINTF /**/
3300 #$d_charvspr USE_CHAR_VSPRINTF /**/
3303 * This symbol, if defined, indicates that the writev routine is
3304 * available to do scatter writes.
3306 #$d_writev HAS_WRITEV /**/
3308 /* USE_DYNAMIC_LOADING:
3309 * This symbol, if defined, indicates that dynamic loading of
3310 * some sort is available.
3312 #$usedl USE_DYNAMIC_LOADING /**/
3315 * This symbol contains the size of a double, so that the C preprocessor
3316 * can make decisions based on it.
3318 #define DOUBLESIZE $doublesize /**/
3321 * This symbol, if defined, indicates that this system uses
3324 #$ebcdic EBCDIC /**/
3327 * This symbol, if defined, tells that fflush(NULL) does flush
3328 * all pending stdio output.
3331 * This symbol, if defined, tells that to flush
3332 * all pending stdio output one must loop through all
3333 * the stdio file handles stored in an array and fflush them.
3334 * Note that if fflushNULL is defined, fflushall will not
3335 * even be probed for and will be left undefined.
3337 #$fflushNULL FFLUSH_NULL /**/
3338 #$fflushall FFLUSH_ALL /**/
3341 * This symbol holds the type used to declare file positions in libc.
3342 * It can be fpos_t, long, uint, etc... It may be necessary to include
3343 * <sys/types.h> to get any typedef'ed information.
3345 #define Fpos_t $fpostype /* File position type */
3348 * This symbol defines the format string used for printing a Gid_t.
3350 #define Gid_t_f $gidformat /**/
3353 * This symbol holds the signedess of a Gid_t.
3354 * 1 for unsigned, -1 for signed.
3356 #define Gid_t_sign $gidsign /* GID sign */
3359 * This symbol holds the size of a Gid_t in bytes.
3361 #define Gid_t_size $gidsize /* GID size */
3364 * This symbol holds the return type of getgid() and the type of
3365 * argument to setrgid() and related functions. Typically,
3366 * it is the type of group ids in the kernel. It can be int, ushort,
3367 * gid_t, etc... It may be necessary to include <sys/types.h> to get
3368 * any typedef'ed information.
3370 #define Gid_t $gidtype /* Type for getgid(), etc... */
3373 * This symbol holds the type used for the second argument to
3374 * getgroups() and setgroups(). Usually, this is the same as
3375 * gidtype (gid_t) , but sometimes it isn't.
3376 * It can be int, ushort, gid_t, etc...
3377 * It may be necessary to include <sys/types.h> to get any
3378 * typedef'ed information. This is only required if you have
3379 * getgroups() or setgroups()..
3381 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
3382 #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
3386 * This symbol, if defined, indicates that <crypt.h> exists and
3387 * should be included.
3389 #$i_crypt I_CRYPT /**/
3392 * This symbol contains the type of the prefix structure element
3393 * in the <db.h> header file. In older versions of DB, it was
3394 * int, while in newer ones it is u_int32_t.
3397 * This symbol contains the type of the prefix structure element
3398 * in the <db.h> header file. In older versions of DB, it was
3399 * int, while in newer ones it is size_t.
3401 /* DB_VERSION_MAJOR_CFG:
3402 * This symbol, if defined, defines the major version number of
3403 * Berkeley DB found in the <db.h> header when Perl was configured.
3405 /* DB_VERSION_MINOR_CFG:
3406 * This symbol, if defined, defines the minor version number of
3407 * Berkeley DB found in the <db.h> header when Perl was configured.
3408 * For DB version 1 this is always 0.
3410 /* DB_VERSION_PATCH_CFG:
3411 * This symbol, if defined, defines the patch version number of
3412 * Berkeley DB found in the <db.h> header when Perl was configured.
3413 * For DB version 1 this is always 0.
3415 #define DB_Hash_t $db_hashtype /**/
3416 #define DB_Prefix_t $db_prefixtype /**/
3417 #define DB_VERSION_MAJOR_CFG $db_version_major /**/
3418 #define DB_VERSION_MINOR_CFG $db_version_minor /**/
3419 #define DB_VERSION_PATCH_CFG $db_version_patch /**/
3422 * This symbol, if defined, indicates that <fp.h> exists and
3423 * should be included.
3428 * This symbol, if defined, indicates that <fp_class.h> exists and
3429 * should be included.
3431 #$i_fp_class I_FP_CLASS /**/
3434 * This symbol, if defined, indicates to the C program that it should
3438 * This symbol, if defined, indicates to the C program that struct group
3439 * in <grp.h> contains gr_passwd.
3442 #$d_grpasswd GRPASSWD /**/
3445 * This symbol, if defined, indicates that <ieeefp.h> exists and
3446 * should be included.
3448 #$i_ieeefp I_IEEEFP /**/
3451 * This symbol, if defined, indicates to the C program that it should
3452 * include <inttypes.h>.
3454 #$i_inttypes I_INTTYPES /**/
3457 * This symbol, if defined, indicates that <langinfo.h> exists and
3458 * should be included.
3460 #$i_langinfo I_LANGINFO /**/
3463 * This symbol, if defined, indicates that <libutil.h> exists and
3464 * should be included.
3466 #$i_libutil I_LIBUTIL /**/
3469 * This symbol, if defined, indicates to the C program that it should
3470 * include <mach/cthreads.h>.
3472 #$i_machcthr I_MACH_CTHREADS /**/
3475 * This symbol, if defined, indicates that <mntent.h> exists and
3476 * should be included.
3478 #$i_mntent I_MNTENT /**/
3481 * This symbol, if defined, indicates that <ndbm.h> exists and should
3484 #$i_ndbm I_NDBM /**/
3487 * This symbol, if defined, indicates that <netdb.h> exists and
3488 * should be included.
3490 #$i_netdb I_NETDB /**/
3493 * This symbol, if defined, indicates to the C program that it should
3494 * include <netinet/tcp.h>.
3496 #$i_netinettcp I_NETINET_TCP /**/
3499 * This symbol, if defined, indicates that <poll.h> exists and
3500 * should be included. (see also HAS_POLL)
3502 #$i_poll I_POLL /**/
3505 * This symbol, if defined, indicates that <prot.h> exists and
3506 * should be included.
3508 #$i_prot I_PROT /**/
3511 * This symbol, if defined, indicates to the C program that it should
3512 * include <pthread.h>.
3514 #$i_pthread I_PTHREAD /**/
3517 * This symbol, if defined, indicates to the C program that it should
3521 * This symbol, if defined, indicates to the C program that struct passwd
3522 * contains pw_quota.
3525 * This symbol, if defined, indicates to the C program that struct passwd
3529 * This symbol, if defined, indicates to the C program that struct passwd
3530 * contains pw_change.
3533 * This symbol, if defined, indicates to the C program that struct passwd
3534 * contains pw_class.
3537 * This symbol, if defined, indicates to the C program that struct passwd
3538 * contains pw_expire.
3541 * This symbol, if defined, indicates to the C program that struct passwd
3542 * contains pw_comment.
3545 * This symbol, if defined, indicates to the C program that struct passwd
3546 * contains pw_gecos.
3549 * This symbol, if defined, indicates to the C program that struct passwd
3550 * contains pw_passwd.
3553 #$d_pwquota PWQUOTA /**/
3554 #$d_pwage PWAGE /**/
3555 #$d_pwchange PWCHANGE /**/
3556 #$d_pwclass PWCLASS /**/
3557 #$d_pwexpire PWEXPIRE /**/
3558 #$d_pwcomment PWCOMMENT /**/
3559 #$d_pwgecos PWGECOS /**/
3560 #$d_pwpasswd PWPASSWD /**/
3563 * This symbol, if defined, indicates that <shadow.h> exists and
3564 * should be included.
3566 #$i_shadow I_SHADOW /**/
3569 * This symbol, if defined, indicates that <socks.h> exists and
3570 * should be included.
3572 #$i_socks I_SOCKS /**/
3575 * This symbol, if defined, indicates that <sunmath.h> exists and
3576 * should be included.
3578 #$i_sunmath I_SUNMATH /**/
3581 * This symbol, if defined, indicates that <syslog.h> exists and
3582 * should be included.
3584 #$i_syslog I_SYSLOG /**/
3587 * This symbol, if defined, indicates that <sys/mode.h> exists and
3588 * should be included.
3590 #$i_sysmode I_SYSMODE /**/
3593 * This symbol, if defined, indicates that <sys/mount.h> exists and
3594 * should be included.
3596 #$i_sysmount I_SYS_MOUNT /**/
3599 * This symbol, if defined, indicates that <sys/statfs.h> exists.
3601 #$i_sysstatfs I_SYS_STATFS /**/
3604 * This symbol, if defined, indicates that <sys/statvfs.h> exists and
3605 * should be included.
3607 #$i_sysstatvfs I_SYS_STATVFS /**/
3610 * This symbol, if defined, indicates that <sys/uio.h> exists and
3611 * should be included.
3613 #$i_sysuio I_SYSUIO /**/
3616 * This symbol, if defined, indicates that <sys/utsname.h> exists and
3617 * should be included.
3619 #$i_sysutsname I_SYSUTSNAME /**/
3622 * This symbol, if defined, indicates that <sys/vfs.h> exists and
3623 * should be included.
3625 #$i_sysvfs I_SYS_VFS /**/
3628 * This symbol, if defined, indicates to the C program that it should
3632 * This symbol, if defined, indicates to the C program that it should
3633 * include <sys/time.h>.
3635 /* I_SYS_TIME_KERNEL:
3636 * This symbol, if defined, indicates to the C program that it should
3637 * include <sys/time.h> with KERNEL defined.
3640 * This symbol, if defined, indicates to the C program that
3641 * the struct tm has a tm_zone field.
3643 /* HAS_TM_TM_GMTOFF:
3644 * This symbol, if defined, indicates to the C program that
3645 * the struct tm has a tm_gmtoff field.
3647 #$i_time I_TIME /**/
3648 #$i_systime I_SYS_TIME /**/
3649 #$i_systimek I_SYS_TIME_KERNEL /**/
3650 #$d_tm_tm_zone HAS_TM_TM_ZONE /**/
3651 #$d_tm_tm_gmtoff HAS_TM_TM_GMTOFF /**/
3654 * This symbol, if defined, indicates that <ustat.h> exists and
3655 * should be included.
3657 #$i_ustat I_USTAT /**/
3660 * This symbol, if defined, indicates that <stdarg.h> exists and should
3664 * This symbol, if defined, indicates to the C program that it should
3665 * include <varargs.h>.
3667 #$i_stdarg I_STDARG /**/
3668 #$i_varargs I_VARARGS /**/
3670 /* PERL_INC_VERSION_LIST:
3671 * This variable specifies the list of subdirectories in over
3672 * which perl.c:incpush() and lib/lib.pm will automatically
3673 * search when adding directories to @INC, in a format suitable
3674 * for a C initialization string. See the inc_version_list entry
3675 * in Porting/Glossary for more details.
3677 #$d_inc_version_list PERL_INC_VERSION_LIST $inc_version_list_init /**/
3679 /* INSTALL_USR_BIN_PERL:
3680 * This symbol, if defined, indicates that Perl is to be installed
3681 * also as /usr/bin/perl.
3683 #$installusrbinperl INSTALL_USR_BIN_PERL /**/
3686 * This symbol, if defined, contains the string used by stdio to
3687 * format long doubles (format 'f') for output.
3690 * This symbol, if defined, contains the string used by stdio to
3691 * format long doubles (format 'g') for output.
3694 * This symbol, if defined, contains the string used by stdio to
3695 * format long doubles (format 'e') for output.
3698 * This symbol, if defined, contains the string used by stdio to
3699 * format long doubles (format 'f') for input.
3701 #$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/
3702 #$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/
3703 #$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/
3704 #$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/
3707 * This symbol holds the type used to declare offsets in the kernel.
3708 * It can be int, long, off_t, etc... It may be necessary to include
3709 * <sys/types.h> to get any typedef'ed information.
3712 * This symbol holds the number of bytes used by the Off_t.
3715 * This symbol holds the number of bytes used by the Off_t.
3717 #define Off_t $lseektype /* <offset> type */
3718 #define LSEEKSIZE $lseeksize /* <offset> size */
3719 #define Off_t_size $lseeksize /* <offset> size */
3722 * This symbol, if defined, indicates that the Misc Attribution
3723 * Declaration code should be conditionally compiled.
3728 * This variable contains the return type of free(). It is usually
3729 * void, but occasionally int.
3732 * This symbol is the type of pointer returned by malloc and realloc.
3734 #define Malloc_t $malloctype /**/
3735 #define Free_t $freetype /**/
3737 /* PERL_MALLOC_WRAP:
3738 * This symbol, if defined, indicates that we'd like malloc wrap checks.
3740 #$usemallocwrap PERL_MALLOC_WRAP /**/
3743 * This symbol, if defined, indicates that we're using our own malloc.
3745 #$d_mymalloc MYMALLOC /**/
3748 * This symbol holds the type used to declare file modes
3749 * for systems calls. It is usually mode_t, but may be
3750 * int or unsigned short. It may be necessary to include <sys/types.h>
3751 * to get any typedef'ed information.
3753 #define Mode_t $modetype /* file mode parameter for system calls */
3756 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
3757 * non-blocking I/O for the file descriptor. Note that there is no way
3758 * back, i.e. you cannot turn it blocking again this way. If you wish to
3759 * alternatively switch between blocking and non-blocking, use the
3760 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
3763 * This symbol holds the errno error code set by read() when no data was
3764 * present on the non-blocking file descriptor.
3767 * This symbol holds the return code from read() when no data is present
3768 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
3769 * not defined, then you can't distinguish between no data and EOF by
3770 * issuing a read(). You'll have to find another way to tell for sure!
3773 * This symbol, if defined, indicates to the C program that a read() on
3774 * a non-blocking file descriptor will return 0 on EOF, and not the value
3775 * held in RD_NODATA (-1 usually, in that case!).
3777 #define VAL_O_NONBLOCK $o_nonblock
3778 #define VAL_EAGAIN $eagain
3779 #define RD_NODATA $rd_nodata
3780 #$d_eofnblk EOF_NONBLOCK
3783 * This symbol, if defined, indicates that the system stores
3784 * the variable argument list datatype, va_list, in a format
3785 * that cannot be copied by simple assignment, so that some
3786 * other means must be used when copying is required.
3787 * As such systems vary in their provision (or non-provision)
3788 * of copying mechanisms, handy.h defines a platform-
3789 * independent macro, Perl_va_copy(src, dst), to do the job.
3791 #$need_va_copy NEED_VA_COPY /**/
3794 * This symbol holds the type used for the 1st argument
3795 * to gethostbyaddr().
3798 * This symbol holds the type used for the 2nd argument
3799 * to gethostbyaddr().
3802 * This symbol holds the type used for the argument to
3806 * This symbol holds the type used for the 1st argument to
3809 #define Netdb_host_t $netdb_host_type /**/
3810 #define Netdb_hlen_t $netdb_hlen_type /**/
3811 #define Netdb_name_t $netdb_name_type /**/
3812 #define Netdb_net_t $netdb_net_type /**/
3814 /* PERL_OTHERLIBDIRS:
3815 * This variable contains a colon-separated set of paths for the perl
3816 * binary to search for additional library files or modules.
3817 * These directories will be tacked to the end of @INC.
3818 * Perl will automatically search below each path for version-
3819 * and architecture-specific directories. See PERL_INC_VERSION_LIST
3822 #$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
3825 * This symbol, if defined, tells that there's a 64-bit integer type,
3826 * Quad_t, and its unsigned counterpar, Uquad_t. QUADKIND will be one
3827 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T.
3829 #$d_quad HAS_QUAD /**/
3831 # define Quad_t $quadtype /**/
3832 # define Uquad_t $uquadtype /**/
3833 # define QUADKIND $quadkind /**/
3834 # define QUAD_IS_INT 1
3835 # define QUAD_IS_LONG 2
3836 # define QUAD_IS_LONG_LONG 3
3837 # define QUAD_IS_INT64_T 4
3841 * This symbol defines the C type used for Perl's IV.
3844 * This symbol defines the C type used for Perl's UV.
3847 * This symbol defines the C type used for Perl's I8.
3850 * This symbol defines the C type used for Perl's U8.
3853 * This symbol defines the C type used for Perl's I16.
3856 * This symbol defines the C type used for Perl's U16.
3859 * This symbol defines the C type used for Perl's I32.
3862 * This symbol defines the C type used for Perl's U32.
3865 * This symbol defines the C type used for Perl's I64.
3868 * This symbol defines the C type used for Perl's U64.
3871 * This symbol defines the C type used for Perl's NV.
3874 * This symbol contains the sizeof(IV).
3877 * This symbol contains the sizeof(UV).
3880 * This symbol contains the sizeof(I8).
3883 * This symbol contains the sizeof(U8).
3886 * This symbol contains the sizeof(I16).
3889 * This symbol contains the sizeof(U16).
3892 * This symbol contains the sizeof(I32).
3895 * This symbol contains the sizeof(U32).
3898 * This symbol contains the sizeof(I64).
3901 * This symbol contains the sizeof(U64).
3904 * This symbol contains the sizeof(NV).
3907 * This symbol, if defined, indicates that a variable of type NVTYPE
3908 * can preserve all the bits of a variable of type UVTYPE.
3910 /* NV_PRESERVES_UV_BITS:
3911 * This symbol contains the number of bits a variable of type NVTYPE
3912 * can preserve of a variable of type UVTYPE.
3914 /* NV_ZERO_IS_ALLBITS_ZERO:
3915 * This symbol, if defined, indicates that a variable of type NVTYPE
3916 * stores 0.0 in memory as all bits zero.
3918 #define IVTYPE $ivtype /**/
3919 #define UVTYPE $uvtype /**/
3920 #define I8TYPE $i8type /**/
3921 #define U8TYPE $u8type /**/
3922 #define I16TYPE $i16type /**/
3923 #define U16TYPE $u16type /**/
3924 #define I32TYPE $i32type /**/
3925 #define U32TYPE $u32type /**/
3927 #define I64TYPE $i64type /**/
3928 #define U64TYPE $u64type /**/
3930 #define NVTYPE $nvtype /**/
3931 #define IVSIZE $ivsize /**/
3932 #define UVSIZE $uvsize /**/
3933 #define I8SIZE $i8size /**/
3934 #define U8SIZE $u8size /**/
3935 #define I16SIZE $i16size /**/
3936 #define U16SIZE $u16size /**/
3937 #define I32SIZE $i32size /**/
3938 #define U32SIZE $u32size /**/
3940 #define I64SIZE $i64size /**/
3941 #define U64SIZE $u64size /**/
3943 #define NVSIZE $nvsize /**/
3944 #$d_nv_preserves_uv NV_PRESERVES_UV
3945 #define NV_PRESERVES_UV_BITS $nv_preserves_uv_bits
3946 #$d_nv_zero_is_allbits_zero NV_ZERO_IS_ALLBITS_ZERO
3949 # if BYTEORDER == 0x1234
3951 # define BYTEORDER 0x12345678
3953 # if BYTEORDER == 0x4321
3955 # define BYTEORDER 0x87654321
3962 * This symbol defines the format string used for printing a Perl IV
3963 * as a signed decimal integer.
3966 * This symbol defines the format string used for printing a Perl UV
3967 * as an unsigned decimal integer.
3970 * This symbol defines the format string used for printing a Perl UV
3971 * as an unsigned octal integer.
3974 * This symbol defines the format string used for printing a Perl UV
3975 * as an unsigned hexadecimal integer in lowercase abcdef.
3978 * This symbol defines the format string used for printing a Perl UV
3979 * as an unsigned hexadecimal integer in uppercase ABCDEF.
3982 * This symbol defines the format string used for printing a Perl NV
3983 * using %e-ish floating point format.
3986 * This symbol defines the format string used for printing a Perl NV
3987 * using %f-ish floating point format.
3990 * This symbol defines the format string used for printing a Perl NV
3991 * using %g-ish floating point format.
3993 #define IVdf $ivdformat /**/
3994 #define UVuf $uvuformat /**/
3995 #define UVof $uvoformat /**/
3996 #define UVxf $uvxformat /**/
3997 #define UVXf $uvXUformat /**/
3998 #define NVef $nveformat /**/
3999 #define NVff $nvfformat /**/
4000 #define NVgf $nvgformat /**/
4003 * This symbol holds the type used to declare process ids in the kernel.
4004 * It can be int, uint, pid_t, etc... It may be necessary to include
4005 * <sys/types.h> to get any typedef'ed information.
4007 #define Pid_t $pidtype /* PID type */
4010 * This symbol contains the name of the private library for this package.
4011 * The library is private in the sense that it needn't be in anyone's
4012 * execution path, but it should be accessible by the world. The program
4013 * should be prepared to do ~ expansion.
4016 * This symbol contains the ~name expanded version of PRIVLIB, to be used
4017 * in programs that are not prepared to deal with ~ expansion at run-time.
4019 #define PRIVLIB "$privlib" /**/
4020 #define PRIVLIB_EXP "$privlibexp" /**/
4023 * If defined, this macro indicates that the C compiler can handle
4024 * function prototypes.
4027 * This macro is used to declare function parameters for folks who want
4028 * to make declarations with prototypes using a different style than
4029 * the above macros. Use double parentheses. For example:
4031 * int main _((int argc, char *argv[]));
4033 #$prototype CAN_PROTOTYPE /**/
4034 #ifdef CAN_PROTOTYPE
4035 #define _(args) args
4041 * This symbol contains the size of a pointer, so that the C preprocessor
4042 * can make decisions based on it. It will be sizeof(void *) if
4043 * the compiler supports (void *); otherwise it will be
4046 #define PTRSIZE $ptrsize /**/
4049 * This macro is to be used to generate uniformly distributed
4050 * random numbers over the range [0., 1.[. You may have to supply
4051 * an 'extern double drand48();' in your program since SunOS 4.1.3
4052 * doesn't provide you with anything relevant in its headers.
4053 * See HAS_DRAND48_PROTO.
4056 * This symbol defines the type of the argument of the
4057 * random seed function.
4060 * This symbol defines the macro to be used in seeding the
4061 * random number generator (see Drand01).
4064 * This symbol indicates how many bits are produced by the
4065 * function used to generate normalized random numbers.
4066 * Values include 15, 16, 31, and 48.
4068 #define Drand01() $drand01 /**/
4069 #define Rand_seed_t $randseedtype /**/
4070 #define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
4071 #define RANDBITS $randbits /**/
4074 * This symbol holds the minimum number of bits operated by select.
4075 * That is, if you do select(n, ...), how many bits at least will be
4076 * cleared in the masks if some activity is detected. Usually this
4077 * is either n or 32*ceil(n/32), especially many little-endians do
4078 * the latter. This is only useful if you have select(), naturally.
4080 #define SELECT_MIN_BITS $selectminbits /**/
4083 * This symbol holds the type used for the 2nd, 3rd, and 4th
4084 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
4085 * is defined, and 'int *' otherwise. This is only useful if you
4086 * have select(), of course.
4088 #define Select_fd_set_t $selecttype /**/
4091 * This symbol contains the full pathname to the shell used on this
4092 * on this system to execute Bourne shell scripts. Usually, this will be
4093 * /bin/sh, though it's possible that some systems will have /bin/ksh,
4094 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
4097 #define SH_PATH "$sh" /**/
4100 * This symbol contains a list of signal names in order of
4101 * signal number. This is intended
4102 * to be used as a static array initialization, like this:
4103 * char *sig_name[] = { SIG_NAME };
4104 * The signals in the list are separated with commas, and each signal
4105 * is surrounded by double quotes. There is no leading SIG in the signal
4106 * name, i.e. SIGQUIT is known as "QUIT".
4107 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
4108 * etc., where nn is the actual signal number (e.g. NUM37).
4109 * The signal number for sig_name[i] is stored in sig_num[i].
4110 * The last element is 0 to terminate the list with a NULL. This
4111 * corresponds to the 0 at the end of the sig_name_init list.
4112 * Note that this variable is initialized from the sig_name_init,
4113 * not from sig_name (which is unused).
4116 * This symbol contains a list of signal numbers, in the same order as the
4117 * SIG_NAME list. It is suitable for static array initialization, as in:
4118 * int sig_num[] = { SIG_NUM };
4119 * The signals in the list are separated with commas, and the indices
4120 * within that list and the SIG_NAME list match, so it's easy to compute
4121 * the signal name from a number or vice versa at the price of a small
4122 * dynamic linear lookup.
4123 * Duplicates are allowed, but are moved to the end of the list.
4124 * The signal number corresponding to sig_name[i] is sig_number[i].
4125 * if (i < NSIG) then sig_number[i] == i.
4126 * The last element is 0, corresponding to the 0 at the end of
4127 * the sig_name_init list.
4128 * Note that this variable is initialized from the sig_num_init,
4129 * not from sig_num (which is unused).
4132 * This variable contains the number of elements of the SIG_NAME
4133 * and SIG_NUM arrays, excluding the final NULL entry.
4135 #define SIG_NAME $sig_name_init /**/
4136 #define SIG_NUM $sig_num_init /**/
4137 #define SIG_SIZE $sig_size /**/
4140 * This symbol contains the name of the private library for this package.
4141 * The library is private in the sense that it needn't be in anyone's
4142 * execution path, but it should be accessible by the world. The program
4143 * should be prepared to do ~ expansion.
4144 * The standard distribution will put nothing in this directory.
4145 * After perl has been installed, users may install their own local
4146 * architecture-dependent modules in this directory with
4147 * MakeMaker Makefile.PL
4148 * or equivalent. See INSTALL for details.
4151 * This symbol contains the ~name expanded version of SITEARCH, to be used
4152 * in programs that are not prepared to deal with ~ expansion at run-time.
4154 #$d_sitearch SITEARCH "$sitearch" /**/
4155 #$d_sitearch SITEARCH_EXP "$sitearchexp" /**/
4158 * This symbol contains the name of the private library for this package.
4159 * The library is private in the sense that it needn't be in anyone's
4160 * execution path, but it should be accessible by the world. The program
4161 * should be prepared to do ~ expansion.
4162 * The standard distribution will put nothing in this directory.
4163 * After perl has been installed, users may install their own local
4164 * architecture-independent modules in this directory with
4165 * MakeMaker Makefile.PL
4166 * or equivalent. See INSTALL for details.
4169 * This symbol contains the ~name expanded version of SITELIB, to be used
4170 * in programs that are not prepared to deal with ~ expansion at run-time.
4173 * This define is SITELIB_EXP with any trailing version-specific component
4174 * removed. The elements in inc_version_list (inc_version_list.U) can
4175 * be tacked onto this variable to generate a list of directories to search.
4177 #define SITELIB "$sitelib" /**/
4178 #define SITELIB_EXP "$sitelibexp" /**/
4179 #define SITELIB_STEM "$sitelib_stem" /**/
4182 * This symbol holds the size of a Size_t in bytes.
4184 #define Size_t_size $sizesize /* */
4187 * This symbol holds the type used to declare length parameters
4188 * for string functions. It is usually size_t, but may be
4189 * unsigned long, int, etc. It may be necessary to include
4190 * <sys/types.h> to get any typedef'ed information.
4192 #define Size_t $sizetype /* length paramater for string functions */
4195 * This symbol holds the type used for the size argument of
4196 * various socket calls (just the base type, not the pointer-to).
4198 #define Sock_size_t $socksizetype /**/
4201 * This symbol holds the type used by functions that return
4202 * a count of bytes or an error condition. It must be a signed type.
4203 * It is usually ssize_t, but may be long or int, etc.
4204 * It may be necessary to include <sys/types.h> or <unistd.h>
4205 * to get any typedef'ed information.
4206 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
4208 #define SSize_t $ssizetype /* signed count of bytes */
4211 * This variable contains the string to put in front of a perl
4212 * script to make sure (one hopes) that it runs with perl and not
4215 #define STARTPERL "$startperl" /**/
4218 * This symbol is defined to be the type of char used in stdio.h.
4219 * It has the values "unsigned char" or "char".
4221 #define STDCHAR $stdchar /**/
4223 /* HAS_STDIO_STREAM_ARRAY:
4224 * This symbol, if defined, tells that there is an array
4225 * holding the stdio streams.
4227 /* STDIO_STREAM_ARRAY:
4228 * This symbol tells the name of the array holding the stdio streams.
4229 * Usual values include _iob, __iob, and __sF.
4231 #$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/
4232 #define STDIO_STREAM_ARRAY $stdio_stream_array
4235 * This symbol defines the format string used for printing a Uid_t.
4237 #define Uid_t_f $uidformat /**/
4240 * This symbol holds the signedess of a Uid_t.
4241 * 1 for unsigned, -1 for signed.
4243 #define Uid_t_sign $uidsign /* UID sign */
4246 * This symbol holds the size of a Uid_t in bytes.
4248 #define Uid_t_size $uidsize /* UID size */
4251 * This symbol holds the type used to declare user ids in the kernel.
4252 * It can be int, ushort, uid_t, etc... It may be necessary to include
4253 * <sys/types.h> to get any typedef'ed information.
4255 #define Uid_t $uidtype /* UID type */
4258 * This symbol, if defined, indicates that 64-bit integers should
4259 * be used when available. If not defined, the native integers
4260 * will be employed (be they 32 or 64 bits). The minimal possible
4261 * 64-bitness is used, just enough to get 64-bit integers into Perl.
4262 * This may mean using for example "long longs", while your memory
4263 * may still be limited to 2 gigabytes.
4266 * This symbol, if defined, indicates that 64-bit integers should
4267 * be used when available. If not defined, the native integers
4268 * will be used (be they 32 or 64 bits). The maximal possible
4269 * 64-bitness is employed: LP64 or ILP64, meaning that you will
4270 * be able to use more than 2 gigabytes of memory. This mode is
4271 * even more binary incompatible than USE_64_BIT_INT. You may not
4272 * be able to run the resulting executable in a 32-bit CPU at all or
4273 * you may need at least to reboot your OS to 64-bit mode.
4275 #ifndef USE_64_BIT_INT
4276 #$use64bitint USE_64_BIT_INT /**/
4279 #ifndef USE_64_BIT_ALL
4280 #$use64bitall USE_64_BIT_ALL /**/
4284 * This symbol, if defined, indicates that Perl should
4285 * be built to use 'fast stdio'.
4286 * Defaults to define in Perls 5.8 and earlier, to undef later.
4288 #ifndef USE_FAST_STDIO
4289 #$usefaststdio USE_FAST_STDIO /**/
4293 * This symbol, if defined, indicates that large file support
4294 * should be used when available.
4296 #ifndef USE_LARGE_FILES
4297 #$uselargefiles USE_LARGE_FILES /**/
4301 * This symbol, if defined, indicates that long doubles should
4302 * be used when available.
4304 #ifndef USE_LONG_DOUBLE
4305 #$uselongdouble USE_LONG_DOUBLE /**/
4309 * This symbol, if defined, indicates that 64-bit interfaces and
4310 * long doubles should be used when available.
4312 #ifndef USE_MORE_BITS
4313 #$usemorebits USE_MORE_BITS /**/
4317 * This symbol, if defined, indicates that Perl should
4318 * be built to use multiplicity.
4320 #ifndef MULTIPLICITY
4321 #$usemultiplicity MULTIPLICITY /**/
4325 * This symbol, if defined, indicates that the PerlIO abstraction should
4326 * be used throughout. If not defined, stdio should be
4327 * used in a fully backward compatible manner.
4330 #$useperlio USE_PERLIO /**/
4334 * This symbol, if defined, indicates that Perl should
4335 * be built to use socks.
4338 #$usesocks USE_SOCKS /**/
4342 * This symbol, if defined, indicates that Perl should be built to
4343 * use the interpreter-based threading implementation.
4346 * This symbol, if defined, indicates that Perl should be built to
4347 * use the 5.005-based threading implementation.
4349 /* OLD_PTHREADS_API:
4350 * This symbol, if defined, indicates that Perl should
4351 * be built to use the old draft POSIX threads API.
4353 /* USE_REENTRANT_API:
4354 * This symbol, if defined, indicates that Perl should
4355 * try to use the various _r versions of library functions.
4356 * This is extremely experimental.
4358 #$use5005threads USE_5005THREADS /**/
4359 #$useithreads USE_ITHREADS /**/
4360 #if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
4361 #define USE_THREADS /* until src is revised*/
4363 #$d_oldpthreads OLD_PTHREADS_API /**/
4364 #$usereentrant USE_REENTRANT_API /**/
4367 * If defined, this symbol contains the name of a private library.
4368 * The library is private in the sense that it needn't be in anyone's
4369 * execution path, but it should be accessible by the world.
4370 * It may have a ~ on the front.
4371 * The standard distribution will put nothing in this directory.
4372 * Vendors who distribute perl may wish to place their own
4373 * architecture-dependent modules and extensions in this directory with
4374 * MakeMaker Makefile.PL INSTALLDIRS=vendor
4375 * or equivalent. See INSTALL for details.
4377 /* PERL_VENDORARCH_EXP:
4378 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
4379 * in programs that are not prepared to deal with ~ expansion at run-time.
4381 #$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
4382 #$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
4384 /* PERL_VENDORLIB_EXP:
4385 * This symbol contains the ~name expanded version of VENDORLIB, to be used
4386 * in programs that are not prepared to deal with ~ expansion at run-time.
4388 /* PERL_VENDORLIB_STEM:
4389 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
4390 * removed. The elements in inc_version_list (inc_version_list.U) can
4391 * be tacked onto this variable to generate a list of directories to search.
4393 #$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
4394 #$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
4397 * This symbol indicates how much support of the void type is given by this
4398 * compiler. What various bits mean:
4400 * 1 = supports declaration of void
4401 * 2 = supports arrays of pointers to functions returning void
4402 * 4 = supports comparisons between pointers to void functions and
4403 * addresses of void functions
4404 * 8 = suports declaration of generic void pointers
4406 * The package designer should define VOIDUSED to indicate the requirements
4407 * of the package. This can be done either by #defining VOIDUSED before
4408 * including config.h, or by defining defvoidused in Myinit.U. If the
4409 * latter approach is taken, only those flags will be tested. If the
4410 * level of void support necessary is not present, defines void to int.
4413 #define VOIDUSED $defvoidused
4415 #define VOIDFLAGS $voidflags
4416 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
4417 #define void int /* is void to be avoided? */
4418 #define M_VOID /* Xenix strikes again */
4422 * This symbol, if defined, indicates that the poll routine is
4423 * available to poll active file descriptors. You may safely
4424 * include <poll.h> when both this symbol *and* I_POLL are defined.
4426 #$d_poll HAS_POLL /**/