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!' -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.2 1993/08/24 12:13:20 ram Exp $
31 /* Configuration time: $cf_time
32 * Configured by: $cf_by
33 * Target system: $myuname
40 * This symbol contains the number of bytes required to align a
41 * double. Usual values are 2, 4 and 8.
43 #define MEM_ALIGNBYTES $alignbytes /**/
46 * This variable, if defined, holds the name of the directory in
47 * which the user wants to put architecture-dependent public
48 * library files for $package. It is most often a local directory
49 * such as /usr/local/lib. Programs using this variable must be
50 * prepared to deal with filename expansion. If ARCHLIB is the
51 * same as PRIVLIB, it is not defined, since presumably the
52 * program already searches PRIVLIB.
54 #$d_archlib ARCHLIB "$archlib" /**/
57 * This symbol holds the path of the bin directory where the package will
58 * be installed. Program must be prepared to deal with ~name substitution.
60 #define BIN "$bin" /**/
63 * This symbol hold the hexadecimal constant defined in byteorder,
64 * i.e. 0x1234 or 0x4321, etc...
66 #define BYTEORDER 0x$byteorder /* large digits for MSB */
69 * This macro catenates 2 tokens together.
72 * This macro surrounds its token with double quotes.
75 #define CAT2(a,b)a/**/b
76 #define CAT3(a,b,c)a/**/b/**/c
77 #define CAT4(a,b,c,d)a/**/b/**/c/**/d
78 #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
79 #define STRINGIFY(a)"a"
80 /* If you can get stringification with catify, tell me how! */
83 #define CAT2(a,b)a ## b
84 #define CAT3(a,b,c)a ## b ## c
85 #define CAT4(a,b,c,d)a ## b ## c ## d
86 #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
88 #define STRINGIFY(a)StGiFy(a)
89 #define SCAT2(a,b)StGiFy(a) StGiFy(b)
90 #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
91 #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
92 #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
95 #include "Bletch: How does this C preprocessor catenate tokens?"
99 * This symbol contains the first part of the string which will invoke
100 * the C preprocessor on the standard input and produce to standard
101 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
102 * call a wrapper. See CPPRUN.
105 * This symbol contains the second part of the string which will invoke
106 * the C preprocessor on the standard input and produce to standard
107 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
108 * to specify standard input, otherwise the value is "".
110 #define CPPSTDIN "$cppstdin"
111 #define CPPMINUS "$cppminus"
114 * This symbol, if defined, indicates that the alarm routine is
117 #$d_alarm HAS_ALARM /**/
120 * This symbol indicates the C compiler can check for function attributes,
121 * such as printf formats. This is normally only supported by GNU cc.
123 #$d_attribut HASATTRIBUTE /**/
125 #define __attribute__(_arg_)
129 * This symbol is defined if the bcmp() routine is available to
130 * compare blocks of memory.
132 #$d_bcmp HAS_BCMP /**/
135 * This symbol is defined if the bcopy() routine is available to
136 * copy blocks of memory.
138 #$d_bcopy HAS_BCOPY /**/
141 * This symbol is defined if the bzero() routine is available to
142 * set a memory block to 0.
144 #$d_bzero HAS_BZERO /**/
147 * This symbol is defined if the C compiler can cast negative
148 * or large floating point numbers to 32-bit ints.
150 #$d_casti32 CASTI32 /**/
153 * This symbol is defined if the C compiler can cast negative
154 * numbers to unsigned longs, ints and shorts.
157 * This symbol contains flags that say what difficulties the compiler
158 * has casting odd floating values to unsigned long:
160 * 1 = couldn't cast < 0
161 * 2 = couldn't cast >= 0x80000000
163 #$d_castneg CASTNEGFLOAT /**/
164 #define CASTFLAGS $castflags /**/
167 * This symbol, if defined, indicates that the chown routine is
170 #$d_chown HAS_CHOWN /**/
173 * This symbol, if defined, indicates that the chroot routine is
176 #$d_chroot HAS_CHROOT /**/
179 * This symbol, if defined, indicates that the chsize routine is available
180 * to truncate files. You might need a -lx to get this routine.
182 #$d_chsize HAS_CHSIZE /**/
185 * This symbol, if defined, indicates that the closedir() routine
186 * does not return a value.
188 #$d_void_closedir VOID_CLOSEDIR /**/
191 * This symbol, if defined, indicates that this C compiler knows about
192 * the const type. There is no need to actually test for that symbol
193 * within your programs. The mere use of the "const" keyword will
194 * trigger the necessary tests.
196 #$d_const HASCONST /**/
202 * This symbol, if defined, indicates that the crypt routine is available
203 * to encrypt passwords and the like.
205 #$d_crypt HAS_CRYPT /**/
208 * This symbol, if defined, indicates that the C-shell exists.
209 * If defined, contains the full pathname of csh.
211 #$d_csh CSH "$csh" /**/
214 * This symbol, if defined, indicates that the cuserid routine is
215 * available to get character login names.
217 #$d_cuserid HAS_CUSERID /**/
220 * This symbol, if defined, indicates that this system's <float.h>
221 * or <limits.h> defines the symbol DBL_DIG, which is the number
222 * of significant digits in a double precision number. If this
223 * symbol is not defined, a guess of 15 is usually pretty good.
225 #$d_dbl_dig HAS_DBL_DIG /* */
228 * This symbol, if defined, indicates that the difftime routine is
231 #$d_difftime HAS_DIFFTIME /**/
234 * This symbol, if defined, indicates that the dlerror routine is
235 * available to return a string describing the last error that
236 * occurred from a call to dlopen(), dlclose() or dlsym().
238 #$d_dlerror HAS_DLERROR /**/
240 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
241 * This symbol, if defined, indicates that the bug that prevents
242 * setuid scripts from being secure is not present in this kernel.
245 * This symbol, if defined, indicates that the C program should
246 * check the script that it is executing for setuid/setgid bits, and
247 * attempt to emulate setuid/setgid on systems that have disabled
248 * setuid #! scripts because the kernel can't do it securely.
249 * It is up to the package designer to make sure that this emulation
250 * is done securely. Among other things, it should do an fstat on
251 * the script it just opened to make sure it really is a setuid/setgid
252 * script, it should make sure the arguments passed correspond exactly
253 * to the argument on the #! line, and it should not trust any
254 * subprocesses to which it must pass the filename rather than the
255 * file descriptor of the script to be executed.
257 #$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
258 #$d_dosuid DOSUID /**/
261 * This symbol, if defined, indicates that the drem routine is
262 * available. This routine is roughly the same as fmod, i.e. it
263 * computes the remainder r=x-n*y, where n=rint(x/y), whereas fmod
266 #$d_drem HAS_DREM /**/
269 * This symbol, if defined, indicates that the dup2 routine is
270 * available to duplicate file descriptors.
272 #$d_dup2 HAS_DUP2 /**/
275 * This symbol, if defined, indicates that the fchmod routine is available
276 * to change mode of opened files. If unavailable, use chmod().
278 #$d_fchmod HAS_FCHMOD /**/
281 * This symbol, if defined, indicates that the fchown routine is available
282 * to change ownership of opened files. If unavailable, use chown().
284 #$d_fchown HAS_FCHOWN /**/
287 * This symbol, if defined, indicates to the C program that
288 * the fcntl() function exists.
290 #$d_fcntl HAS_FCNTL /**/
293 * This symbol, if defined, indicates that the fgetpos routine is
294 * available to get the file position indicator, similar to ftell().
296 #$d_fgetpos HAS_FGETPOS /**/
299 * This symbol, if defined, indicates that the system supports filenames
300 * longer than 14 characters.
302 #$d_flexfnam FLEXFILENAMES /**/
305 * This symbol, if defined, indicates that the flock routine is
306 * available to do file locking.
308 #$d_flock HAS_FLOCK /**/
311 * This symbol, if defined, indicates that the fmod routine is
312 * available to compute the remainder r=x-n*y where n=trunc(x/y).
314 #$d_fmod HAS_FMOD /**/
317 * This symbol, if defined, indicates that the fork routine is
320 #$d_fork HAS_FORK /**/
323 * This symbol, if defined, indicates that the fsetpos routine is
324 * available to set the file position indicator, similar to fseek().
326 #$d_fsetpos HAS_FSETPOS /**/
329 * This preprocessor macro is defined to convert a floating point
330 * number to a string without a trailing decimal point. This
331 * emulates the behavior of sprintf("%g"), but is sometimes much more
332 * efficient. If gconvert() is not available, but gcvt() drops the
333 * trailing decimal point, then gcvt() is used. If all else fails,
334 * a macro using sprintf("%g") is used. Arguments for the Gconvert
335 * macro are: value, number of digits, whether trailing zeros should
336 * be retained, and the output buffer.
338 #define Gconvert(x,n,t,b) $d_Gconvert
341 * This symbol, if defined, indicates that the getgroups() routine is
342 * available to get the list of process groups. If unavailable, multiple
343 * groups are probably not supported.
345 #$d_getgrps HAS_GETGROUPS /**/
348 * This symbol, if defined, indicates that the gethostent routine is
349 * available to lookup host names in some data base or other.
351 #$d_gethent HAS_GETHOSTENT /**/
354 * This symbol, if defined, indicates that the C program may use the
355 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
358 #$d_uname HAS_UNAME /**/
361 * This symbol, if defined, indicates that the getlogin routine is
362 * available to get the login name.
364 #$d_getlogin HAS_GETLOGIN /**/
367 * This symbol, if defined, indicates that the getpgrp routine is
368 * available to get the current process group.
370 #$d_getpgrp HAS_GETPGRP /**/
373 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
374 * routine is available to get the current process group.
376 #$d_getpgrp2 HAS_GETPGRP2 /**/
379 * This symbol, if defined, indicates that the getppid routine is
380 * available to get the parent process ID.
382 #$d_getppid HAS_GETPPID /**/
385 * This symbol, if defined, indicates that the getpriority routine is
386 * available to get a process's priority.
388 #$d_getprior HAS_GETPRIORITY /**/
391 * This symbol, if defined, indicates that the group routine is
394 #$d_group HAS_GROUP /**/
397 * This symbol, if defined, indicates that the htonl() routine (and
398 * friends htons() ntohl() ntohs()) are available to do network
399 * order byte swapping.
402 * This symbol, if defined, indicates that the htons() routine (and
403 * friends htonl() ntohl() ntohs()) are available to do network
404 * order byte swapping.
407 * This symbol, if defined, indicates that the ntohl() routine (and
408 * friends htonl() htons() ntohs()) are available to do network
409 * order byte swapping.
412 * This symbol, if defined, indicates that the ntohs() routine (and
413 * friends htonl() htons() ntohl()) are available to do network
414 * order byte swapping.
416 #$d_htonl HAS_HTONL /**/
417 #$d_htonl HAS_HTONS /**/
418 #$d_htonl HAS_NTOHL /**/
419 #$d_htonl HAS_NTOHS /**/
422 * This manifest constant lets the C program know that isascii
425 #$d_isascii HAS_ISASCII /**/
428 * This symbol, if defined, indicates that the killpg routine is available
429 * to kill process groups. If unavailable, you probably should use kill
430 * with a negative process number.
432 #$d_killpg HAS_KILLPG /**/
435 * This symbol, if defined, indicates that the link routine is
436 * available to create hard links.
438 #$d_link HAS_LINK /**/
441 * This symbol is defined if this system has a FILE structure declaring
442 * _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
444 #$d_linuxstd USE_LINUX_STDIO /**/
447 * This symbol, if defined, indicates that the localeconv routine is
448 * available for numeric and monetary formatting conventions.
450 #$d_locconv HAS_LOCALECONV /**/
453 * This symbol, if defined, indicates that the lockf routine is
454 * available to do file locking.
456 #$d_lockf HAS_LOCKF /**/
459 * This symbol, if defined, indicates that the lstat routine is
460 * available to do file stats on symbolic links.
462 #$d_lstat HAS_LSTAT /**/
465 * This symbol, if defined, indicates that the mblen routine is available
466 * to find the number of bytes in a multibye character.
468 #$d_mblen HAS_MBLEN /**/
471 * This symbol, if defined, indicates that the mbstowcs routine is
472 * available to covert a multibyte string into a wide character string.
474 #$d_mbstowcs HAS_MBSTOWCS /**/
477 * This symbol, if defined, indicates that the mbtowc routine is available
478 * to covert a multibyte to a wide character.
480 #$d_mbtowc HAS_MBTOWC /**/
483 * This symbol, if defined, indicates that the memcmp routine is available
484 * to compare blocks of memory.
486 #$d_memcmp HAS_MEMCMP /**/
489 * This symbol, if defined, indicates that the memcpy routine is available
490 * to copy blocks of memory.
492 #$d_memcpy HAS_MEMCPY /**/
495 * This symbol, if defined, indicates that the memmove routine is available
496 * to copy potentially overlapping blocks of memory. This should be used
497 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
500 #$d_memmove HAS_MEMMOVE /**/
503 * This symbol, if defined, indicates that the memset routine is available
504 * to set blocks of memory.
506 #$d_memset HAS_MEMSET /**/
509 * This symbol, if defined, indicates that the mkdir routine is available
510 * to create directories. Otherwise you should fork off a new process to
513 #$d_mkdir HAS_MKDIR /**/
516 * This symbol, if defined, indicates that the mkfifo routine is
517 * available to create FIFOs. Otherwise, mknod should be able to
518 * do it for you. However, if mkfifo is there, mknod might require
519 * super-user privileges which mkfifo will not.
521 #$d_mkfifo HAS_MKFIFO /**/
524 * This symbol, if defined, indicates that the mktime routine is
527 #$d_mktime HAS_MKTIME /**/
530 * This symbol, if defined, indicates that the entire msg*(2) library is
531 * supported (IPC mechanism based on message queues).
536 * This symbol, if defined, indicates that the nice routine is
539 #$d_nice HAS_NICE /**/
542 * This manifest constant lets the C program know that the three
543 * argument form of open(2) is available.
545 #$d_open3 HAS_OPEN3 /**/
548 * This symbol, if defined, indicates that the passwd routine is
551 #$d_passwd HAS_PASSWD /**/
554 * This symbol, if defined, indicates that pathconf() is available
555 * to determine file-system related limits and options associated
556 * with a given filename.
559 * This symbol, if defined, indicates that pathconf() is available
560 * to determine file-system related limits and options associated
561 * with a given open file descriptor.
563 #$d_pathconf HAS_PATHCONF /**/
564 #$d_fpathconf HAS_FPATHCONF /**/
567 * This symbol, if defined, indicates that the pause routine is
568 * available to suspend a process until a signal is received.
570 #$d_pause HAS_PAUSE /**/
573 * This symbol, if defined, indicates that the pipe routine is
574 * available to create an inter-process channel.
576 #$d_pipe HAS_PIPE /**/
579 * This symbol, if defined, indicates that the readdir routine is
580 * available to read directory entries. You may have to include
581 * <dirent.h>. See I_DIRENT.
583 #$d_readdir HAS_READDIR /**/
586 * This symbol, if defined, indicates that the seekdir routine is
587 * available. You may have to include <dirent.h>. See I_DIRENT.
589 #$d_seekdir HAS_SEEKDIR /**/
592 * This symbol, if defined, indicates that the telldir routine is
593 * available. You may have to include <dirent.h>. See I_DIRENT.
595 #$d_telldir HAS_TELLDIR /**/
598 * This symbol, if defined, indicates that the rewinddir routine is
599 * available. You may have to include <dirent.h>. See I_DIRENT.
601 #$d_rewinddir HAS_REWINDDIR /**/
604 * This symbol, if defined, indicates that the readlink routine is
605 * available to read the value of a symbolic link.
607 #$d_readlink HAS_READLINK /**/
610 * This symbol, if defined, indicates that the rename routine is available
611 * to rename files. Otherwise you should do the unlink(), link(), unlink()
614 #$d_rename HAS_RENAME /**/
617 * This symbol, if defined, indicates that the rmdir routine is
618 * available to remove directories. Otherwise you should fork off a
619 * new process to exec /bin/rmdir.
621 #$d_rmdir HAS_RMDIR /**/
624 * This symbol, if defined, indicates that the bcopy routine is available
625 * to copy potentially overlapping memory blocks. Otherwise you should
626 * probably use memmove() or memcpy(). If neither is defined, roll your
629 #$d_safebcpy HAS_SAFE_BCOPY /**/
632 * This symbol, if defined, indicates that the memcpy routine is available
633 * to copy potentially overlapping memory blocks. Otherwise you should
634 * probably use memmove() or memcpy(). If neither is defined, roll your
637 #$d_safemcpy HAS_SAFE_MEMCPY /**/
640 * This symbol, if defined, indicates that the select routine is
641 * available to select active file descriptors. If the timeout field
642 * is used, <sys/time.h> may need to be included.
644 #$d_select HAS_SELECT /**/
647 * This symbol, if defined, indicates that the entire sem*(2) library is
653 * This symbol, if defined, indicates that the setegid routine is available
654 * to change the effective gid of the current program.
656 #$d_setegid HAS_SETEGID /**/
659 * This symbol, if defined, indicates that the seteuid routine is available
660 * to change the effective uid of the current program.
662 #$d_seteuid HAS_SETEUID /**/
665 * This symbol, if defined, indicates that the setlinebuf routine is
666 * available to change stderr or stdout from block-buffered or unbuffered
667 * to a line-buffered mode.
669 #$d_setlinebuf HAS_SETLINEBUF /**/
672 * This symbol, if defined, indicates that the setlocale routine is
673 * available to handle locale-specific ctype implementations.
675 #$d_setlocale HAS_SETLOCALE /**/
678 * This symbol, if defined, indicates that the setpgid routine is
679 * available to set process group ID.
681 #$d_setpgid HAS_SETPGID /**/
684 * This symbol, if defined, indicates that the setpgrp routine is
685 * available to set the current process group.
688 * This symbol, if defined, indicates that the BSD notion of process
689 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
690 * instead of the USG setpgrp().
692 #$d_setpgrp HAS_SETPGRP /**/
693 #$d_bsdpgrp USE_BSDPGRP /**/
696 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
697 * routine is available to set the current process group.
699 #$d_setpgrp2 HAS_SETPGRP2 /**/
702 * This symbol, if defined, indicates that the setpriority routine is
703 * available to set a process's priority.
705 #$d_setprior HAS_SETPRIORITY /**/
708 * This symbol, if defined, indicates that the setregid routine is
709 * available to change the real and effective gid of the current
713 * This symbol, if defined, indicates that the setresgid routine is
714 * available to change the real, effective and saved gid of the current
717 #$d_setregid HAS_SETREGID /**/
718 #$d_setresgid HAS_SETRESGID /**/
721 * This symbol, if defined, indicates that the setreuid routine is
722 * available to change the real and effective uid of the current
726 * This symbol, if defined, indicates that the setresuid routine is
727 * available to change the real, effective and saved uid of the current
730 #$d_setreuid HAS_SETREUID /**/
731 #$d_setresuid HAS_SETRESUID /**/
734 * This symbol, if defined, indicates that the setrgid routine is available
735 * to change the real gid of the current program.
737 #$d_setrgid HAS_SETRGID /**/
740 * This symbol, if defined, indicates that the setruid routine is available
741 * to change the real uid of the current program.
743 #$d_setruid HAS_SETRUID /**/
746 * This symbol, if defined, indicates that the setsid routine is
747 * available to set the process group ID.
749 #$d_setsid HAS_SETSID /**/
752 * This symbol, if defined, indicates that the entire shm*(2) library is
758 * This symbol holds the return type of the shmat() system call.
759 * Usually set to 'void *' or 'char *'.
761 /* HAS_SHMAT_PROTOTYPE:
762 * This symbol, if defined, indicates that the sys/shm.h includes
763 * a prototype for shmat(). Otherwise, it is up to the program to
764 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
765 * but not always right so it should be emitted by the program only
766 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
768 #define Shmat_t $shmattype /**/
769 #$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
772 * This symbol, if defined, indicates that the BSD socket interface is
776 * This symbol, if defined, indicates that the BSD socketpair() call is
779 #$d_socket HAS_SOCKET /**/
780 #$d_sockpair HAS_SOCKETPAIR /**/
783 * This symbol is defined if this system has a stat structure declaring
784 * st_blksize and st_blocks.
786 #$d_statblks USE_STAT_BLOCKS /**/
789 * This symbol is defined if this system has a FILE structure declaring
790 * _ptr and _cnt in stdio.h.
792 #$d_stdstdio USE_STD_STDIO /**/
795 * This symbol is defined to indicate that the strchr()/strrchr()
796 * functions are available for string searching. If not, try the
797 * index()/rindex() pair.
800 * This symbol is defined to indicate that the index()/rindex()
801 * functions are available for string searching.
803 #$d_strchr HAS_STRCHR /**/
804 #$d_index HAS_INDEX /**/
807 * This symbol, if defined, indicates that the strcoll routine is
808 * available to compare strings using collating information.
810 #$d_strcoll HAS_STRCOLL /**/
813 * This symbol, if defined, indicates that this C compiler knows how
814 * to copy structures. If undefined, you'll need to use a block copy
815 * routine of some sort instead.
817 #$d_strctcpy USE_STRUCT_COPY /**/
820 * This symbol, if defined, indicates that the strerror routine is
821 * available to translate error numbers to strings. See the writeup
822 * of Strerror() in this file before you try to define your own.
825 * This symbol, if defined, indicates that the sys_errlist array is
826 * available to translate error numbers to strings. The extern int
827 * sys_nerr gives the size of that table.
830 * This preprocessor symbol is defined as a macro if strerror() is
831 * not available to translate error numbers to strings but sys_errlist[]
834 #$d_strerror HAS_STRERROR /**/
835 #$d_syserrlst HAS_SYS_ERRLIST /**/
836 #define Strerror(e) $d_strerrm
839 * This symbol, if defined, indicates that the strxfrm() routine is
840 * available to transform strings.
842 #$d_strxfrm HAS_STRXFRM /**/
845 * This symbol, if defined, indicates that the symlink routine is available
846 * to create symbolic links.
848 #$d_symlink HAS_SYMLINK /**/
851 * This symbol, if defined, indicates that the syscall routine is
852 * available to call arbitrary system calls. If undefined, that's tough.
854 #$d_syscall HAS_SYSCALL /**/
857 * This symbol, if defined, indicates that sysconf() is available
858 * to determine system related limits and options.
860 #$d_sysconf HAS_SYSCONF /**/
863 * This symbol, if defined, indicates that the system routine is
864 * available to issue a shell command.
866 #$d_system HAS_SYSTEM /**/
869 * This symbol, if defined, indicates that the tcgetpgrp routine is
870 * available to get foreground process group ID.
872 #$d_tcgetpgrp HAS_TCGETPGRP /**/
875 * This symbol, if defined, indicates that the tcsetpgrp routine is
876 * available to set foreground process group ID.
878 #$d_tcsetpgrp HAS_TCSETPGRP /**/
881 * This symbol holds the type returned by time(). It can be long,
882 * or time_t on BSD sites (in which case <sys/types.h> should be
885 #define Time_t $timetype /* Time type */
888 * This symbol, if defined, indicates that the times() routine exists.
889 * Note that this became obsolete on some systems (SUNOS), which now
890 * use getrusage(). It may be necessary to include <sys/times.h>.
892 #$d_times HAS_TIMES /**/
895 * This symbol, if defined, indicates that the truncate routine is
896 * available to truncate files.
898 #$d_truncate HAS_TRUNCATE /**/
901 * This symbol, if defined, indicates that the tzname[] array is
902 * available to access timezone names.
904 #$d_tzname HAS_TZNAME /**/
907 * This symbol, if defined, indicates that the umask routine is
908 * available to set and get the value of the file creation mask.
910 #$d_umask HAS_UMASK /**/
913 * This symbol, if defined, indicates that vfork() exists.
915 #$d_vfork HAS_VFORK /**/
918 * This symbol is defined if this system declares "void (*signal(...))()" in
919 * signal.h. The old way was to declare it as "int (*signal(...))()". It
920 * is up to the package author to declare things correctly based on the
924 * This symbol's value is either "void" or "int", corresponding to the
925 * appropriate return type of a signal handler. Thus, you can declare
926 * a signal handler using "Signal_t (*handler)()", and define the
927 * handler using "Signal_t handler(sig)".
929 #$d_voidsig VOIDSIG /**/
930 #define Signal_t $signal_t /* Signal handler's return type */
933 * This symbol, if defined, indicates that this C compiler knows about
934 * the volatile declaration.
936 #$d_volatile HASVOLATILE /**/
942 * This symbol, if defined, indicates that the vprintf routine is available
943 * to printf with a pointer to an argument list. If unavailable, you
944 * may need to write your own, probably in terms of _doprnt().
946 /* USE_CHAR_VSPRINTF:
947 * This symbol is defined if this system has vsprintf() returning type
948 * (char*). The trend seems to be to declare it as "int vsprintf()". It
949 * is up to the package author to declare vsprintf correctly based on the
952 #$d_vprintf HAS_VPRINTF /**/
953 #$d_charvspr USE_CHAR_VSPRINTF /**/
956 * This symbol, if defined, indicates that wait4() exists.
958 #$d_wait4 HAS_WAIT4 /**/
961 * This symbol, if defined, indicates that the waitpid routine is
962 * available to wait for child process.
964 #$d_waitpid HAS_WAITPID /**/
967 * This symbol, if defined, indicates that the wcstombs routine is
968 * available to convert wide character strings to multibyte strings.
970 #$d_wcstombs HAS_WCSTOMBS /**/
973 * This symbol, if defined, indicates that the wctomb routine is available
974 * to covert a wide character to a multibyte.
976 #$d_wctomb HAS_WCTOMB /**/
979 * This symbol holds the type used to declare file positions in libc.
980 * It can be fpos_t, long, uint, etc... It may be necessary to include
981 * <sys/types.h> to get any typedef'ed information.
983 #define Fpos_t $fpostype /* File position type */
986 * This symbol holds the return type of getgid() and the type of
987 * argument to setrgid() and related functions. Typically,
988 * it is the type of group ids in the kernel. It can be int, ushort,
989 * uid_t, etc... It may be necessary to include <sys/types.h> to get
990 * any typedef'ed information.
992 #define Gid_t $gidtype /* Type for getgid(), etc... */
995 * This symbol holds the type used for the second argument to
996 * getgroups(). Usually, this is the same of gidtype, but
997 * sometimes it isn't. It can be int, ushort, uid_t, etc...
998 * It may be necessary to include <sys/types.h> to get any
999 * typedef'ed information. This is only required if you have
1002 #ifdef HAS_GETGROUPS
1003 #define Groups_t $groupstype /* Type for 2nd arg to getgroups() */
1007 * This symbol, if defined, indicates to the C program that it should
1008 * include <dirent.h>. Using this symbol also triggers the definition
1009 * of the Direntry_t define which ends up being 'struct dirent' or
1010 * 'struct direct' depending on the availability of <dirent.h>.
1013 * This symbol, if defined, indicates to the C program that the length
1014 * of directory entry names is provided by a d_namlen field. Otherwise
1015 * you need to do strlen() on the d_name field.
1018 * This symbol is set to 'struct direct' or 'struct dirent' depending on
1019 * whether dirent is available or not. You should use this pseudo type to
1020 * portably declare your directory entries.
1022 #$i_dirent I_DIRENT /**/
1023 #$d_dirnamlen DIRNAMLEN /**/
1024 #define Direntry_t $direntrytype
1027 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1030 #$i_dlfcn I_DLFCN /**/
1033 * This manifest constant tells the C program to include <fcntl.h>.
1035 #$i_fcntl I_FCNTL /**/
1038 * This symbol, if defined, indicates to the C program that it should
1039 * include <float.h> to get definition of symbols like DBL_MAX or
1040 * DBL_MIN, i.e. machine dependent floating point values.
1042 #$i_float I_FLOAT /**/
1045 * This symbol, if defined, indicates to the C program that it should
1051 * This symbol, if defined, indicates to the C program that it should
1052 * include <limits.h> to get definition of symbols like WORD_BIT or
1053 * LONG_MAX, i.e. machine dependant limitations.
1055 #$i_limits I_LIMITS /**/
1058 * This symbol, if defined, indicates to the C program that it should
1061 #$i_math I_MATH /**/
1064 * This symbol, if defined, indicates to the C program that it should
1065 * include <memory.h>.
1067 #$i_memory I_MEMORY /**/
1070 * This symbol, if defined, indicates that <net/errno.h> exists and
1071 * should be included.
1073 #$i_neterrno I_NET_ERRNO /**/
1076 * This symbol, if defined, indicates to the C program that it should
1077 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1079 #$i_niin I_NETINET_IN /**/
1082 * This symbol, if defined, indicates to the C program that it should
1086 * This symbol, if defined, indicates to the C program that struct passwd
1087 * contains pw_quota.
1090 * This symbol, if defined, indicates to the C program that struct passwd
1094 * This symbol, if defined, indicates to the C program that struct passwd
1095 * contains pw_change.
1098 * This symbol, if defined, indicates to the C program that struct passwd
1099 * contains pw_class.
1102 * This symbol, if defined, indicates to the C program that struct passwd
1103 * contains pw_expire.
1106 * This symbol, if defined, indicates to the C program that struct passwd
1107 * contains pw_comment.
1110 #$d_pwquota PWQUOTA /**/
1111 #$d_pwage PWAGE /**/
1112 #$d_pwchange PWCHANGE /**/
1113 #$d_pwclass PWCLASS /**/
1114 #$d_pwexpire PWEXPIRE /**/
1115 #$d_pwcomment PWCOMMENT /**/
1118 * This symbol, if defined, indicates that <stddef.h> exists and should
1121 #$i_stddef I_STDDEF /**/
1124 * This symbol, if defined, indicates that <stdlib.h> exists and should
1127 #$i_stdlib I_STDLIB /**/
1130 * This symbol, if defined, indicates to the C program that it should
1131 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1133 #$i_string I_STRING /**/
1136 * This symbol, if defined, indicates to the C program that it should
1137 * include <sys/dir.h>.
1139 #$i_sysdir I_SYS_DIR /**/
1142 * This symbol, if defined, indicates to the C program that it should
1143 * include <sys/file.h> to get definition of R_OK and friends.
1145 #$i_sysfile I_SYS_FILE /**/
1148 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1149 * be included. Otherwise, include <sgtty.h> or <termio.h>.
1151 #$i_sysioctl I_SYS_IOCTL /**/
1154 * This symbol, if defined, indicates to the C program that it should
1155 * include <sys/ndir.h>.
1157 #$i_sysndir I_SYS_NDIR /**/
1160 * This symbol, if defined, indicates to the C program that it should
1161 * include <sys/param.h>.
1163 #$i_sysparam I_SYS_PARAM /**/
1166 * This symbol, if defined, indicates to the C program that it should
1167 * include <sys/select.h> in order to get definition of struct timeval.
1169 #$i_sysselct I_SYS_SELECT /**/
1172 * This symbol, if defined, indicates to the C program that it should
1173 * include <sys/times.h>.
1175 #$i_systimes I_SYS_TIMES /**/
1178 * This symbol, if defined, indicates that the program should include
1179 * <termio.h> rather than <sgtty.h>. There are also differences in
1180 * the ioctl() calls that depend on the value of this symbol.
1183 * This symbol, if defined, indicates that the program should include
1184 * the POSIX termios.h rather than sgtty.h or termio.h.
1185 * There are also differences in the ioctl() calls that depend on the
1186 * value of this symbol.
1189 * This symbol, if defined, indicates that the program should include
1190 * <sgtty.h> rather than <termio.h>. There are also differences in
1191 * the ioctl() calls that depend on the value of this symbol.
1193 #$i_termio I_TERMIO /**/
1194 #$i_termios I_TERMIOS /**/
1195 #$i_sgtty I_SGTTY /**/
1198 * This symbol, if defined, indicates to the C program that it should
1202 * This symbol, if defined, indicates to the C program that it should
1203 * include <sys/time.h>.
1205 /* I_SYS_TIME_KERNEL:
1206 * This symbol, if defined, indicates to the C program that it should
1207 * include <sys/time.h> with KERNEL defined.
1209 #$i_time I_TIME /**/
1210 #$i_systime I_SYS_TIME /**/
1211 #$i_systimek I_SYS_TIME_KERNEL /**/
1214 * This symbol, if defined, indicates to the C program that it should
1215 * include <unistd.h>.
1217 #$i_unistd I_UNISTD /**/
1220 * This symbol, if defined, indicates to the C program that it should
1221 * include <utime.h>.
1223 #$i_utime I_UTIME /**/
1226 * This symbol, if defined, indicates that <stdarg.h> exists and should
1230 * This symbol, if defined, indicates to the C program that it should
1231 * include <varargs.h>.
1233 #$i_stdarg I_STDARG /**/
1234 #$i_varargs I_VARARGS /**/
1237 * This symbol, if defined, indicates to the C program that it should
1240 #$i_vfork I_VFORK /**/
1243 * This symbol contains the size of an int, so that the C preprocessor
1244 * can make decisions based on it.
1246 #define INTSIZE $intsize /**/
1249 * This symbol holds the type used to declare offsets in the kernel.
1250 * It can be int, long, off_t, etc... It may be necessary to include
1251 * <sys/types.h> to get any typedef'ed information.
1253 #define Off_t $lseektype /* <offset> type */
1256 * This symbol holds the type used to declare file modes
1257 * for systems calls. It is usually mode_t, but may be
1258 * int or unsigned short. It may be necessary to include <sys/types.h>
1259 * to get any typedef'ed information.
1261 #define Mode_t $modetype /* file mode parameter for system calls */
1264 * This symbol contains the name of the private library for this package.
1265 * The library is private in the sense that it needn't be in anyone's
1266 * execution path, but it should be accessible by the world. The program
1267 * should be prepared to do ~ expansion.
1269 #define PRIVLIB "$privlib" /**/
1272 * If defined, this macro indicates that the C compiler can handle
1273 * function prototypes.
1276 * This macro is used to declare function parameters for folks who want
1277 * to make declarations with prototypes using a different style than
1278 * the above macros. Use double parentheses. For example:
1280 * int main _((int argc, char *argv[]));
1282 #$prototype CAN_PROTOTYPE /**/
1283 #ifdef CAN_PROTOTYPE
1284 #define _(args) args
1290 * This symbol contains the number of bits of random number the rand()
1291 * function produces. Usual values are 15, 16, and 31.
1293 #define RANDBITS $randbits /**/
1296 * This symbol holds the name of the directory in which the user wants
1297 * to put publicly executable scripts for the package in question. It
1298 * is often a directory that is mounted across diverse architectures.
1299 * Programs must be prepared to deal with ~name expansion.
1301 #define SCRIPTDIR "$scriptdir" /**/
1304 * This symbol holds the type used for the 2nd, 3rd, and 4th
1305 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1306 * is defined, and 'int *' otherwise. This is only useful if you
1307 * have select(), of course.
1309 #define Select_fd_set_t $selecttype /**/
1312 * This symbol contains a list of signal names in order. This is intended
1313 * to be used as a static array initialization, like this:
1314 * char *sig_name[] = { SIG_NAME };
1315 * The signals in the list are separated with commas, and each signal
1316 * is surrounded by double quotes. There is no leading SIG in the signal
1317 * name, i.e. SIGQUIT is known as "QUIT".
1319 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
1322 * This symbol holds the type used to declare length parameters
1323 * for string functions. It is usually size_t, but may be
1324 * unsigned long, int, etc. It may be necessary to include
1325 * <sys/types.h> to get any typedef'ed information.
1327 #define Size_t $sizetype /* length paramater for string functions */
1330 * This symbol holds the type used by functions that return
1331 * a count of bytes or an error condition. It must be a signed type.
1332 * It is usually ssize_t, but may be long or int, etc.
1333 * It may be necessary to include <sys/types.h> or <unistd.h>
1334 * to get any typedef'ed information.
1335 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1337 #define SSize_t $ssizetype /* signed count of bytes */
1340 * This symbol is defined to be the type of char used in stdio.h.
1341 * It has the values "unsigned char" or "char".
1343 #define STDCHAR $stdchar /**/
1346 * This symbol holds the type used to declare user ids in the kernel.
1347 * It can be int, ushort, uid_t, etc... It may be necessary to include
1348 * <sys/types.h> to get any typedef'ed information.
1350 #define Uid_t $uidtype /* UID type */
1353 * This symbol indicates how much support of the void type is given by this
1354 * compiler. What various bits mean:
1356 * 1 = supports declaration of void
1357 * 2 = supports arrays of pointers to functions returning void
1358 * 4 = supports comparisons between pointers to void functions and
1359 * addresses of void functions
1360 * 8 = suports declaration of generic void pointers
1362 * The package designer should define VOIDUSED to indicate the requirements
1363 * of the package. This can be done either by #defining VOIDUSED before
1364 * including config.h, or by defining defvoidused in Myinit.U. If the
1365 * latter approach is taken, only those flags will be tested. If the
1366 * level of void support necessary is not present, defines void to int.
1369 #define VOIDUSED $defvoidused
1371 #define VOIDFLAGS $voidflags
1372 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1373 #define void int /* is void to be avoided? */
1374 #define M_VOID /* Xenix strikes again */
1378 * This symbol, if defined, indicates that the program is being compiled
1379 * under the EUNICE package under VMS. The program will need to handle
1380 * things like files that don't go away the first time you unlink them,
1381 * due to version numbering. It will also need to compensate for lack
1382 * of a respectable link() command.
1385 * This symbol, if defined, indicates that the program is running under
1386 * VMS. It is currently only set in conjunction with the EUNICE symbol.
1388 #$d_eunice EUNICE /**/
1392 * This symbol holds the complete pathname to the sed program.
1394 #define LOC_SED "$sed" /**/
1396 /* DLSYM_NEEDS_UNDERSCORE:
1397 * This symbol, if defined, indicates that we need to prepend an
1398 * underscore to the symbol name before calling dlsym(). This only
1399 * makes sense if you *have* dlsym, which we will presume is the
1400 * case if you're using dl_dlopen.xs.
1402 #$d_dlsymun DLSYM_NEEDS_UNDERSCORE /* */
1404 /* USE_DYNAMIC_LOADING:
1405 * This symbol, if defined, indicates that dynamic loading of
1406 * some sort is available.
1408 #$usedl USE_DYNAMIC_LOADING /**/
1411 * This symbol contains the type of the prefix structure element
1412 * in the <db.h> header file. In older versions of DB, it was
1413 * int, while in newer ones it is u_int32_t.
1416 * This symbol contains the type of the prefix structure element
1417 * in the <db.h> header file. In older versions of DB, it was
1418 * int, while in newer ones it is size_t.
1420 #define DB_Hash_t "$db_hashtype" /**/
1421 #define DB_Prefix_t "$db_prefixtype" /**/
1424 * This symbol, if defined, indicates that ndbm.h exists and should
1427 #$i_ndbm I_NDBM /**/
1430 * This symbol is the type of pointer returned by malloc and realloc.
1432 #define Malloc_t $malloctype /**/
1435 * This symbol, if defined, indicates that we're using our own malloc.
1437 #$d_mymalloc MYMALLOC /**/