2 * This file was produced by hand because the configure utilities which
3 * are in the perl distribution are all shell scripts. Someday, I hope
4 * we'll get a perl configure utility, but until then . . .
6 * Feel free to add or change things to suit your needs, but be careful
7 * about moving the comments which say "config-skip" - they're used by
8 * GenConfig.pl when producing Config.pm.
14 /* Configuration time: 4-Dec-1995 17:00
15 * Configured by: Charles Bailey bailey@genetics.upenn.edu
23 * This macro catenates 2 tokens together.
26 * This macro surrounds its token with double quotes.
29 #define CAT2(a,b)a ## b
30 #define CAT3(a,b,c)a ## b ## c
31 #define CAT4(a,b,c,d)a ## b ## c ##d
32 #define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
34 #define STRINGIFY(A)StGiFy(a)
35 #define SCAT2(a,b)StGiFy(a) StGiFy(b)
36 #define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
37 #define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
38 #define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
40 #define CAT2(a,b)a/**/b
41 #define CAT3(a,b,c)a/**/b/**/c
42 #define CAT4(a,b,c,d)a/**/b/**/c/**/d
43 #define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
44 #define STRINGIFY(a)"a"
50 * This symbol contains the number of bytes required to align a
51 * double. Usual values are 2, 4 and 8.
53 #define MEM_ALIGNBYTES 8 /**/
56 * This variable, if defined, holds the name of the directory in
57 * which the user wants to put architecture-dependent public
58 * library files for $package. It is most often a local directory
59 * such as /usr/local/lib. Programs using this variable must be
60 * prepared to deal with filename expansion. If ARCHLIB_EXP is the
61 * same as PRIVLIB_EXP, it is not defined, since presumably the
62 * program already searches PRIVLIB_EXP.
65 #define ARCHLIB_EXP "/perl_root/lib/VMS_AXP/5_002" /* config-skip */
67 #define ARCHLIB_EXP "/perl_root/lib/VMS_VAX/5_002" /* config-skip */
71 * This symbol contains the first part of the string which will invoke
72 * the C preprocessor on the standard input and produce to standard
73 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
74 * call a wrapper. See CPPRUN.
77 * This symbol contains the second part of the string which will invoke
78 * the C preprocessor on the standard input and produce to standard
79 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
80 * to specify standard input, otherwise the value is "".
82 #define CPPSTDIN "cc/noobj/preprocess=sys$output sys$input"
86 * This symbol is defined if the bcmp() routine is available to
87 * compare blocks of memory.
92 * This symbol is defined if the bcopy() routine is available to
93 * copy blocks of memory.
98 * This symbol is defined if the bzero() routine is available to
99 * set a memory block to 0.
101 #undef HAS_BZERO /**/
104 * This symbol is defined if the C compiler can cast negative
105 * numbers to unsigned longs, ints and shorts.
108 * This symbol contains flags that say what difficulties the compiler
109 * has casting odd floating values to unsigned long:
111 * 1 = couldn't cast < 0
112 * 2 = couldn't cast >= 0x80000000
114 #define CASTNEGFLOAT /**/
115 #define CASTFLAGS 0 /**/
118 * This symbol, if defined, indicates that the chsize routine is available
119 * to truncate files. You might need a -lx to get this routine.
121 #undef HAS_CHSIZE /**/
124 * This symbol, if defined, indicates that this C compiler knows about
125 * the const type. There is no need to actually test for that symbol
126 * within your programs. The mere use of the "const" keyword will
127 * trigger the necessary tests.
129 #define HASCONST /**/
135 * This symbol, if defined, indicates that the crypt routine is available
136 * to encrypt passwords and the like.
138 #define HAS_CRYPT /**/
141 * This symbol hold the hexadecimal constant defined in byteorder,
142 * i.e. 0x1234 or 0x4321, etc...
144 #define BYTEORDER 0x1234 /* large digits for MSB */
147 * This symbol, if defined, indicates that the C-shell exists.
148 * If defined, contains the full pathname of csh.
153 * This symbol, if defined, indicates that the dup2 routine is
154 * available to duplicate file descriptors.
156 #define 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 #undef 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 #undef HAS_FCHOWN /**/
171 * This symbol, if defined, indicates to the C program that
172 * the fcntl() function exists.
174 #undef HAS_FCNTL /**/
177 * This symbol, if defined, indicates that the fgetpos routine is
178 * available to get the file position indicator, similar to ftell().
180 #define HAS_FGETPOS /**/
183 * This symbol, if defined, indicates that the system supports filenames
184 * longer than 14 characters.
186 #define FLEXFILENAMES /**/
189 * This symbol, if defined, indicates that the flock routine is
190 * available to do file locking.
192 #undef HAS_FLOCK /**/
195 * This symbol, if defined, indicates that the fsetpos routine is
196 * available to set the file position indicator, similar to fseek().
198 #define HAS_FSETPOS /**/
201 * This symbol, if defined, indicates that the getgroups() routine is
202 * available to get the list of process groups. If unavailable, multiple
203 * groups are probably not supported.
205 #undef HAS_GETGROUPS /**/
208 * This symbol, if defined, indicates that the C program may use the
209 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
212 #undef HAS_UNAME /**/
215 * This symbol, if defined, indicates that the getpgrp routine is
216 * available to get the current process group.
218 #undef HAS_GETPGRP /**/
221 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
222 * routine is available to get the current process group.
224 #undef HAS_GETPGRP2 /**/
227 * This symbol, if defined, indicates that the getpriority routine is
228 * available to get a process's priority.
230 #undef HAS_GETPRIORITY /**/
233 * This symbol, if defined, indicates that the killpg routine is available
234 * to kill process groups. If unavailable, you probably should use kill
235 * with a negative process number.
237 #undef HAS_KILLPG /**/
240 * This symbol, if defined, indicates that the link routine is
241 * available to create hard links.
246 * This symbol, if defined, indicates that the lstat routine is
247 * available to do file stats on symbolic links.
249 #undef HAS_LSTAT /**/
252 * This symbol, if defined, indicates that the lockf routine is
253 * available to do file locking.
255 #undef HAS_LOCKF /**/
258 * This symbol, if defined, indicates that the mbstowcs routine is
259 * available to covert a multibyte string into a wide character string.
261 #undef HAS_MBSTOWCS /**/
264 * This symbol, if defined, indicates that the mbtowc routine is available
265 * to covert a multibyte to a wide character.
267 #undef HAS_MBTOWC /**/
270 * This symbol, if defined, indicates that the memcmp routine is available
271 * to compare blocks of memory.
273 #define HAS_MEMCMP /**/
276 * This symbol, if defined, indicates that the memcpy routine is available
277 * to copy blocks of memory.
279 #define HAS_MEMCPY /**/
282 * This symbol, if defined, indicates that the memmove routine is available
283 * to copy potentially overlapping blocks of memory. This should be used
284 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
287 #define HAS_MEMMOVE /**/
290 * This symbol, if defined, indicates that the memset routine is available
291 * to set blocks of memory.
293 #define HAS_MEMSET /**/
296 * This symbol, if defined, indicates that the mkdir routine is available
297 * to create directories. Otherwise you should fork off a new process to
300 #define HAS_MKDIR /**/
303 * This symbol, if defined, indicates that the entire msg*(2) library is
304 * supported (IPC mechanism based on message queues).
309 * This manifest constant lets the C program know that the three
310 * argument form of open(2) is available.
312 #define HAS_OPEN3 /**/
315 * This symbol, if defined, indicates that the poll routine is
316 * available to poll active file descriptors.
321 * This symbol, if defined, indicates that the readdir routine is
322 * available to read directory entries. You may have to include
323 * <dirent.h>. See I_DIRENT.
325 #define HAS_READDIR /**/
328 * This symbol, if defined, indicates that the seekdir routine is
329 * available. You may have to include <dirent.h>. See I_DIRENT.
331 #define HAS_SEEKDIR /**/
334 * This symbol, if defined, indicates that the telldir routine is
335 * available. You may have to include <dirent.h>. See I_DIRENT.
337 #define HAS_TELLDIR /**/
340 * This symbol, if defined, indicates that the rewinddir routine is
341 * available. You may have to include <dirent.h>. See I_DIRENT.
343 #define HAS_REWINDDIR /**/
346 * This symbol, if defined, indicates that the rename routine is available
347 * to rename files. Otherwise you should do the unlink(), link(), unlink()
350 #define HAS_RENAME /**/
353 * This symbol, if defined, indicates that the rmdir routine is
354 * available to remove directories. Otherwise you should fork off a
355 * new process to exec /bin/rmdir.
357 #define HAS_RMDIR /**/
360 * This symbol, if defined, indicates that the entire sem*(2) library is
366 * This symbol, if defined, indicates that the setegid routine is available
367 * to change the effective gid of the current program.
369 #undef HAS_SETEGID /**/
372 * This symbol, if defined, indicates that the seteuid routine is available
373 * to change the effective uid of the current program.
375 #undef HAS_SETEUID /**/
378 * This symbol, if defined, indicates that the setlocale routine is
379 * available to handle locale-specific ctype implementations.
381 #undef HAS_SETLOCALE /**/
384 * This symbol, if defined, indicates that the setpgid routine is
385 * available to set process group ID.
387 #undef HAS_SETPGID /**/
390 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
391 * routine is available to set the current process group.
393 #undef HAS_SETPGRP2 /**/
396 * This symbol, if defined, indicates that the setpriority routine is
397 * available to set a process's priority.
399 #undef HAS_SETPRIORITY /**/
402 * This symbol, if defined, indicates that the setregid routine is
403 * available to change the real and effective gid of the current
407 * This symbol, if defined, indicates that the setresgid routine is
408 * available to change the real, effective and saved gid of the current
411 #undef HAS_SETREGID /**/
412 #undef HAS_SETRESGID /**/
415 * This symbol, if defined, indicates that the setreuid routine is
416 * available to change the real and effective uid of the current
420 * This symbol, if defined, indicates that the setresuid routine is
421 * available to change the real, effective and saved uid of the current
424 #undef HAS_SETREUID /**/
425 #undef HAS_SETRESUID /**/
428 * This symbol, if defined, indicates that the setrgid routine is available
429 * to change the real gid of the current program.
431 #undef HAS_SETRGID /**/
434 * This symbol, if defined, indicates that the setruid routine is available
435 * to change the real uid of the current program.
437 #undef HAS_SETRUID /**/
440 * This symbol, if defined, indicates that the setsid routine is
441 * available to set the process group ID.
443 #undef HAS_SETSID /**/
446 * This symbol, if defined, indicates that the entire shm*(2) library is
452 * This symbol holds the return type of the shmat() system call.
453 * Usually set to 'void *' or 'char *'.
455 /* HAS_SHMAT_PROTOTYPE:
456 * This symbol, if defined, indicates that the sys/shm.h includes
457 * a prototype for shmat(). Otherwise, it is up to the program to
458 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
459 * but not always right so it should be emitted by the program only
460 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
462 #undef Shmat_t /**/ /* config-skip */
463 #undef HAS_SHMAT_PROTOTYPE /**/
466 * This symbol, if defined, indicates that Vr4's sigaction() routine
469 #undef HAS_SIGACTION /**/
472 * This symbol is defined if this system has a stat structure declaring
473 * st_blksize and st_blocks.
475 #undef USE_STAT_BLOCKS /**/
478 * This symbol is defined if the _ptr and _cnt fields (or similar)
479 * of the stdio FILE structure can be used to access the stdio buffer
480 * for a file handle. If this is defined, then the FILE_ptr(fp)
481 * and FILE_cnt(fp) macros will also be defined and should be used
482 * to access these fields.
485 * This symbol is defined if the _base field (or similar) of the
486 * stdio FILE structure can be used to access the stdio buffer for
487 * a file handle. If this is defined, then the FILE_base(fp) macro
488 * will also be defined and should be used to access this field.
489 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
490 * to determine the number of bytes in the buffer. USE_STDIO_BASE
491 * will never be defined unless USE_STDIO_PTR is.
494 * Regular FILE * are pretty close to meeting these criteria, but socket
495 * I/O uses a summy FILE *, and Perl doesn't distinguish between socket
496 * and non-socket filehandles.
498 #undef USE_STDIO_PTR /**/
499 #undef USE_STDIO_BASE /**/
502 * This macro is used to access the _ptr field (or equivalent) of the
503 * FILE structure pointed to by its argument. This macro will always be
504 * defined if USE_STDIO_PTR is defined.
507 * This symbol is defined if the FILE_ptr macro can be used as an
511 * This macro is used to access the _cnt field (or equivalent) of the
512 * FILE structure pointed to by its argument. This macro will always be
513 * defined if USE_STDIO_PTR is defined.
516 * This symbol is defined if the FILE_cnt macro can be used as an
520 #undef STDIO_PTR_LVALUE
522 #undef STDIO_CNT_LVALUE
525 * This macro is used to access the _base field (or equivalent) of the
526 * FILE structure pointed to by its argument. This macro will always be
527 * defined if USE_STDIO_BASE is defined.
530 * This macro is used to determine the number of bytes in the I/O
531 * buffer pointed to by _base field (or equivalent) of the FILE
532 * structure pointed to its argument. This macro will always be defined
533 * if USE_STDIO_BASE is defined.
539 * This symbol, if defined, indicates that this C compiler knows how
540 * to copy structures. If undefined, you'll need to use a block copy
541 * routine of some sort instead.
543 #define USE_STRUCT_COPY /**/
546 * This symbol, if defined, indicates that the strerror routine is
547 * available to translate error numbers to strings. See the writeup
548 * of Strerror() in this file before you try to define your own.
551 * This symbol, if defined, indicates that the sys_errlist array is
552 * available to translate error numbers to strings. The extern int
553 * sys_nerr gives the size of that table.
556 * This preprocessor symbol is defined as a macro if strerror() is
557 * not available to translate error numbers to strings but sys_errlist[]
560 #define HAS_STRERROR /**/
561 #undef HAS_SYS_ERRLIST /**/
563 # define Strerror(e) strerror((e),vaxc$errno)
565 #define Strerror(e) ((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e]) /**/ /* config-skip */
569 * This symbol, if defined, indicates that the symlink routine is available
570 * to create symbolic links.
572 #undef HAS_SYMLINK /**/
575 * This symbol, if defined, indicates that the syscall routine is
576 * available to call arbitrary system calls. If undefined, that's tough.
578 #undef HAS_SYSCALL /**/
581 * This symbol, if defined, indicates that the system routine is
582 * available to issue a shell command.
584 #define HAS_SYSTEM /**/
587 * This symbol holds the type returned by time(). It can be long,
588 * or time_t on BSD sites (in which case <sys/types.h> should be
591 #define Time_t time_t /* Time type */
594 * This symbol, if defined, indicates that the truncate routine is
595 * available to truncate files.
597 #undef HAS_TRUNCATE /**/
601 * This symbol, if defined, indicates that vfork() exists.
603 #define HAS_VFORK /**/
606 * This symbol's value is either "void" or "int", corresponding to the
607 * appropriate return type of a signal handler. Thus, you can declare
608 * a signal handler using "Signal_t (*handler)()", and define the
609 * handler using "Signal_t handler(sig)".
611 #define Signal_t void /* Signal handler's return type */
614 * This symbol, if defined, indicates that this C compiler knows about
615 * the volatile declaration.
617 #define HASVOLATILE /**/
619 #define volatile /* config-skip */
623 * This symbol, if defined, indicates that the vprintf routine is available
624 * to printf with a pointer to an argument list. If unavailable, you
625 * may need to write your own, probably in terms of _doprnt().
627 /* USE_CHAR_VSPRINTF:
628 * This symbol is defined if this system has vsprintf() returning type
629 * (char*). The trend seems to be to declare it as "int vsprintf()". It
630 * is up to the package author to declare vsprintf correctly based on the
633 #define HAS_VPRINTF /**/
634 #undef USE_CHAR_VSPRINTF /**/
637 * This symbol, if defined, indicates that wait4() exists.
639 #undef HAS_WAIT4 /**/
642 * This symbol, if defined, indicates that the waitpid routine is
643 * available to wait for child process.
645 #define HAS_WAITPID /**/
648 * This symbol, if defined, indicates that the wcstombs routine is
649 * available to convert wide character strings to multibyte strings.
651 #undef HAS_WCSTOMBS /**/
654 * This symbol, if defined, indicates to the C program that it should
655 * include <dirent.h>. Using this symbol also triggers the definition
656 * of the Direntry_t define which ends up being 'struct dirent' or
657 * 'struct direct' depending on the availability of <dirent.h>.
660 * This symbol, if defined, indicates to the C program that the length
661 * of directory entry names is provided by a d_namlen field. Otherwise
662 * you need to do strlen() on the d_name field.
665 #define DIRNAMLEN /**/
666 #define Direntry_t struct dirent
669 * This manifest constant tells the C program to include <fcntl.h>.
674 * This symbol, if defined, indicates to the C program that it should
680 * This symbol, if defined, indicates to the C program that it should
681 * include <limits.h> to get definition of symbols like WORD_BIT or
682 * LONG_MAX, i.e. machine dependant limitations.
687 * This symbol, if defined, indicates to the C program that it should
688 * include <memory.h>.
693 * This symbol, if defined, indicates that ndbm.h exists and should
699 * This symbol, if defined, indicates that <stdarg.h> exists and should
702 #define I_STDARG /**/
705 * This symbol, if defined, indicates to the C program that it should
709 * This symbol, if defined, indicates to the C program that struct passwd
713 * This symbol, if defined, indicates to the C program that struct passwd
717 * This symbol, if defined, indicates to the C program that struct passwd
718 * contains pw_change.
721 * This symbol, if defined, indicates to the C program that struct passwd
725 * This symbol, if defined, indicates to the C program that struct passwd
726 * contains pw_expire.
729 * This symbol, if defined, indicates to the C program that struct passwd
730 * contains pw_comment.
738 #define PWCOMMENT /**/
741 * This symbol, if defined, indicates that <stddef.h> exists and should
744 #define I_STDDEF /**/
747 * This symbol, if defined, indicates that <stdlib.h> exists and should
750 #define I_STDLIB /**/
753 * This symbol, if defined, indicates to the C program that it should
754 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
756 #define I_STRING /**/
759 * This symbol, if defined, indicates to the C program that it should
760 * include <sys/dir.h>.
762 #undef I_SYS_DIR /**/
765 * This symbol, if defined, indicates to the C program that it should
766 * include <sys/file.h> to get definition of R_OK and friends.
768 #undef I_SYS_FILE /**/
771 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
772 * be included. Otherwise, include <sgtty.h> or <termio.h>.
774 #undef I_SYS_IOCTL /**/
777 * This symbol, if defined, indicates to the C program that it should
778 * include <sys/ndir.h>.
780 #undef I_SYS_NDIR /**/
783 * This symbol, if defined, indicates to the C program that it should
784 * include <sys/select.h> in order to get definition of struct timeval.
786 #undef I_SYS_SELECT /**/
789 * This symbol, if defined, indicates that <dbm.h> exists and should
793 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
794 * should be included.
797 #undef I_RPCSVC_DBM /**/
800 * This symbol, if defined, indicates to the C program that it should
801 * include <sys/stat.h>.
803 #define I_SYS_STAT /**/
806 * This symbol, if defined, indicates to the C program that it should
807 * include <sys/times.h>.
809 #undef I_SYS_TIMES /**/
812 * This symbol, if defined, indicates to the C program that it should
813 * include <sys/types.h>.
815 #define I_SYS_TYPES /**/
818 * This symbol, if defined, indicates to the C program that it should
819 * include <sys/un.h> to get UNIX domain socket definitions.
824 * This symbol, if defined, indicates that the program should include
825 * <termio.h> rather than <sgtty.h>. There are also differences in
826 * the ioctl() calls that depend on the value of this symbol.
829 * This symbol, if defined, indicates that the program should include
830 * the POSIX termios.h rather than sgtty.h or termio.h.
831 * There are also differences in the ioctl() calls that depend on the
832 * value of this symbol.
835 * This symbol, if defined, indicates that the program should include
836 * <sgtty.h> rather than <termio.h>. There are also differences in
837 * the ioctl() calls that depend on the value of this symbol.
841 #undef I_TERMIOS /**/
844 * This symbol, if defined, indicates to the C program that it should
848 * This symbol, if defined, indicates to the C program that it should
849 * include <sys/time.h>.
851 /* I_SYS_TIME_KERNEL:
852 * This symbol, if defined, indicates to the C program that it should
853 * include <sys/time.h> with KERNEL defined.
856 #undef I_SYS_TIME /**/
857 #undef I_SYS_TIME_KERNEL /**/
860 * This symbol, if defined, indicates to the C program that it should
861 * include <unistd.h>.
866 * This symbol, if defined, indicates to the C program that it should
872 * This symbol, if defined, indicates to the C program that it should
873 * include <varargs.h>.
875 #undef I_VARARGS /**/
879 * This symbol, if defined, indicates to the C program that it should
885 * If defined, this macro indicates that the C compiler can handle
886 * function prototypes.
889 * This macro is used to declare function parameters for folks who want
890 * to make declarations with prototypes using a different style than
891 * the above macros. Use double parentheses. For example:
893 * int main _((int argc, char *argv[]));
895 #define CAN_PROTOTYPE /**/
897 #define _(args) args /* config-skip */
899 #define _(args) () /* config-skip */
903 * This symbol contains the number of bits of random number the rand()
904 * function produces. Usual values are 15, 16, and 31.
906 #define RANDBITS 31 /**/
910 * This symbol holds the type used for the 2nd, 3rd, and 4th
911 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
912 * is defined, and 'int *' otherwise. This is only useful if you
913 * have select(), of course.
915 #define Select_fd_set_t int * /**/
918 * This symbol is defined to be the type of char used in stdio.h.
919 * It has the values "unsigned char" or "char".
921 #define STDCHAR char /**/
923 /* UNLINK_ALL_VERSIONS:
924 * This symbol, if defined, indicates that the program should arrange
925 * to remove all versions of a file if unlink() is called.
927 #undef UNLINK_ALL_VERSIONS /**/
930 * This symbol holds the complete pathname to the sed program.
932 #define LOC_SED "_NLA0:" /**/
935 * This symbol holds the path of the bin directory where the package will
936 * be installed. Program must be prepared to deal with ~name substitution.
938 #define BIN "/perl_root/000000" /**/
941 * This symbol, if defined, indicates that the alarm routine is
944 #define HAS_ALARM /**/
947 * This symbol indicates the C compiler can check for function attributes,
948 * such as printf formats. This is normally only supported by GNU cc.
951 # define HASATTRIBUTE /*config-skip*/
953 # undef HASATTRIBUTE /*config-skip*/
956 #define __attribute__(_arg_)
960 * This symbol is defined if the C compiler can cast negative
961 * or large floating point numbers to 32-bit ints.
966 * This symbol, if defined, indicates that the chown routine is
969 #define HAS_CHOWN /**/
972 * This symbol, if defined, indicates that the chroot routine is
975 #undef HAS_CHROOT /**/
978 * This symbol, if defined, indicates that the cuserid routine is
979 * available to get character login names.
981 #define HAS_CUSERID /**/
984 * This symbol, if defined, indicates that this system's <float.h>
985 * or <limits.h> defines the symbol DBL_DIG, which is the number
986 * of significant digits in a double precision number. If this
987 * symbol is not defined, a guess of 15 is usually pretty good.
989 #define HAS_DBL_DIG /* */
992 * This symbol, if defined, indicates that the difftime routine is
995 #define HAS_DIFFTIME /**/
998 * This symbol, if defined, indicates that the fork routine is
1001 /* VMS: In vmsish.h, fork is #defined to vfork. This kludge gets around
1002 * some obsolete code in pp.c, which should be fixed in its own right
1003 * sometime. - C. Bailey 26-Aug-1994
1005 #define HAS_FORK /**/
1008 * This symbol, if defined, indicates that the getlogin routine is
1011 #define HAS_GETLOGIN /**/
1014 * This symbol, if defined, indicates that the getppid routine is
1017 #undef HAS_GETPPID /**/
1020 * This symbol, if defined, indicates that the htonl() routine (and
1021 * friends htons() ntohl() ntohs()) are available to do network
1022 * order byte swapping.
1025 * This symbol, if defined, indicates that the htons() routine (and
1026 * friends htonl() ntohl() ntohs()) are available to do network
1027 * order byte swapping.
1030 * This symbol, if defined, indicates that the ntohl() routine (and
1031 * friends htonl() htons() ntohs()) are available to do network
1032 * order byte swapping.
1035 * This symbol, if defined, indicates that the ntohs() routine (and
1036 * friends htonl() htons() ntohl()) are available to do network
1037 * order byte swapping.
1039 #define HAS_HTONL /**/
1040 #define HAS_HTONS /**/
1041 #define HAS_NTOHL /**/
1042 #define HAS_NTOHS /**/
1045 * This symbol, if defined, indicates that the mblen routine is available
1046 * to find the number of bytes in a multibye character.
1048 #undef HAS_MBLEN /**/
1051 * This symbol, if defined, indicates that the mktime routine is
1054 #undef HAS_MKTIME /**/
1057 * This symbol, if defined, indicates that the nice routine is
1060 #define HAS_NICE /**/
1063 * This symbol, if defined, indicates that the pause routine is
1066 #define HAS_PAUSE /**/
1069 * This symbol, if defined, indicates that the pipe routine is
1072 #define HAS_PIPE /**/
1075 * This symbol, if defined, indicates that the readlink routine is
1078 #undef HAS_READLINK /**/
1081 * This symbol, if defined, indicates that the setlinebuf routine is
1082 * available to change stderr or stdout from block-buffered or unbuffered
1083 * to a line-buffered mode.
1085 #undef HAS_SETLINEBUF /**/
1088 * This symbol is defined to indicate that the strchr()/strrchr()
1089 * functions are available for string searching. If not, try the
1090 * index()/rindex() pair.
1093 * This symbol is defined to indicate that the index()/rindex()
1094 * functions are available for string searching.
1096 #define HAS_STRCHR /**/
1097 #undef HAS_INDEX /**/
1100 * This symbol, if defined, indicates that the strcoll routine is
1101 * available to compare strings using collating information.
1103 #undef HAS_STRCOLL /**/
1106 * This symbol, if defined, indicates that the strxfrm() routine is
1107 * available to compare strings using collating information.
1109 #undef HAS_STRXFRM /**/
1112 * This symbol, if defined, indicates that the tcgetpgrp routine is
1113 * available to get foreground process group ID.
1115 #undef HAS_TCGETPGRP /**/
1118 * This symbol, if defined, indicates that the tcsetpgrp routine is
1119 * available to set foreground process group ID.
1121 #undef HAS_TCSETPGRP /**/
1124 * This symbol, if defined, indicates that the times() routine exists.
1125 * Note that this became obsolete on some systems (SUNOS), which now
1126 * use getrusage(). It may be necessary to include <sys/times.h>.
1128 #define HAS_TIMES /**/
1131 * This symbol, if defined, indicates that the tzname[] array is
1132 * available to access timezone names.
1134 #undef HAS_TZNAME /**/
1137 * This symbol, if defined, indicates that the umask routine is
1138 * available to get the file creation mask.
1140 #define HAS_UMASK /**/
1143 * This symbol, if defined, indicates that the wctomb routine is available
1144 * to covert a wide character to a multibyte.
1146 #undef HAS_WCTOMB /**/
1149 * This symbol holds the type used to declare file positions in libc.
1150 * It can be fpos_t, long, uint, etc... It may be necessary to include
1151 * <sys/types.h> to get any typedef'ed information.
1153 #define Fpos_t fpos_t /* File position type */
1156 * This symbol holds the return type of getgid() and the type of
1157 * argument to setrgid() and related functions. Typically,
1158 * it is the type of group ids in the kernel.
1159 * It can be int, ushort, uid_t, etc... It may be necessary to include
1160 * <sys/types.h> to get any typedef'ed information.
1162 #if defined(__DECC) && defined(__DECC_VER) && (__DECC_VER >= 500000)
1163 # define Gid_t gid_t /* config-skip */
1165 # define Gid_t unsigned int /* config-skip */
1169 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1175 * This symbol, if defined, indicates to the C program that it should
1176 * include <float.h> to get definition of symbols like DBL_MAX or
1177 * DBL_MIN, i.e. machine dependent floating point values.
1179 #define I_FLOAT /**/
1182 * This symbol, if defined, indicates to the C program that it should
1188 * This symbol, if defined, indicates to the C program that it should
1189 * include <locale.h>.
1191 #undef I_LOCALE /**/
1194 * This symbol, if defined, indicates to the C program that it should
1195 * include <sys/stat.h>.
1197 #define I_SYS_STAT /**/
1200 * This symbol contains the size of an int, so that the C preprocessor
1201 * can make decisions based on it.
1203 #define INTSIZE 4 /**/
1206 * This symbol holds the type used to declare offsets in the kernel.
1207 * It can be int, long, off_t, etc... It may be necessary to include
1208 * <sys/types.h> to get any typedef'ed information.
1210 #define Off_t int /* <offset> type */
1213 * This variable contains the return type of free(). It is usually
1214 * void, but occasionally int.
1217 * This symbol is the type of pointer returned by malloc and realloc.
1219 #define Malloc_t void * /**/
1220 #define Free_t void /**/
1223 * This symbol, if defined, indicates that we're using our own malloc.
1225 #undef MYMALLOC /**/
1228 * This symbol contains a list of signal names in order. This is intended
1229 * to be used as a static array initialization, like this:
1230 * char *sig_name[] = { SIG_NAME };
1231 * The signals in the list are separated with commas, and each signal
1232 * is surrounded by double quotes. There is no leading SIG in the signal
1233 * name, i.e. SIGQUIT is known as "QUIT". Duplicates are allowed.
1234 * The signal number for sig_name[i] is stored in sig_num[i].
1235 * The last element is 0 to terminate the list with a NULL. This
1236 * corresponds to the 0 at the end of the sig_num list.
1237 * See SIG_NUM and SIG_MAX.
1239 #define SIG_NAME "ZERO","HUP","INT","QUIT","ILL","TRAP","IOT","EMT","FPE",\
1240 "KILL","BUS","SEGV","SYS","PIPE","ALRM","TERM",\
1241 "ABRT","USR1","USR2",0
1244 * This symbol contains a list of signal number, in the same order as the
1245 * SIG_NAME list. It is suitable for static array initialization, as in:
1246 * int sig_num[] = { SIG_NUM };
1247 * The signals in the list are separated with commas, and the indices
1248 * within that list and the SIG_NAME list match, so it's easy to compute
1249 * the signal name from a number or vice versa at the price of a small
1250 * dynamic linear lookup. Duplicates are allowed, so you can't assume
1251 * sig_num[i] == i. Instead, the signal number corresponding to
1252 * sig_name[i] is sig_number[i].
1253 * The last element is 0, corresponding to the 0 at the end of
1254 * the sig_name list.
1256 #define SIG_NUM 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,6,16,17,0 /**/
1259 * This symbol holds the type used to declare file modes
1260 * for systems calls. It is usually mode_t, but may be
1261 * int or unsigned short. It may be necessary to include <sys/types.h>
1262 * to get any typedef'ed information.
1264 #define Mode_t unsigned int /* file mode parameter for system calls*/
1267 * This symbol holds the type used by functions that return
1268 * a count of bytes or an error condition. It must be a signed type.
1269 * It is usually ssize_t, but may be long or int, etc.
1270 * It may be necessary to include <sys/types.h> or <unistd.h>
1271 * to get any typedef'ed information.
1272 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1274 #define SSize_t int /* signed count of bytes */
1277 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1278 * non-blocking I/O for the file descriptor. Note that there is no way
1279 * back, i.e. you cannot turn it blocking again this way. If you wish to
1280 * alternatively switch between blocking and non-blocking, use the
1281 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
1284 * This symbol holds the errno error code set by read() when no data was
1285 * present on the non-blocking file descriptor.
1288 * This symbol holds the return code from read() when no data is present
1289 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1290 * not defined, then you can't distinguish between no data and EOF by
1291 * issuing a read(). You'll have to find another way to tell for sure!
1294 * This symbol, if defined, indicates to the C program that a read() on
1295 * a non-blocking file descriptor will return 0 on EOF, and not the value
1296 * held in RD_NODATA (-1 usually, in that case!).
1298 #define VAL_O_NONBLOCK
1304 * This symbol contains the ~name expanded version of OLDARCHLIB, to be
1305 * used in programs that are not prepared to deal with ~ expansion at
1309 #define OLDARCHLIB_EXP "/perl_root/lib/VMS_AXP" /* config-skip */
1311 #define OLDARCHLIB_EXP "/perl_root/lib/VMS_VAX" /* config-skip */
1315 * This symbol contains the name of the private library for this package.
1316 * The library is private in the sense that it needn't be in anyone's
1317 * execution path, but it should be accessible by the world. The program
1318 * should be prepared to do ~ expansion.
1320 #define PRIVLIB_EXP "/perl_root/lib" /**/
1323 * This symbol contains the ~name expanded version of SITELIB, to be used
1324 * in programs that are not prepared to deal with ~ expansion at run-time.
1326 #define SITELIB_EXP "/perl_root/lib/site_perl" /**/
1329 * This symbol contains the ~name expanded version of SITEARCH, to be used
1330 * in programs that are not prepared to deal with ~ expansion at run-time.
1333 #define SITEARCH_EXP "/perl_root/lib/site_perl/VMS_AXP" /* config-skip */
1335 #define SITEARCH_EXP "/perl_root/lib/site_perl/VMS_VAX" /* config-skip */
1339 * This symbol holds the name of the directory in which the user wants
1340 * to put publicly executable scripts for the package in question. It
1341 * is often a directory that is mounted across diverse architectures.
1342 * Programs must be prepared to deal with ~name expansion.
1344 #define SCRIPTDIR "/perl_root/script" /**/
1347 * This symbol holds the type used to declare length parameters
1348 * for string functions. It is usually size_t, but may be
1349 * unsigned long, int, etc. It may be necessary to include
1350 * <sys/types.h> to get any typedef'ed information.
1352 #define Size_t size_t /* length paramater for string functions */
1355 * This symbol holds the type used to declare user ids in the kernel.
1356 * It can be int, ushort, uid_t, etc... It may be necessary to include
1357 * <sys/types.h> to get any typedef'ed information.
1359 #define Uid_t unsigned int /* UID type */
1362 * This symbol, if defined, indicates to the C program that it should
1363 * include <sys/param.h>.
1367 /* GNUC_ATTRIBUTE_CHECK:
1368 * This symbol indicates the C compiler can check for function attributes,
1369 * such as printf formats.
1371 /* VMS: true for gcc, undef for VAXC/DECC. This is handled in Descrip.MMS
1372 * C. Bailey 26-Aug-1994
1374 /*#define GNUC_ATTRIBUTE_CHECK /**/
1377 * This symbol, if defined, indicates that the closedir() routine
1378 * does not return a value.
1380 #define VOID_CLOSEDIR /**/
1383 * This symbol, if defined, indicates that the dlerror routine is
1386 #undef HAS_DLERROR /**/
1388 /* DLSYM_NEEDS_UNDERSCORE:
1389 * This symbol, if defined, indicates that we need to prepend an
1390 * underscore to the symbol name before calling dlsym(). This only
1391 * makes sense if you *have* dlsym, which we will presume is the
1392 * case if you're using dl_dlopen.xs.
1394 #undef DLSYM_NEEDS_UNDERSCORE /* */
1396 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
1397 * This symbol, if defined, indicates that setuid scripts are secure.
1400 * This symbol, if defined, indicates that the C program should
1401 * check the script that it is executing for setuid/setgid bits, and
1402 * attempt to emulate setuid/setgid on systems that have disabled
1403 * setuid #! scripts because the kernel can't do it securely.
1404 * It is up to the package designer to make sure that this emulation
1405 * is done securely. Among other things, it should do an fstat on
1406 * the script it just opened to make sure it really is a setuid/setgid
1407 * script, it should make sure the arguments passed correspond exactly
1408 * to the argument on the #! line, and it should not trust any
1409 * subprocesses to which it must pass the filename rather than the
1410 * file descriptor of the script to be executed.
1412 #undef SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1416 * This manifest constant lets the C program know that the
1417 * isascii is available.
1419 #define HAS_ISASCII /**/
1422 * This symbol, if defined, indicates that the localeconv routine is
1423 * available for numeric and monetary formatting conventions.
1425 #undef HAS_LOCALECONV /**/
1428 * This symbol, if defined, indicates that the mkfifo routine is
1431 #undef HAS_MKFIFO /**/
1434 * This symbol, if defined, indicates that pathconf() is available
1435 * to determine file-system related limits and options associated
1436 * with a given filename.
1439 * This symbol, if defined, indicates that pathconf() is available
1440 * to determine file-system related limits and options associated
1441 * with a given open file descriptor.
1443 #undef HAS_PATHCONF /**/
1444 #undef HAS_FPATHCONF /**/
1447 * This symbol, if defined, indicates that the bcopy routine is available
1448 * to copy potentially overlapping memory blocks. Otherwise you should
1449 * probably use memmove() or memcpy(). If neither is defined, roll your
1452 #undef HAS_SAFE_BCOPY /**/
1455 * This symbol, if defined, indicates that the memcpy routine is available
1456 * to copy potentially overlapping memory blocks. Otherwise you should
1457 * probably use memmove() or memcpy(). If neither is defined, roll your
1460 #define HAS_SAFE_MEMCPY /**/
1463 * This symbol, if defined, indicates that the setpgrp routine is
1464 * available to set the current process group.
1467 * This symbol, if defined, indicates that the BSD notion of process
1468 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
1469 * instead of the USG setpgrp().
1471 #undef HAS_SETPGRP /**/
1472 #undef USE_BSDPGRP /**/
1475 * This symbol, if defined, indicates that sysconf() is available
1476 * to determine system related limits and options.
1478 #undef HAS_SYSCONF /**/
1481 * This preprocessor macro is defined to convert a floating point
1482 * number to a string without a trailing decimal point. This
1483 * emulates the behavior of sprintf("%g"), but is sometimes much more
1484 * efficient. If gconvert() is not available, but gcvt() drops the
1485 * trailing decimal point, then gcvt() is used. If all else fails,
1486 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1487 * macro are: value, number of digits, whether trailing zeros should
1488 * be retained, and the output buffer.
1489 * Possible values are:
1490 * d_Gconvert='gconvert((x),(n),(t),(b))'
1491 * d_Gconvert='gcvt((x),(n),(b))'
1492 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1493 * The last two assume trailing zeros should not be kept.
1495 #define Gconvert(x,n,t,b) my_gconvert(x,n,t,b)
1497 /* USE_DYNAMIC_LOADING:
1498 * This symbol, if defined, indicates that dynamic loading of
1499 * some sort is available.
1501 #define USE_DYNAMIC_LOADING /**/
1504 * This variable contains the string to put in front of a perl
1505 * script to make sure (one hopes) that it runs with perl and not
1508 #define STARTPERL "" /**/
1511 * This symbol indicates how much support of the void type is given by this
1512 * compiler. What various bits mean:
1514 * 1 = supports declaration of void
1515 * 2 = supports arrays of pointers to functions returning void
1516 * 4 = supports comparisons between pointers to void functions and
1517 * addresses of void functions
1518 * 8 = suports declaration of generic void pointers
1520 * The package designer should define VOIDUSED to indicate the requirements
1521 * of the package. This can be done either by #defining VOIDUSED before
1522 * including config.h, or by defining defvoidused in Myinit.U. If the
1523 * latter approach is taken, only those flags will be tested. If the
1524 * level of void support necessary is not present, defines void to int.
1529 #define VOIDFLAGS 15
1530 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1531 #define void int /* is void to be avoided? */ /* config-skip */
1532 #define M_VOID /* Xenix strikes again */ /* config-skip */
1535 #ifdef VMS_DO_SOCKETS
1537 * This symbol, if defined, indicates that the BSD socket interface is
1541 * This symbol, if defined, indicates that the BSD socketpair() call is
1544 #define HAS_SOCKET /**/ /* config-skip */
1545 #undef HAS_SOCKETPAIR /**/ /* config-skip */
1548 * This symbol, if defined, indicates that the gethostent routine is
1549 * available to lookup host names in some data base or other.
1551 #define HAS_GETHOSTENT /**/ /* config-skip */
1553 /* VMS: In general, TCP/IP header files should be included from
1554 * sockadapt.h, instead of here, in order to keep the TCP/IP code
1555 * together as much as possible.
1558 * This symbol, if defined, indicates to the C program that it should
1559 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1561 #undef I_NETINET_IN /**/ /* config-skip */
1564 * This symbol holds the type used for the second argument to
1565 * getgroups(). Usually, this is the same of gidtype, but
1566 * sometimes it isn't. It can be int, ushort, uid_t, etc...
1567 * It may be necessary to include <sys/types.h> to get any
1568 * typedef'ed information. This is only required if you have
1571 #ifdef HAS_GETGROUPS
1572 #define Groups_t unsigned int /* Type for 2nd arg to getgroups() */ /* config-skip */
1576 * This symbol contains the type of the prefix structure element
1577 * in the <db.h> header file. In older versions of DB, it was
1578 * int, while in newer ones it is u_int32_t.
1581 * This symbol contains the type of the prefix structure element
1582 * in the <db.h> header file. In older versions of DB, it was
1583 * int, while in newer ones it is size_t.
1585 #undef DB_Hash_t /**/
1586 #undef DB_Prefix_t /**/
1589 * This symbol, if defined, indicates that <net/errno.h> exists and
1590 * should be included.
1592 #undef I_NET_ERRNO /**/ /* config-skip */
1595 * This symbol, if defined, indicates that the select routine is
1596 * available to select active file descriptors. If the timeout field
1597 * is used, <sys/time.h> may need to be included.
1599 #define HAS_SELECT /**/ /* config-skip */
1601 #else /* VMS_DO_SOCKETS */
1603 #undef HAS_SOCKET /**/ /* config-skip */
1604 #undef HAS_SOCKETPAIR /**/ /* config-skip */
1605 #undef HAS_GETHOSTENT /**/ /* config-skip */
1606 #undef I_NETINET_IN /**/ /* config-skip */
1607 #undef I_NET_ERRNO /**/ /* config-skip */
1608 #undef HAS_SELECT /**/ /* config-skip */
1610 #endif /* !VMS_DO_SOCKETS */