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 that the gettimeofday() system
244 * call is available for a sub-second accuracy clock. Usually, the file
245 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
246 * The type "Timeval" should be used to refer to "struct timeval".
248 #$d_gettimeod HAS_GETTIMEOFDAY /**/
249 #ifdef HAS_GETTIMEOFDAY
250 #define Timeval struct timeval /* Structure used by gettimeofday() */
254 * This symbol, if defined, indicates that the getgroups() routine is
255 * available to get the list of process groups. If unavailable, multiple
256 * groups are probably not supported.
258 #$d_getgrps HAS_GETGROUPS /**/
261 * This symbol, if defined, indicates that the C program may use the
262 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
265 #$d_uname HAS_UNAME /**/
268 * This symbol, if defined, indicates that the getlogin routine is
269 * available to get the login name.
271 #$d_getlogin HAS_GETLOGIN /**/
274 * This symbol, if defined, indicates to the C program that
275 * the getpgid(pid) function is available to get the
278 #$d_getpgid HAS_GETPGID /**/
281 * This symbol, if defined, indicates that the getpgrp routine is
282 * available to get the current process group.
285 * This symbol, if defined, indicates that getpgrp needs one
286 * arguments whereas USG one needs none.
288 #$d_getpgrp HAS_GETPGRP /**/
289 #$d_bsdgetpgrp USE_BSD_GETPGRP /**/
292 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
293 * routine is available to get the current process group.
295 #$d_getpgrp2 HAS_GETPGRP2 /**/
298 * This symbol, if defined, indicates that the getppid routine is
299 * available to get the parent process ID.
301 #$d_getppid HAS_GETPPID /**/
304 * This symbol, if defined, indicates that the getpriority routine is
305 * available to get a process's priority.
307 #$d_getprior HAS_GETPRIORITY /**/
310 * This symbol, if defined, indicates to the C program that the
311 * inet_aton() function is available to parse IP address "dotted-quad"
314 #$d_inetaton HAS_INET_ATON /**/
317 * This symbol, if defined, indicates that the killpg routine is available
318 * to kill process groups. If unavailable, you probably should use kill
319 * with a negative process number.
321 #$d_killpg HAS_KILLPG /**/
324 * This symbol, if defined, indicates that the link routine is
325 * available to create hard links.
327 #$d_link HAS_LINK /**/
330 * This symbol, if defined, indicates that the localeconv routine is
331 * available for numeric and monetary formatting conventions.
333 #$d_locconv HAS_LOCALECONV /**/
336 * This symbol, if defined, indicates that the lockf routine is
337 * available to do file locking.
339 #$d_lockf HAS_LOCKF /**/
342 * This symbol, if defined, indicates that the lstat routine is
343 * available to do file stats on symbolic links.
345 #$d_lstat HAS_LSTAT /**/
348 * This symbol, if defined, indicates that the mblen routine is available
349 * to find the number of bytes in a multibye character.
351 #$d_mblen HAS_MBLEN /**/
354 * This symbol, if defined, indicates that the mbstowcs routine is
355 * available to covert a multibyte string into a wide character string.
357 #$d_mbstowcs HAS_MBSTOWCS /**/
360 * This symbol, if defined, indicates that the mbtowc routine is available
361 * to covert a multibyte to a wide character.
363 #$d_mbtowc HAS_MBTOWC /**/
366 * This symbol, if defined, indicates that the memcmp routine is available
367 * to compare blocks of memory.
369 #$d_memcmp HAS_MEMCMP /**/
372 * This symbol, if defined, indicates that the memcpy routine is available
373 * to copy blocks of memory.
375 #$d_memcpy HAS_MEMCPY /**/
378 * This symbol, if defined, indicates that the memmove routine is available
379 * to copy potentially overlapping blocks of memory. This should be used
380 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
383 #$d_memmove HAS_MEMMOVE /**/
386 * This symbol, if defined, indicates that the memset routine is available
387 * to set blocks of memory.
389 #$d_memset HAS_MEMSET /**/
392 * This symbol, if defined, indicates that the mkdir routine is available
393 * to create directories. Otherwise you should fork off a new process to
396 #$d_mkdir HAS_MKDIR /**/
399 * This symbol, if defined, indicates that the mkfifo routine is
400 * available to create FIFOs. Otherwise, mknod should be able to
401 * do it for you. However, if mkfifo is there, mknod might require
402 * super-user privileges which mkfifo will not.
404 #$d_mkfifo HAS_MKFIFO /**/
407 * This symbol, if defined, indicates that the mktime routine is
410 #$d_mktime HAS_MKTIME /**/
413 * This symbol, if defined, indicates that the nice routine is
416 #$d_nice HAS_NICE /**/
419 * This symbol, if defined, indicates that pathconf() is available
420 * to determine file-system related limits and options associated
421 * with a given filename.
424 * This symbol, if defined, indicates that pathconf() is available
425 * to determine file-system related limits and options associated
426 * with a given open file descriptor.
428 #$d_pathconf HAS_PATHCONF /**/
429 #$d_fpathconf HAS_FPATHCONF /**/
432 * This symbol, if defined, indicates that the pause routine is
433 * available to suspend a process until a signal is received.
435 #$d_pause HAS_PAUSE /**/
438 * This symbol, if defined, indicates that the pipe routine is
439 * available to create an inter-process channel.
441 #$d_pipe HAS_PIPE /**/
444 * This symbol, if defined, indicates that the poll routine is
445 * available to poll active file descriptors. You may safely
446 * include <poll.h> when this symbol is defined.
448 #$d_poll HAS_POLL /**/
451 * This symbol, if defined, indicates that the readdir routine is
452 * available to read directory entries. You may have to include
453 * <dirent.h>. See I_DIRENT.
455 #$d_readdir HAS_READDIR /**/
458 * This symbol, if defined, indicates that the seekdir routine is
459 * available. You may have to include <dirent.h>. See I_DIRENT.
461 #$d_seekdir HAS_SEEKDIR /**/
464 * This symbol, if defined, indicates that the telldir routine is
465 * available. You may have to include <dirent.h>. See I_DIRENT.
467 #$d_telldir HAS_TELLDIR /**/
470 * This symbol, if defined, indicates that the rewinddir routine is
471 * available. You may have to include <dirent.h>. See I_DIRENT.
473 #$d_rewinddir HAS_REWINDDIR /**/
476 * This symbol, if defined, indicates that the readlink routine is
477 * available to read the value of a symbolic link.
479 #$d_readlink HAS_READLINK /**/
482 * This symbol, if defined, indicates that the rename routine is available
483 * to rename files. Otherwise you should do the unlink(), link(), unlink()
486 #$d_rename HAS_RENAME /**/
489 * This symbol, if defined, indicates that the rmdir routine is
490 * available to remove directories. Otherwise you should fork off a
491 * new process to exec /bin/rmdir.
493 #$d_rmdir HAS_RMDIR /**/
496 * This symbol, if defined, indicates that the select routine is
497 * available to select active file descriptors. If the timeout field
498 * is used, <sys/time.h> may need to be included.
500 #$d_select HAS_SELECT /**/
503 * This symbol, if defined, indicates that the setegid routine is available
504 * to change the effective gid of the current program.
506 #$d_setegid HAS_SETEGID /**/
509 * This symbol, if defined, indicates that the seteuid routine is available
510 * to change the effective uid of the current program.
512 #$d_seteuid HAS_SETEUID /**/
515 * This symbol, if defined, indicates that the setlinebuf routine is
516 * available to change stderr or stdout from block-buffered or unbuffered
517 * to a line-buffered mode.
519 #$d_setlinebuf HAS_SETLINEBUF /**/
522 * This symbol, if defined, indicates that the setlocale routine is
523 * available to handle locale-specific ctype implementations.
525 #$d_setlocale HAS_SETLOCALE /**/
528 * This symbol, if defined, indicates that the setpgid(pid, gpid)
529 * routine is available to set process group ID.
531 #$d_setpgid HAS_SETPGID /**/
534 * This symbol, if defined, indicates that the setpgrp routine is
535 * available to set the current process group.
538 * This symbol, if defined, indicates that setpgrp needs two
539 * arguments whereas USG one needs none. See also HAS_SETPGID
540 * for a POSIX interface.
542 #$d_setpgrp HAS_SETPGRP /**/
543 #$d_bsdsetpgrp USE_BSD_SETPGRP /**/
546 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
547 * routine is available to set the current process group.
549 #$d_setpgrp2 HAS_SETPGRP2 /**/
552 * This symbol, if defined, indicates that the setpriority routine is
553 * available to set a process's priority.
555 #$d_setprior HAS_SETPRIORITY /**/
558 * This symbol, if defined, indicates that the setregid routine is
559 * available to change the real and effective gid of the current
563 * This symbol, if defined, indicates that the setresgid routine is
564 * available to change the real, effective and saved gid of the current
567 #$d_setregid HAS_SETREGID /**/
568 #$d_setresgid HAS_SETRESGID /**/
571 * This symbol, if defined, indicates that the setreuid routine is
572 * available to change the real and effective uid of the current
576 * This symbol, if defined, indicates that the setresuid routine is
577 * available to change the real, effective and saved uid of the current
580 #$d_setreuid HAS_SETREUID /**/
581 #$d_setresuid HAS_SETRESUID /**/
584 * This symbol, if defined, indicates that the setrgid routine is available
585 * to change the real gid of the current program.
587 #$d_setrgid HAS_SETRGID /**/
590 * This symbol, if defined, indicates that the setruid routine is available
591 * to change the real uid of the current program.
593 #$d_setruid HAS_SETRUID /**/
596 * This symbol, if defined, indicates that the setsid routine is
597 * available to set the process group ID.
599 #$d_setsid HAS_SETSID /**/
602 * This symbol holds the return type of the shmat() system call.
603 * Usually set to 'void *' or 'char *'.
605 /* HAS_SHMAT_PROTOTYPE:
606 * This symbol, if defined, indicates that the sys/shm.h includes
607 * a prototype for shmat(). Otherwise, it is up to the program to
608 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
609 * but not always right so it should be emitted by the program only
610 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
612 #define Shmat_t $shmattype /**/
613 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
616 * This symbol is defined to indicate that the strchr()/strrchr()
617 * functions are available for string searching. If not, try the
618 * index()/rindex() pair.
621 * This symbol is defined to indicate that the index()/rindex()
622 * functions are available for string searching.
624 #$d_strchr HAS_STRCHR /**/
625 #$d_index HAS_INDEX /**/
628 * This symbol, if defined, indicates that the strcoll routine is
629 * available to compare strings using collating information.
631 #$d_strcoll HAS_STRCOLL /**/
634 * This symbol, if defined, indicates that this C compiler knows how
635 * to copy structures. If undefined, you'll need to use a block copy
636 * routine of some sort instead.
638 #$d_strctcpy USE_STRUCT_COPY /**/
641 * This symbol, if defined, indicates that the strtod routine is
642 * available to provide better numeric string conversion than atof().
644 #$d_strtod HAS_STRTOD /**/
647 * This symbol, if defined, indicates that the strtol routine is available
648 * to provide better numeric string conversion than atoi() and friends.
650 #$d_strtol HAS_STRTOL /**/
653 * This symbol, if defined, indicates that the strtoul routine is
654 * available to provide conversion of strings to unsigned long.
656 #$d_strtoul HAS_STRTOUL /**/
659 * This symbol, if defined, indicates that the strxfrm() routine is
660 * available to transform strings.
662 #$d_strxfrm HAS_STRXFRM /**/
665 * This symbol, if defined, indicates that the symlink routine is available
666 * to create symbolic links.
668 #$d_symlink HAS_SYMLINK /**/
671 * This symbol, if defined, indicates that the syscall routine is
672 * available to call arbitrary system calls. If undefined, that's tough.
674 #$d_syscall HAS_SYSCALL /**/
677 * This symbol, if defined, indicates that sysconf() is available
678 * to determine system related limits and options.
680 #$d_sysconf HAS_SYSCONF /**/
683 * This symbol, if defined, indicates that the system routine is
684 * available to issue a shell command.
686 #$d_system HAS_SYSTEM /**/
689 * This symbol, if defined, indicates that the tcgetpgrp routine is
690 * available to get foreground process group ID.
692 #$d_tcgetpgrp HAS_TCGETPGRP /**/
695 * This symbol, if defined, indicates that the tcsetpgrp routine is
696 * available to set foreground process group ID.
698 #$d_tcsetpgrp HAS_TCSETPGRP /**/
701 * This symbol, if defined, indicates that the truncate routine is
702 * available to truncate files.
704 #$d_truncate HAS_TRUNCATE /**/
707 * This symbol, if defined, indicates that the tzname[] array is
708 * available to access timezone names.
710 #$d_tzname HAS_TZNAME /**/
713 * This symbol, if defined, indicates that the umask routine is
714 * available to set and get the value of the file creation mask.
716 #$d_umask HAS_UMASK /**/
719 * This symbol, if defined, indicates that vfork() exists.
721 #$d_vfork HAS_VFORK /**/
724 * This symbol, if defined, indicates that this C compiler knows about
725 * the volatile declaration.
727 #$d_volatile HASVOLATILE /**/
733 * This symbol, if defined, indicates that wait4() exists.
735 #$d_wait4 HAS_WAIT4 /**/
738 * This symbol, if defined, indicates that the waitpid routine is
739 * available to wait for child process.
741 #$d_waitpid HAS_WAITPID /**/
744 * This symbol, if defined, indicates that the wcstombs routine is
745 * available to convert wide character strings to multibyte strings.
747 #$d_wcstombs HAS_WCSTOMBS /**/
750 * This symbol, if defined, indicates that the wctomb routine is available
751 * to covert a wide character to a multibyte.
753 #$d_wctomb HAS_WCTOMB /**/
756 * This symbol, if defined, indicates to the C program that it should
757 * include <arpa/inet.h> to get inet_addr and friends declarations.
759 #$i_arpainet I_ARPA_INET /**/
762 * This symbol, if defined, indicates that <dbm.h> exists and should
766 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
767 * should be included.
770 #$i_rpcsvcdbm I_RPCSVC_DBM /**/
773 * This symbol, if defined, indicates to the C program that it should
774 * include <dirent.h>. Using this symbol also triggers the definition
775 * of the Direntry_t define which ends up being 'struct dirent' or
776 * 'struct direct' depending on the availability of <dirent.h>.
779 * This symbol, if defined, indicates to the C program that the length
780 * of directory entry names is provided by a d_namlen field. Otherwise
781 * you need to do strlen() on the d_name field.
784 * This symbol is set to 'struct direct' or 'struct dirent' depending on
785 * whether dirent is available or not. You should use this pseudo type to
786 * portably declare your directory entries.
788 #$i_dirent I_DIRENT /**/
789 #$d_dirnamlen DIRNAMLEN /**/
790 #define Direntry_t $direntrytype
793 * This symbol, if defined, indicates that <dlfcn.h> exists and should
796 #$i_dlfcn I_DLFCN /**/
799 * This manifest constant tells the C program to include <fcntl.h>.
801 #$i_fcntl I_FCNTL /**/
804 * This symbol, if defined, indicates to the C program that it should
805 * include <float.h> to get definition of symbols like DBL_MAX or
806 * DBL_MIN, i.e. machine dependent floating point values.
808 #$i_float I_FLOAT /**/
811 * This symbol, if defined, indicates to the C program that it should
812 * include <limits.h> to get definition of symbols like WORD_BIT or
813 * LONG_MAX, i.e. machine dependant limitations.
815 #$i_limits I_LIMITS /**/
818 * This symbol, if defined, indicates to the C program that it should
819 * include <locale.h>.
821 #$i_locale I_LOCALE /**/
824 * This symbol, if defined, indicates to the C program that it should
830 * This symbol, if defined, indicates to the C program that it should
831 * include <memory.h>.
833 #$i_memory I_MEMORY /**/
836 * This symbol, if defined, indicates that <ndbm.h> exists and should
842 * This symbol, if defined, indicates that <net/errno.h> exists and
843 * should be included.
845 #$i_neterrno I_NET_ERRNO /**/
848 * This symbol, if defined, indicates to the C program that it should
849 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
851 #$i_niin I_NETINET_IN /**/
854 * This symbol, if defined, indicates to the C program that it should
860 * This symbol, if defined, indicates that <stddef.h> exists and should
863 #$i_stddef I_STDDEF /**/
866 * This symbol, if defined, indicates that <stdlib.h> exists and should
869 #$i_stdlib I_STDLIB /**/
872 * This symbol, if defined, indicates to the C program that it should
873 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
875 #$i_string I_STRING /**/
878 * This symbol, if defined, indicates to the C program that it should
879 * include <sys/dir.h>.
881 #$i_sysdir I_SYS_DIR /**/
884 * This symbol, if defined, indicates to the C program that it should
885 * include <sys/file.h> to get definition of R_OK and friends.
887 #$i_sysfile I_SYS_FILE /**/
890 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
891 * be included. Otherwise, include <sgtty.h> or <termio.h>.
893 #$i_sysioctl I_SYS_IOCTL /**/
896 * This symbol, if defined, indicates to the C program that it should
897 * include <sys/ndir.h>.
899 #$i_sysndir I_SYS_NDIR /**/
902 * This symbol, if defined, indicates to the C program that it should
903 * include <sys/param.h>.
905 #$i_sysparam I_SYS_PARAM /**/
908 * This symbol, if defined, indicates to the C program that it should
909 * include <sys/resource.h>.
911 #$i_sysresrc I_SYS_RESOURCE /**/
914 * This symbol, if defined, indicates to the C program that it should
915 * include <sys/select.h> in order to get definition of struct timeval.
917 #$i_sysselct I_SYS_SELECT /**/
920 * This symbol, if defined, indicates to the C program that it should
921 * include <sys/stat.h>.
923 #$i_sysstat I_SYS_STAT /**/
926 * This symbol, if defined, indicates to the C program that it should
927 * include <sys/times.h>.
929 #$i_systimes I_SYS_TIMES /**/
932 * This symbol, if defined, indicates to the C program that it should
933 * include <sys/types.h>.
935 #$i_systypes I_SYS_TYPES /**/
938 * This symbol, if defined, indicates to the C program that it should
939 * include <sys/un.h> to get UNIX domain socket definitions.
941 #$i_sysun I_SYS_UN /**/
944 * This symbol, if defined, indicates to the C program that it should
945 * include <sys/wait.h>.
947 #$i_syswait I_SYS_WAIT /**/
950 * This symbol, if defined, indicates that the program should include
951 * <termio.h> rather than <sgtty.h>. There are also differences in
952 * the ioctl() calls that depend on the value of this symbol.
955 * This symbol, if defined, indicates that the program should include
956 * the POSIX termios.h rather than sgtty.h or termio.h.
957 * There are also differences in the ioctl() calls that depend on the
958 * value of this symbol.
961 * This symbol, if defined, indicates that the program should include
962 * <sgtty.h> rather than <termio.h>. There are also differences in
963 * the ioctl() calls that depend on the value of this symbol.
965 #$i_termio I_TERMIO /**/
966 #$i_termios I_TERMIOS /**/
967 #$i_sgtty I_SGTTY /**/
970 * This symbol, if defined, indicates to the C program that it should
971 * include <unistd.h>.
973 #$i_unistd I_UNISTD /**/
976 * This symbol, if defined, indicates to the C program that it should
979 #$i_utime I_UTIME /**/
982 * This symbol, if defined, indicates to the C program that it should
983 * include <values.h> to get definition of symbols like MINFLOAT or
984 * MAXLONG, i.e. machine dependant limitations. Probably, you
985 * should use <limits.h> instead, if it is available.
987 #$i_values I_VALUES /**/
990 * This symbol, if defined, indicates that <stdarg.h> exists and should
994 * This symbol, if defined, indicates to the C program that it should
995 * include <varargs.h>.
997 #$i_stdarg I_STDARG /**/
998 #$i_varargs I_VARARGS /**/
1001 * This symbol, if defined, indicates to the C program that it should
1004 #$i_vfork I_VFORK /**/
1007 * If defined, this macro indicates that the C compiler can handle
1008 * function prototypes.
1011 * This macro is used to declare function parameters for folks who want
1012 * to make declarations with prototypes using a different style than
1013 * the above macros. Use double parentheses. For example:
1015 * int main _((int argc, char *argv[]));
1017 #$prototype CAN_PROTOTYPE /**/
1018 #ifdef CAN_PROTOTYPE
1019 #define _(args) args
1025 * This symbol contains the full pathname to the shell used on this
1026 * on this system to execute Bourne shell scripts. Usually, this will be
1027 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1028 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1031 #define SH_PATH "$sh" /**/
1034 * This symbol is defined to be the type of char used in stdio.h.
1035 * It has the values "unsigned char" or "char".
1037 #define STDCHAR $stdchar /**/
1040 * This symbol, if defined, indicates that the accessx routine is
1041 * available to do extended access checks.
1043 #$d_accessx HAS_ACCESSX /**/
1046 * This symbol, if defined, indicates that the eaccess routine is
1047 * available to do extended access checks.
1049 #$d_eaccess HAS_EACCESS /**/
1052 * This symbol, if defined, indicates to the C program that it should
1053 * include <sys/access.h>.
1055 #$i_sysaccess I_SYS_ACCESS /**/
1058 * This symbol, if defined, indicates to the C program that it should
1059 * include <sys/security.h>.
1061 #$i_syssecrt I_SYS_SECURITY /**/
1064 * This symbol contains the number of bytes required to align a
1065 * double. Usual values are 2, 4 and 8.
1066 * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture
1067 * Binaries (MAB) for targets with varying alignment. This only matters
1068 * for perl, where the config.h can be generated and installed on one
1069 * system, and used by a different architecture to build an extension.
1070 * The default is eight, for safety.
1072 #define MEM_ALIGNBYTES $alignbytes /**/
1075 * This symbol holds the hexadecimal constant defined in byteorder,
1076 * i.e. 0x1234 or 0x4321, etc...
1077 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
1078 * Binaries (MAB) on either big endian or little endian machines.
1079 * The endian-ness is available at compile-time. This only matters
1080 * for perl, where the config.h can be generated and installed on
1081 * one system, and used by a different architecture to build an
1082 * extension. Older versions of NeXT that might not have
1083 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1084 * so the default case (for NeXT) is big endian to catch them.
1085 * This might matter for NeXT 3.0.
1088 #define BYTEORDER 0x$byteorder /* large digits for MSB */
1090 #ifdef __LITTLE_ENDIAN__
1091 #define BYTEORDER 0x1234
1092 #else /* __BIG_ENDIAN__ */
1093 #define BYTEORDER 0x4321
1094 #endif /* ENDIAN CHECK */
1098 * This symbol is defined if the C compiler can cast negative
1099 * or large floating point numbers to 32-bit ints.
1101 #$d_casti32 CASTI32 /**/
1104 * This symbol is defined if the C compiler can cast negative
1105 * numbers to unsigned longs, ints and shorts.
1108 * This symbol contains flags that say what difficulties the compiler
1109 * has casting odd floating values to unsigned long:
1111 * 1 = couldn't cast < 0
1112 * 2 = couldn't cast >= 0x80000000
1113 * 4 = couldn't cast in argument expression list
1115 #$d_castneg CASTNEGFLOAT /**/
1116 #define CASTFLAGS $castflags /**/
1119 * This symbol, if defined, indicates that the closedir() routine
1120 * does not return a value.
1122 #$d_void_closedir VOID_CLOSEDIR /**/
1125 * This preprocessor macro is defined to convert a floating point
1126 * number to a string without a trailing decimal point. This
1127 * emulates the behavior of sprintf("%g"), but is sometimes much more
1128 * efficient. If gconvert() is not available, but gcvt() drops the
1129 * trailing decimal point, then gcvt() is used. If all else fails,
1130 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1131 * macro are: value, number of digits, whether trailing zeros should
1132 * be retained, and the output buffer.
1133 * Possible values are:
1134 * d_Gconvert='gconvert((x),(n),(t),(b))'
1135 * d_Gconvert='gcvt((x),(n),(b))'
1136 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1137 * The last two assume trailing zeros should not be kept.
1139 #define Gconvert(x,n,t,b) $d_Gconvert
1142 * This symbol, if defined, indicates to the C program that
1143 * the GNU C library is being used.
1145 #$d_gnulibc HAS_GNULIBC /**/
1147 * This manifest constant lets the C program know that isascii
1150 #$d_isascii HAS_ISASCII /**/
1153 * This symbol, if defined, indicates that the lchown routine is
1154 * available to operate on a symbolic link (instead of following the
1157 #$d_lchown HAS_LCHOWN /**/
1160 * This manifest constant lets the C program know that the three
1161 * argument form of open(2) is available.
1163 #$d_open3 HAS_OPEN3 /**/
1166 * This symbol, if defined, indicates that the bcopy routine is available
1167 * to copy potentially overlapping memory blocks. Otherwise you should
1168 * probably use memmove() or memcpy(). If neither is defined, roll your
1171 #$d_safebcpy HAS_SAFE_BCOPY /**/
1174 * This symbol, if defined, indicates that the memcpy routine is available
1175 * to copy potentially overlapping memory blocks. Otherwise you should
1176 * probably use memmove() or memcpy(). If neither is defined, roll your
1179 #$d_safemcpy HAS_SAFE_MEMCPY /**/
1182 * This symbol, if defined, indicates that the memcmp routine is available
1183 * and can be used to compare relative magnitudes of chars with their high
1184 * bits set. If it is not defined, roll your own version.
1186 #$d_sanemcmp HAS_SANE_MEMCMP /**/
1189 * This symbol, if defined, indicates that Vr4's sigaction() routine
1192 #$d_sigaction HAS_SIGACTION /**/
1195 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
1198 * This macro is used in the same way as sigsetjmp(), but will invoke
1199 * traditional setjmp() if sigsetjmp isn't available.
1200 * See HAS_SIGSETJMP.
1203 * This macro is used in the same way as siglongjmp(), but will invoke
1204 * traditional longjmp() if siglongjmp isn't available.
1205 * See HAS_SIGSETJMP.
1207 #$d_sigsetjmp HAS_SIGSETJMP /**/
1208 #ifdef HAS_SIGSETJMP
1209 #define Sigjmp_buf sigjmp_buf
1210 #define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1211 #define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1213 #define Sigjmp_buf jmp_buf
1214 #define Sigsetjmp(buf,save_mask) setjmp((buf))
1215 #define Siglongjmp(buf,retval) longjmp((buf),(retval))
1219 * This symbol is defined if the _ptr and _cnt fields (or similar)
1220 * of the stdio FILE structure can be used to access the stdio buffer
1221 * for a file handle. If this is defined, then the FILE_ptr(fp)
1222 * and FILE_cnt(fp) macros will also be defined and should be used
1223 * to access these fields.
1226 * This macro is used to access the _ptr field (or equivalent) of the
1227 * FILE structure pointed to by its argument. This macro will always be
1228 * defined if USE_STDIO_PTR is defined.
1230 /* STDIO_PTR_LVALUE:
1231 * This symbol is defined if the FILE_ptr macro can be used as an
1235 * This macro is used to access the _cnt field (or equivalent) of the
1236 * FILE structure pointed to by its argument. This macro will always be
1237 * defined if USE_STDIO_PTR is defined.
1239 /* STDIO_CNT_LVALUE:
1240 * This symbol is defined if the FILE_cnt macro can be used as an
1243 #$d_stdstdio USE_STDIO_PTR /**/
1244 #ifdef USE_STDIO_PTR
1245 #define FILE_ptr(fp) $stdio_ptr
1246 #$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1247 #define FILE_cnt(fp) $stdio_cnt
1248 #$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1252 * This symbol is defined if the _base field (or similar) of the
1253 * stdio FILE structure can be used to access the stdio buffer for
1254 * a file handle. If this is defined, then the FILE_base(fp) macro
1255 * will also be defined and should be used to access this field.
1256 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1257 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1258 * will never be defined unless USE_STDIO_PTR is.
1261 * This macro is used to access the _base field (or equivalent) of the
1262 * FILE structure pointed to by its argument. This macro will always be
1263 * defined if USE_STDIO_BASE is defined.
1266 * This macro is used to determine the number of bytes in the I/O
1267 * buffer pointed to by _base field (or equivalent) of the FILE
1268 * structure pointed to its argument. This macro will always be defined
1269 * if USE_STDIO_BASE is defined.
1271 #$d_stdiobase USE_STDIO_BASE /**/
1272 #ifdef USE_STDIO_BASE
1273 #define FILE_base(fp) $stdio_base
1274 #define FILE_bufsiz(fp) $stdio_bufsiz
1278 * This symbol, if defined, indicates that the vprintf routine is available
1279 * to printf with a pointer to an argument list. If unavailable, you
1280 * may need to write your own, probably in terms of _doprnt().
1282 /* USE_CHAR_VSPRINTF:
1283 * This symbol is defined if this system has vsprintf() returning type
1284 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1285 * is up to the package author to declare vsprintf correctly based on the
1288 #$d_vprintf HAS_VPRINTF /**/
1289 #$d_charvspr USE_CHAR_VSPRINTF /**/
1292 * This symbol contains the size of a double, so that the C preprocessor
1293 * can make decisions based on it.
1295 #define DOUBLESIZE $doublesize /**/
1298 * This symbol, if defined, indicates to the C program that it should
1302 * This symbol, if defined, indicates to the C program that it should
1303 * include <sys/time.h>.
1305 /* I_SYS_TIME_KERNEL:
1306 * This symbol, if defined, indicates to the C program that it should
1307 * include <sys/time.h> with KERNEL defined.
1309 #$i_time I_TIME /**/
1310 #$i_systime I_SYS_TIME /**/
1311 #$i_systimek I_SYS_TIME_KERNEL /**/
1314 * This symbol contains the value of sizeof(int) so that the C
1315 * preprocessor can make decisions based on it.
1318 * This symbol contains the value of sizeof(long) so that the C
1319 * preprocessor can make decisions based on it.
1322 * This symbol contains the value of sizeof(short) so that the C
1323 * preprocessor can make decisions based on it.
1325 #define INTSIZE $intsize /**/
1326 #define LONGSIZE $longsize /**/
1327 #define SHORTSIZE $shortsize /**/
1330 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1331 * non-blocking I/O for the file descriptor. Note that there is no way
1332 * back, i.e. you cannot turn it blocking again this way. If you wish to
1333 * alternatively switch between blocking and non-blocking, use the
1334 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1337 * This symbol holds the errno error code set by read() when no data was
1338 * present on the non-blocking file descriptor.
1341 * This symbol holds the return code from read() when no data is present
1342 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1343 * not defined, then you can't distinguish between no data and EOF by
1344 * issuing a read(). You'll have to find another way to tell for sure!
1347 * This symbol, if defined, indicates to the C program that a read() on
1348 * a non-blocking file descriptor will return 0 on EOF, and not the value
1349 * held in RD_NODATA (-1 usually, in that case!).
1351 #define VAL_O_NONBLOCK $o_nonblock
1352 #define VAL_EAGAIN $eagain
1353 #define RD_NODATA $rd_nodata
1354 #$d_eofnblk EOF_NONBLOCK
1357 * This symbol contains the size of a pointer, so that the C preprocessor
1358 * can make decisions based on it. It will be sizeof(void *) if
1359 * the compiler supports (void *); otherwise it will be
1362 #define PTRSIZE $ptrsize /**/
1365 * This macro is to be used to generate uniformly distributed
1366 * random numbers over the range [0., 1.[. You may have to supply
1367 * an 'extern double drand48();' in your program since SunOS 4.1.3
1368 * doesn't provide you with anything relevant in it's headers.
1369 * See HAS_DRAND48_PROTO.
1372 * This symbol defines the type of the argument of the
1373 * random seed function.
1376 * This symbol defines the macro to be used in seeding the
1377 * random number generator (see Drand01).
1380 * This symbol indicates how many bits are produced by the
1381 * function used to generate normalized random numbers.
1382 * Values include 15, 16, 31, and 48.
1384 #define Drand01() $drand01 /**/
1385 #define Rand_seed_t $randseedtype /**/
1386 #define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
1387 #define RANDBITS $randbits /**/
1390 * This symbol holds the type used by functions that return
1391 * a count of bytes or an error condition. It must be a signed type.
1392 * It is usually ssize_t, but may be long or int, etc.
1393 * It may be necessary to include <sys/types.h> or <unistd.h>
1394 * to get any typedef'ed information.
1395 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1397 #define SSize_t $ssizetype /* signed count of bytes */
1400 * This symbol, if defined, indicates that this system uses
1403 #$ebcdic EBCDIC /**/
1406 * This symbol contains the name of the operating system, as determined
1407 * by Configure. You shouldn't rely on it too much; the specific
1408 * feature tests from Configure are generally more reliable.
1410 #define OSNAME "$osname" /**/
1413 * This macro catenates 2 tokens together.
1416 * This macro surrounds its token with double quotes.
1419 #define CAT2(a,b)a/**/b
1420 #define STRINGIFY(a)"a"
1421 /* If you can get stringification with catify, tell me how! */
1423 #if $cpp_stuff == 42
1424 #define CAT2(a,b)a ## b
1425 #define StGiFy(a)# a
1426 #define STRINGIFY(a)StGiFy(a)
1428 #if $cpp_stuff != 1 && $cpp_stuff != 42
1429 #include "Bletch: How does this C preprocessor catenate tokens?"
1433 * This manifest constant lets the C program know that the access()
1434 * system call is available to check for accessibility using real UID/GID.
1435 * (always present on UNIX.)
1437 #$d_access HAS_ACCESS /**/
1440 * This symbol, if defined, contains the full pathname of csh.
1442 #$d_csh HAS_CSH /**/
1444 #define CSH "$full_csh" /**/
1448 * This symbol, if defined, indicates that the getgrent routine is
1449 * available for finalizing sequential access of the group database.
1451 #$d_endgrent HAS_ENDGRENT /**/
1454 * This symbol, if defined, indicates that the endhostent() routine is
1455 * available to close whatever was being used for host queries.
1457 #$d_endhent HAS_ENDHOSTENT /**/
1460 * This symbol, if defined, indicates that the endnetent() routine is
1461 * available to close whatever was being used for network queries.
1463 #$d_endnent HAS_ENDNETENT /**/
1466 * This symbol, if defined, indicates that the endprotoent() routine is
1467 * available to close whatever was being used for protocol queries.
1469 #$d_endpent HAS_ENDPROTOENT /**/
1472 * This symbol, if defined, indicates that the getgrent routine is
1473 * available for finalizing sequential access of the passwd database.
1475 #$d_endpwent HAS_ENDPWENT /**/
1478 * This symbol, if defined, indicates that the endservent() routine is
1479 * available to close whatever was being used for service queries.
1481 #$d_endsent HAS_ENDSERVENT /**/
1484 * This symbol, if defined, indicates that the getgrent routine is
1485 * available for sequential access of the group database.
1487 #$d_getgrent HAS_GETGRENT /**/
1489 /* HAS_GETHOSTBYADDR:
1490 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1491 * available to look up hosts by their IP addresses.
1493 #$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1495 /* HAS_GETHOSTBYNAME:
1496 * This symbol, if defined, indicates that the gethostbyname() routine is
1497 * available to look up host names in some data base or other.
1499 #$d_gethbyname HAS_GETHOSTBYNAME /**/
1502 * This symbol, if defined, indicates that the gethostent() routine is
1503 * available to look up host names in some data base or another.
1505 #$d_gethent HAS_GETHOSTENT /**/
1507 /* HAS_GETNETBYADDR:
1508 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1509 * available to look up networks by their IP addresses.
1511 #$d_getnbyaddr HAS_GETNETBYADDR /**/
1513 /* HAS_GETNETBYNAME:
1514 * This symbol, if defined, indicates that the getnetbyname() routine is
1515 * available to look up networks by their names.
1517 #$d_getnbyname HAS_GETNETBYNAME /**/
1520 * This symbol, if defined, indicates that the getnetent() routine is
1521 * available to look up network names in some data base or another.
1523 #$d_getnent HAS_GETNETENT /**/
1526 * This symbol, if defined, indicates that the getprotoent() routine is
1527 * available to look up protocols in some data base or another.
1529 #$d_getpent HAS_GETPROTOENT /**/
1531 /* HAS_GETPROTOBYNAME:
1532 * This symbol, if defined, indicates that the getprotobyname()
1533 * routine is available to look up protocols by their name.
1535 /* HAS_GETPROTOBYNUMBER:
1536 * This symbol, if defined, indicates that the getprotobynumber()
1537 * routine is available to look up protocols by their number.
1539 #$d_getpbyname HAS_GETPROTOBYNAME /**/
1540 #$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1543 * This symbol, if defined, indicates that the getpwent routine is
1544 * available for sequential access of the passwd database.
1545 * If this is not available, the older getpw() function may be available.
1547 #$d_getpwent HAS_GETPWENT /**/
1550 * This symbol, if defined, indicates that the getservent() routine is
1551 * available to look up network services in some data base or another.
1553 #$d_getsent HAS_GETSERVENT /**/
1555 /* HAS_GETSERVBYNAME:
1556 * This symbol, if defined, indicates that the getservbyname()
1557 * routine is available to look up services by their name.
1559 /* HAS_GETSERVBYPORT:
1560 * This symbol, if defined, indicates that the getservbyport()
1561 * routine is available to look up services by their port.
1563 #$d_getsbyname HAS_GETSERVBYNAME /**/
1564 #$d_getsbyport HAS_GETSERVBYPORT /**/
1567 * This symbol, if defined, indicates that the htonl() routine (and
1568 * friends htons() ntohl() ntohs()) are available to do network
1569 * order byte swapping.
1572 * This symbol, if defined, indicates that the htons() routine (and
1573 * friends htonl() ntohl() ntohs()) are available to do network
1574 * order byte swapping.
1577 * This symbol, if defined, indicates that the ntohl() routine (and
1578 * friends htonl() htons() ntohs()) are available to do network
1579 * order byte swapping.
1582 * This symbol, if defined, indicates that the ntohs() routine (and
1583 * friends htonl() htons() ntohl()) are available to do network
1584 * order byte swapping.
1586 #$d_htonl HAS_HTONL /**/
1587 #$d_htonl HAS_HTONS /**/
1588 #$d_htonl HAS_NTOHL /**/
1589 #$d_htonl HAS_NTOHS /**/
1592 * This symbol will be defined if the C compiler supports long
1596 * This symbol contains the size of a long double, so that the
1597 * C preprocessor can make decisions based on it. It is only
1598 * defined if the system supports long doubles.
1600 #$d_longdbl HAS_LONG_DOUBLE /**/
1601 #ifdef HAS_LONG_DOUBLE
1602 #define LONG_DOUBLESIZE $longdblsize /**/
1606 * This symbol will be defined if the C compiler supports long long.
1609 * This symbol contains the size of a long long, so that the
1610 * C preprocessor can make decisions based on it. It is only
1611 * defined if the system supports long long.
1613 #$d_longlong HAS_LONG_LONG /**/
1614 #ifdef HAS_LONG_LONG
1615 #define LONGLONGSIZE $longlongsize /**/
1619 * This symbol, if defined, indicates that the entire msg*(2) library is
1620 * supported (IPC mechanism based on message queues).
1622 #$d_msg HAS_MSG /**/
1625 * This symbol, if defined, indicates that the entire sem*(2) library is
1628 #$d_sem HAS_SEM /**/
1631 * This symbol, if defined, indicates that the setgrent routine is
1632 * available for initializing sequential access of the group database.
1634 #$d_setgrent HAS_SETGRENT /**/
1637 * This symbol, if defined, indicates that the setgroups() routine is
1638 * available to set the list of process groups. If unavailable, multiple
1639 * groups are probably not supported.
1641 #$d_setgrps HAS_SETGROUPS /**/
1644 * This symbol, if defined, indicates that the sethostent() routine is
1647 #$d_sethent HAS_SETHOSTENT /**/
1650 * This symbol, if defined, indicates that the setnetent() routine is
1653 #$d_setnent HAS_SETNETENT /**/
1656 * This symbol, if defined, indicates that the setprotoent() routine is
1659 #$d_setpent HAS_SETPROTOENT /**/
1662 * This symbol, if defined, indicates that the setpwent routine is
1663 * available for initializing sequential access of the passwd database.
1665 #$d_setpwent HAS_SETPWENT /**/
1668 * This symbol, if defined, indicates that the setservent() routine is
1671 #$d_setsent HAS_SETSERVENT /**/
1674 * This symbol, if defined, indicates that the setvbuf routine is
1675 * available to change buffering on an open stdio stream.
1676 * to a line-buffered mode.
1678 #$d_setvbuf HAS_SETVBUF /**/
1681 * This symbol, if defined, indicates that the entire shm*(2) library is
1684 #$d_shm HAS_SHM /**/
1687 * This symbol, if defined, indicates that the BSD socket interface is
1691 * This symbol, if defined, indicates that the BSD socketpair() call is
1694 #$d_socket HAS_SOCKET /**/
1695 #$d_sockpair HAS_SOCKETPAIR /**/
1698 * This symbol is defined if this system has a stat structure declaring
1699 * st_blksize and st_blocks.
1701 #$d_statblks USE_STAT_BLOCKS /**/
1704 * This symbol, if defined, indicates that the strerror routine is
1705 * available to translate error numbers to strings. See the writeup
1706 * of Strerror() in this file before you try to define your own.
1709 * This symbol, if defined, indicates that the sys_errlist array is
1710 * available to translate error numbers to strings. The extern int
1711 * sys_nerr gives the size of that table.
1714 * This preprocessor symbol is defined as a macro if strerror() is
1715 * not available to translate error numbers to strings but sys_errlist[]
1718 #$d_strerror HAS_STRERROR /**/
1719 #$d_syserrlst HAS_SYS_ERRLIST /**/
1720 #define Strerror(e) $d_strerrm
1723 * This symbol, if defined, indicates that the union semun is
1724 * defined by including <sys/sem.h>. If not, the user code
1725 * probably needs to define it as:
1728 * struct semid_ds *buf;
1729 * unsigned short *array;
1732 /* USE_SEMCTL_SEMUN:
1733 * This symbol, if defined, indicates that union semun is
1734 * used for semctl IPC_STAT.
1736 /* USE_SEMCTL_SEMID_DS:
1737 * This symbol, if defined, indicates that struct semid_ds * is
1738 * used for semctl IPC_STAT.
1740 #$d_union_semun HAS_UNION_SEMUN /**/
1741 #$d_semctl_semun USE_SEMCTL_SEMUN /**/
1742 #$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
1745 * This symbol's value is either "void" or "int", corresponding to the
1746 * appropriate return type of a signal handler. Thus, you can declare
1747 * a signal handler using "Signal_t (*handler)()", and define the
1748 * handler using "Signal_t handler(sig)".
1750 #define Signal_t $signal_t /* Signal handler's return type */
1753 * This symbol holds the type used for the second argument to
1754 * getgroups() and setgropus(). Usually, this is the same as
1755 * gidtype (gid_t) , but sometimes it isn't.
1756 * It can be int, ushort, uid_t, etc...
1757 * It may be necessary to include <sys/types.h> to get any
1758 * typedef'ed information. This is only required if you have
1759 * getgroups() or setgropus()..
1761 #if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1762 #define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
1766 * This symbol, if defined, indicates to the C program that it should
1770 * This symbol, if defined, indicates to the C program that struct group
1771 * in <grp.h> contains gr_passwd.
1774 #$d_grpasswd GRPASSWD /**/
1777 * This symbol, if defined, indicates that <netdb.h> exists and
1778 * should be included.
1780 #$i_netdb I_NETDB /**/
1783 * This symbol, if defined, indicates to the C program that it should
1787 * This symbol, if defined, indicates to the C program that struct passwd
1788 * contains pw_quota.
1791 * This symbol, if defined, indicates to the C program that struct passwd
1795 * This symbol, if defined, indicates to the C program that struct passwd
1796 * contains pw_change.
1799 * This symbol, if defined, indicates to the C program that struct passwd
1800 * contains pw_class.
1803 * This symbol, if defined, indicates to the C program that struct passwd
1804 * contains pw_expire.
1807 * This symbol, if defined, indicates to the C program that struct passwd
1808 * contains pw_comment.
1811 * This symbol, if defined, indicates to the C program that struct passwd
1812 * contains pw_gecos.
1815 * This symbol, if defined, indicates to the C program that struct passwd
1816 * contains pw_passwd.
1819 #$d_pwquota PWQUOTA /**/
1820 #$d_pwage PWAGE /**/
1821 #$d_pwchange PWCHANGE /**/
1822 #$d_pwclass PWCLASS /**/
1823 #$d_pwexpire PWEXPIRE /**/
1824 #$d_pwcomment PWCOMMENT /**/
1825 #$d_pwgecos PWGECOS /**/
1826 #$d_pwpasswd PWPASSWD /**/
1829 * This variable contains the return type of free(). It is usually
1830 * void, but occasionally int.
1833 * This symbol is the type of pointer returned by malloc and realloc.
1835 #define Malloc_t $malloctype /**/
1836 #define Free_t $freetype /**/
1839 * This symbol, if defined, indicates that we're using our own malloc.
1841 #$d_mymalloc MYMALLOC /**/
1844 * This symbol contains a list of signal names in order of
1845 * signal number. This is intended
1846 * to be used as a static array initialization, like this:
1847 * char *sig_name[] = { SIG_NAME };
1848 * The signals in the list are separated with commas, and each signal
1849 * is surrounded by double quotes. There is no leading SIG in the signal
1850 * name, i.e. SIGQUIT is known as "QUIT".
1851 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1852 * etc., where nn is the actual signal number (e.g. NUM37).
1853 * The signal number for sig_name[i] is stored in sig_num[i].
1854 * The last element is 0 to terminate the list with a NULL. This
1855 * corresponds to the 0 at the end of the sig_num list.
1858 * This symbol contains a list of signal numbers, in the same order as the
1859 * SIG_NAME list. It is suitable for static array initialization, as in:
1860 * int sig_num[] = { SIG_NUM };
1861 * The signals in the list are separated with commas, and the indices
1862 * within that list and the SIG_NAME list match, so it's easy to compute
1863 * the signal name from a number or vice versa at the price of a small
1864 * dynamic linear lookup.
1865 * Duplicates are allowed, but are moved to the end of the list.
1866 * The signal number corresponding to sig_name[i] is sig_number[i].
1867 * if (i < NSIG) then sig_number[i] == i.
1868 * The last element is 0, corresponding to the 0 at the end of
1869 * the sig_name list.
1871 #define SIG_NAME $sig_name_init /**/
1872 #define SIG_NUM $sig_num /**/
1875 * This symbol indicates how much support of the void type is given by this
1876 * compiler. What various bits mean:
1878 * 1 = supports declaration of void
1879 * 2 = supports arrays of pointers to functions returning void
1880 * 4 = supports comparisons between pointers to void functions and
1881 * addresses of void functions
1882 * 8 = suports declaration of generic void pointers
1884 * The package designer should define VOIDUSED to indicate the requirements
1885 * of the package. This can be done either by #defining VOIDUSED before
1886 * including config.h, or by defining defvoidused in Myinit.U. If the
1887 * latter approach is taken, only those flags will be tested. If the
1888 * level of void support necessary is not present, defines void to int.
1891 #define VOIDUSED $defvoidused
1893 #define VOIDFLAGS $voidflags
1894 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1895 #define void int /* is void to be avoided? */
1896 #define M_VOID /* Xenix strikes again */
1900 * This variable, if defined, holds the name of the directory in
1901 * which the user wants to put architecture-dependent public
1902 * library files for $package. It is most often a local directory
1903 * such as /usr/local/lib. Programs using this variable must be
1904 * prepared to deal with filename expansion. If ARCHLIB is the
1905 * same as PRIVLIB, it is not defined, since presumably the
1906 * program already searches PRIVLIB.
1909 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1910 * in programs that are not prepared to deal with ~ expansion at run-time.
1912 #$d_archlib ARCHLIB "$archlib" /**/
1913 #$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1915 /* DLSYM_NEEDS_UNDERSCORE:
1916 * This symbol, if defined, indicates that we need to prepend an
1917 * underscore to the symbol name before calling dlsym(). This only
1918 * makes sense if you *have* dlsym, which we will presume is the
1919 * case if you're using dl_dlopen.xs.
1921 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1924 * This symbol, if defined, indicates that the fseeko routine is
1925 * available to fseek beyond 32 bits (useful for ILP32 hosts).
1927 #$d_fseeko HAS_FSEEKO /**/
1930 * This symbol, if defined, indicates that the ftello routine is
1931 * available to ftell from beyond 32 bits (useful for ILP32 hosts).
1933 #$d_ftello HAS_FTELLO /**/
1936 * This symbol, if defined, indicates that sfio should
1939 #$d_sfio USE_SFIO /**/
1942 * This symbol, if defined, indicates that the dbminit64 routine is
1943 * available to open dbm files larger than 2 gigabytes.
1946 * This symbol, if defined, indicates that the dbmclose64 routine is
1947 * available to close dbm files larger than 2 gigabytes.
1950 * This symbol, if defined, indicates that the fetch64 routine is
1951 * available to fetch from dbm files larger than 2 gigabytes.
1954 * This symbol, if defined, indicates that the store64 routine is
1955 * available to store to dbm files larger than 2 gigabytes.
1958 * This symbol, if defined, indicates that the delete64 routine is
1959 * available to delete from dbm files larger than 2 gigabytes.
1962 * This symbol, if defined, indicates that the firstkey64 routine is
1963 * available to firstkey in dbm files larger than 2 gigabytes.
1966 * This symbol, if defined, indicates that the nextkey64 routine is
1967 * available to nextkey in dbm files larger than 2 gigabytes.
1969 #$d_dbminit64 HAS_DBMINIT64 /**/
1970 #$d_dbmclose64 HAS_DBMCLOSE64 /**/
1971 #$d_fetch64 HAS_FETCH64 /**/
1972 #$d_store64 HAS_STORE64 /**/
1973 #$d_delete64 HAS_DELETE64 /**/
1974 #$d_firstkey64 HAS_FIRSTKEY64 /**/
1975 #$d_nextkey64 HAS_NEXTKEY64 /**/
1977 /* USE_DYNAMIC_LOADING:
1978 * This symbol, if defined, indicates that dynamic loading of
1979 * some sort is available.
1981 #$usedl USE_DYNAMIC_LOADING /**/
1984 * This symbol contains the type of the prefix structure element
1985 * in the <db.h> header file. In older versions of DB, it was
1986 * int, while in newer ones it is u_int32_t.
1989 * This symbol contains the type of the prefix structure element
1990 * in the <db.h> header file. In older versions of DB, it was
1991 * int, while in newer ones it is size_t.
1993 #define DB_Hash_t $db_hashtype /**/
1994 #define DB_Prefix_t $db_prefixtype /**/
1997 * This symbol, if defined, indicates to the C program that it should
1998 * include <inttypes.h>.
2001 * This symbol will defined if the C compiler supports int64_t.
2002 * Usually the <inttypes.h> needs to be included, but sometimes
2003 * <sys/types.h> is enough.
2005 #$i_inttypes I_INTTYPES /**/
2006 #$d_int64t HAS_INT64_T /**/
2009 * This symbol, if defined, indicates that the fstat64 routine is
2010 * available to stat files (fds) larger than 2 gigabytes.
2013 * This symbol, if defined, indicates that the ftruncate64 routine is
2014 * available to tell files larger than 2 gigabytes.
2017 * This symbol, if defined, indicates that the lseek64 routine is
2018 * available to seek files larger than 2 gigabytes.
2021 * This symbol, if defined, indicates that the lstat64 routine is
2022 * available to stat files (symlinks) larger than 2 gigabytes.
2025 * This symbol, if defined, indicates that the open64 routine is
2026 * available to open files larger than 2 gigabytes.
2029 * This symbol, if defined, indicates that the opendir64 routine is
2030 * available to opendir files larger than 2 gigabytes.
2033 * This symbol, if defined, indicates that the readdir64 routine is
2034 * available to readdir files larger than 2 gigabytes.
2037 * This symbol, if defined, indicates that the seekdir64 routine is
2038 * available to seekdir files larger than 2 gigabytes.
2041 * This symbol, if defined, indicates that the stat64 routine is
2042 * available to stat files larger than 2 gigabytes.
2045 * This symbol, if defined, indicates that the telldir64 routine is
2046 * available to telldir files larger than 2 gigabytes.
2049 * This symbol, if defined, indicates that the truncate64 routine is
2050 * available to truncate files larger than 2 gigabytes.
2053 * This symbol will be defined if the C compiler supports off64_t.
2055 /* HAS_STRUCT_DIRENT64:
2056 * This symbol will be defined if the C compiler supports struct dirent64.
2058 #$d_fstat64 HAS_FSTAT64 /**/
2059 #$d_ftruncate64 HAS_FTRUNCATE64 /**/
2060 #$d_lseek64 HAS_LSEEK64 /**/
2061 #$d_lstat64 HAS_LSTAT64 /**/
2062 #$d_open64 HAS_OPEN64 /**/
2063 #$d_opendir64 HAS_OPENDIR64 /**/
2064 #$d_readdir64 HAS_READDIR64 /**/
2065 #$d_seekdir64 HAS_SEEKDIR64 /**/
2066 #$d_stat64 HAS_STAT64 /**/
2067 #$d_telldir64 HAS_TELLDIR64 /**/
2068 #$d_truncate64 HAS_TRUNCATE64 /**/
2069 #$d_off64t HAS_OFF64_T /**/
2070 #$d_dirent64s HAS_STRUCT_DIRENT64 /**/
2073 * This symbol contains the name of the private library for this package.
2074 * The library is private in the sense that it needn't be in anyone's
2075 * execution path, but it should be accessible by the world. The program
2076 * should be prepared to do ~ expansion.
2079 * This symbol contains the ~name expanded version of PRIVLIB, to be used
2080 * in programs that are not prepared to deal with ~ expansion at run-time.
2082 #define PRIVLIB "$privlib" /**/
2083 #define PRIVLIB_EXP "$privlibexp" /**/
2086 * This symbol holds the minimum number of bits operated by select.
2087 * That is, if you do select(n, ...), how many bits at least will be
2088 * cleared in the masks if some activity is detected. Usually this
2089 * is either n or 32*ceil(n/32), especially many little-endians do
2090 * the latter. This is only useful if you have select(), naturally.
2092 #define SELECT_MIN_BITS $selectminbits /**/
2095 * This symbol contains the name of the private library for this package.
2096 * The library is private in the sense that it needn't be in anyone's
2097 * execution path, but it should be accessible by the world. The program
2098 * should be prepared to do ~ expansion.
2099 * The standard distribution will put nothing in this directory.
2100 * Individual sites may place their own extensions and modules in
2104 * This symbol contains the ~name expanded version of SITEARCH, to be used
2105 * in programs that are not prepared to deal with ~ expansion at run-time.
2107 #define SITEARCH "$sitearch" /**/
2108 #define SITEARCH_EXP "$sitearchexp" /**/
2111 * This symbol contains the name of the private library for this package.
2112 * The library is private in the sense that it needn't be in anyone's
2113 * execution path, but it should be accessible by the world. The program
2114 * should be prepared to do ~ expansion.
2115 * The standard distribution will put nothing in this directory.
2116 * Individual sites may place their own extensions and modules in
2120 * This symbol contains the ~name expanded version of SITELIB, to be used
2121 * in programs that are not prepared to deal with ~ expansion at run-time.
2123 #define SITELIB "$sitelib" /**/
2124 #define SITELIB_EXP "$sitelibexp" /**/
2127 * This variable contains the string to put in front of a perl
2128 * script to make sure (one hopes) that it runs with perl and not
2131 #define STARTPERL "$startperl" /**/
2134 * This symbol, if defined, indicates that the fgetpos64 routine is
2135 * available to getpos files larger than 2 gigabytes.
2138 * This symbol, if defined, indicates that the fopen64 routine is
2139 * available to open files larger than 2 gigabytes.
2142 * This symbol, if defined, indicates that the freopen64 routine is
2143 * available to reopen files larger than 2 gigabytes.
2146 * This symbol, if defined, indicates that the fseek64 routine is
2147 * available to seek files larger than 2 gigabytes.
2150 * This symbol, if defined, indicates that the fseeko64 routine is
2151 * available to seek files larger than 2 gigabytes.
2154 * This symbol, if defined, indicates that the fsetpos64 routine is
2155 * available to setpos files larger than 2 gigabytes.
2158 * This symbol, if defined, indicates that the ftell64 routine is
2159 * available to tell files larger than 2 gigabytes.
2162 * This symbol, if defined, indicates that the ftello64 routine is
2163 * available to tell files larger than 2 gigabytes.
2166 * This symbol, if defined, indicates that the tmpfile64 routine is
2167 * available to tmpfile files larger than 2 gigabytes.
2169 #$d_fgetpos64 HAS_FGETPOS64 /**/
2170 #$d_fopen64 HAS_FOPEN64 /**/
2171 #$d_freopen64 HAS_FREOPEN64 /**/
2172 #$d_fseek64 HAS_FSEEK64 /**/
2173 #$d_fseeko64 HAS_FSEEKO64 /**/
2174 #$d_fsetpos64 HAS_FSETPOS64 /**/
2175 #$d_ftell64 HAS_FTELL64 /**/
2176 #$d_ftello64 HAS_FTELLO64 /**/
2177 #$d_tmpfile64 HAS_TMPFILE64 /**/
2180 * This symbol, if defined, indicates that 64-bit interfaces should
2181 * be used when available. If not defined, the native default interfaces
2182 * will be used (be they 32 or 64 bits).
2184 #$use64bits USE_64_BITS /**/
2187 * This symbol, if defined, indicates that the PerlIO abstraction should
2188 * be used throughout. If not defined, stdio should be
2189 * used in a fully backward compatible manner.
2191 #$useperlio USE_PERLIO /**/
2193 /* HAS_DRAND48_PROTO:
2194 * This symbol, if defined, indicates that the system provides
2195 * a prototype for the drand48() function. Otherwise, it is up
2196 * to the program to supply one. A good guess is
2197 * extern double drand48 _((void));
2199 #$d_drand48proto HAS_DRAND48_PROTO /**/
2201 /* HAS_GETHOST_PROTOS:
2202 * This symbol, if defined, indicates that <netdb.h> includes
2203 * prototypes for gethostent(), gethostbyname(), and
2204 * gethostbyaddr(). Otherwise, it is up to the program to guess
2205 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2207 #$d_gethostprotos HAS_GETHOST_PROTOS /**/
2209 /* HAS_GETNET_PROTOS:
2210 * This symbol, if defined, indicates that <netdb.h> includes
2211 * prototypes for getnetent(), getnetbyname(), and
2212 * getnetbyaddr(). Otherwise, it is up to the program to guess
2213 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2215 #$d_getnetprotos HAS_GETNET_PROTOS /**/
2217 /* HAS_GETPROTO_PROTOS:
2218 * This symbol, if defined, indicates that <netdb.h> includes
2219 * prototypes for getprotoent(), getprotobyname(), and
2220 * getprotobyaddr(). Otherwise, it is up to the program to guess
2221 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2223 #$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
2225 /* HAS_GETSERV_PROTOS:
2226 * This symbol, if defined, indicates that <netdb.h> includes
2227 * prototypes for getservent(), getservbyname(), and
2228 * getservbyaddr(). Otherwise, it is up to the program to guess
2229 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2231 #$d_getservprotos HAS_GETSERV_PROTOS /**/
2234 * This symbol holds the type used for the 1st argument
2235 * to gethostbyaddr().
2238 * This symbol holds the type used for the 2nd argument
2239 * to gethostbyaddr().
2242 * This symbol holds the type used for the argument to
2246 * This symbol holds the type used for the 1st argument to
2249 #define Netdb_host_t $netdb_host_type /**/
2250 #define Netdb_hlen_t $netdb_hlen_type /**/
2251 #define Netdb_name_t $netdb_name_type /**/
2252 #define Netdb_net_t $netdb_net_type /**/
2255 * This symbol holds the type used for the 2nd, 3rd, and 4th
2256 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
2257 * is defined, and 'int *' otherwise. This is only useful if you
2258 * have select(), of course.
2260 #define Select_fd_set_t $selecttype /**/
2263 * This symbol holds a string representing the architecture name.
2264 * It may be used to construct an architecture-dependant pathname
2265 * where library files may be held under a private library, for
2268 #define ARCHNAME "$archname" /**/
2270 /* HAS_PTHREAD_YIELD:
2271 * This symbol, if defined, indicates that the pthread_yield
2272 * routine is available to yield the execution of the current
2276 * This symbol, if defined, indicates that the sched_yield
2277 * routine is available to yield the execution of the current
2280 #$d_pthread_yield HAS_PTHREAD_YIELD /**/
2281 #$d_sched_yield HAS_SCHED_YIELD /**/
2283 /* PTHREADS_CREATED_JOINABLE:
2284 * This symbol, if defined, indicates that pthreads are created
2285 * in the joinable (aka undetached) state.
2287 #$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
2290 * This symbol, if defined, indicates that Perl should
2291 * be built to use multiplicity.
2293 #$usemultiplicity MULTIPLICITY /**/
2296 * This symbol, if defined, indicates that Perl should
2297 * be built to use threads.
2299 /* OLD_PTHREADS_API:
2300 * This symbol, if defined, indicates that Perl should
2301 * be built to use the old draft POSIX threads API.
2303 #$usethreads USE_THREADS /**/
2304 #$d_oldpthreads OLD_PTHREADS_API /**/
2307 * This symbol holds the type returned by time(). It can be long,
2308 * or time_t on BSD sites (in which case <sys/types.h> should be
2311 #define Time_t $timetype /* Time type */
2314 * This symbol, if defined, indicates that the times() routine exists.
2315 * Note that this became obsolete on some systems (SUNOS), which now
2316 * use getrusage(). It may be necessary to include <sys/times.h>.
2318 #$d_times HAS_TIMES /**/
2321 * This symbol holds the type used to declare file positions in libc.
2322 * It can be fpos_t, long, uint, etc... It may be necessary to include
2323 * <sys/types.h> to get any typedef'ed information.
2325 #define Fpos_t $fpostype /* File position type */
2328 * This symbol holds the return type of getgid() and the type of
2329 * argument to setrgid() and related functions. Typically,
2330 * it is the type of group ids in the kernel. It can be int, ushort,
2331 * uid_t, etc... It may be necessary to include <sys/types.h> to get
2332 * any typedef'ed information.
2334 #define Gid_t $gidtype /* Type for getgid(), etc... */
2337 * This symbol holds the type used to declare offsets in the kernel.
2338 * It can be int, long, off_t, etc... It may be necessary to include
2339 * <sys/types.h> to get any typedef'ed information.
2341 #define Off_t $lseektype /* <offset> type */
2344 * This symbol holds the type used to declare file modes
2345 * for systems calls. It is usually mode_t, but may be
2346 * int or unsigned short. It may be necessary to include <sys/types.h>
2347 * to get any typedef'ed information.
2349 #define Mode_t $modetype /* file mode parameter for system calls */
2352 * This symbol holds the type used to declare process ids in the kernel.
2353 * It can be int, uint, pid_t, etc... It may be necessary to include
2354 * <sys/types.h> to get any typedef'ed information.
2356 #define Pid_t $pidtype /* PID type */
2359 * This symbol holds the type used to declare length parameters
2360 * for string functions. It is usually size_t, but may be
2361 * unsigned long, int, etc. It may be necessary to include
2362 * <sys/types.h> to get any typedef'ed information.
2364 #define Size_t $sizetype /* length paramater for string functions */
2367 * This symbol holds the type used to declare user ids in the kernel.
2368 * It can be int, ushort, uid_t, etc... It may be necessary to include
2369 * <sys/types.h> to get any typedef'ed information.
2371 #define Uid_t $uidtype /* UID type */