4 if test ! -f config.sh; then
6 ln ../../config.sh . || \
7 ln ../../../config.sh . || \
8 (echo "Can't find config.sh."; exit 1)
9 echo "Using config.sh from above..."
14 echo "Extracting config.h (with variable substitutions)"
15 sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!'
19 * This file was produced by running the config.h.SH script, which
20 * gets its values from config.sh, which is generally produced by
23 * Feel free to modify any of this as the need arises. Note, however,
24 * that running config.h.SH again will wipe out any changes you've made.
25 * For a more permanent change edit config.sh and rerun config.h.SH.
31 * This symbol, if defined, indicates that the program is being compiled
32 * under the EUNICE package under VMS. The program will need to handle
33 * things like files that don't go away the first time you unlink them,
34 * due to version numbering. It will also need to compensate for lack
35 * of a respectable link() command.
38 * This symbol, if defined, indicates that the program is running under
39 * VMS. It is currently only set in conjunction with the EUNICE symbol.
41 #$d_eunice EUNICE /**/
45 * This symbol contains the number of bytes required to align a double.
46 * Usual values are 2, 4, and 8.
48 #define ALIGNBYTES $alignbytes /**/
51 * This symbol holds the name of the directory in which the user wants
52 * to keep publicly executable images for the package in question. It
53 * is most often a local directory such as /usr/local/bin.
55 #define BIN "$bin" /**/
58 * This symbol contains an encoding of the order of bytes in a long.
59 * Usual values (in hex) are 0x1234, 0x4321, 0x2143, 0x3412...
61 #define BYTEORDER 0x$byteorder /**/
64 * This symbol contains the first part of the string which will invoke
65 * the C preprocessor on the standard input and produce to standard
66 * output. Typical value of "cc -E" or "/lib/cpp".
69 * This symbol contains the second part of the string which will invoke
70 * the C preprocessor on the standard input and produce to standard
71 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
72 * to specify standard input, otherwise the value is "".
74 #define CPPSTDIN "$cppstdin"
75 #define CPPMINUS "$cppminus"
78 * This symbol, if defined, indicates that the bcmp routine is available
79 * to compare blocks of memory. If undefined, use memcmp. If that's
80 * not available, roll your own.
82 #$d_bcmp HAS_BCMP /**/
85 * This symbol, if defined, indicates that the bcopy routine is available
86 * to copy blocks of memory. Otherwise you should probably use memcpy().
88 #$d_bcopy HAS_BCOPY /**/
91 * This symbol, if defined, indicates that the bzero routine is available
92 * to zero blocks of memory. Otherwise you should probably use memset()
95 #$d_bzero HAS_BZERO /**/
98 * This symbol, if defined, indicates that this C compiler knows how to
99 * cast negative or large floating point numbers to unsigned longs, ints
103 * This symbol contains flags that say what difficulties the compiler
104 * has casting odd floating values to unsigned long:
105 * 1 = couldn't cast < 0
106 * 2 = couldn't cast >= 0x80000000
108 #$d_castneg CASTNEGFLOAT /**/
109 #define CASTFLAGS $castflags /**/
112 * This symbol is defined if this system declares "char *sprintf()" in
113 * stdio.h. The trend seems to be to declare it as "int sprintf()". It
114 * is up to the package author to declare sprintf correctly based on the
117 #$d_charsprf CHARSPRINTF /**/
120 * This symbol, if defined, indicates that the chsize routine is available
121 * to truncate files. You might need a -lx to get this routine.
123 #$d_chsize HAS_CHSIZE /**/
126 * This symbol, if defined, indicates that the crypt routine is available
127 * to encrypt passwords and the like.
129 #$d_crypt HAS_CRYPT /**/
132 * This symbol, if defined, indicates that the C-shell exists.
133 * If defined, contains the full pathname of csh.
135 #$d_csh CSH "$csh" /**/
138 * This symbol, if defined, indicates that the C program should
139 * check the script that it is executing for setuid/setgid bits, and
140 * attempt to emulate setuid/setgid on systems that have disabled
141 * setuid #! scripts because the kernel can't do it securely.
142 * It is up to the package designer to make sure that this emulation
143 * is done securely. Among other things, it should do an fstat on
144 * the script it just opened to make sure it really is a setuid/setgid
145 * script, it should make sure the arguments passed correspond exactly
146 * to the argument on the #! line, and it should not trust any
147 * subprocesses to which it must pass the filename rather than the
148 * file descriptor of the script to be executed.
150 #$d_dosuid DOSUID /**/
153 * This symbol, if defined, indicates that the dup2 routine is available
154 * to dup file descriptors. Otherwise you should use dup().
156 #$d_dup2 HAS_DUP2 /**/
159 * This symbol, if defined, indicates that the fchmod routine is available
160 * to change mode of opened files. If unavailable, use chmod().
162 #$d_fchmod HAS_FCHMOD /**/
165 * This symbol, if defined, indicates that the fchown routine is available
166 * to change ownership of opened files. If unavailable, use chown().
168 #$d_fchown HAS_FCHOWN /**/
171 * This symbol, if defined, indicates to the C program that
172 * the fcntl() function exists.
174 #$d_fcntl HAS_FCNTL /**/
177 * This symbol, if defined, indicates that the system supports filenames
178 * longer than 14 characters.
180 #$d_flexfnam FLEXFILENAMES /**/
183 * This symbol, if defined, indicates that the flock() routine is
184 * available to do file locking.
186 #$d_flock HAS_FLOCK /**/
189 * This symbol, if defined, indicates that the getgroups() routine is
190 * available to get the list of process groups. If unavailable, multiple
191 * groups are probably not supported.
193 #$d_getgrps HAS_GETGROUPS /**/
196 * This symbol, if defined, indicates that the gethostent() routine is
197 * available to lookup host names in some data base or other.
199 #$d_gethent HAS_GETHOSTENT /**/
202 * This symbol, if defined, indicates that the getpgrp() routine is
203 * available to get the current process group.
205 #$d_getpgrp HAS_GETPGRP /**/
208 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
209 * routine is available to get the current process group.
211 #$d_getpgrp2 HAS_GETPGRP2 /**/
214 * This symbol, if defined, indicates that the getpriority() routine is
215 * available to get a process's priority.
217 #$d_getprior HAS_GETPRIORITY /**/
220 * This symbol, if defined, indicates that the htons routine (and friends)
221 * are available to do network order byte swapping.
224 * This symbol, if defined, indicates that the htonl routine (and friends)
225 * are available to do network order byte swapping.
228 * This symbol, if defined, indicates that the ntohs routine (and friends)
229 * are available to do network order byte swapping.
232 * This symbol, if defined, indicates that the ntohl routine (and friends)
233 * are available to do network order byte swapping.
235 #$d_htonl HAS_HTONS /**/
236 #$d_htonl HAS_HTONL /**/
237 #$d_htonl HAS_NTOHS /**/
238 #$d_htonl HAS_NTOHL /**/
241 * This preprocessor symbol is defined, along with rindex, if the system
242 * uses the strchr and strrchr routines instead.
245 * This preprocessor symbol is defined, along with index, if the system
246 * uses the strchr and strrchr routines instead.
248 #$d_index index strchr /* cultural */
249 #$d_index rindex strrchr /* differences? */
252 * This symbol, if defined, indicates that the killpg routine is available
253 * to kill process groups. If unavailable, you probably should use kill
254 * with a negative process number.
256 #$d_killpg HAS_KILLPG /**/
259 * This symbol, if defined, indicates that the lstat() routine is
260 * available to stat symbolic links.
262 #$d_lstat HAS_LSTAT /**/
265 * This symbol, if defined, indicates that the memcmp routine is available
266 * to compare blocks of memory. If undefined, roll your own.
268 #$d_memcmp HAS_MEMCMP /**/
271 * This symbol, if defined, indicates that the memcpy routine is available
272 * to copy blocks of memory. Otherwise you should probably use bcopy().
273 * If neither is defined, roll your own.
275 #$d_memcpy HAS_MEMCPY /**/
278 * This symbol, if defined, indicates that the mkdir routine is available
279 * to create directories. Otherwise you should fork off a new process to
282 #$d_mkdir HAS_MKDIR /**/
285 * This symbol, if defined, indicates that the entire msg*(2) library is
291 * This symbol, if defined, indicates that the msgctl() routine is
292 * available to stat symbolic links.
294 #$d_msgctl HAS_MSGCTL /**/
297 * This symbol, if defined, indicates that the msgget() routine is
298 * available to stat symbolic links.
300 #$d_msgget HAS_MSGGET /**/
303 * This symbol, if defined, indicates that the msgrcv() routine is
304 * available to stat symbolic links.
306 #$d_msgrcv HAS_MSGRCV /**/
309 * This symbol, if defined, indicates that the msgsnd() routine is
310 * available to stat symbolic links.
312 #$d_msgsnd HAS_MSGSND /**/
315 * This symbol, if defined, indicates that ndbm.h exists and should
318 #$d_ndbm HAS_NDBM /**/
321 * This symbol, if defined, indicates that dbm.h exists and should
324 #$d_odbm HAS_ODBM /**/
327 * This manifest constant lets the C program know that the three
328 * argument form of open(2) is available.
330 #$d_open3 HAS_OPEN3 /**/
333 * This symbol, if defined, indicates that the readdir routine is available
334 * from the C library to read directories.
336 #$d_readdir HAS_READDIR /**/
339 * This symbol, if defined, indicates that the rename routine is available
340 * to rename files. Otherwise you should do the unlink(), link(), unlink()
343 #$d_rename HAS_RENAME /**/
346 * This symbol, if defined, indicates that the rmdir routine is available
347 * to remove directories. Otherwise you should fork off a new process to
350 #$d_rmdir HAS_RMDIR /**/
353 * This symbol, if defined, indicates that the select() subroutine
356 #$d_select HAS_SELECT /**/
359 * This symbol, if defined, indicates that the entire sem*(2) library is
365 * This symbol, if defined, indicates that the semctl() routine is
366 * available to stat symbolic links.
368 #$d_semctl HAS_SEMCTL /**/
371 * This symbol, if defined, indicates that the semget() routine is
372 * available to stat symbolic links.
374 #$d_semget HAS_SEMGET /**/
377 * This symbol, if defined, indicates that the semop() routine is
378 * available to stat symbolic links.
380 #$d_semop HAS_SEMOP /**/
383 * This symbol, if defined, indicates that the setegid routine is available
384 * to change the effective gid of the current program.
386 #$d_setegid HAS_SETEGID /**/
389 * This symbol, if defined, indicates that the seteuid routine is available
390 * to change the effective uid of the current program.
392 #$d_seteuid HAS_SETEUID /**/
395 * This symbol, if defined, indicates that the setpgrp() routine is
396 * available to set the current process group.
398 #$d_setpgrp HAS_SETPGRP /**/
401 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
402 * routine is available to set the current process group.
404 #$d_setpgrp2 HAS_SETPGRP2 /**/
407 * This symbol, if defined, indicates that the setpriority() routine is
408 * available to set a process's priority.
410 #$d_setprior HAS_SETPRIORITY /**/
413 * This symbol, if defined, indicates that the setregid routine is
414 * available to change the real and effective gid of the current program.
417 * This symbol, if defined, indicates that the setresgid routine is
418 * available to change the real, effective and saved gid of the current
421 #$d_setregid HAS_SETREGID /**/
422 #$d_setresgid HAS_SETRESGID /**/
425 * This symbol, if defined, indicates that the setreuid routine is
426 * available to change the real and effective uid of the current program.
429 * This symbol, if defined, indicates that the setresuid routine is
430 * available to change the real, effective and saved uid of the current
433 #$d_setreuid HAS_SETREUID /**/
434 #$d_setresuid HAS_SETRESUID /**/
437 * This symbol, if defined, indicates that the setrgid routine is available
438 * to change the real gid of the current program.
440 #$d_setrgid HAS_SETRGID /**/
443 * This symbol, if defined, indicates that the setruid routine is available
444 * to change the real uid of the current program.
446 #$d_setruid HAS_SETRUID /**/
449 * This symbol, if defined, indicates that the entire shm*(2) library is
455 * This symbol, if defined, indicates that the shmat() routine is
456 * available to stat symbolic links.
459 * This symbol, if defined, indicates that the shmat() routine
460 * returns a pointer of type void*.
462 #$d_shmat HAS_SHMAT /**/
464 #$d_voidshmat VOIDSHMAT /**/
467 * This symbol, if defined, indicates that the shmctl() routine is
468 * available to stat symbolic links.
470 #$d_shmctl HAS_SHMCTL /**/
473 * This symbol, if defined, indicates that the shmdt() routine is
474 * available to stat symbolic links.
476 #$d_shmdt HAS_SHMDT /**/
479 * This symbol, if defined, indicates that the shmget() routine is
480 * available to stat symbolic links.
482 #$d_shmget HAS_SHMGET /**/
485 * This symbol, if defined, indicates that the BSD socket interface is
489 * This symbol, if defined, indicates that the BSD socketpair call is
493 * This symbol, if defined, indicates that the 4.1c BSD socket interface
494 * is supported instead of the 4.2/4.3 BSD socket interface.
496 #$d_socket HAS_SOCKET /**/
498 #$d_sockpair HAS_SOCKETPAIR /**/
500 #$d_oldsock OLDSOCKET /**/
503 * This symbol is defined if this system has a stat structure declaring
504 * st_blksize and st_blocks.
506 #$d_statblks STATBLOCKS /**/
509 * This symbol is defined if this system has a FILE structure declaring
510 * _ptr and _cnt in stdio.h.
512 #$d_stdstdio STDSTDIO /**/
515 * This symbol, if defined, indicates that this C compiler knows how
516 * to copy structures. If undefined, you'll need to use a block copy
517 * routine of some sort instead.
519 #$d_strctcpy STRUCTCOPY /**/
522 * This symbol, if defined, indicates that the strerror() routine is
523 * available to translate error numbers to strings.
525 #$d_strerror HAS_STRERROR /**/
528 * This symbol, if defined, indicates that the symlink routine is available
529 * to create symbolic links.
531 #$d_symlink HAS_SYMLINK /**/
534 * This symbol, if defined, indicates that the syscall routine is available
535 * to call arbitrary system calls. If undefined, that's tough.
537 #$d_syscall HAS_SYSCALL /**/
540 * This symbol, if defined, indicates that the truncate routine is
541 * available to truncate files.
543 #$d_truncate HAS_TRUNCATE /**/
546 * This symbol, if defined, indicates that vfork() exists.
548 #$d_vfork HAS_VFORK /**/
551 * This symbol is defined if this system declares "void (*signal())()" in
552 * signal.h. The old way was to declare it as "int (*signal())()". It
553 * is up to the package author to declare things correctly based on the
557 * This symbol's value is either "void" or "int", corresponding to the
558 * appropriate return "type" of a signal handler. Thus, one can declare
559 * a signal handler using "TO_SIGNAL (*handler())()", and define the
560 * handler using "TO_SIGNAL handler(sig)".
562 #$d_voidsig VOIDSIG /**/
563 #$define TO_SIGNAL $d_tosignal /**/
566 * This symbol, if defined, indicates that this C compiler knows about
567 * the volatile declaration.
569 #$d_volatile HASVOLATILE /**/
572 * This symbol, if defined, indicates that the vprintf routine is available
573 * to printf with a pointer to an argument list. If unavailable, you
574 * may need to write your own, probably in terms of _doprnt().
577 * This symbol is defined if this system has vsprintf() returning type
578 * (char*). The trend seems to be to declare it as "int vsprintf()". It
579 * is up to the package author to declare vsprintf correctly based on the
582 #$d_vprintf HAS_VPRINTF /**/
583 #$d_charvspr CHARVSPRINTF /**/
586 * This symbol, if defined, indicates that wait4() exists.
588 #$d_wait4 HAS_WAIT4 /**/
591 * This symbol, if defined, indicates that waitpid() exists.
593 #$d_waitpid HAS_WAITPID /**/
596 * This symbol has a value like gid_t, int, ushort, or whatever type is
597 * used to declare group ids in the kernel.
599 #define GIDTYPE $gidtype /**/
602 * This symbol has a value like gid_t, int, ushort, or whatever type is
603 * used in the return value of getgroups().
605 #define GROUPSTYPE $groupstype /**/
608 * This manifest constant tells the C program to include <fcntl.h>.
610 #$i_fcntl I_FCNTL /**/
613 * This symbol, if defined, indicates that gdbm.h exists and should
619 * This symbol, if defined, indicates to the C program that it should
625 * This symbol, if defined, indicates to the C program that it should
626 * include netinet/in.h.
629 * This symbol, if defined, indicates to the C program that it should
632 #$i_niin I_NETINET_IN /**/
633 #$i_sysin I_SYS_IN /**/
636 * This symbol, if defined, indicates to the C program that it should
640 * This symbol, if defined, indicates to the C program that struct passwd
644 * This symbol, if defined, indicates to the C program that struct passwd
648 * This symbol, if defined, indicates to the C program that struct passwd
649 * contains pw_change.
652 * This symbol, if defined, indicates to the C program that struct passwd
656 * This symbol, if defined, indicates to the C program that struct passwd
657 * contains pw_expire.
660 * This symbol, if defined, indicates to the C program that struct passwd
661 * contains pw_comment.
664 #$d_pwquota PWQUOTA /**/
666 #$d_pwchange PWCHANGE /**/
667 #$d_pwclass PWCLASS /**/
668 #$d_pwexpire PWEXPIRE /**/
669 #$d_pwcomment PWCOMMENT /**/
672 * This manifest constant tells the C program to include <sys/file.h>.
674 #$i_sys_file I_SYS_FILE /**/
677 * This symbol, if defined, indicates that sys/ioctl.h exists and should
680 #$i_sysioctl I_SYSIOCTL /**/
683 * This symbol is defined if the program should include <time.h>.
686 * This symbol is defined if the program should include <sys/time.h>.
689 * This symbol is defined if the program should include <sys/time.h>
690 * with KERNEL defined.
693 * This symbol is defined if the program should include <sys/select.h>.
696 #$i_sys_time I_SYS_TIME /**/
697 #$d_systimekernel SYSTIMEKERNEL /**/
698 #$i_sys_select I_SYS_SELECT /**/
701 * This symbol, if defined, indicates to the C program that it should
704 #$i_utime I_UTIME /**/
707 * This symbol, if defined, indicates to the C program that it should
710 #$i_varargs I_VARARGS /**/
713 * This symbol, if defined, indicates to the C program that it should
716 #$i_vfork I_VFORK /**/
719 * This symbol contains the size of an int, so that the C preprocessor
720 * can make decisions based on it.
722 #define INTSIZE $intsize /**/
725 * This symbol, if defined, indicates that the program should use the
726 * P1003-style directory routines, and include <dirent.h>.
729 * This symbol, if defined, indicates that the program should use the
730 * directory functions by including <sys/dir.h>.
733 * This symbol, if defined, indicates that the program should include the
734 * system's version of ndir.h, rather than the one with this package.
737 * This symbol, if defined, indicates that the program should include the
738 * system's version of sys/ndir.h, rather than the one with this package.
741 * This symbol, if defined, indicates that the program should compile
742 * the ndir.c code provided with the package.
745 * This symbol, if defined, indicates to the C program that the length
746 * of directory entry names is provided by a d_namlen field. Otherwise
747 * you need to do strlen() on the d_name field.
749 #$i_dirent I_DIRENT /**/
750 #$i_sys_dir I_SYS_DIR /**/
752 #$i_sys_ndir I_SYS_NDIR /**/
753 #$i_my_dir I_MY_DIR /**/
754 #$d_dirnamlen DIRNAMLEN /**/
757 * This symbol, if defined, indicates that we're using our own malloc.
760 * This symbol defines the kind of ptr returned by malloc and realloc.
762 #$d_mymalloc MYMALLOC /**/
764 #define MALLOCPTRTYPE $mallocptrtype /**/
768 * This symbol contains the number of bits of random number the rand()
769 * function produces. Usual values are 15, 16, and 31.
771 #define RANDBITS $randbits /**/
774 * This symbol holds the name of the directory in which the user wants
775 * to keep publicly executable scripts for the package in question. It
776 * is often a directory that is mounted across diverse architectures.
778 #define SCRIPTDIR "$scriptdir" /**/
781 * This symbol contains an list of signal names in order.
783 #define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
786 * This symbol is defined to be the type of char used in stdio.h.
787 * It has the values "unsigned char" or "char".
789 #define STDCHAR $stdchar /**/
792 * This symbol has a value like uid_t, int, ushort, or whatever type is
793 * used to declare user ids in the kernel.
795 #define UIDTYPE $uidtype /**/
798 * This symbol indicates how much support of the void type is given by this
799 * compiler. What various bits mean:
801 * 1 = supports declaration of void
802 * 2 = supports arrays of pointers to functions returning void
803 * 4 = supports comparisons between pointers to void functions and
804 * addresses of void functions
806 * The package designer should define VOIDWANT to indicate the requirements
807 * of the package. This can be done either by #defining VOIDWANT before
808 * including config.h, or by defining voidwant in Myinit.U. If the level
809 * of void support necessary is not present, config.h defines void to "int",
810 * VOID to the empty string, and VOIDP to "char *".
813 * This symbol is used for void casts. On implementations which support
814 * void appropriately, its value is "void". Otherwise, its value maps
818 * This symbol's value is "void" if the implementation supports void
819 * appropriately. Otherwise, its value is the empty string. The primary
820 * use of this symbol is in specifying void parameter lists for function
824 * This symbol is used for casting generic pointers. On implementations
825 * which support void appropriately, its value is "void *". Otherwise,
826 * its value is "char *".
829 #define VOIDWANT $voidwant
831 #define VOIDHAVE $voidhave
832 #if (VOIDHAVE & VOIDWANT) != VOIDWANT
833 #define void int /* is void to be avoided? */
835 #define VOIDP (char *)
836 #define M_VOID /* Xenix strikes again */
839 #define VOIDP (void *)
843 * This symbol contains the name of the private library for this package.
844 * The library is private in the sense that it needn't be in anyone's
845 * execution path, but it should be accessible by the world. The program
846 * should be prepared to do ~ expansion.
848 #define PRIVLIB "$privlib" /**/