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.
13 /* Configuration time: 12-Oct-1994 17:00
14 * Configured by: Charles Bailey bailey@genetics.upenn.edu
22 * This symbol contains the number of bytes required to align a
23 * double. Usual values are 2, 4 and 8.
25 #define MEM_ALIGNBYTES 8 /**/
28 * This symbol hold the hexadecimal constant defined in byteorder,
29 * i.e. 0x1234 or 0x4321, etc...
31 #define BYTEORDER 0x1234 /* large digits for MSB */
34 * This variable, if defined, holds the name of the directory in
35 * which the user wants to put architecture-dependent public
36 * library files for $package. It is most often a local directory
37 * such as /usr/local/lib. Programs using this variable must be
38 * prepared to deal with filename expansion. If ARCHLIB_EXP is the
39 * same as PRIVLIB_EXP, it is not defined, since presumably the
40 * program already searches PRIVLIB_EXP.
43 #define ARCHLIB_EXP "/perl_root/lib/VMS_AXP" /* config-skip */
45 #define ARCHLIB_EXP "/perl_root/lib/VMS_VAX" /* config-skip */
49 * This macro catenates 2 tokens together.
52 * This macro surrounds its token with double quotes.
55 #define CAT2(a,b) a##b /* config-skip */
56 #define CAT3(a,b,c) a##b##c /* config-skip */
57 #define CAT4(a,b,c,d) a##b##c##d /* config-skip */
58 #define CAT5(a,b,c,d,e) a##b##c##d##e /* config-skip */
59 #define STRINGIFY(a) #a /* config-skip */
61 #define CAT2(a,b) a/**/b /* config-skip */
62 #define CAT3(a,b,c) a/**/b/**/c /* config-skip */
63 #define CAT4(a,b,c,d) a/**/b/**/c/**/d /* config-skip */
64 #define CAT5(a,b,c,d,e) a/**/b/**/c/**/d/**/e /* config-skip */
65 #define STRINGIFY(a) "a" /* config-skip */
69 * This symbol contains the first part of the string which will invoke
70 * the C preprocessor on the standard input and produce to standard
71 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
72 * call a wrapper. See CPPRUN.
75 * This symbol contains the second part of the string which will invoke
76 * the C preprocessor on the standard input and produce to standard
77 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
78 * to specify standard input, otherwise the value is "".
80 #define CPPSTDIN "cc/noobj/preprocess=sys$output sys$input"
84 * This symbol is defined if the bcmp() routine is available to
85 * compare blocks of memory.
90 * This symbol is defined if the bcopy() routine is available to
91 * copy blocks of memory.
96 * This symbol is defined if the bzero() routine is available to
97 * set a memory block to 0.
102 * This symbol is defined if the C compiler can cast negative
103 * numbers to unsigned longs, ints and shorts.
106 * This symbol contains flags that say what difficulties the compiler
107 * has casting odd floating values to unsigned long:
109 * 1 = couldn't cast < 0
110 * 2 = couldn't cast >= 0x80000000
112 #define CASTNEGFLOAT /**/
113 #define CASTFLAGS 0 /**/
116 * This symbol is defined if this system declares "char *sprintf()" in
117 * stdio.h. The trend seems to be to declare it as "int sprintf()". It
118 * is up to the package author to declare sprintf correctly based on the
121 #undef CHARSPRINTF /**/
124 * This symbol, if defined, indicates that the chsize routine is available
125 * to truncate files. You might need a -lx to get this routine.
127 #undef HAS_CHSIZE /**/
130 * This symbol, if defined, indicates that this C compiler knows about
131 * the const type. There is no need to actually test for that symbol
132 * within your programs. The mere use of the "const" keyword will
133 * trigger the necessary tests.
135 #define HASCONST /**/
141 * This symbol, if defined, indicates that the crypt routine is available
142 * to encrypt passwords and the like.
144 #undef HAS_CRYPT /**/
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 readdir routine is
316 * available to read directory entries. You may have to include
317 * <dirent.h>. See I_DIRENT.
319 #define HAS_READDIR /**/
322 * This symbol, if defined, indicates that the seekdir routine is
323 * available. You may have to include <dirent.h>. See I_DIRENT.
325 #define HAS_SEEKDIR /**/
328 * This symbol, if defined, indicates that the telldir routine is
329 * available. You may have to include <dirent.h>. See I_DIRENT.
331 #define HAS_TELLDIR /**/
334 * This symbol, if defined, indicates that the rewinddir routine is
335 * available. You may have to include <dirent.h>. See I_DIRENT.
337 #define HAS_REWINDDIR /**/
340 * This symbol, if defined, indicates that the rename routine is available
341 * to rename files. Otherwise you should do the unlink(), link(), unlink()
344 #define HAS_RENAME /**/
347 * This symbol, if defined, indicates that the rmdir routine is
348 * available to remove directories. Otherwise you should fork off a
349 * new process to exec /bin/rmdir.
351 #define HAS_RMDIR /**/
354 * This symbol, if defined, indicates that the select routine is
355 * available to select active file descriptors. If the timeout field
356 * is used, <sys/time.h> may need to be included.
358 #undef HAS_SELECT /**/
361 * This symbol, if defined, indicates that the entire sem*(2) library is
367 * This symbol, if defined, indicates that the setegid routine is available
368 * to change the effective gid of the current program.
370 #undef HAS_SETEGID /**/
373 * This symbol, if defined, indicates that the seteuid routine is available
374 * to change the effective uid of the current program.
376 #undef HAS_SETEUID /**/
379 * This symbol, if defined, indicates that the setlocale routine is
380 * available to handle locale-specific ctype implementations.
382 #undef HAS_SETLOCALE /**/
385 * This symbol, if defined, indicates that the setpgid routine is
386 * available to set process group ID.
388 #undef HAS_SETPGID /**/
391 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
392 * routine is available to set the current process group.
394 #undef HAS_SETPGRP2 /**/
397 * This symbol, if defined, indicates that the setpriority routine is
398 * available to set a process's priority.
400 #undef HAS_SETPRIORITY /**/
403 * This symbol, if defined, indicates that the setregid routine is
404 * available to change the real and effective gid of the current
408 * This symbol, if defined, indicates that the setresgid routine is
409 * available to change the real, effective and saved gid of the current
412 #undef HAS_SETREGID /**/
413 #undef HAS_SETRESGID /**/
416 * This symbol, if defined, indicates that the setreuid routine is
417 * available to change the real and effective uid of the current
421 * This symbol, if defined, indicates that the setresuid routine is
422 * available to change the real, effective and saved uid of the current
425 #undef HAS_SETREUID /**/
426 #undef HAS_SETRESUID /**/
429 * This symbol, if defined, indicates that the setrgid routine is available
430 * to change the real gid of the current program.
432 #undef HAS_SETRGID /**/
435 * This symbol, if defined, indicates that the setruid routine is available
436 * to change the real uid of the current program.
438 #undef HAS_SETRUID /**/
441 * This symbol, if defined, indicates that the setsid routine is
442 * available to set the process group ID.
444 #undef HAS_SETSID /**/
447 * This symbol, if defined, indicates that the entire shm*(2) library is
453 * This symbol holds the return type of the shmat() system call.
454 * Usually set to 'void *' or 'char *'.
456 /* HAS_SHMAT_PROTOTYPE:
457 * This symbol, if defined, indicates that the sys/shm.h includes
458 * a prototype for shmat(). Otherwise, it is up to the program to
459 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
460 * but not always right so it should be emitted by the program only
461 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
463 #undef Shmat_t char * /**/ /* config-skip */
464 #undef HAS_SHMAT_PROTOTYPE /**/
467 * This symbol is defined if this system has a stat structure declaring
468 * st_blksize and st_blocks.
470 #undef USE_STAT_BLOCKS /**/
473 * This symbol is defined if this system has a FILE structure declaring
474 * _ptr and _cnt in stdio.h.
476 #undef USE_STD_STDIO /**/
479 * This symbol, if defined, indicates that this C compiler knows how
480 * to copy structures. If undefined, you'll need to use a block copy
481 * routine of some sort instead.
483 #define USE_STRUCT_COPY /**/
486 * This symbol, if defined, indicates that the strerror routine is
487 * available to translate error numbers to strings. See the writeup
488 * of Strerror() in this file before you try to define your own.
491 * This symbol, if defined, indicates that the sys_errlist array is
492 * available to translate error numbers to strings. The extern int
493 * sys_nerr gives the size of that table.
496 * This preprocessor symbol is defined as a macro if strerror() is
497 * not available to translate error numbers to strings but sys_errlist[]
500 #define HAS_STRERROR /**/
501 #undef HAS_SYS_ERRLIST /**/
503 # define Strerror(e) strerror((e),vaxc$errno)
505 #define Strerror(e) ((e)<0||(e)>=sys_nerr?"unknown":sys_errlist[e]) /**/ /* config-skip */
509 * This symbol, if defined, indicates that the symlink routine is available
510 * to create symbolic links.
512 #undef HAS_SYMLINK /**/
515 * This symbol, if defined, indicates that the syscall routine is
516 * available to call arbitrary system calls. If undefined, that's tough.
518 #undef HAS_SYSCALL /**/
521 * This symbol, if defined, indicates that the system routine is
522 * available to issue a shell command.
524 #define HAS_SYSTEM /**/
527 * This symbol holds the type returned by time(). It can be long,
528 * or time_t on BSD sites (in which case <sys/types.h> should be
531 #define Time_t time_t /* Time type */
534 * This symbol, if defined, indicates that the truncate routine is
535 * available to truncate files.
537 #undef HAS_TRUNCATE /**/
541 * This symbol, if defined, indicates that vfork() exists.
543 #define HAS_VFORK /**/
546 * This symbol's value is either "void" or "int", corresponding to the
547 * appropriate return type of a signal handler. Thus, you can declare
548 * a signal handler using "Signal_t (*handler)()", and define the
549 * handler using "Signal_t handler(sig)".
551 #define Signal_t void /* Signal handler's return type */
554 * This symbol, if defined, indicates that this C compiler knows about
555 * the volatile declaration.
557 #define HASVOLATILE /**/
559 #define volatile /* config-skip */
563 * This symbol, if defined, indicates that the vprintf routine is available
564 * to printf with a pointer to an argument list. If unavailable, you
565 * may need to write your own, probably in terms of _doprnt().
567 /* USE_CHAR_VSPRINTF:
568 * This symbol is defined if this system has vsprintf() returning type
569 * (char*). The trend seems to be to declare it as "int vsprintf()". It
570 * is up to the package author to declare vsprintf correctly based on the
573 #define HAS_VPRINTF /**/
574 #undef USE_CHAR_VSPRINTF /**/
577 * This symbol, if defined, indicates that wait4() exists.
579 #undef HAS_WAIT4 /**/
582 * This symbol, if defined, indicates that the waitpid routine is
583 * available to wait for child process.
585 #define HAS_WAITPID /**/
588 * This symbol, if defined, indicates that the wcstombs routine is
589 * available to convert wide character strings to multibyte strings.
591 #undef HAS_WCSTOMBS /**/
594 * This symbol, if defined, indicates to the C program that it should
595 * include <dirent.h>. Using this symbol also triggers the definition
596 * of the Direntry_t define which ends up being 'struct dirent' or
597 * 'struct direct' depending on the availability of <dirent.h>.
600 * This symbol, if defined, indicates to the C program that the length
601 * of directory entry names is provided by a d_namlen field. Otherwise
602 * you need to do strlen() on the d_name field.
605 #define DIRNAMLEN /**/
606 #define Direntry_t struct dirent
609 * This manifest constant tells the C program to include <fcntl.h>.
614 * This symbol, if defined, indicates to the C program that it should
620 * This symbol, if defined, indicates to the C program that it should
621 * include <limits.h> to get definition of symbols like WORD_BIT or
622 * LONG_MAX, i.e. machine dependant limitations.
627 * This symbol, if defined, indicates to the C program that it should
628 * include <memory.h>.
633 * This symbol, if defined, indicates that ndbm.h exists and should
639 * This symbol, if defined, indicates that <stdarg.h> exists and should
642 #define I_STDARG /**/
645 * This symbol, if defined, indicates to the C program that it should
649 * This symbol, if defined, indicates to the C program that struct passwd
653 * This symbol, if defined, indicates to the C program that struct passwd
657 * This symbol, if defined, indicates to the C program that struct passwd
658 * contains pw_change.
661 * This symbol, if defined, indicates to the C program that struct passwd
665 * This symbol, if defined, indicates to the C program that struct passwd
666 * contains pw_expire.
669 * This symbol, if defined, indicates to the C program that struct passwd
670 * contains pw_comment.
678 #define PWCOMMENT /**/
681 * This symbol, if defined, indicates that <stddef.h> exists and should
684 #define I_STDDEF /**/
687 * This symbol, if defined, indicates that <stdlib.h> exists and should
690 #define I_STDLIB /**/
693 * This symbol, if defined, indicates to the C program that it should
694 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
696 #define I_STRING /**/
699 * This symbol, if defined, indicates to the C program that it should
700 * include <sys/dir.h>.
702 #undef I_SYS_DIR /**/
705 * This symbol, if defined, indicates to the C program that it should
706 * include <sys/file.h> to get definition of R_OK and friends.
708 #undef I_SYS_FILE /**/
711 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
712 * be included. Otherwise, include <sgtty.h> or <termio.h>.
714 #undef I_SYS_IOCTL /**/
717 * This symbol, if defined, indicates that the ioctl() routine is
718 * available to set I/O characteristics
720 #undef HAS_IOCTL /**/
723 * This symbol, if defined, indicates to the C program that it should
724 * include <sys/ndir.h>.
726 #undef I_SYS_NDIR /**/
729 * This symbol, if defined, indicates to the C program that it should
730 * include <sys/select.h> in order to get definition of struct timeval.
732 #undef I_SYS_SELECT /**/
735 * This symbol, if defined, indicates to the C program that it should
736 * include <sys/stat.h>.
738 #define I_SYS_STAT /**/
741 * This symbol, if defined, indicates to the C program that it should
742 * include <sys/times.h>.
744 #undef I_SYS_TIMES /**/
747 * This symbol, if defined, indicates to the C program that it should
748 * include <sys/types.h>.
750 #define I_SYS_TYPES /**/
753 * This symbol, if defined, indicates that the program should include
754 * <termio.h> rather than <sgtty.h>. There are also differences in
755 * the ioctl() calls that depend on the value of this symbol.
758 * This symbol, if defined, indicates that the program should include
759 * the POSIX termios.h rather than sgtty.h or termio.h.
760 * There are also differences in the ioctl() calls that depend on the
761 * value of this symbol.
764 * This symbol, if defined, indicates that the program should include
765 * <sgtty.h> rather than <termio.h>. There are also differences in
766 * the ioctl() calls that depend on the value of this symbol.
770 #undef I_TERMIOS /**/
773 * This symbol, if defined, indicates to the C program that it should
777 * This symbol, if defined, indicates to the C program that it should
778 * include <sys/time.h>.
780 /* I_SYS_TIME_KERNEL:
781 * This symbol, if defined, indicates to the C program that it should
782 * include <sys/time.h> with KERNEL defined.
785 #undef I_SYS_TIME /**/
786 #undef I_SYS_TIME_KERNEL /**/
789 * This symbol, if defined, indicates to the C program that it should
790 * include <unistd.h>.
795 * This symbol, if defined, indicates to the C program that it should
801 * This symbol, if defined, indicates that the routine utime() is
802 * available to update the access and modification times of files.
804 #define HAS_UTIME /**/
807 * This symbol, if defined, indicates that <stdarg.h> exists and should
811 * This symbol, if defined, indicates to the C program that it should
812 * include <varargs.h>.
814 #define I_STDARG /**/
815 #undef I_VARARGS /**/
819 * This symbol, if defined, indicates to the C program that it should
825 * This symbol contains the size of an int, so that the C preprocessor
826 * can make decisions based on it.
828 #define INTSIZE 4 /**/
832 * If defined, this macro indicates that the C compiler can handle
833 * function prototypes.
836 * This macro is used to declare function parameters for folks who want
837 * to make declarations with prototypes using a different style than
838 * the above macros. Use double parentheses. For example:
840 * int main _((int argc, char *argv[]));
842 #define CAN_PROTOTYPE /**/
844 #define _(args) args /* config-skip */
846 #define _(args) () /* config-skip */
850 * This symbol contains the number of bits of random number the rand()
851 * function produces. Usual values are 15, 16, and 31.
853 #define RANDBITS 31 /**/
857 * This symbol holds the type used for the 2nd, 3rd, and 4th
858 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
859 * is defined, and 'int *' otherwise. This is only useful if you
860 * have select(), of course.
862 #define Select_fd_set_t fd_set * /**/
865 * This symbol is defined to be the type of char used in stdio.h.
866 * It has the values "unsigned char" or "char".
868 #define STDCHAR char /**/
871 * This symbol indicates how much support of the void type is given by this
872 * compiler. What various bits mean:
874 * 1 = supports declaration of void
875 * 2 = supports arrays of pointers to functions returning void
876 * 4 = supports comparisons between pointers to void functions and
877 * addresses of void functions
878 * 8 = suports declaration of generic void pointers
880 * The package designer should define VOIDUSED to indicate the requirements
881 * of the package. This can be done either by #defining VOIDUSED before
882 * including config.h, or by defining defvoidused in Myinit.U. If the
883 * latter approach is taken, only those flags will be tested. If the
884 * level of void support necessary is not present, defines void to int.
890 #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
891 #define void int /* is void to be avoided? */ /* config-skip */
892 #define M_VOID /* Xenix strikes again */ /* config-skip */
897 * This symbol, if defined, indicates that the program is being compiled
898 * under the EUNICE package under VMS. The program will need to handle
899 * things like files that don't go away the first time you unlink them,
900 * due to version numbering. It will also need to compensate for lack
901 * of a respectable link() command.
904 * This symbol, if defined, indicates that the program is running under
905 * VMS. It is currently only set in conjunction with the EUNICE symbol.
908 /* This symbol is automagically defined by all VMS C compilers I've seen.
909 * Just in case, however . . . */
915 * This symbol holds the complete pathname to the sed program.
917 #define LOC_SED "_NLA0:" /**/
920 * This symbol holds the path of the bin directory where the package will
921 * be installed. Program must be prepared to deal with ~name substitution.
923 #define BIN "/perl_root/000000" /**/
926 * This symbol, if defined, indicates that the alarm routine is
929 #define HAS_ALARM /**/
932 * This symbol is defined if the C compiler can cast negative
933 * or large floating point numbers to 32-bit ints.
938 * This symbol, if defined, indicates that the chown routine is
941 #define HAS_CHOWN /**/
944 * This symbol, if defined, indicates that the chroot routine is
947 #undef HAS_CHROOT /**/
950 * This symbol, if defined, indicates that the cuserid routine is
951 * available to get character login names.
953 #define HAS_CUSERID /**/
956 * This symbol, if defined, indicates that this system's <float.h>
957 * or <limits.h> defines the symbol DBL_DIG, which is the number
958 * of significant digits in a double precision number. If this
959 * symbol is not defined, a guess of 15 is usually pretty good.
961 #define HAS_DBL_DIG /* */
964 * This symbol, if defined, indicates that the difftime routine is
967 #define HAS_DIFFTIME /**/
970 * This symbol, if defined, indicates that the fork routine is
973 /* VMS: In vmsish.h, fork is #defined to vfork. This kludge gets around
974 * some obsolete code in pp.c, which should be fixed in its own right
975 * sometime. - C. Bailey 26-Aug-1994
977 #define HAS_FORK /**/
980 * This symbol, if defined, indicates that the getlogin routine is
983 #undef HAS_GETLOGIN /**/
986 * This symbol, if defined, indicates that the getppid routine is
989 #undef HAS_GETPPID /**/
992 * This symbol, if defined, indicates that the getgrent routine is
995 #undef HAS_GETGRENT /**/
998 * This symbol, if defined, indicates that the htonl() routine (and
999 * friends htons() ntohl() ntohs()) are available to do network
1000 * order byte swapping.
1003 * This symbol, if defined, indicates that the htons() routine (and
1004 * friends htonl() ntohl() ntohs()) are available to do network
1005 * order byte swapping.
1008 * This symbol, if defined, indicates that the ntohl() routine (and
1009 * friends htonl() htons() ntohs()) are available to do network
1010 * order byte swapping.
1013 * This symbol, if defined, indicates that the ntohs() routine (and
1014 * friends htonl() htons() ntohl()) are available to do network
1015 * order byte swapping.
1017 #define HAS_HTONL /**/
1018 #define HAS_HTONS /**/
1019 #define HAS_NTOHL /**/
1020 #define HAS_NTOHS /**/
1023 * This symbol, if defined, indicates that the mblen routine is available
1024 * to find the number of bytes in a multibye character.
1026 #undef HAS_MBLEN /**/
1029 * This symbol, if defined, indicates that the mktime routine is
1032 #undef HAS_MKTIME /**/
1035 * This symbol, if defined, indicates that the nice routine is
1038 #define HAS_NICE /**/
1041 * This symbol, if defined, indicates that the getpwnam(),
1042 * getpwuid(), and getpwent() routines are available to
1043 * get password entries.
1045 #define HAS_PASSWD /**/
1048 * This symbol, if defined, indicates that the pause routine is
1051 #define HAS_PAUSE /**/
1054 * This symbol, if defined, indicates that the pipe routine is
1057 #define HAS_PIPE /**/
1060 * This symbol, if defined, indicates that the readlink routine is
1063 #undef HAS_READLINK /**/
1066 * This symbol, if defined, indicates that the setlinebuf routine is
1067 * available to change stderr or stdout from block-buffered or unbuffered
1068 * to a line-buffered mode.
1070 #undef HAS_SETLINEBUF /**/
1073 * This symbol is defined to indicate that the strchr()/strrchr()
1074 * functions are available for string searching. If not, try the
1075 * index()/rindex() pair.
1078 * This symbol is defined to indicate that the index()/rindex()
1079 * functions are available for string searching.
1081 #define HAS_STRCHR /**/
1082 #undef HAS_INDEX /**/
1085 * This symbol, if defined, indicates that the strcoll routine is
1086 * available to compare strings using collating information.
1088 #undef HAS_STRCOLL /**/
1091 * This symbol, if defined, indicates that the strxfrm() routine is
1092 * available to compare strings using collating information.
1094 #undef HAS_STRXFRM /**/
1097 * This symbol, if defined, indicates that the tcgetpgrp routine is
1098 * available to get foreground process group ID.
1100 #undef HAS_TCGETPGRP /**/
1103 * This symbol, if defined, indicates that the tcsetpgrp routine is
1104 * available to set foreground process group ID.
1106 #undef HAS_TCSETPGRP /**/
1109 * This symbol, if defined, indicates that the times() routine exists.
1110 * Note that this became obsolete on some systems (SUNOS), which now
1111 * use getrusage(). It may be necessary to include <sys/times.h>.
1113 #define HAS_TIMES /**/
1116 * This symbol, if defined, indicates that the tzname[] array is
1117 * available to access timezone names.
1119 #undef HAS_TZNAME /**/
1122 * This symbol, if defined, indicates that the umask routine is
1123 * available to get the file creation mask.
1125 #define HAS_UMASK /**/
1128 * This symbol is defined if this system declares "void (*signal(...))()" in
1129 * signal.h. The old way was to declare it as "int (*signal(...))()". It
1130 * is up to the package author to declare things correctly based on the
1133 #define VOIDSIG /**/
1136 * This symbol, if defined, indicates that the wctomb routine is available
1137 * to covert a wide character to a multibyte.
1139 #undef HAS_WCTOMB /**/
1142 * This symbol holds the type used to declare file positions in libc.
1143 * It can be fpos_t, long, uint, etc... It may be necessary to include
1144 * <sys/types.h> to get any typedef'ed information.
1146 #define Fpos_t fpos_t /* File position type */
1149 * This symbol holds the return type of getgid() and the type of
1150 * argument to setrgid() and related functions. Typically,
1151 * it is the type of group ids in the kernel.
1152 * It can be int, ushort, uid_t, etc... It may be necessary to include
1153 * <sys/types.h> to get any typedef'ed information.
1155 #define Gid_t unsigned int /* Type for getgid(), etc... */
1158 * This symbol, if defined, indicates that <dlfcn.h> exists and should
1164 * This symbol, if defined, indicates to the C program that it should
1165 * include <float.h> to get definition of symbols like DBL_MAX or
1166 * DBL_MIN, i.e. machine dependent floating point values.
1168 #define I_FLOAT /**/
1171 * This symbol, if defined, indicates to the C program that it should
1177 * This symbol, if defined, indicates to the C program that it should
1178 * include <sys/stat.h>.
1180 #define I_SYS_STAT /**/
1184 * This symbol holds the type used to declare offsets in the kernel.
1185 * It can be int, long, off_t, etc... It may be necessary to include
1186 * <sys/types.h> to get any typedef'ed information.
1188 #define Off_t int /* <offset> type */
1190 * This symbol is the type of pointer returned by malloc and realloc.
1192 #define Malloc_t void * /**/
1195 * This symbol, if defined, indicates that we're using our own malloc.
1197 #undef MYMALLOC /**/
1200 * This symbol holds the type used to declare file modes
1201 * for systems calls. It is usually mode_t, but may be
1202 * int or unsigned short. It may be necessary to include <sys/types.h>
1203 * to get any typedef'ed information.
1205 #define Mode_t unsigned int /* file mode parameter for system calls*/
1208 * This symbol holds the type used by functions that return
1209 * a count of bytes or an error condition. It must be a signed type.
1210 * It is usually ssize_t, but may be long or int, etc.
1211 * It may be necessary to include <sys/types.h> or <unistd.h>
1212 * to get any typedef'ed information.
1213 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1215 #define SSize_t int /* signed count of bytes */
1219 * This symbol contains the name of the private library for this package.
1220 * The library is private in the sense that it needn't be in anyone's
1221 * execution path, but it should be accessible by the world. The program
1222 * should be prepared to do ~ expansion.
1224 #define PRIVLIB_EXP "/perl_root/lib" /**/
1227 * This symbol holds the name of the directory in which the user wants
1228 * to put publicly executable scripts for the package in question. It
1229 * is often a directory that is mounted across diverse architectures.
1230 * Programs must be prepared to deal with ~name expansion.
1232 #define SCRIPTDIR "/perl_root/script" /**/
1235 * This symbol contains a list of signal names in order. This is intended
1236 * to be used as a static array initialization, like this:
1237 * char *sig_name[] = { SIG_NAME };
1238 * The signals in the list are separated with commas, and each signal
1239 * is surrounded by double quotes. There is no leading SIG in the signal
1240 * name, i.e. SIGQUIT is known as "QUIT".
1242 #define SIG_NAME "HUP","INT","QUIT","ILL","TRAP","IOT","EMT","FPE","KILL",\
1243 "BUS","SEGV","SYS","PIPE","ALRM","TERM"
1246 * This symbol holds the type used to declare length parameters
1247 * for string functions. It is usually size_t, but may be
1248 * unsigned long, int, etc. It may be necessary to include
1249 * <sys/types.h> to get any typedef'ed information.
1251 #define Size_t size_t /* length paramater for string functions */
1254 * This symbol holds the type used to declare user ids in the kernel.
1255 * It can be int, ushort, uid_t, etc... It may be necessary to include
1256 * <sys/types.h> to get any typedef'ed information.
1258 #define Uid_t unsigned int /* UID type */
1261 * This symbol, if defined, indicates to the C program that it should
1262 * include <sys/param.h>.
1266 /* GNUC_ATTRIBUTE_CHECK:
1267 * This symbol indicates the C compiler can check for function attributes,
1268 * such as printf formats.
1270 /* VMS: true for gcc, undef for VAXC/DECC. This is handled in Descrip.MMS
1271 * C. Bailey 26-Aug-1994
1273 /*#define GNUC_ATTRIBUTE_CHECK */
1276 * This symbol, if defined, indicates that the closedir() routine
1277 * does not return a value.
1279 #define VOID_CLOSEDIR /**/
1282 * This symbol, if defined, indicates that the dlerror routine is
1285 #undef HAS_DLERROR /**/
1287 /* DLSYM_NEEDS_UNDERSCORE:
1288 * This symbol, if defined, indicates that we need to prepend an
1289 * underscore to the symbol name before calling dlsym(). This only
1290 * makes sense if you *have* dlsym, which we will presume is the
1291 * case if you're using dl_dlopen.xs.
1293 #undef DLSYM_NEEDS_UNDERSCORE /* */
1295 /* SETUID_SCRIPTS_ARE_SECURE_NOW:
1296 * This symbol, if defined, indicates that setuid scripts are secure.
1299 * This symbol, if defined, indicates that the C program should
1300 * check the script that it is executing for setuid/setgid bits, and
1301 * attempt to emulate setuid/setgid on systems that have disabled
1302 * setuid #! scripts because the kernel can't do it securely.
1303 * It is up to the package designer to make sure that this emulation
1304 * is done securely. Among other things, it should do an fstat on
1305 * the script it just opened to make sure it really is a setuid/setgid
1306 * script, it should make sure the arguments passed correspond exactly
1307 * to the argument on the #! line, and it should not trust any
1308 * subprocesses to which it must pass the filename rather than the
1309 * file descriptor of the script to be executed.
1311 #undef SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1315 * This symbol, if defined, indicates that the drem routine is
1316 * available. This is a Pyramid routine that is the same as
1319 #undef HAS_DREM /**/
1322 * This symbol, if defined, indicates that the fmod routine is
1325 #define HAS_FMOD /**/
1328 * This preprocessor macro is defined to convert a floating point
1329 * number to a string without a trailing decimal point. This
1330 * emulates the behavior of sprintf("%g"), but is sometimes much more
1331 * efficient. If gconvert() is not available, but gcvt() drops the
1332 * trailing decimal point, then gcvt() is used. If all else fails,
1333 * a macro using sprintf("%g") is used.
1335 #define Gconvert(x,n,t,b) my_gconvert(x,n,t,b)
1338 * This manifest constant lets the C program know that the
1339 * isascii is available.
1341 #define HAS_ISASCII /**/
1344 * This symbol is defined if this system has a FILE structure declaring
1345 * _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
1347 #undef USE_LINUX_STDIO /**/
1350 * This symbol, if defined, indicates that the localeconv routine is
1351 * available for numeric and monetary formatting conventions.
1353 #undef HAS_LOCALECONV /**/
1356 * This symbol, if defined, indicates that the mkfifo routine is
1359 #undef HAS_MKFIFO /**/
1362 * This symbol, if defined, indicates that pathconf() is available
1363 * to determine file-system related limits and options associated
1364 * with a given filename.
1367 * This symbol, if defined, indicates that pathconf() is available
1368 * to determine file-system related limits and options associated
1369 * with a given open file descriptor.
1371 #undef HAS_PATHCONF /**/
1372 #undef HAS_FPATHCONF /**/
1375 * This symbol, if defined, indicates that the bcopy routine is available
1376 * to copy potentially overlapping memory blocks. Otherwise you should
1377 * probably use memmove() or memcpy(). If neither is defined, roll your
1380 #undef HAS_SAFE_BCOPY /**/
1383 * This symbol, if defined, indicates that the memcpy routine is available
1384 * to copy potentially overlapping memory blocks. Otherwise you should
1385 * probably use memmove() or memcpy(). If neither is defined, roll your
1388 #define HAS_SAFE_MEMCPY /**/
1391 * This symbol, if defined, indicates that the setpgrp routine is
1392 * available to set the current process group.
1395 * This symbol, if defined, indicates that the BSD notion of process
1396 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
1397 * instead of the USG setpgrp().
1399 #undef HAS_SETPGRP /**/
1400 #undef USE_BSDPGRP /**/
1403 * This symbol, if defined, indicates that sysconf() is available
1404 * to determine system related limits and options.
1406 #undef HAS_SYSCONF /**/
1408 /* USE_DYNAMIC_LOADING:
1409 * This symbol, if defined, indicates that dynamic loading of
1410 * some sort is available.
1412 #define USE_DYNAMIC_LOADING /**/
1414 #ifdef VMS_DO_SOCKETS
1416 * This symbol, if defined, indicates that the BSD socket interface is
1420 * This symbol, if defined, indicates that the BSD socketpair() call is
1423 #define HAS_SOCKET /**/ /* config-skip */
1424 #undef HAS_SOCKETPAIR /**/ /* config-skip */
1427 * This symbol, if defined, indicates that the gethostent routine is
1428 * available to lookup host names in some data base or other.
1430 #define HAS_GETHOSTENT /**/ /* config-skip */
1432 /* VMS: In general, TCP/IP header files should be included from
1433 * sockadapt.h, instead of here, in order to keep the TCP/IP code
1434 * together as much as possible.
1437 * This symbol, if defined, indicates to the C program that it should
1438 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
1440 #undef I_NETINET_IN /**/ /* config-skip */
1443 * This symbol holds the type used for the second argument to
1444 * getgroups(). Usually, this is the same of gidtype, but
1445 * sometimes it isn't. It can be int, ushort, uid_t, etc...
1446 * It may be necessary to include <sys/types.h> to get any
1447 * typedef'ed information. This is only required if you have
1450 #ifdef HAS_GETGROUPS
1451 #define Groups_t unsigned int /* Type for 2nd arg to getgroups() */ /* config-skip */
1455 * This symbol, if defined, indicates that <net/errno.h> exists and
1456 * should be included.
1458 #undef I_NET_ERRNO /**/ /* config-skip */
1460 #else /* VMS_DO_SOCKETS */
1462 #undef HAS_SOCKET /**/ /* config-skip */
1463 #undef HAS_SOCKETPAIR /**/ /* config-skip */
1464 #undef HAS_GETHOSTENT /**/ /* config-skip */
1465 #undef I_NETINET_IN /**/ /* config-skip */
1466 #undef I_NET_ERRNO /**/ /* config-skip */
1468 #endif /* !VMS_DO_SOCKETS */