perl 3.0 patch #16 (combined patch)
[p5sagit/p5-mst-13.2.git] / config.h.SH
CommitLineData
8d063cd8 1case $CONFIG in
2'')
3 if test ! -f config.sh; then
4 ln ../config.sh . || \
5 ln ../../config.sh . || \
6 ln ../../../config.sh . || \
7 (echo "Can't find config.sh."; exit 1)
8 echo "Using config.sh from above..."
9 fi
378cc40b 10 . ./config.sh
8d063cd8 11 ;;
12esac
13echo "Extracting config.h (with variable substitutions)"
13281fa4 14sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#undef!'
8d063cd8 15/* config.h
16 * This file was produced by running the config.h.SH script, which
17 * gets its values from config.sh, which is generally produced by
18 * running Configure.
19 *
20 * Feel free to modify any of this as the need arises. Note, however,
21 * that running config.h.SH again will wipe out any changes you've made.
22 * For a more permanent change edit config.sh and rerun config.h.SH.
23 */
24
25
26/* EUNICE:
27 * This symbol, if defined, indicates that the program is being compiled
28 * under the EUNICE package under VMS. The program will need to handle
29 * things like files that don't go away the first time you unlink them,
30 * due to version numbering. It will also need to compensate for lack
31 * of a respectable link() command.
32 */
33/* VMS:
34 * This symbol, if defined, indicates that the program is running under
35 * VMS. It is currently only set in conjunction with the EUNICE symbol.
36 */
37#$d_eunice EUNICE /**/
38#$d_eunice VMS /**/
39
a687059c 40/* BIN:
41 * This symbol holds the name of the directory in which the user wants
42 * to put publicly executable images for the package in question. It
43 * is most often a local directory such as /usr/local/bin.
44 */
45#define BIN "$bin" /**/
46
47/* BYTEORDER:
48 * This symbol contains an encoding of the order of bytes in a long.
49 * Usual values (in octal) are 01234, 04321, 02143, 03412...
50 */
0d3e774c 51#define BYTEORDER 0x$byteorder /**/
a687059c 52
378cc40b 53/* CPPSTDIN:
36ce8bec 54 * This symbol contains the first part of the string which will invoke
55 * the C preprocessor on the standard input and produce to standard
56 * output. Typical value of "cc -E" or "/lib/cpp".
57 */
58/* CPPMINUS:
59 * This symbol contains the second part of the string which will invoke
60 * the C preprocessor on the standard input and produce to standard
378cc40b 61 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
36ce8bec 62 * to specify standard input, otherwise the value is "".
63 */
378cc40b 64#define CPPSTDIN "$cppstdin"
36ce8bec 65#define CPPMINUS "$cppminus"
66
a687059c 67/* BCMP:
68 * This symbol, if defined, indicates that the bcmp routine is available
69 * to compare blocks of memory. If undefined, use memcmp. If that's
70 * not available, roll your own.
71 */
72#$d_bcmp BCMP /**/
73
c51b80d1 74/* BCOPY:
75 * This symbol, if defined, indicates that the bcopy routine is available
76 * to copy blocks of memory. Otherwise you should probably use memcpy().
77 */
78#$d_bcopy BCOPY /**/
79
0d3e774c 80/* BZERO:
81 * This symbol, if defined, indicates that the bzero routine is available
82 * to zero blocks of memory. Otherwise you should probably use memcpy().
83 */
84#$d_bzero BZERO /**/
85
8d063cd8 86/* CHARSPRINTF:
87 * This symbol is defined if this system declares "char *sprintf()" in
88 * stdio.h. The trend seems to be to declare it as "int sprintf()". It
89 * is up to the package author to declare sprintf correctly based on the
90 * symbol.
91 */
92#$d_charsprf CHARSPRINTF /**/
93
2e1b3b7e 94/* CRYPT:
95 * This symbol, if defined, indicates that the crypt routine is available
96 * to encrypt passwords and the like.
97 */
98#$d_crypt CRYPT /**/
99
bf38876a 100/* CSH:
101 * This symbol, if defined, indicates that the C-shell exists.
102 * If defined, contains the full pathname of csh.
103 */
104#$d_csh CSH "$csh" /**/
105
13281fa4 106/* DOSUID:
107 * This symbol, if defined, indicates that the C program should
108 * check the script that it is executing for setuid/setgid bits, and
109 * attempt to emulate setuid/setgid on systems that have disabled
110 * setuid #! scripts because the kernel can't do it securely.
111 * It is up to the package designer to make sure that this emulation
112 * is done securely. Among other things, it should do an fstat on
113 * the script it just opened to make sure it really is a setuid/setgid
114 * script, it should make sure the arguments passed correspond exactly
115 * to the argument on the #! line, and it should not trust any
116 * subprocesses to which it must pass the filename rather than the
117 * file descriptor of the script to be executed.
118 */
119#$d_dosuid DOSUID /**/
120
a687059c 121/* DUP2:
122 * This symbol, if defined, indicates that the dup2 routine is available
123 * to dup file descriptors. Otherwise you should use dup().
124 */
125#$d_dup2 DUP2 /**/
126
378cc40b 127/* FCHMOD:
128 * This symbol, if defined, indicates that the fchmod routine is available
129 * to change mode of opened files. If unavailable, use chmod().
130 */
131#$d_fchmod FCHMOD /**/
132
133/* FCHOWN:
134 * This symbol, if defined, indicates that the fchown routine is available
135 * to change ownership of opened files. If unavailable, use chown().
136 */
137#$d_fchown FCHOWN /**/
138
a687059c 139/* FCNTL:
140 * This symbol, if defined, indicates to the C program that it should
141 * include fcntl.h.
142 */
143#$d_fcntl FCNTL /**/
144
145/* FLOCK:
146 * This symbol, if defined, indicates that the flock() routine is
147 * available to do file locking.
148 */
149#$d_flock FLOCK /**/
150
378cc40b 151/* GETGROUPS:
152 * This symbol, if defined, indicates that the getgroups() routine is
153 * available to get the list of process groups. If unavailable, multiple
154 * groups are probably not supported.
155 */
156#$d_getgrps GETGROUPS /**/
157
a687059c 158/* GETHOSTENT:
159 * This symbol, if defined, indicates that the gethostent() routine is
160 * available to lookup host names in some data base or other.
161 */
162#$d_gethent GETHOSTENT /**/
163
164/* GETPGRP:
165 * This symbol, if defined, indicates that the getpgrp() routine is
166 * available to get the current process group.
167 */
168#$d_getpgrp GETPGRP /**/
169
d8f2e4cc 170/* GETPGRP2:
171 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
172 * routine is available to get the current process group.
173 */
174#$d_getpgrp2 GETPGRP2 /**/
175
a687059c 176/* GETPRIORITY:
177 * This symbol, if defined, indicates that the getpriority() routine is
178 * available to get a process's priority.
179 */
180#$d_getprior GETPRIORITY /**/
181
182/* HTONS:
183 * This symbol, if defined, indicates that the htons routine (and friends)
184 * are available to do network order byte swapping.
185 */
186/* HTONL:
187 * This symbol, if defined, indicates that the htonl routine (and friends)
188 * are available to do network order byte swapping.
189 */
190/* NTOHS:
191 * This symbol, if defined, indicates that the ntohs routine (and friends)
192 * are available to do network order byte swapping.
193 */
194/* NTOHL:
195 * This symbol, if defined, indicates that the ntohl routine (and friends)
196 * are available to do network order byte swapping.
197 */
198#$d_htonl HTONS /**/
199#$d_htonl HTONL /**/
200#$d_htonl NTOHS /**/
201#$d_htonl NTOHL /**/
202
8d063cd8 203/* index:
204 * This preprocessor symbol is defined, along with rindex, if the system
205 * uses the strchr and strrchr routines instead.
206 */
207/* rindex:
208 * This preprocessor symbol is defined, along with index, if the system
209 * uses the strchr and strrchr routines instead.
210 */
211#$d_index index strchr /* cultural */
212#$d_index rindex strrchr /* differences? */
213
a687059c 214/* IOCTL:
215 * This symbol, if defined, indicates that sys/ioctl.h exists and should
216 * be included.
217 */
218#$d_ioctl IOCTL /**/
219
378cc40b 220/* KILLPG:
221 * This symbol, if defined, indicates that the killpg routine is available
222 * to kill process groups. If unavailable, you probably should use kill
223 * with a negative process number.
224 */
225#$d_killpg KILLPG /**/
226
0d3e774c 227/* LSTAT:
228 * This symbol, if defined, indicates that the lstat() routine is
229 * available to do file locking.
230 */
231#$d_lstat LSTAT /**/
232
a687059c 233/* MEMCMP:
234 * This symbol, if defined, indicates that the memcmp routine is available
235 * to compare blocks of memory. If undefined, roll your own.
236 */
237#$d_memcmp MEMCMP /**/
238
378cc40b 239/* MEMCPY:
240 * This symbol, if defined, indicates that the memcpy routine is available
241 * to copy blocks of memory. Otherwise you should probably use bcopy().
242 * If neither is defined, roll your own.
243 */
244#$d_memcpy MEMCPY /**/
245
a687059c 246/* MKDIR:
247 * This symbol, if defined, indicates that the mkdir routine is available
248 * to create directories. Otherwise you should fork off a new process to
249 * exec /bin/mkdir.
250 */
251#$d_mkdir MKDIR /**/
252
253/* NDBM:
254 * This symbol, if defined, indicates that ndbm.h exists and should
255 * be included.
256 */
257#$d_ndbm NDBM /**/
258
259/* ODBM:
260 * This symbol, if defined, indicates that dbm.h exists and should
261 * be included.
262 */
263#$d_odbm ODBM /**/
264
265/* READDIR:
266 * This symbol, if defined, indicates that the readdir routine is available
267 * from the C library to create directories.
268 */
269#$d_readdir READDIR /**/
270
378cc40b 271/* RENAME:
272 * This symbol, if defined, indicates that the rename routine is available
273 * to rename files. Otherwise you should do the unlink(), link(), unlink()
274 * trick.
275 */
276#$d_rename RENAME /**/
277
a687059c 278/* RMDIR:
279 * This symbol, if defined, indicates that the rmdir routine is available
280 * to remove directories. Otherwise you should fork off a new process to
281 * exec /bin/rmdir.
282 */
283#$d_rmdir RMDIR /**/
284
378cc40b 285/* SETEGID:
286 * This symbol, if defined, indicates that the setegid routine is available
287 * to change the effective gid of the current program.
288 */
289#$d_setegid SETEGID /**/
290
291/* SETEUID:
292 * This symbol, if defined, indicates that the seteuid routine is available
293 * to change the effective uid of the current program.
294 */
295#$d_seteuid SETEUID /**/
296
a687059c 297/* SETPGRP:
298 * This symbol, if defined, indicates that the setpgrp() routine is
299 * available to set the current process group.
300 */
301#$d_setpgrp SETPGRP /**/
302
d8f2e4cc 303/* SETPGRP2:
304 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
305 * routine is available to set the current process group.
306 */
307#$d_setpgrp2 SETPGRP2 /**/
308
a687059c 309/* SETPRIORITY:
310 * This symbol, if defined, indicates that the setpriority() routine is
311 * available to set a process's priority.
312 */
313#$d_setprior SETPRIORITY /**/
314
315/* SETREGID:
316 * This symbol, if defined, indicates that the setregid routine is
317 * available to change the real and effective gid of the current program.
318 */
319/* SETRESGID:
320 * This symbol, if defined, indicates that the setresgid routine is
321 * available to change the real, effective and saved gid of the current
322 * program.
323 */
324#$d_setregid SETREGID /**/
325#$d_setresgid SETRESGID /**/
326
327/* SETREUID:
328 * This symbol, if defined, indicates that the setreuid routine is
329 * available to change the real and effective uid of the current program.
330 */
331/* SETRESUID:
332 * This symbol, if defined, indicates that the setresuid routine is
333 * available to change the real, effective and saved uid of the current
334 * program.
335 */
336#$d_setreuid SETREUID /**/
337#$d_setresuid SETRESUID /**/
338
378cc40b 339/* SETRGID:
340 * This symbol, if defined, indicates that the setrgid routine is available
341 * to change the real gid of the current program.
342 */
343#$d_setrgid SETRGID /**/
344
345/* SETRUID:
346 * This symbol, if defined, indicates that the setruid routine is available
347 * to change the real uid of the current program.
348 */
349#$d_setruid SETRUID /**/
350
a687059c 351/* SOCKET:
352 * This symbol, if defined, indicates that the BSD socket interface is
353 * supported.
354 */
355/* SOCKETPAIR:
356 * This symbol, if defined, indicates that the BSD socketpair call is
357 * supported.
358 */
359/* OLDSOCKET:
360 * This symbol, if defined, indicates that the 4.1c BSD socket interface
361 * is supported instead of the 4.2/4.3 BSD socket interface.
362 */
363#$d_socket SOCKET /**/
364
365#$d_sockpair SOCKETPAIR /**/
366
367#$d_oldsock OLDSOCKET /**/
368
c51b80d1 369/* STATBLOCKS:
370 * This symbol is defined if this system has a stat structure declaring
371 * st_blksize and st_blocks.
372 */
373#$d_statblks STATBLOCKS /**/
374
36ce8bec 375/* STDSTDIO:
376 * This symbol is defined if this system has a FILE structure declaring
377 * _ptr and _cnt in stdio.h.
378 */
379#$d_stdstdio STDSTDIO /**/
380
8d063cd8 381/* STRUCTCOPY:
382 * This symbol, if defined, indicates that this C compiler knows how
383 * to copy structures. If undefined, you'll need to use a block copy
384 * routine of some sort instead.
385 */
386#$d_strctcpy STRUCTCOPY /**/
387
d8f2e4cc 388/* STRERROR:
389 * This symbol, if defined, indicates that the strerror() routine is
390 * available to translate error numbers to strings.
391 */
392#$d_strerror STRERROR /**/
393
2e1b3b7e 394/* SYMLINK:
395 * This symbol, if defined, indicates that the symlink routine is available
396 * to create symbolic links.
397 */
398#$d_symlink SYMLINK /**/
399
a687059c 400/* SYSCALL:
401 * This symbol, if defined, indicates that the syscall routine is available
402 * to call arbitrary system calls. If undefined, that's tough.
403 */
404#$d_syscall SYSCALL /**/
405
a687059c 406/* VARARGS:
407 * This symbol, if defined, indicates to the C program that it should
408 * include varargs.h.
409 */
410#$d_varargs VARARGS /**/
c51b80d1 411
03a14243 412/* VFORK:
413 * This symbol, if defined, indicates that vfork() exists.
8d063cd8 414 */
03a14243 415#$d_vfork VFORK /**/
8d063cd8 416
36ce8bec 417/* VOIDSIG:
418 * This symbol is defined if this system declares "void (*signal())()" in
419 * signal.h. The old way was to declare it as "int (*signal())()". It
420 * is up to the package author to declare things correctly based on the
421 * symbol.
422 */
423#$d_voidsig VOIDSIG /**/
424
afd9f252 425/* HASVOLATILE:
426 * This symbol, if defined, indicates that this C compiler knows about
427 * the volatile declaration.
428 */
429#$d_volatile HASVOLATILE /**/
430
a687059c 431/* VPRINTF:
432 * This symbol, if defined, indicates that the vprintf routine is available
433 * to printf with a pointer to an argument list. If unavailable, you
434 * may need to write your own, probably in terms of _doprnt().
435 */
436/* CHARVSPRINTF:
437 * This symbol is defined if this system has vsprintf() returning type
438 * (char*). The trend seems to be to declare it as "int vsprintf()". It
439 * is up to the package author to declare vsprintf correctly based on the
440 * symbol.
441 */
442#$d_vprintf VPRINTF /**/
443#$d_charvspr CHARVSPRINTF /**/
444
bf38876a 445/* WAIT4:
446 * This symbol, if defined, indicates that wait4() exists.
447 */
448#$d_wait4 WAIT4 /**/
449
378cc40b 450/* GIDTYPE:
451 * This symbol has a value like gid_t, int, ushort, or whatever type is
452 * used to declare group ids in the kernel.
453 */
454#define GIDTYPE $gidtype /**/
455
a687059c 456/* I_DIRENT:
457 * This symbol, if defined, indicates to the C program that it should
458 * include dirent.h.
459 */
460/* DIRNAMLEN:
461 * This symbol, if defined, indicates to the C program that the length
462 * of directory entry names is provided by a d_namlen field. Otherwise
463 * you need to do strlen() on the d_name field.
464 */
465#$i_dirent I_DIRENT /**/
466#$d_dirnamlen DIRNAMLEN /**/
467
468/* I_FCNTL:
469 * This symbol, if defined, indicates to the C program that it should
470 * include fcntl.h.
471 */
472#$i_fcntl I_FCNTL /**/
473
474/* I_GRP:
475 * This symbol, if defined, indicates to the C program that it should
476 * include grp.h.
477 */
478#$i_grp I_GRP /**/
479
03a14243 480/* I_NETINET_IN:
481 * This symbol, if defined, indicates to the C program that it should
482 * include netinet/in.h.
483 */
484#$i_niin I_NETINET_IN /**/
485
a687059c 486/* I_PWD:
487 * This symbol, if defined, indicates to the C program that it should
488 * include pwd.h.
489 */
490/* PWQUOTA:
491 * This symbol, if defined, indicates to the C program that struct passwd
492 * contains pw_quota.
493 */
494/* PWAGE:
495 * This symbol, if defined, indicates to the C program that struct passwd
496 * contains pw_age.
497 */
03a14243 498/* PWCHANGE:
499 * This symbol, if defined, indicates to the C program that struct passwd
500 * contains pw_change.
501 */
502/* PWCLASS:
503 * This symbol, if defined, indicates to the C program that struct passwd
504 * contains pw_class.
505 */
506/* PWEXPIRE:
507 * This symbol, if defined, indicates to the C program that struct passwd
508 * contains pw_expire.
509 */
a687059c 510#$i_pwd I_PWD /**/
511#$d_pwquota PWQUOTA /**/
512#$d_pwage PWAGE /**/
bf38876a 513#$d_pwchange PWCHANGE /**/
514#$d_pwclass PWCLASS /**/
515#$d_pwexpire PWEXPIRE /**/
a687059c 516
517/* I_SYSDIR:
518 * This symbol, if defined, indicates to the C program that it should
519 * include sys/dir.h.
520 */
521#$i_sysdir I_SYSDIR /**/
522
523/* I_SYSIOCTL:
524 * This symbol, if defined, indicates that sys/ioctl.h exists and should
525 * be included.
526 */
527#$i_sysioctl I_SYSIOCTL /**/
528
d8f2e4cc 529/* I_SYSNDIR:
530 * This symbol, if defined, indicates to the C program that it should
531 * include sys/ndir.h.
532 */
533#$i_sysndir I_SYSNDIR /**/
534
535/* I_TIME:
536 * This symbol is defined if the program should include <time.h>.
537 */
538/* I_SYSTIME:
539 * This symbol is defined if the program should include <sys/time.h>.
540 */
541/* I_SYSTIMEKERNEL:
542 * This symbol is defined if the program should include <sys/time.h>
543 * with KERNEL defined.
544 */
545#$i_time I_TIME /**/
546#$i_systime I_SYSTIME /**/
547#$d_systimekernel SYSTIMEKERNEL /**/
548
549/* I_UTIME:
550 * This symbol, if defined, indicates to the C program that it should
afd9f252 551 * include utime.h.
d8f2e4cc 552 */
553#$i_utime I_UTIME /**/
554
a687059c 555/* I_VARARGS:
556 * This symbol, if defined, indicates to the C program that it should
557 * include varargs.h.
558 */
559#$i_varargs I_VARARGS /**/
560
561/* I_VFORK:
562 * This symbol, if defined, indicates to the C program that it should
563 * include vfork.h.
564 */
565#$i_vfork I_VFORK /**/
566
567/* INTSIZE:
568 * This symbol contains the size of an int, so that the C preprocessor
569 * can make decisions based on it.
570 */
571#define INTSIZE $intsize /**/
572
573/* RANDBITS:
574 * This symbol contains the number of bits of random number the rand()
575 * function produces. Usual values are 15, 16, and 31.
576 */
577#define RANDBITS $randbits /**/
578
579/* SIG_NAME:
580 * This symbol contains an list of signal names in order.
581 */
582#define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
583
36ce8bec 584/* STDCHAR:
585 * This symbol is defined to be the type of char used in stdio.h.
586 * It has the values "unsigned char" or "char".
587 */
588#define STDCHAR $stdchar /**/
589
378cc40b 590/* UIDTYPE:
591 * This symbol has a value like uid_t, int, ushort, or whatever type is
592 * used to declare user ids in the kernel.
593 */
594#define UIDTYPE $uidtype /**/
595
8d063cd8 596/* VOIDFLAGS:
597 * This symbol indicates how much support of the void type is given by this
598 * compiler. What various bits mean:
599 *
600 * 1 = supports declaration of void
601 * 2 = supports arrays of pointers to functions returning void
602 * 4 = supports comparisons between pointers to void functions and
603 * addresses of void functions
604 *
605 * The package designer should define VOIDUSED to indicate the requirements
606 * of the package. This can be done either by #defining VOIDUSED before
607 * including config.h, or by defining defvoidused in Myinit.U. If the
a687059c 608 * latter approach is taken, only those flags will be tested. If the
8d063cd8 609 * level of void support necessary is not present, defines void to int.
610 */
611#ifndef VOIDUSED
612#define VOIDUSED $defvoidused
613#endif
614#define VOIDFLAGS $voidflags
615#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
616#$define void int /* is void to be avoided? */
617#$define M_VOID /* Xenix strikes again */
618#endif
619
378cc40b 620/* PRIVLIB:
621 * This symbol contains the name of the private library for this package.
622 * The library is private in the sense that it needn't be in anyone's
a687059c 623 * execution path, but it should be accessible by the world. The program
624 * should be prepared to do ~ expansion.
378cc40b 625 */
626#define PRIVLIB "$privlib" /**/
627
8d063cd8 628!GROK!THIS!