3 if test -f config.sh; then TOP=.;
4 elif test -f ../config.sh; then TOP=..;
5 elif test -f ../../config.sh; then TOP=../..;
6 elif test -f ../../../config.sh; then TOP=../../..;
7 elif test -f ../../../../config.sh; then TOP=../../../..;
9 echo "Can't find config.sh."; exit 1
15 */*) cd `expr X$0 : 'X\(.*\)/'` ;;
17 echo "Extracting config.h (with variable substitutions)"
18 sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
20 * This file was produced by running the config_h.SH script, which
21 * gets its values from config.sh, which is generally produced by
24 * Feel free to modify any of this as the need arises. Note, however,
25 * that running config_h.SH again will wipe out any changes you've made.
26 * For a more permanent change edit config.sh and rerun config_h.SH.
28 * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
32 * Package name : $package
33 * Source directory : $src
34 * Configuration time: $cf_time
35 * Configured by : $cf_by
36 * Target system : $myuname
43 * This symbol holds the complete pathname to the sed program.
45 #define LOC_SED "$full_sed" /**/
48 * This symbol holds the path of the bin directory where the package will
49 * be installed. Program must be prepared to deal with ~name substitution.
52 * This symbol is the filename expanded version of the BIN symbol, for
53 * programs that do not want to deal with that at run-time.
55 #define BIN "$bin" /**/
56 #define BIN_EXP "$binexp" /**/
59 * This symbol contains the first part of the string which will invoke
60 * the C preprocessor on the standard input and produce to standard
61 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
62 * call a wrapper. See CPPRUN.
65 * This symbol contains the second part of the string which will invoke
66 * the C preprocessor on the standard input and produce to standard
67 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
68 * to specify standard input, otherwise the value is "".
70 #define CPPSTDIN "$cppstdin"
71 #define CPPMINUS "$cppminus"
74 * This symbol, if defined, indicates that the alarm routine is
77 #$d_alarm HAS_ALARM /**/
80 * This symbol indicates the C compiler can check for function attributes,
81 * such as printf formats. This is normally only supported by GNU cc.
83 #$d_attribut HASATTRIBUTE /**/
85 #define __attribute__(_arg_)
89 * This symbol is defined if the bcmp() routine is available to
90 * compare blocks of memory.
92 #$d_bcmp HAS_BCMP /**/
95 * This symbol is defined if the bcopy() routine is available to
96 * copy blocks of memory.
98 #$d_bcopy HAS_BCOPY /**/
101 * This symbol is defined if the bzero() routine is available to
102 * set a memory block to 0.
104 #$d_bzero HAS_BZERO /**/
107 * This symbol, if defined, indicates that the chown routine is
110 #$d_chown HAS_CHOWN /**/
113 * This symbol, if defined, indicates that the chroot routine is
116 #$d_chroot HAS_CHROOT /**/
119 * This symbol, if defined, indicates that the chsize routine is available
120 * to truncate files. You might need a -lx to get this routine.
122 #$d_chsize HAS_CHSIZE /**/
125 * This symbol, if defined, indicates that this C compiler knows about
126 * the const type. There is no need to actually test for that symbol
127 * within your programs. The mere use of the "const" keyword will
128 * trigger the necessary tests.
130 #$d_const HASCONST /**/
136 * This symbol, if defined, indicates that the crypt routine is available
137 * to encrypt passwords and the like.
139 #$d_crypt HAS_CRYPT /**/
142 * This symbol, if defined, indicates that the cuserid routine is
143 * available to get character login names.
145 #$d_cuserid HAS_CUSERID /**/
148 * This symbol, if defined, indicates that this system's <float.h>
149 * or <limits.h> defines the symbol DBL_DIG, which is the number
150 * of significant digits in a double precision number. If this
151 * symbol is not defined, a guess of 15 is usually pretty good.
153 #$d_dbl_dig HAS_DBL_DIG /* */
156 * This symbol, if defined, indicates that the difftime routine is
159 #$d_difftime HAS_DIFFTIME /**/
162 * This symbol, if defined, indicates that the dlerror routine is
163 * available to return a string describing the last error that
164 * occurred from a call to dlopen(), dlclose() or dlsym().
166 #$d_dlerror HAS_DLERROR /**/
168 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
169 * This symbol, if defined, indicates that the bug that prevents
170 * setuid scripts from being secure is not present in this kernel.
173 * This symbol, if defined, indicates that the C program should
174 * check the script that it is executing for setuid/setgid bits, and
175 * attempt to emulate setuid/setgid on systems that have disabled
176 * setuid #! scripts because the kernel can't do it securely.
177 * It is up to the package designer to make sure that this emulation
178 * is done securely. Among other things, it should do an fstat on
179 * the script it just opened to make sure it really is a setuid/setgid
180 * script, it should make sure the arguments passed correspond exactly
181 * to the argument on the #! line, and it should not trust any
182 * subprocesses to which it must pass the filename rather than the
183 * file descriptor of the script to be executed.
185 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
186 #$d_dosuid DOSUID /**/
189 * This symbol, if defined, indicates that the dup2 routine is
190 * available to duplicate file descriptors.
192 #$d_dup2 HAS_DUP2 /**/
195 * This symbol, if defined, indicates that the fchmod routine is available
196 * to change mode of opened files. If unavailable, use chmod().
198 #$d_fchmod HAS_FCHMOD /**/
201 * This symbol, if defined, indicates that the fchown routine is available
202 * to change ownership of opened files. If unavailable, use chown().
204 #$d_fchown HAS_FCHOWN /**/
207 * This symbol, if defined, indicates to the C program that
208 * the fcntl() function exists.
210 #$d_fcntl HAS_FCNTL /**/
213 * This symbol, if defined, indicates that the fgetpos routine is
214 * available to get the file position indicator, similar to ftell().
216 #$d_fgetpos HAS_FGETPOS /**/
219 * This symbol, if defined, indicates that the system supports filenames
220 * longer than 14 characters.
222 #$d_flexfnam FLEXFILENAMES /**/
225 * This symbol, if defined, indicates that the flock routine is
226 * available to do file locking.
228 #$d_flock HAS_FLOCK /**/
231 * This symbol, if defined, indicates that the fork routine is
234 #$d_fork HAS_FORK /**/
237 * This symbol, if defined, indicates that the fsetpos routine is
238 * available to set the file position indicator, similar to fseek().
240 #$d_fsetpos HAS_FSETPOS /**/
243 * This symbol, if defined, indicates to the C program that it should
244 * include <sys/mount.h>.
246 #$i_sysmount I_SYS_MOUNT /**/
249 * This symbol, if defined, indicates that the fstatfs routine is
250 * available to stat the filesystem of a file descriptor.
252 #$d_fstatfs HAS_FSTATFS /**/
254 /* HAS_STRUCT_STATFS_FLAGS:
255 * This symbol, if defined, indicates that the struct statfs has
256 * the f_flags member for mount flags.
258 #$d_statfsflags HAS_STRUCT_STATFS_FLAGS /**/
261 * This symbol, if defined, indicates to the C program that it should
262 * include <sys/statvfs.h>.
264 #$i_sysstatvfs I_SYS_STATVFS /**/
267 * This symbol, if defined, indicates that the fstatvfs routine is
268 * available to stat the filesystem of a file descriptor.
270 #$d_fstatvfs HAS_FSTATVFS /**/
273 * This symbol, if defined, indicates to the C program that it should
274 * include <mntent.h>.
276 #$i_mntent I_MNTENT /**/
279 * This symbol, if defined, indicates that the getmntent routine is
280 * available to lookup mount entries in some data base or other.
282 #$d_getmntent HAS_GETMNTENT /**/
285 * This symbol, if defined, indicates that the hasmntopt routine is
286 * available to query mount entries returned by getmntent.
288 #$d_hasmntopt HAS_HASMNTOPT /**/
291 * This symbol, if defined, indicates that the gettimeofday() system
292 * call is available for a sub-second accuracy clock. Usually, the file
293 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
294 * The type "Timeval" should be used to refer to "struct timeval".
296 #$d_gettimeod HAS_GETTIMEOFDAY /**/
297 #ifdef HAS_GETTIMEOFDAY
298 #define Timeval struct timeval /* Structure used by gettimeofday() */
302 * This symbol, if defined, indicates that the getgroups() routine is
303 * available to get the list of process groups. If unavailable, multiple
304 * groups are probably not supported.
306 #$d_getgrps HAS_GETGROUPS /**/
309 * This symbol, if defined, indicates that the C program may use the
310 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
313 #$d_uname HAS_UNAME /**/
316 * This symbol, if defined, indicates that the getlogin routine is
317 * available to get the login name.
319 #$d_getlogin HAS_GETLOGIN /**/
322 * This symbol, if defined, indicates to the C program that
323 * the getpgid(pid) function is available to get the
326 #$d_getpgid HAS_GETPGID /**/
329 * This symbol, if defined, indicates that the getpgrp routine is
330 * available to get the current process group.
333 * This symbol, if defined, indicates that getpgrp needs one
334 * arguments whereas USG one needs none.
336 #$d_getpgrp HAS_GETPGRP /**/
337 #$d_bsdgetpgrp USE_BSD_GETPGRP /**/
340 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
341 * routine is available to get the current process group.
343 #$d_getpgrp2 HAS_GETPGRP2 /**/
346 * This symbol, if defined, indicates that the getppid routine is
347 * available to get the parent process ID.
349 #$d_getppid HAS_GETPPID /**/
352 * This symbol, if defined, indicates that the getpriority routine is
353 * available to get a process's priority.
355 #$d_getprior HAS_GETPRIORITY /**/
358 * This symbol, if defined, indicates that the htonl() routine (and
359 * friends htons() ntohl() ntohs()) are available to do network
360 * order byte swapping.
363 * This symbol, if defined, indicates that the htons() routine (and
364 * friends htonl() ntohl() ntohs()) are available to do network
365 * order byte swapping.
368 * This symbol, if defined, indicates that the ntohl() routine (and
369 * friends htonl() htons() ntohs()) are available to do network
370 * order byte swapping.
373 * This symbol, if defined, indicates that the ntohs() routine (and
374 * friends htonl() htons() ntohl()) are available to do network
375 * order byte swapping.
377 #$d_htonl HAS_HTONL /**/
378 #$d_htonl HAS_HTONS /**/
379 #$d_htonl HAS_NTOHL /**/
380 #$d_htonl HAS_NTOHS /**/
383 * This symbol, if defined, indicates to the C program that the
384 * inet_aton() function is available to parse IP address "dotted-quad"
387 #$d_inetaton HAS_INET_ATON /**/
390 * This symbol, if defined, indicates that the killpg routine is available
391 * to kill process groups. If unavailable, you probably should use kill
392 * with a negative process number.
394 #$d_killpg HAS_KILLPG /**/
397 * This symbol, if defined, indicates that the link routine is
398 * available to create hard links.
400 #$d_link HAS_LINK /**/
403 * This symbol, if defined, indicates that the localeconv routine is
404 * available for numeric and monetary formatting conventions.
406 #$d_locconv HAS_LOCALECONV /**/
409 * This symbol, if defined, indicates that the lockf routine is
410 * available to do file locking.
412 #$d_lockf HAS_LOCKF /**/
415 * This symbol, if defined, indicates that the lstat routine is
416 * available to do file stats on symbolic links.
418 #$d_lstat HAS_LSTAT /**/
421 * This symbol, if defined, indicates that the mblen routine is available
422 * to find the number of bytes in a multibye character.
424 #$d_mblen HAS_MBLEN /**/
427 * This symbol, if defined, indicates that the mbstowcs routine is
428 * available to covert a multibyte string into a wide character string.
430 #$d_mbstowcs HAS_MBSTOWCS /**/
433 * This symbol, if defined, indicates that the mbtowc routine is available
434 * to covert a multibyte to a wide character.
436 #$d_mbtowc HAS_MBTOWC /**/
439 * This symbol, if defined, indicates that the memcmp routine is available
440 * to compare blocks of memory.
442 #$d_memcmp HAS_MEMCMP /**/
445 * This symbol, if defined, indicates that the memcpy routine is available
446 * to copy blocks of memory.
448 #$d_memcpy HAS_MEMCPY /**/
451 * This symbol, if defined, indicates that the memmove routine is available
452 * to copy potentially overlapping blocks of memory. This should be used
453 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
456 #$d_memmove HAS_MEMMOVE /**/
459 * This symbol, if defined, indicates that the memset routine is available
460 * to set blocks of memory.
462 #$d_memset HAS_MEMSET /**/
465 * This symbol, if defined, indicates that the mkdir routine is available
466 * to create directories. Otherwise you should fork off a new process to
469 #$d_mkdir HAS_MKDIR /**/
472 * This symbol, if defined, indicates that the mkfifo routine is
473 * available to create FIFOs. Otherwise, mknod should be able to
474 * do it for you. However, if mkfifo is there, mknod might require
475 * super-user privileges which mkfifo will not.
477 #$d_mkfifo HAS_MKFIFO /**/
480 * This symbol, if defined, indicates that the mktime routine is
483 #$d_mktime HAS_MKTIME /**/
486 * This symbol, if defined, indicates that the entire msg*(2) library is
487 * supported (IPC mechanism based on message queues).
492 * This symbol, if defined, indicates that the nice routine is
495 #$d_nice HAS_NICE /**/
498 * This symbol, if defined, indicates that pathconf() is available
499 * to determine file-system related limits and options associated
500 * with a given filename.
503 * This symbol, if defined, indicates that pathconf() is available
504 * to determine file-system related limits and options associated
505 * with a given open file descriptor.
507 #$d_pathconf HAS_PATHCONF /**/
508 #$d_fpathconf HAS_FPATHCONF /**/
511 * This symbol, if defined, indicates that the pause routine is
512 * available to suspend a process until a signal is received.
514 #$d_pause HAS_PAUSE /**/
517 * This symbol, if defined, indicates that the pipe routine is
518 * available to create an inter-process channel.
520 #$d_pipe HAS_PIPE /**/
523 * This symbol, if defined, indicates that the poll routine is
524 * available to poll active file descriptors. You may safely
525 * include <poll.h> when this symbol is defined.
527 #$d_poll HAS_POLL /**/
530 * This symbol, if defined, indicates that the readdir routine is
531 * available to read directory entries. You may have to include
532 * <dirent.h>. See I_DIRENT.
534 #$d_readdir HAS_READDIR /**/
537 * This symbol, if defined, indicates that the seekdir routine is
538 * available. You may have to include <dirent.h>. See I_DIRENT.
540 #$d_seekdir HAS_SEEKDIR /**/
543 * This symbol, if defined, indicates that the telldir routine is
544 * available. You may have to include <dirent.h>. See I_DIRENT.
546 #$d_telldir HAS_TELLDIR /**/
549 * This symbol, if defined, indicates that the rewinddir routine is
550 * available. You may have to include <dirent.h>. See I_DIRENT.
552 #$d_rewinddir HAS_REWINDDIR /**/
555 * This symbol, if defined, indicates that the readlink routine is
556 * available to read the value of a symbolic link.
558 #$d_readlink HAS_READLINK /**/
561 * This symbol, if defined, indicates that the rename routine is available
562 * to rename files. Otherwise you should do the unlink(), link(), unlink()
565 #$d_rename HAS_RENAME /**/
568 * This symbol, if defined, indicates that the rmdir routine is
569 * available to remove directories. Otherwise you should fork off a
570 * new process to exec /bin/rmdir.
572 #$d_rmdir HAS_RMDIR /**/
575 * This symbol, if defined, indicates that the select routine is
576 * available to select active file descriptors. If the timeout field
577 * is used, <sys/time.h> may need to be included.
579 #$d_select HAS_SELECT /**/
582 * This symbol, if defined, indicates that the entire sem*(2) library is
588 * This symbol, if defined, indicates that the setegid routine is available
589 * to change the effective gid of the current program.
591 #$d_setegid HAS_SETEGID /**/
594 * This symbol, if defined, indicates that the seteuid routine is available
595 * to change the effective uid of the current program.
597 #$d_seteuid HAS_SETEUID /**/
600 * This symbol, if defined, indicates that the setlinebuf routine is
601 * available to change stderr or stdout from block-buffered or unbuffered
602 * to a line-buffered mode.
604 #$d_setlinebuf HAS_SETLINEBUF /**/
607 * This symbol, if defined, indicates that the setlocale routine is
608 * available to handle locale-specific ctype implementations.
610 #$d_setlocale HAS_SETLOCALE /**/
613 * This symbol, if defined, indicates that the setpgid(pid, gpid)
614 * routine is available to set process group ID.
616 #$d_setpgid HAS_SETPGID /**/
619 * This symbol, if defined, indicates that the setpgrp routine is
620 * available to set the current process group.
623 * This symbol, if defined, indicates that setpgrp needs two
624 * arguments whereas USG one needs none. See also HAS_SETPGID
625 * for a POSIX interface.
627 #$d_setpgrp HAS_SETPGRP /**/
628 #$d_bsdsetpgrp USE_BSD_SETPGRP /**/
631 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
632 * routine is available to set the current process group.
634 #$d_setpgrp2 HAS_SETPGRP2 /**/
637 * This symbol, if defined, indicates that the setpriority routine is
638 * available to set a process's priority.
640 #$d_setprior HAS_SETPRIORITY /**/
643 * This symbol, if defined, indicates that the setregid routine is
644 * available to change the real and effective gid of the current
648 * This symbol, if defined, indicates that the setresgid routine is
649 * available to change the real, effective and saved gid of the current
652 #$d_setregid HAS_SETREGID /**/
653 #$d_setresgid HAS_SETRESGID /**/
656 * This symbol, if defined, indicates that the setreuid routine is
657 * available to change the real and effective uid of the current
661 * This symbol, if defined, indicates that the setresuid routine is
662 * available to change the real, effective and saved uid of the current
665 #$d_setreuid HAS_SETREUID /**/
666 #$d_setresuid HAS_SETRESUID /**/
669 * This symbol, if defined, indicates that the setrgid routine is available
670 * to change the real gid of the current program.
672 #$d_setrgid HAS_SETRGID /**/
675 * This symbol, if defined, indicates that the setruid routine is available
676 * to change the real uid of the current program.
678 #$d_setruid HAS_SETRUID /**/
681 * This symbol, if defined, indicates that the setsid routine is
682 * available to set the process group ID.
684 #$d_setsid HAS_SETSID /**/
687 * This symbol, if defined, indicates that the entire shm*(2) library is
693 * This symbol holds the return type of the shmat() system call.
694 * Usually set to 'void *' or 'char *'.
696 /* HAS_SHMAT_PROTOTYPE:
697 * This symbol, if defined, indicates that the sys/shm.h includes
698 * a prototype for shmat(). Otherwise, it is up to the program to
699 * guess one. Shmat_t shmat (int, Shmat_t, int) is a good guess,
700 * but not always right so it should be emitted by the program only
701 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
703 #define Shmat_t $shmattype /**/
704 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
707 * This symbol is defined if this system has a stat structure declaring
708 * st_blksize and st_blocks.
710 #$d_statblks USE_STAT_BLOCKS /**/
713 * This symbol is defined to indicate that the strchr()/strrchr()
714 * functions are available for string searching. If not, try the
715 * index()/rindex() pair.
718 * This symbol is defined to indicate that the index()/rindex()
719 * functions are available for string searching.
721 #$d_strchr HAS_STRCHR /**/
722 #$d_index HAS_INDEX /**/
725 * This symbol, if defined, indicates that the strcoll routine is
726 * available to compare strings using collating information.
728 #$d_strcoll HAS_STRCOLL /**/
731 * This symbol, if defined, indicates that this C compiler knows how
732 * to copy structures. If undefined, you'll need to use a block copy
733 * routine of some sort instead.
735 #$d_strctcpy USE_STRUCT_COPY /**/
738 * This symbol, if defined, indicates that the strerror routine is
739 * available to translate error numbers to strings. See the writeup
740 * of Strerror() in this file before you try to define your own.
743 * This symbol, if defined, indicates that the sys_errlist array is
744 * available to translate error numbers to strings. The extern int
745 * sys_nerr gives the size of that table.
748 * This preprocessor symbol is defined as a macro if strerror() is
749 * not available to translate error numbers to strings but sys_errlist[]
752 #$d_strerror HAS_STRERROR /**/
753 #$d_syserrlst HAS_SYS_ERRLIST /**/
754 #define Strerror(e) $d_strerrm
757 * This symbol, if defined, indicates that the strtod routine is
758 * available to provide better numeric string conversion than atof().
760 #$d_strtod HAS_STRTOD /**/
763 * This symbol, if defined, indicates that the strtol routine is available
764 * to provide better numeric string conversion than atoi() and friends.
766 #$d_strtol HAS_STRTOL /**/
769 * This symbol, if defined, indicates that the strtoul routine is
770 * available to provide conversion of strings to unsigned long.
772 #$d_strtoul HAS_STRTOUL /**/
775 * This symbol, if defined, indicates that the strxfrm() routine is
776 * available to transform strings.
778 #$d_strxfrm HAS_STRXFRM /**/
781 * This symbol, if defined, indicates that the symlink routine is available
782 * to create symbolic links.
784 #$d_symlink HAS_SYMLINK /**/
787 * This symbol, if defined, indicates that the syscall routine is
788 * available to call arbitrary system calls. If undefined, that's tough.
790 #$d_syscall HAS_SYSCALL /**/
793 * This symbol, if defined, indicates that sysconf() is available
794 * to determine system related limits and options.
796 #$d_sysconf HAS_SYSCONF /**/
799 * This symbol, if defined, indicates that the system routine is
800 * available to issue a shell command.
802 #$d_system HAS_SYSTEM /**/
805 * This symbol, if defined, indicates that the tcgetpgrp routine is
806 * available to get foreground process group ID.
808 #$d_tcgetpgrp HAS_TCGETPGRP /**/
811 * This symbol, if defined, indicates that the tcsetpgrp routine is
812 * available to set foreground process group ID.
814 #$d_tcsetpgrp HAS_TCSETPGRP /**/
817 * This symbol, if defined, indicates that the truncate routine is
818 * available to truncate files.
820 #$d_truncate HAS_TRUNCATE /**/
823 * This symbol, if defined, indicates that the tzname[] array is
824 * available to access timezone names.
826 #$d_tzname HAS_TZNAME /**/
829 * This symbol, if defined, indicates that the umask routine is
830 * available to set and get the value of the file creation mask.
832 #$d_umask HAS_UMASK /**/
835 * This symbol, if defined, indicates that vfork() exists.
837 #$d_vfork HAS_VFORK /**/
840 * This symbol, if defined, indicates that this C compiler knows about
841 * the volatile declaration.
843 #$d_volatile HASVOLATILE /**/
849 * This symbol, if defined, indicates that wait4() exists.
851 #$d_wait4 HAS_WAIT4 /**/
854 * This symbol, if defined, indicates that the waitpid routine is
855 * available to wait for child process.
857 #$d_waitpid HAS_WAITPID /**/
860 * This symbol, if defined, indicates that the wcstombs routine is
861 * available to convert wide character strings to multibyte strings.
863 #$d_wcstombs HAS_WCSTOMBS /**/
866 * This symbol, if defined, indicates that the wctomb routine is available
867 * to covert a wide character to a multibyte.
869 #$d_wctomb HAS_WCTOMB /**/
872 * This symbol, if defined, indicates that this system uses
878 * This symbol, if defined, indicates that <arpa/inet.h> exists and should
881 #$i_arpainet I_ARPA_INET /**/
884 * This symbol, if defined, indicates that <dbm.h> exists and should
888 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
889 * should be included.
892 #$i_rpcsvcdbm I_RPCSVC_DBM /**/
895 * This symbol, if defined, indicates to the C program that it should
896 * include <dirent.h>. Using this symbol also triggers the definition
897 * of the Direntry_t define which ends up being 'struct dirent' or
898 * 'struct direct' depending on the availability of <dirent.h>.
901 * This symbol, if defined, indicates to the C program that the length
902 * of directory entry names is provided by a d_namlen field. Otherwise
903 * you need to do strlen() on the d_name field.
906 * This symbol is set to 'struct direct' or 'struct dirent' depending on
907 * whether dirent is available or not. You should use this pseudo type to
908 * portably declare your directory entries.
910 #$i_dirent I_DIRENT /**/
911 #$d_dirnamlen DIRNAMLEN /**/
912 #define Direntry_t $direntrytype
915 * This symbol, if defined, indicates that <dlfcn.h> exists and should
918 #$i_dlfcn I_DLFCN /**/
921 * This manifest constant tells the C program to include <fcntl.h>.
923 #$i_fcntl I_FCNTL /**/
926 * This symbol, if defined, indicates to the C program that it should
927 * include <float.h> to get definition of symbols like DBL_MAX or
928 * DBL_MIN, i.e. machine dependent floating point values.
930 #$i_float I_FLOAT /**/
933 * This symbol, if defined, indicates to the C program that it should
937 * This symbol, if defined, indicates to the C program that struct group
938 * contains gr_passwd.
941 * This symbol, if defined, indicates that the getgrent routine is
942 * available for initializing sequential access of the group database.
945 * This symbol, if defined, indicates that the getgrent routine is
946 * available for sequential access of the group database.
949 * This symbol, if defined, indicates that the getgrent routine is
950 * available for finalizing sequential access of the group database.
953 #$d_grpasswd GRPASSWD /**/
954 #$d_setgrent HAS_SETGRENT /**/
955 #$d_getgrent HAS_GETGRENT /**/
956 #$d_endgrent HAS_ENDGRENT /**/
959 * This symbol, if defined, indicates to the C program that it should
960 * include <limits.h> to get definition of symbols like WORD_BIT or
961 * LONG_MAX, i.e. machine dependant limitations.
963 #$i_limits I_LIMITS /**/
966 * This symbol, if defined, indicates to the C program that it should
967 * include <locale.h>.
969 #$i_locale I_LOCALE /**/
972 * This symbol, if defined, indicates to the C program that it should
978 * This symbol, if defined, indicates to the C program that it should
979 * include <memory.h>.
981 #$i_memory I_MEMORY /**/
984 * This symbol, if defined, indicates that <ndbm.h> exists and should
990 * This symbol, if defined, indicates that <net/errno.h> exists and
991 * should be included.
993 #$i_neterrno I_NET_ERRNO /**/
996 * This symbol, if defined, indicates to the C program that it should
997 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
999 #$i_niin I_NETINET_IN /**/
1002 * This symbol, if defined, indicates to the C program that it should
1005 #$i_sfio I_SFIO /**/
1008 * This symbol, if defined, indicates that <stddef.h> exists and should
1011 #$i_stddef I_STDDEF /**/
1014 * This symbol, if defined, indicates that <stdlib.h> exists and should
1017 #$i_stdlib I_STDLIB /**/
1020 * This symbol, if defined, indicates to the C program that it should
1021 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1023 #$i_string I_STRING /**/
1026 * This symbol, if defined, indicates to the C program that it should
1027 * include <sys/dir.h>.
1029 #$i_sysdir I_SYS_DIR /**/
1032 * This symbol, if defined, indicates to the C program that it should
1033 * include <sys/file.h> to get definition of R_OK and friends.
1035 #$i_sysfile I_SYS_FILE /**/
1038 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1039 * be included. Otherwise, include <sgtty.h> or <termio.h>.
1041 #$i_sysioctl I_SYS_IOCTL /**/
1044 * This symbol, if defined, indicates to the C program that it should
1045 * include <sys/ndir.h>.
1047 #$i_sysndir I_SYS_NDIR /**/
1050 * This symbol, if defined, indicates to the C program that it should
1051 * include <sys/param.h>.
1053 #$i_sysparam I_SYS_PARAM /**/
1056 * This symbol, if defined, indicates to the C program that it should
1057 * include <sys/resource.h>.
1059 #$i_sysresrc I_SYS_RESOURCE /**/
1062 * This symbol, if defined, indicates to the C program that it should
1063 * include <sys/select.h> in order to get definition of struct timeval.
1065 #$i_sysselct I_SYS_SELECT /**/
1068 * This symbol, if defined, indicates to the C program that it should
1069 * include <sys/stat.h>.
1071 #$i_sysstat I_SYS_STAT /**/
1074 * This symbol, if defined, indicates to the C program that it should
1075 * include <sys/times.h>.
1077 #$i_systimes I_SYS_TIMES /**/
1080 * This symbol, if defined, indicates to the C program that it should
1081 * include <sys/types.h>.
1083 #$i_systypes I_SYS_TYPES /**/
1086 * This symbol, if defined, indicates to the C program that it should
1087 * include <sys/un.h> to get UNIX domain socket definitions.
1089 #$i_sysun I_SYS_UN /**/
1092 * This symbol, if defined, indicates to the C program that it should
1093 * include <sys/wait.h>.
1095 #$i_syswait I_SYS_WAIT /**/
1098 * This symbol, if defined, indicates that the program should include
1099 * <termio.h> rather than <sgtty.h>. There are also differences in
1100 * the ioctl() calls that depend on the value of this symbol.
1103 * This symbol, if defined, indicates that the program should include
1104 * the POSIX termios.h rather than sgtty.h or termio.h.
1105 * There are also differences in the ioctl() calls that depend on the
1106 * value of this symbol.
1109 * This symbol, if defined, indicates that the program should include
1110 * <sgtty.h> rather than <termio.h>. There are also differences in
1111 * the ioctl() calls that depend on the value of this symbol.
1113 #$i_termio I_TERMIO /**/
1114 #$i_termios I_TERMIOS /**/
1115 #$i_sgtty I_SGTTY /**/
1118 * This symbol, if defined, indicates to the C program that it should
1119 * include <unistd.h>.
1121 #$i_unistd I_UNISTD /**/
1124 * This symbol, if defined, indicates to the C program that it should
1125 * include <utime.h>.
1127 #$i_utime I_UTIME /**/
1130 * This symbol, if defined, indicates to the C program that it should
1131 * include <values.h> to get definition of symbols like MINFLOAT or
1132 * MAXLONG, i.e. machine dependant limitations. Probably, you
1133 * should use <limits.h> instead, if it is available.
1135 #$i_values I_VALUES /**/
1138 * This symbol, if defined, indicates that <stdarg.h> exists and should
1142 * This symbol, if defined, indicates to the C program that it should
1143 * include <varargs.h>.
1145 #$i_stdarg I_STDARG /**/
1146 #$i_varargs I_VARARGS /**/
1149 * This symbol, if defined, indicates to the C program that it should
1152 #$i_vfork I_VFORK /**/
1155 * If defined, this macro indicates that the C compiler can handle
1156 * function prototypes.
1159 * This macro is used to declare function parameters for folks who want
1160 * to make declarations with prototypes using a different style than
1161 * the above macros. Use double parentheses. For example:
1163 * int main _((int argc, char *argv[]));
1165 #$prototype CAN_PROTOTYPE /**/
1166 #ifdef CAN_PROTOTYPE
1167 #define _(args) args
1173 * This symbol contains the full pathname to the shell used on this
1174 * on this system to execute Bourne shell scripts. Usually, this will be
1175 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1176 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1179 #define SH_PATH "$sh" /**/
1182 * This symbol is defined to be the type of char used in stdio.h.
1183 * It has the values "unsigned char" or "char".
1185 #define STDCHAR $stdchar /**/
1188 * This symbol contains the number of bytes required to align a
1189 * double. Usual values are 2, 4 and 8.
1190 * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture
1191 * Binaries (MAB) for targets with varying alignment. This only matters
1192 * for perl, where the config.h can be generated and installed on one
1193 * system, and used by a different architecture to build an extension.
1194 * The default is eight, for safety.
1196 #define MEM_ALIGNBYTES $alignbytes /**/
1199 * This symbol holds the hexadecimal constant defined in byteorder,
1200 * i.e. 0x1234 or 0x4321, etc...
1201 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1202 * Binaries (MAB) on either big endian or little endian machines.
1203 * The endian-ness is available at compile-time. This only matters
1204 * for perl, where the config.h can be generated and installed on
1205 * one system, and used by a different architecture to build an
1206 * extension. Older versions of NeXT that might not have
1207 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1208 * so the default case (for NeXT) is big endian to catch them.
1209 * This might matter for NeXT 3.0.
1212 #define BYTEORDER 0x$byteorder /* large digits for MSB */
1214 #ifdef __LITTLE_ENDIAN__
1215 #define BYTEORDER 0x1234
1216 #else /* __BIG_ENDIAN__ */
1217 #define BYTEORDER 0x4321
1218 #endif /* ENDIAN CHECK */
1222 * This symbol is defined if the C compiler can cast negative
1223 * or large floating point numbers to 32-bit ints.
1225 #$d_casti32 CASTI32 /**/
1228 * This symbol is defined if the C compiler can cast negative
1229 * numbers to unsigned longs, ints and shorts.
1232 * This symbol contains flags that say what difficulties the compiler
1233 * has casting odd floating values to unsigned long:
1235 * 1 = couldn't cast < 0
1236 * 2 = couldn't cast >= 0x80000000
1237 * 4 = couldn't cast in argument expression list
1239 #$d_castneg CASTNEGFLOAT /**/
1240 #define CASTFLAGS $castflags /**/
1243 * This symbol, if defined, indicates that the closedir() routine
1244 * does not return a value.
1246 #$d_void_closedir VOID_CLOSEDIR /**/
1249 * This preprocessor macro is defined to convert a floating point
1250 * number to a string without a trailing decimal point. This
1251 * emulates the behavior of sprintf("%g"), but is sometimes much more
1252 * efficient. If gconvert() is not available, but gcvt() drops the
1253 * trailing decimal point, then gcvt() is used. If all else fails,
1254 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1255 * macro are: value, number of digits, whether trailing zeros should
1256 * be retained, and the output buffer.
1257 * Possible values are:
1258 * d_Gconvert='gconvert((x),(n),(t),(b))'
1259 * d_Gconvert='gcvt((x),(n),(b))'
1260 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1261 * The last two assume trailing zeros should not be kept.
1263 #define Gconvert(x,n,t,b) $d_Gconvert
1266 * This symbol, if defined, indicates to the C program that
1267 * the GNU C library is being used.
1269 #$d_gnulibc HAS_GNULIBC /**/
1271 * This manifest constant lets the C program know that isascii
1274 #$d_isascii HAS_ISASCII /**/
1277 * This symbol, if defined, indicates that the lchown routine is
1278 * available to operate on a symbolic link (instead of following the
1281 #$d_lchown HAS_LCHOWN /**/
1284 * This manifest constant lets the C program know that the three
1285 * argument form of open(2) is available.
1287 #$d_open3 HAS_OPEN3 /**/
1290 * This symbol, if defined, indicates that the bcopy routine is available
1291 * to copy potentially overlapping memory blocks. Otherwise you should
1292 * probably use memmove() or memcpy(). If neither is defined, roll your
1295 #$d_safebcpy HAS_SAFE_BCOPY /**/
1298 * This symbol, if defined, indicates that the memcpy routine is available
1299 * to copy potentially overlapping memory blocks. Otherwise you should
1300 * probably use memmove() or memcpy(). If neither is defined, roll your
1303 #$d_safemcpy HAS_SAFE_MEMCPY /**/
1306 * This symbol, if defined, indicates that the memcmp routine is available
1307 * and can be used to compare relative magnitudes of chars with their high
1308 * bits set. If it is not defined, roll your own version.
1310 #$d_sanemcmp HAS_SANE_MEMCMP /**/
1313 * This symbol, if defined, indicates that Vr4's sigaction() routine
1316 #$d_sigaction HAS_SIGACTION /**/
1319 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1322 * This macro is used in the same way as sigsetjmp(), but will invoke
1323 * traditional setjmp() if sigsetjmp isn't available.
1324 * See HAS_SIGSETJMP.
1327 * This macro is used in the same way as siglongjmp(), but will invoke
1328 * traditional longjmp() if siglongjmp isn't available.
1329 * See HAS_SIGSETJMP.
1331 #$d_sigsetjmp HAS_SIGSETJMP /**/
1332 #ifdef HAS_SIGSETJMP
1333 #define Sigjmp_buf sigjmp_buf
1334 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1335 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1337 #define Sigjmp_buf jmp_buf
1338 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1339 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1343 * This symbol is defined if the _ptr and _cnt fields (or similar)
1344 * of the stdio FILE structure can be used to access the stdio buffer
1345 * for a file handle. If this is defined, then the FILE_ptr(fp)
1346 * and FILE_cnt(fp) macros will also be defined and should be used
1347 * to access these fields.
1350 * This macro is used to access the _ptr field (or equivalent) of the
1351 * FILE structure pointed to by its argument. This macro will always be
1352 * defined if USE_STDIO_PTR is defined.
1354 /* STDIO_PTR_LVALUE:
1355 * This symbol is defined if the FILE_ptr macro can be used as an
1359 * This macro is used to access the _cnt field (or equivalent) of the
1360 * FILE structure pointed to by its argument. This macro will always be
1361 * defined if USE_STDIO_PTR is defined.
1363 /* STDIO_CNT_LVALUE:
1364 * This symbol is defined if the FILE_cnt macro can be used as an
1367 #$d_stdstdio USE_STDIO_PTR /**/
1368 #ifdef USE_STDIO_PTR
1369 #define FILE_ptr(fp) $stdio_ptr
1370 #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1371 #define FILE_cnt(fp) $stdio_cnt
1372 #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1376 * This symbol is defined if the _base field (or similar) of the
1377 * stdio FILE structure can be used to access the stdio buffer for
1378 * a file handle. If this is defined, then the FILE_base(fp) macro
1379 * will also be defined and should be used to access this field.
1380 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1381 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1382 * will never be defined unless USE_STDIO_PTR is.
1385 * This macro is used to access the _base field (or equivalent) of the
1386 * FILE structure pointed to by its argument. This macro will always be
1387 * defined if USE_STDIO_BASE is defined.
1390 * This macro is used to determine the number of bytes in the I/O
1391 * buffer pointed to by _base field (or equivalent) of the FILE
1392 * structure pointed to its argument. This macro will always be defined
1393 * if USE_STDIO_BASE is defined.
1395 #$d_stdiobase USE_STDIO_BASE /**/
1396 #ifdef USE_STDIO_BASE
1397 #define FILE_base(fp) $stdio_base
1398 #define FILE_bufsiz(fp) $stdio_bufsiz
1402 * This symbol, if defined, indicates that the vprintf routine is available
1403 * to printf with a pointer to an argument list. If unavailable, you
1404 * may need to write your own, probably in terms of _doprnt().
1406 /* USE_CHAR_VSPRINTF:
1407 * This symbol is defined if this system has vsprintf() returning type
1408 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1409 * is up to the package author to declare vsprintf correctly based on the
1412 #$d_vprintf HAS_VPRINTF /**/
1413 #$d_charvspr USE_CHAR_VSPRINTF /**/
1416 * This symbol contains the size of a double, so that the C preprocessor
1417 * can make decisions based on it.
1419 #define DOUBLESIZE $doublesize /**/
1422 * This symbol, if defined, indicates to the C program that it should
1426 * This symbol, if defined, indicates to the C program that it should
1427 * include <sys/time.h>.
1429 /* I_SYS_TIME_KERNEL:
1430 * This symbol, if defined, indicates to the C program that it should
1431 * include <sys/time.h> with KERNEL defined.
1433 #$i_time I_TIME /**/
1434 #$i_systime I_SYS_TIME /**/
1435 #$i_systimek I_SYS_TIME_KERNEL /**/
1438 * This symbol contains the value of sizeof(int) so that the C
1439 * preprocessor can make decisions based on it.
1442 * This symbol contains the value of sizeof(long) so that the C
1443 * preprocessor can make decisions based on it.
1446 * This symbol contains the value of sizeof(short) so that the C
1447 * preprocessor can make decisions based on it.
1449 #define INTSIZE $intsize /**/
1450 #define LONGSIZE $longsize /**/
1451 #define SHORTSIZE $shortsize /**/
1454 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1455 * non-blocking I/O for the file descriptor. Note that there is no way
1456 * back, i.e. you cannot turn it blocking again this way. If you wish to
1457 * alternatively switch between blocking and non-blocking, use the
1458 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1461 * This symbol holds the errno error code set by read() when no data was
1462 * present on the non-blocking file descriptor.
1465 * This symbol holds the return code from read() when no data is present
1466 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1467 * not defined, then you can't distinguish between no data and EOF by
1468 * issuing a read(). You'll have to find another way to tell for sure!
1471 * This symbol, if defined, indicates to the C program that a read() on
1472 * a non-blocking file descriptor will return 0 on EOF, and not the value
1473 * held in RD_NODATA (-1 usually, in that case!).
1475 #define VAL_O_NONBLOCK $o_nonblock
1476 #define VAL_EAGAIN $eagain
1477 #define RD_NODATA $rd_nodata
1478 #$d_eofnblk EOF_NONBLOCK
1481 * This symbol contains the size of a pointer, so that the C preprocessor
1482 * can make decisions based on it. It will be sizeof(void *) if
1483 * the compiler supports (void *); otherwise it will be
1486 #define PTRSIZE $ptrsize /**/
1489 * This symbol contains the number of bits of random number the rand()
1490 * function produces. Usual values are 15, 16, and 31.
1492 #define RANDBITS $randbits /**/
1495 * This symbol holds the type used by functions that return
1496 * a count of bytes or an error condition. It must be a signed type.
1497 * It is usually ssize_t, but may be long or int, etc.
1498 * It may be necessary to include <sys/types.h> or <unistd.h>
1499 * to get any typedef'ed information.
1500 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1502 #define SSize_t $ssizetype /* signed count of bytes */
1505 * This symbol contains the name of the operating system, as determined
1506 * by Configure. You shouldn't rely on it too much; the specific
1507 * feature tests from Configure are generally more reliable.
1509 #define OSNAME "$osname" /**/
1512 * This macro catenates 2 tokens together.
1515 * This macro surrounds its token with double quotes.
1518 #define CAT2(a,b)a/**/b
1519 #define STRINGIFY(a)"a"
1520 /* If you can get stringification with catify, tell me how! */
1522 #if $cpp_stuff == 42
1523 #define CAT2(a,b)a ## b
1524 #define StGiFy(a)# a
1525 #define STRINGIFY(a)StGiFy(a)
1527 #if $cpp_stuff != 1 && $cpp_stuff != 42
1528 #include "Bletch: How does this C preprocessor catenate tokens?"
1532 * This symbol, if defined, contains the full pathname of csh.
1534 #$d_csh HAS_CSH /**/
1536 #define CSH "$full_csh" /**/
1540 * This symbol, if defined, indicates that the endhostent() routine is
1541 * available to close whatever was being used for host queries.
1543 #$d_endhent HAS_ENDHOSTENT /**/
1546 * This symbol, if defined, indicates that the endnetent() routine is
1547 * available to close whatever was being used for network queries.
1549 #$d_endnent HAS_ENDNETENT /**/
1552 * This symbol, if defined, indicates that the endprotoent() routine is
1553 * available to close whatever was being used for protocol queries.
1555 #$d_endpent HAS_ENDPROTOENT /**/
1558 * This symbol, if defined, indicates that the endservent() routine is
1559 * available to close whatever was being used for service queries.
1561 #$d_endsent HAS_ENDSERVENT /**/
1563 /* HAS_GETHOSTBYADDR:
1564 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1565 * available to look up hosts by their IP addresses.
1567 #$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1569 /* HAS_GETHOSTBYNAME:
1570 * This symbol, if defined, indicates that the gethostbyname() routine is
1571 * available to look up host names in some data base or other.
1573 #$d_gethbyname HAS_GETHOSTBYNAME /**/
1576 * This symbol, if defined, indicates that the gethostent() routine is
1577 * available to look up host names in some data base or another.
1579 #$d_gethent HAS_GETHOSTENT /**/
1581 /* HAS_GETNETBYADDR:
1582 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1583 * available to look up networks by their IP addresses.
1585 #$d_getnbyaddr HAS_GETNETBYADDR /**/
1587 /* HAS_GETNETBYNAME:
1588 * This symbol, if defined, indicates that the getnetbyname() routine is
1589 * available to look up networks by their names.
1591 #$d_getnbyname HAS_GETNETBYNAME /**/
1594 * This symbol, if defined, indicates that the getnetent() routine is
1595 * available to look up network names in some data base or another.
1597 #$d_getnent HAS_GETNETENT /**/
1600 * This symbol, if defined, indicates that the getprotoent() routine is
1601 * available to look up protocols in some data base or another.
1603 #$d_getpent HAS_GETPROTOENT /**/
1605 /* HAS_GETPROTOBYNAME:
1606 * This symbol, if defined, indicates that the getprotobyname()
1607 * routine is available to look up protocols by their name.
1609 /* HAS_GETPROTOBYNUMBER:
1610 * This symbol, if defined, indicates that the getprotobynumber()
1611 * routine is available to look up protocols by their number.
1613 #$d_getpbyname HAS_GETPROTOBYNAME /**/
1614 #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1617 * This symbol, if defined, indicates that the getservent() routine is
1618 * available to look up network services in some data base or another.
1620 #$d_getsent HAS_GETSERVENT /**/
1622 /* HAS_GETSERVBYNAME:
1623 * This symbol, if defined, indicates that the getservbyname()
1624 * routine is available to look up services by their name.
1626 /* HAS_GETSERVBYPORT:
1627 * This symbol, if defined, indicates that the getservbyport()
1628 * routine is available to look up services by their port.
1630 #$d_getsbyname HAS_GETSERVBYNAME /**/
1631 #$d_getsbyport HAS_GETSERVBYPORT /**/
1634 * This symbol will be defined if the C compiler supports long
1638 * This symbol contains the size of a long double, so that the
1639 * C preprocessor can make decisions based on it. It is only
1640 * defined if the system supports long doubles.
1642 #$d_longdbl HAS_LONG_DOUBLE /**/
1643 #ifdef HAS_LONG_DOUBLE
1644 #define LONG_DOUBLESIZE $longdblsize /**/
1648 * This symbol will be defined if the C compiler supports
1652 * This symbol contains the size of a long long, so that the
1653 * C preprocessor can make decisions based on it. It is only
1654 * defined if the system supports long long.
1656 #$d_longlong HAS_LONG_LONG /**/
1657 #ifdef HAS_LONG_LONG
1658 #define LONGLONGSIZE $longlongsize /**/
1662 * This symbol, if defined, indicates that the setgroups() routine is
1663 * available to set the list of process groups. If unavailable, multiple
1664 * groups are probably not supported.
1666 #$d_setgrps HAS_SETGROUPS /**/
1669 * This symbol, if defined, indicates that the sethostent() routine is
1672 #$d_sethent HAS_SETHOSTENT /**/
1675 * This symbol, if defined, indicates that the setnetent() routine is
1678 #$d_setnent HAS_SETNETENT /**/
1681 * This symbol, if defined, indicates that the setprotoent() routine is
1684 #$d_setpent HAS_SETPROTOENT /**/
1687 * This symbol, if defined, indicates that the setservent() routine is
1690 #$d_setsent HAS_SETSERVENT /**/
1693 * This symbol, if defined, indicates that the setvbuf routine is
1694 * available to change buffering on an open stdio stream.
1695 * to a line-buffered mode.
1697 #$d_setvbuf HAS_SETVBUF /**/
1700 * This symbol, if defined, indicates that the BSD socket interface is
1704 * This symbol, if defined, indicates that the BSD socketpair() call is
1707 #$d_socket HAS_SOCKET /**/
1708 #$d_sockpair HAS_SOCKETPAIR /**/
1711 * This symbol, if defined, indicates that the union semun is
1712 * defined by including <sys/sem.h>. If not, the user code
1713 * probably needs to define it as:
1716 * struct semid_ds *buf;
1717 * unsigned short *array;
1720 /* USE_SEMCTL_SEMUN:
1721 * This symbol, if defined, indicates that union semun is
1722 * used for semctl IPC_STAT.
1724 /* USE_SEMCTL_SEMID_DS:
1725 * This symbol, if defined, indicates that struct semid_ds * is
1726 * used for semctl IPC_STAT.
1728 #$d_union_semun HAS_UNION_SEMUN /**/
1729 #$d_semctl_semun USE_SEMCTL_SEMUN /**/
1730 #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
1733 * This symbol's value is either "void" or "int", corresponding to the
1734 * appropriate return type of a signal handler. Thus, you can declare
1735 * a signal handler using "Signal_t (*handler)()", and define the
1736 * handler using "Signal_t handler(sig)".
1738 #define Signal_t $signal_t /* Signal handler's return type */
1741 * This symbol holds the type used for the second argument to
1742 * getgroups() and setgropus(). Usually, this is the same as
1743 * gidtype (gid_t) , but sometimes it isn't.
1744 * It can be int, ushort, uid_t, etc...
1745 * It may be necessary to include <sys/types.h> to get any
1746 * typedef'ed information. This is only required if you have
1747 * getgroups() or setgropus()..
1749 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1750 #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
1754 * This symbol, if defined, indicates that <netdb.h> exists and
1755 * should be included.
1757 #$i_netdb I_NETDB /**/
1760 * This symbol, if defined, indicates to the C program that it should
1764 * This symbol, if defined, indicates to the C program that struct passwd
1765 * contains pw_quota.
1768 * This symbol, if defined, indicates to the C program that struct passwd
1772 * This symbol, if defined, indicates to the C program that struct passwd
1773 * contains pw_change.
1776 * This symbol, if defined, indicates to the C program that struct passwd
1777 * contains pw_class.
1780 * This symbol, if defined, indicates to the C program that struct passwd
1781 * contains pw_expire.
1784 * This symbol, if defined, indicates to the C program that struct passwd
1785 * contains pw_comment.
1788 * This symbol, if defined, indicates to the C program that struct passwd
1789 * contains pw_gecos.
1792 * This symbol, if defined, indicates to the C program that struct passwd
1793 * contains pw_passwd.
1796 * This symbol, if defined, indicates that the getpwrent routine is
1797 * available for initializing sequential access of the passwd database.
1800 * This symbol, if defined, indicates that the getpwent routine is
1801 * available for sequential access of the password database.
1804 * This symbol, if defined, indicates that the getpwent routine is
1805 * available for finalizing sequential access of the passwd database.
1808 #$d_pwquota PWQUOTA /**/
1809 #$d_pwage PWAGE /**/
1810 #$d_pwchange PWCHANGE /**/
1811 #$d_pwclass PWCLASS /**/
1812 #$d_pwexpire PWEXPIRE /**/
1813 #$d_pwcomment PWCOMMENT /**/
1814 #$d_pwgecos PWGECOS /**/
1815 #$d_pwpasswd PWPASSWD /**/
1816 #$d_setpwent HAS_SETPWENT /**/
1817 #$d_getpwent HAS_GETPWENT /**/
1818 #$d_endpwent HAS_ENDPWENT /**/
1821 * This variable contains the return type of free(). It is usually
1822 * void, but occasionally int.
1825 * This symbol is the type of pointer returned by malloc and realloc.
1827 #define Malloc_t $malloctype /**/
1828 #define Free_t $freetype /**/
1831 * This symbol, if defined, indicates that we're using our own malloc.
1833 #$d_mymalloc MYMALLOC /**/
1836 * This symbol contains a list of signal names in order of
1837 * signal number. This is intended
1838 * to be used as a static array initialization, like this:
1839 * char *sig_name[] = { SIG_NAME };
1840 * The signals in the list are separated with commas, and each signal
1841 * is surrounded by double quotes. There is no leading SIG in the signal
1842 * name, i.e. SIGQUIT is known as "QUIT".
1843 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1844 * etc., where nn is the actual signal number (e.g. NUM37).
1845 * The signal number for sig_name[i] is stored in sig_num[i].
1846 * The last element is 0 to terminate the list with a NULL. This
1847 * corresponds to the 0 at the end of the sig_num list.
1850 * This symbol contains a list of signal numbers, in the same order as the
1851 * SIG_NAME list. It is suitable for static array initialization, as in:
1852 * int sig_num[] = { SIG_NUM };
1853 * The signals in the list are separated with commas, and the indices
1854 * within that list and the SIG_NAME list match, so it's easy to compute
1855 * the signal name from a number or vice versa at the price of a small
1856 * dynamic linear lookup.
1857 * Duplicates are allowed, but are moved to the end of the list.
1858 * The signal number corresponding to sig_name[i] is sig_number[i].
1859 * if (i < NSIG) then sig_number[i] == i.
1860 * The last element is 0, corresponding to the 0 at the end of
1861 * the sig_name list.
1863 #define SIG_NAME $sig_name_init /**/
1864 #define SIG_NUM $sig_num_init /**/
1867 * This symbol indicates how much support of the void type is given by this
1868 * compiler. What various bits mean:
1870 * 1 = supports declaration of void
1871 * 2 = supports arrays of pointers to functions returning void
1872 * 4 = supports comparisons between pointers to void functions and
1873 * addresses of void functions
1874 * 8 = suports declaration of generic void pointers
1876 * The package designer should define VOIDUSED to indicate the requirements
1877 * of the package. This can be done either by #defining VOIDUSED before
1878 * including config.h, or by defining defvoidused in Myinit.U. If the
1879 * latter approach is taken, only those flags will be tested. If the
1880 * level of void support necessary is not present, defines void to int.
1883 #define VOIDUSED $defvoidused
1885 #define VOIDFLAGS $voidflags
1886 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1887 #define void int /* is void to be avoided? */
1888 #define M_VOID /* Xenix strikes again */
1892 * This variable, if defined, holds the name of the directory in
1893 * which the user wants to put architecture-dependent public
1894 * library files for $package. It is most often a local directory
1895 * such as /usr/local/lib. Programs using this variable must be
1896 * prepared to deal with filename expansion. If ARCHLIB is the
1897 * same as PRIVLIB, it is not defined, since presumably the
1898 * program already searches PRIVLIB.
1901 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1902 * in programs that are not prepared to deal with ~ expansion at run-time.
1904 #$d_archlib ARCHLIB "$archlib" /**/
1905 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1907 /* DLSYM_NEEDS_UNDERSCORE:
1908 * This symbol, if defined, indicates that we need to prepend an
1909 * underscore to the symbol name before calling dlsym(). This only
1910 * makes sense if you *have* dlsym, which we will presume is the
1911 * case if you're using dl_dlopen.xs.
1913 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1916 * This symbol, if defined, indicates that sfio should
1919 #$d_sfio USE_SFIO /**/
1921 /* USE_DYNAMIC_LOADING:
1922 * This symbol, if defined, indicates that dynamic loading of
1923 * some sort is available.
1925 #$usedl USE_DYNAMIC_LOADING /**/
1928 * This symbol contains the type of the prefix structure element
1929 * in the <db.h> header file. In older versions of DB, it was
1930 * int, while in newer ones it is u_int32_t.
1933 * This symbol contains the type of the prefix structure element
1934 * in the <db.h> header file. In older versions of DB, it was
1935 * int, while in newer ones it is size_t.
1937 #define DB_Hash_t $db_hashtype /**/
1938 #define DB_Prefix_t $db_prefixtype /**/
1941 * This symbol contains the name of the private library for this package.
1942 * The library is private in the sense that it needn't be in anyone's
1943 * execution path, but it should be accessible by the world. The program
1944 * should be prepared to do ~ expansion.
1947 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1948 * in programs that are not prepared to deal with ~ expansion at run-time.
1950 #define PRIVLIB "$privlib" /**/
1951 #define PRIVLIB_EXP "$privlibexp" /**/
1954 * This symbol holds the minimum number of bits operated by select.
1955 * That is, if you do select(n, ...), how many bits at least will be
1956 * cleared in the masks if some activity is detected. Usually this
1957 * is either n or 32*ceil(n/32), especially many little-endians do
1958 * the latter. This is only useful if you have select(), naturally.
1960 #define SELECT_MIN_BITS $selectminbits /**/
1963 * This symbol contains the name of the private library for this package.
1964 * The library is private in the sense that it needn't be in anyone's
1965 * execution path, but it should be accessible by the world. The program
1966 * should be prepared to do ~ expansion.
1967 * The standard distribution will put nothing in this directory.
1968 * Individual sites may place their own extensions and modules in
1972 * This symbol contains the ~name expanded version of SITEARCH, to be used
1973 * in programs that are not prepared to deal with ~ expansion at run-time.
1975 #define SITEARCH "$sitearch" /**/
1976 #define SITEARCH_EXP "$sitearchexp" /**/
1979 * This symbol contains the name of the private library for this package.
1980 * The library is private in the sense that it needn't be in anyone's
1981 * execution path, but it should be accessible by the world. The program
1982 * should be prepared to do ~ expansion.
1983 * The standard distribution will put nothing in this directory.
1984 * Individual sites may place their own extensions and modules in
1988 * This symbol contains the ~name expanded version of SITELIB, to be used
1989 * in programs that are not prepared to deal with ~ expansion at run-time.
1991 #define SITELIB "$sitelib" /**/
1992 #define SITELIB_EXP "$sitelibexp" /**/
1995 * This variable contains the string to put in front of a perl
1996 * script to make sure (one hopes) that it runs with perl and not
1999 #define STARTPERL "$startperl" /**/
2002 * This symbol, if defined, indicates that the PerlIO abstraction should
2003 * be used throughout. If not defined, stdio should be
2004 * used in a fully backward compatible manner.
2006 #$useperlio USE_PERLIO /**/
2008 /* HAS_GETHOST_PROTOS:
2009 * This symbol, if defined, indicates that <netdb.h> includes
2010 * prototypes for gethostent(), gethostbyname(), and
2011 * gethostbyaddr(). Otherwise, it is up to the program to guess
2012 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2014 #$d_gethostprotos HAS_GETHOST_PROTOS /**/
2016 /* HAS_GETNET_PROTOS:
2017 * This symbol, if defined, indicates that <netdb.h> includes
2018 * prototypes for getnetent(), getnetbyname(), and
2019 * getnetbyaddr(). Otherwise, it is up to the program to guess
2020 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2022 #$d_getnetprotos HAS_GETNET_PROTOS /**/
2024 /* HAS_GETPROTO_PROTOS:
2025 * This symbol, if defined, indicates that <netdb.h> includes
2026 * prototypes for getprotoent(), getprotobyname(), and
2027 * getprotobyaddr(). Otherwise, it is up to the program to guess
2028 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2030 #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
2032 /* HAS_GETSERV_PROTOS:
2033 * This symbol, if defined, indicates that <netdb.h> includes
2034 * prototypes for getservent(), getservbyname(), and
2035 * getservbyaddr(). Otherwise, it is up to the program to guess
2036 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2038 #$d_getservprotos HAS_GETSERV_PROTOS /**/
2041 * This symbol holds the type used for the 1st argument
2042 * to gethostbyaddr().
2045 * This symbol holds the type used for the 2nd argument
2046 * to gethostbyaddr().
2049 * This symbol holds the type used for the argument to
2053 * This symbol holds the type used for the 1st argument to
2056 #define Netdb_host_t $netdb_host_type /**/
2057 #define Netdb_hlen_t $netdb_hlen_type /**/
2058 #define Netdb_name_t $netdb_name_type /**/
2059 #define Netdb_net_t $netdb_net_type /**/
2062 * This symbol holds the type used for the 2nd, 3rd, and 4th
2063 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
2064 * is defined, and 'int *' otherwise. This is only useful if you
2065 * have select(), of course.
2067 #define Select_fd_set_t $selecttype /**/
2070 * This symbol holds a string representing the architecture name.
2071 * It may be used to construct an architecture-dependant pathname
2072 * where library files may be held under a private library, for
2075 #define ARCHNAME "$archname" /**/
2078 * This symbol, if defined, indicates to the C program that it should
2079 * include <mach/cthreads.h>.
2081 /*#define I_MACH_CTHREADS /**/
2084 * This symbol, if defined, indicates to the C program that it should
2085 * include <pthread.h>.
2087 /*#define I_PTHREAD /**/
2089 /* HAS_PTHREAD_YIELD:
2090 * This symbol, if defined, indicates that the pthread_yield
2091 * routine is available to yield the execution of the current
2095 * This symbol, if defined, indicates that the sched_yield
2096 * routine is available to yield the execution of the current
2099 #$d_pthread_yield HAS_PTHREAD_YIELD /**/
2100 #$d_sched_yield HAS_SCHED_YIELD /**/
2102 /* PTHREADS_CREATED_JOINABLE:
2103 * This symbol, if defined, indicates that pthreads are created
2104 * in the joinable (aka undetached) state.
2106 #$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
2109 * This symbol, if defined, indicates that Perl should
2110 * be built to use threads.
2112 /* OLD_PTHREADS_API:
2113 * This symbol, if defined, indicates that Perl should
2114 * be built to use the old draft POSIX threads API.
2116 #$usethreads USE_THREADS /**/
2117 #$d_oldpthreads OLD_PTHREADS_API /**/
2120 * This symbol holds the type returned by time(). It can be long,
2121 * or time_t on BSD sites (in which case <sys/types.h> should be
2124 #define Time_t $timetype /* Time type */
2127 * This symbol, if defined, indicates that the times() routine exists.
2128 * Note that this became obsolete on some systems (SUNOS), which now
2129 * use getrusage(). It may be necessary to include <sys/times.h>.
2131 #$d_times HAS_TIMES /**/
2134 * This symbol holds the type used to declare file positions in libc.
2135 * It can be fpos_t, long, uint, etc... It may be necessary to include
2136 * <sys/types.h> to get any typedef'ed information.
2138 #define Fpos_t $fpostype /* File position type */
2141 * This symbol holds the return type of getgid() and the type of
2142 * argument to setrgid() and related functions. Typically,
2143 * it is the type of group ids in the kernel. It can be int, ushort,
2144 * uid_t, etc... It may be necessary to include <sys/types.h> to get
2145 * any typedef'ed information.
2147 #define Gid_t $gidtype /* Type for getgid(), etc... */
2150 * This symbol holds the type used to declare offsets in the kernel.
2151 * It can be int, long, off_t, etc... It may be necessary to include
2152 * <sys/types.h> to get any typedef'ed information.
2154 #define Off_t $lseektype /* <offset> type */
2157 * This symbol holds the type used to declare file modes
2158 * for systems calls. It is usually mode_t, but may be
2159 * int or unsigned short. It may be necessary to include <sys/types.h>
2160 * to get any typedef'ed information.
2162 #define Mode_t $modetype /* file mode parameter for system calls */
2165 * This symbol holds the type used to declare process ids in the kernel.
2166 * It can be int, uint, pid_t, etc... It may be necessary to include
2167 * <sys/types.h> to get any typedef'ed information.
2169 #define Pid_t $pidtype /* PID type */
2172 * This symbol holds the type used to declare length parameters
2173 * for string functions. It is usually size_t, but may be
2174 * unsigned long, int, etc. It may be necessary to include
2175 * <sys/types.h> to get any typedef'ed information.
2177 #define Size_t $sizetype /* length paramater for string functions */
2180 * This symbol holds the type used to declare user ids in the kernel.
2181 * It can be int, ushort, uid_t, etc... It may be necessary to include
2182 * <sys/types.h> to get any typedef'ed information.
2184 #define Uid_t $uidtype /* UID type */