This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
back out changes#9012,9010,9009 and parts of change#9016
[perl5.git] / config_h.SH
CommitLineData
8d063cd8
LW
1case $CONFIG in
2'')
2304df62
AD
3 if test -f config.sh; then TOP=.;
4 elif test -f ../config.sh; then TOP=..;
5 elif test -f ../../config.sh; then TOP=../..;
6 elif test -f ../../../config.sh; then TOP=../../..;
7 elif test -f ../../../../config.sh; then TOP=../../../..;
8 else
9 echo "Can't find config.sh."; exit 1
10 fi
11 . $TOP/config.sh
12 ;;
13esac
14case "$0" in
15*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
8d063cd8
LW
16esac
17echo "Extracting config.h (with variable substitutions)"
a26b0745 18sed <<!GROK!THIS! >config.h -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
2304df62
AD
19/*
20 * This file was produced by running the config_h.SH script, which
8d063cd8
LW
21 * gets its values from config.sh, which is generally produced by
22 * running Configure.
23 *
24 * Feel free to modify any of this as the need arises. Note, however,
1aef975c
AD
25 * that running config_h.SH again will wipe out any changes you've made.
26 * For a more permanent change edit config.sh and rerun config_h.SH.
2304df62 27 *
dfe9444c 28 * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $
8d063cd8
LW
29 */
30
dfe9444c
AD
31/*
32 * Package name : $package
33 * Source directory : $src
34 * Configuration time: $cf_time
35 * Configured by : $cf_by
36 * Target system : $myuname
2304df62 37 */
8d063cd8 38
2304df62
AD
39#ifndef _config_h_
40#define _config_h_
41
dfe9444c
AD
42/* LOC_SED:
43 * This symbol holds the complete pathname to the sed program.
774d564b 44 */
dfe9444c 45#define LOC_SED "$full_sed" /**/
774d564b 46
a0d0e21e
LW
47/* HAS_ALARM:
48 * This symbol, if defined, indicates that the alarm routine is
49 * available.
50 */
51#$d_alarm HAS_ALARM /**/
52
ecfc5424
AD
53/* HASATTRIBUTE:
54 * This symbol indicates the C compiler can check for function attributes,
55 * such as printf formats. This is normally only supported by GNU cc.
56 */
57#$d_attribut HASATTRIBUTE /**/
58#ifndef HASATTRIBUTE
59#define __attribute__(_arg_)
60#endif
61
2304df62
AD
62/* HAS_BCMP:
63 * This symbol is defined if the bcmp() routine is available to
64 * compare blocks of memory.
a687059c 65 */
2304df62 66#$d_bcmp HAS_BCMP /**/
a687059c 67
2304df62
AD
68/* HAS_BCOPY:
69 * This symbol is defined if the bcopy() routine is available to
70 * copy blocks of memory.
c51b80d1 71 */
2304df62 72#$d_bcopy HAS_BCOPY /**/
c51b80d1 73
2304df62
AD
74/* HAS_BZERO:
75 * This symbol is defined if the bzero() routine is available to
76 * set a memory block to 0.
0d3e774c 77 */
2304df62 78#$d_bzero HAS_BZERO /**/
0d3e774c 79
a0d0e21e
LW
80/* HAS_CHOWN:
81 * This symbol, if defined, indicates that the chown routine is
82 * available.
83 */
84#$d_chown HAS_CHOWN /**/
85
86/* HAS_CHROOT:
87 * This symbol, if defined, indicates that the chroot routine is
88 * available.
89 */
90#$d_chroot HAS_CHROOT /**/
91
2304df62 92/* HAS_CHSIZE:
87250799
LW
93 * This symbol, if defined, indicates that the chsize routine is available
94 * to truncate files. You might need a -lx to get this routine.
95 */
fe14fcc3 96#$d_chsize HAS_CHSIZE /**/
87250799 97
2304df62
AD
98/* HASCONST:
99 * This symbol, if defined, indicates that this C compiler knows about
100 * the const type. There is no need to actually test for that symbol
101 * within your programs. The mere use of the "const" keyword will
102 * trigger the necessary tests.
103 */
104#$d_const HASCONST /**/
105#ifndef HASCONST
106#define const
107#endif
108
109/* HAS_CRYPT:
2e1b3b7e
KK
110 * This symbol, if defined, indicates that the crypt routine is available
111 * to encrypt passwords and the like.
112 */
2304df62 113#$d_crypt HAS_CRYPT /**/
2e1b3b7e 114
a0d0e21e
LW
115/* HAS_CUSERID:
116 * This symbol, if defined, indicates that the cuserid routine is
117 * available to get character login names.
13281fa4 118 */
a0d0e21e
LW
119#$d_cuserid HAS_CUSERID /**/
120
121/* HAS_DBL_DIG:
122 * This symbol, if defined, indicates that this system's <float.h>
123 * or <limits.h> defines the symbol DBL_DIG, which is the number
124 * of significant digits in a double precision number. If this
125 * symbol is not defined, a guess of 15 is usually pretty good.
126 */
127#$d_dbl_dig HAS_DBL_DIG /* */
128
129/* HAS_DIFFTIME:
130 * This symbol, if defined, indicates that the difftime routine is
131 * available.
132 */
133#$d_difftime HAS_DIFFTIME /**/
13281fa4 134
ecfc5424
AD
135/* HAS_DLERROR:
136 * This symbol, if defined, indicates that the dlerror routine is
137 * available to return a string describing the last error that
138 * occurred from a call to dlopen(), dlclose() or dlsym().
139 */
140#$d_dlerror HAS_DLERROR /**/
141
dfe9444c
AD
142/* SETUID_SCRIPTS_ARE_SECURE_NOW:
143 * This symbol, if defined, indicates that the bug that prevents
144 * setuid scripts from being secure is not present in this kernel.
145 */
146/* DOSUID:
147 * This symbol, if defined, indicates that the C program should
148 * check the script that it is executing for setuid/setgid bits, and
149 * attempt to emulate setuid/setgid on systems that have disabled
150 * setuid #! scripts because the kernel can't do it securely.
151 * It is up to the package designer to make sure that this emulation
152 * is done securely. Among other things, it should do an fstat on
153 * the script it just opened to make sure it really is a setuid/setgid
154 * script, it should make sure the arguments passed correspond exactly
155 * to the argument on the #! line, and it should not trust any
156 * subprocesses to which it must pass the filename rather than the
157 * file descriptor of the script to be executed.
158 */
159#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
160#$d_dosuid DOSUID /**/
161
2304df62
AD
162/* HAS_DUP2:
163 * This symbol, if defined, indicates that the dup2 routine is
164 * available to duplicate file descriptors.
a687059c 165 */
2304df62 166#$d_dup2 HAS_DUP2 /**/
a687059c 167
2304df62 168/* HAS_FCHMOD:
378cc40b
LW
169 * This symbol, if defined, indicates that the fchmod routine is available
170 * to change mode of opened files. If unavailable, use chmod().
171 */
2304df62 172#$d_fchmod HAS_FCHMOD /**/
378cc40b 173
2304df62 174/* HAS_FCHOWN:
378cc40b
LW
175 * This symbol, if defined, indicates that the fchown routine is available
176 * to change ownership of opened files. If unavailable, use chown().
177 */
2304df62 178#$d_fchown HAS_FCHOWN /**/
378cc40b 179
2304df62 180/* HAS_FCNTL:
fe14fcc3
LW
181 * This symbol, if defined, indicates to the C program that
182 * the fcntl() function exists.
a687059c 183 */
2304df62 184#$d_fcntl HAS_FCNTL /**/
a687059c 185
a0d0e21e
LW
186/* HAS_FGETPOS:
187 * This symbol, if defined, indicates that the fgetpos routine is
188 * available to get the file position indicator, similar to ftell().
189 */
190#$d_fgetpos HAS_FGETPOS /**/
191
2304df62
AD
192/* HAS_FLOCK:
193 * This symbol, if defined, indicates that the flock routine is
a687059c
LW
194 * available to do file locking.
195 */
2304df62 196#$d_flock HAS_FLOCK /**/
a687059c 197
a0d0e21e
LW
198/* HAS_FORK:
199 * This symbol, if defined, indicates that the fork routine is
200 * available.
201 */
202#$d_fork HAS_FORK /**/
203
204/* HAS_FSETPOS:
205 * This symbol, if defined, indicates that the fsetpos routine is
206 * available to set the file position indicator, similar to fseek().
207 */
208#$d_fsetpos HAS_FSETPOS /**/
209
5f05dabc 210/* HAS_GETTIMEOFDAY:
211 * This symbol, if defined, indicates that the gettimeofday() system
212 * call is available for a sub-second accuracy clock. Usually, the file
213 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
214 * The type "Timeval" should be used to refer to "struct timeval".
215 */
216#$d_gettimeod HAS_GETTIMEOFDAY /**/
217#ifdef HAS_GETTIMEOFDAY
218#define Timeval struct timeval /* Structure used by gettimeofday() */
219#endif
220
2304df62 221/* HAS_GETGROUPS:
378cc40b
LW
222 * This symbol, if defined, indicates that the getgroups() routine is
223 * available to get the list of process groups. If unavailable, multiple
224 * groups are probably not supported.
225 */
2304df62 226#$d_getgrps HAS_GETGROUPS /**/
378cc40b 227
a0d0e21e
LW
228/* HAS_GETLOGIN:
229 * This symbol, if defined, indicates that the getlogin routine is
230 * available to get the login name.
231 */
232#$d_getlogin HAS_GETLOGIN /**/
233
dfe9444c
AD
234/* HAS_GETPGID:
235 * This symbol, if defined, indicates to the C program that
236 * the getpgid(pid) function is available to get the
237 * process group id.
238 */
239#$d_getpgid HAS_GETPGID /**/
240
2304df62 241/* HAS_GETPGRP2:
d8f2e4cc
LW
242 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
243 * routine is available to get the current process group.
244 */
2304df62 245#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 246
a0d0e21e
LW
247/* HAS_GETPPID:
248 * This symbol, if defined, indicates that the getppid routine is
249 * available to get the parent process ID.
250 */
251#$d_getppid HAS_GETPPID /**/
252
2304df62
AD
253/* HAS_GETPRIORITY:
254 * This symbol, if defined, indicates that the getpriority routine is
a687059c
LW
255 * available to get a process's priority.
256 */
2304df62 257#$d_getprior HAS_GETPRIORITY /**/
a687059c 258
dfe9444c
AD
259/* HAS_INET_ATON:
260 * This symbol, if defined, indicates to the C program that the
261 * inet_aton() function is available to parse IP address "dotted-quad"
262 * strings.
ecfc5424 263 */
dfe9444c 264#$d_inetaton HAS_INET_ATON /**/
ecfc5424 265
2304df62 266/* HAS_KILLPG:
378cc40b
LW
267 * This symbol, if defined, indicates that the killpg routine is available
268 * to kill process groups. If unavailable, you probably should use kill
269 * with a negative process number.
270 */
2304df62 271#$d_killpg HAS_KILLPG /**/
378cc40b 272
2304df62
AD
273/* HAS_LINK:
274 * This symbol, if defined, indicates that the link routine is
275 * available to create hard links.
0d3e774c 276 */
2304df62 277#$d_link HAS_LINK /**/
0d3e774c 278
ecfc5424
AD
279/* HAS_LOCALECONV:
280 * This symbol, if defined, indicates that the localeconv routine is
281 * available for numeric and monetary formatting conventions.
282 */
283#$d_locconv HAS_LOCALECONV /**/
284
a0d0e21e
LW
285/* HAS_LOCKF:
286 * This symbol, if defined, indicates that the lockf routine is
287 * available to do file locking.
288 */
289#$d_lockf HAS_LOCKF /**/
290
2304df62
AD
291/* HAS_LSTAT:
292 * This symbol, if defined, indicates that the lstat routine is
293 * available to do file stats on symbolic links.
a687059c 294 */
2304df62 295#$d_lstat HAS_LSTAT /**/
a687059c 296
a0d0e21e
LW
297/* HAS_MBLEN:
298 * This symbol, if defined, indicates that the mblen routine is available
299 * to find the number of bytes in a multibye character.
300 */
301#$d_mblen HAS_MBLEN /**/
302
303/* HAS_MBSTOWCS:
304 * This symbol, if defined, indicates that the mbstowcs routine is
305 * available to covert a multibyte string into a wide character string.
306 */
307#$d_mbstowcs HAS_MBSTOWCS /**/
308
309/* HAS_MBTOWC:
310 * This symbol, if defined, indicates that the mbtowc routine is available
311 * to covert a multibyte to a wide character.
312 */
313#$d_mbtowc HAS_MBTOWC /**/
314
2304df62
AD
315/* HAS_MEMCMP:
316 * This symbol, if defined, indicates that the memcmp routine is available
317 * to compare blocks of memory.
378cc40b 318 */
2304df62
AD
319#$d_memcmp HAS_MEMCMP /**/
320
321/* HAS_MEMCPY:
9f971974 322 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 323 * to copy blocks of memory.
9f971974 324 */
2304df62 325#$d_memcpy HAS_MEMCPY /**/
9f971974 326
2304df62 327/* HAS_MEMMOVE:
9f971974 328 * This symbol, if defined, indicates that the memmove routine is available
2304df62
AD
329 * to copy potentially overlapping blocks of memory. This should be used
330 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
331 * own version.
9f971974 332 */
2304df62 333#$d_memmove HAS_MEMMOVE /**/
9f971974 334
2304df62 335/* HAS_MEMSET:
9f971974 336 * This symbol, if defined, indicates that the memset routine is available
2304df62 337 * to set blocks of memory.
9f971974 338 */
2304df62 339#$d_memset HAS_MEMSET /**/
378cc40b 340
2304df62 341/* HAS_MKDIR:
a687059c
LW
342 * This symbol, if defined, indicates that the mkdir routine is available
343 * to create directories. Otherwise you should fork off a new process to
344 * exec /bin/mkdir.
345 */
2304df62 346#$d_mkdir HAS_MKDIR /**/
fe14fcc3 347
ecfc5424
AD
348/* HAS_MKFIFO:
349 * This symbol, if defined, indicates that the mkfifo routine is
350 * available to create FIFOs. Otherwise, mknod should be able to
351 * do it for you. However, if mkfifo is there, mknod might require
352 * super-user privileges which mkfifo will not.
353 */
354#$d_mkfifo HAS_MKFIFO /**/
355
a0d0e21e
LW
356/* HAS_MKTIME:
357 * This symbol, if defined, indicates that the mktime routine is
358 * available.
359 */
360#$d_mktime HAS_MKTIME /**/
361
fe749a9f
JH
362/* HAS_MSYNC:
363 * This symbol, if defined, indicates that the msync system call is
364 * available to synchronize a mapped file.
365 */
366#$d_msync HAS_MSYNC /**/
367
368/* HAS_MUNMAP:
369 * This symbol, if defined, indicates that the munmap system call is
370 * available to unmap a region, usually mapped by mmap().
371 */
372#$d_munmap HAS_MUNMAP /**/
373
a0d0e21e
LW
374/* HAS_NICE:
375 * This symbol, if defined, indicates that the nice routine is
376 * available.
fe14fcc3 377 */
a0d0e21e 378#$d_nice HAS_NICE /**/
a687059c 379
ecfc5424
AD
380/* HAS_PATHCONF:
381 * This symbol, if defined, indicates that pathconf() is available
382 * to determine file-system related limits and options associated
383 * with a given filename.
384 */
385/* HAS_FPATHCONF:
386 * This symbol, if defined, indicates that pathconf() is available
387 * to determine file-system related limits and options associated
388 * with a given open file descriptor.
389 */
390#$d_pathconf HAS_PATHCONF /**/
391#$d_fpathconf HAS_FPATHCONF /**/
392
a0d0e21e
LW
393/* HAS_PAUSE:
394 * This symbol, if defined, indicates that the pause routine is
395 * available to suspend a process until a signal is received.
a687059c 396 */
a0d0e21e 397#$d_pause HAS_PAUSE /**/
a687059c 398
a0d0e21e
LW
399/* HAS_PIPE:
400 * This symbol, if defined, indicates that the pipe routine is
401 * available to create an inter-process channel.
fe14fcc3 402 */
a0d0e21e
LW
403#$d_pipe HAS_PIPE /**/
404
8e07c86e
AD
405/* HAS_POLL:
406 * This symbol, if defined, indicates that the poll routine is
dfe9444c
AD
407 * available to poll active file descriptors. You may safely
408 * include <poll.h> when this symbol is defined.
8e07c86e
AD
409 */
410#$d_poll HAS_POLL /**/
411
a0d0e21e
LW
412/* HAS_READDIR:
413 * This symbol, if defined, indicates that the readdir routine is
414 * available to read directory entries. You may have to include
415 * <dirent.h>. See I_DIRENT.
416 */
417#$d_readdir HAS_READDIR /**/
418
419/* HAS_SEEKDIR:
420 * This symbol, if defined, indicates that the seekdir routine is
421 * available. You may have to include <dirent.h>. See I_DIRENT.
422 */
423#$d_seekdir HAS_SEEKDIR /**/
424
425/* HAS_TELLDIR:
426 * This symbol, if defined, indicates that the telldir routine is
427 * available. You may have to include <dirent.h>. See I_DIRENT.
428 */
429#$d_telldir HAS_TELLDIR /**/
430
431/* HAS_REWINDDIR:
432 * This symbol, if defined, indicates that the rewinddir routine is
433 * available. You may have to include <dirent.h>. See I_DIRENT.
434 */
435#$d_rewinddir HAS_REWINDDIR /**/
436
437/* HAS_READLINK:
438 * This symbol, if defined, indicates that the readlink routine is
439 * available to read the value of a symbolic link.
440 */
441#$d_readlink HAS_READLINK /**/
fe14fcc3 442
2304df62 443/* HAS_RENAME:
378cc40b
LW
444 * This symbol, if defined, indicates that the rename routine is available
445 * to rename files. Otherwise you should do the unlink(), link(), unlink()
446 * trick.
447 */
2304df62 448#$d_rename HAS_RENAME /**/
378cc40b 449
2304df62
AD
450/* HAS_RMDIR:
451 * This symbol, if defined, indicates that the rmdir routine is
452 * available to remove directories. Otherwise you should fork off a
453 * new process to exec /bin/rmdir.
9f971974 454 */
2304df62 455#$d_rmdir HAS_RMDIR /**/
9f971974 456
2304df62
AD
457/* HAS_SELECT:
458 * This symbol, if defined, indicates that the select routine is
459 * available to select active file descriptors. If the timeout field
460 * is used, <sys/time.h> may need to be included.
fe14fcc3 461 */
2304df62 462#$d_select HAS_SELECT /**/
a687059c 463
2304df62 464/* HAS_SETEGID:
378cc40b
LW
465 * This symbol, if defined, indicates that the setegid routine is available
466 * to change the effective gid of the current program.
467 */
2304df62 468#$d_setegid HAS_SETEGID /**/
378cc40b 469
2304df62 470/* HAS_SETEUID:
378cc40b
LW
471 * This symbol, if defined, indicates that the seteuid routine is available
472 * to change the effective uid of the current program.
473 */
2304df62
AD
474#$d_seteuid HAS_SETEUID /**/
475
a0d0e21e
LW
476/* HAS_SETLINEBUF:
477 * This symbol, if defined, indicates that the setlinebuf routine is
478 * available to change stderr or stdout from block-buffered or unbuffered
479 * to a line-buffered mode.
480 */
481#$d_setlinebuf HAS_SETLINEBUF /**/
482
483/* HAS_SETLOCALE:
484 * This symbol, if defined, indicates that the setlocale routine is
485 * available to handle locale-specific ctype implementations.
486 */
487#$d_setlocale HAS_SETLOCALE /**/
488
dfe9444c
AD
489/* HAS_SETPGID:
490 * This symbol, if defined, indicates that the setpgid(pid, gpid)
491 * routine is available to set process group ID.
492 */
493#$d_setpgid HAS_SETPGID /**/
494
2304df62 495/* HAS_SETPGRP2:
d8f2e4cc
LW
496 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
497 * routine is available to set the current process group.
498 */
2304df62 499#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 500
2304df62
AD
501/* HAS_SETPRIORITY:
502 * This symbol, if defined, indicates that the setpriority routine is
a687059c
LW
503 * available to set a process's priority.
504 */
2304df62 505#$d_setprior HAS_SETPRIORITY /**/
a687059c 506
2304df62 507/* HAS_SETREGID:
a687059c 508 * This symbol, if defined, indicates that the setregid routine is
2304df62
AD
509 * available to change the real and effective gid of the current
510 * process.
a687059c 511 */
2304df62 512/* HAS_SETRESGID:
a687059c
LW
513 * This symbol, if defined, indicates that the setresgid routine is
514 * available to change the real, effective and saved gid of the current
2304df62 515 * process.
a687059c 516 */
2304df62
AD
517#$d_setregid HAS_SETREGID /**/
518#$d_setresgid HAS_SETRESGID /**/
a687059c 519
2304df62 520/* HAS_SETREUID:
a687059c 521 * This symbol, if defined, indicates that the setreuid routine is
2304df62
AD
522 * available to change the real and effective uid of the current
523 * process.
a687059c 524 */
2304df62 525/* HAS_SETRESUID:
a687059c
LW
526 * This symbol, if defined, indicates that the setresuid routine is
527 * available to change the real, effective and saved uid of the current
2304df62 528 * process.
a687059c 529 */
2304df62
AD
530#$d_setreuid HAS_SETREUID /**/
531#$d_setresuid HAS_SETRESUID /**/
a687059c 532
2304df62 533/* HAS_SETRGID:
378cc40b
LW
534 * This symbol, if defined, indicates that the setrgid routine is available
535 * to change the real gid of the current program.
536 */
2304df62 537#$d_setrgid HAS_SETRGID /**/
378cc40b 538
2304df62 539/* HAS_SETRUID:
378cc40b
LW
540 * This symbol, if defined, indicates that the setruid routine is available
541 * to change the real uid of the current program.
542 */
2304df62
AD
543#$d_setruid HAS_SETRUID /**/
544
545/* HAS_SETSID:
546 * This symbol, if defined, indicates that the setsid routine is
547 * available to set the process group ID.
548 */
549#$d_setsid HAS_SETSID /**/
fe14fcc3 550
a0d0e21e
LW
551/* Shmat_t:
552 * This symbol holds the return type of the shmat() system call.
553 * Usually set to 'void *' or 'char *'.
fe14fcc3 554 */
a0d0e21e
LW
555/* HAS_SHMAT_PROTOTYPE:
556 * This symbol, if defined, indicates that the sys/shm.h includes
557 * a prototype for shmat(). Otherwise, it is up to the program to
b0ca4213 558 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
a0d0e21e
LW
559 * but not always right so it should be emitted by the program only
560 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 561 */
a0d0e21e
LW
562#define Shmat_t $shmattype /**/
563#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 564
dfe9444c
AD
565/* HAS_STRCHR:
566 * This symbol is defined to indicate that the strchr()/strrchr()
567 * functions are available for string searching. If not, try the
568 * index()/rindex() pair.
16d20bd9 569 */
dfe9444c
AD
570/* HAS_INDEX:
571 * This symbol is defined to indicate that the index()/rindex()
572 * functions are available for string searching.
c2960299 573 */
dfe9444c
AD
574#$d_strchr HAS_STRCHR /**/
575#$d_index HAS_INDEX /**/
576
577/* HAS_STRCOLL:
578 * This symbol, if defined, indicates that the strcoll routine is
579 * available to compare strings using collating information.
16d20bd9 580 */
dfe9444c
AD
581#$d_strcoll HAS_STRCOLL /**/
582
583/* USE_STRUCT_COPY:
584 * This symbol, if defined, indicates that this C compiler knows how
585 * to copy structures. If undefined, you'll need to use a block copy
586 * routine of some sort instead.
c2960299 587 */
dfe9444c 588#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 589
a89d8a78
DH
590/* HAS_STRTOD:
591 * This symbol, if defined, indicates that the strtod routine is
5f05dabc 592 * available to provide better numeric string conversion than atof().
a89d8a78
DH
593 */
594#$d_strtod HAS_STRTOD /**/
595
596/* HAS_STRTOL:
5f05dabc 597 * This symbol, if defined, indicates that the strtol routine is available
598 * to provide better numeric string conversion than atoi() and friends.
a89d8a78
DH
599 */
600#$d_strtol HAS_STRTOL /**/
601
602/* HAS_STRTOUL:
603 * This symbol, if defined, indicates that the strtoul routine is
5f05dabc 604 * available to provide conversion of strings to unsigned long.
a89d8a78
DH
605 */
606#$d_strtoul HAS_STRTOUL /**/
607
a0d0e21e
LW
608/* HAS_STRXFRM:
609 * This symbol, if defined, indicates that the strxfrm() routine is
610 * available to transform strings.
611 */
612#$d_strxfrm HAS_STRXFRM /**/
613
2304df62 614/* HAS_SYMLINK:
2e1b3b7e
KK
615 * This symbol, if defined, indicates that the symlink routine is available
616 * to create symbolic links.
617 */
2304df62 618#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 619
2304df62
AD
620/* HAS_SYSCALL:
621 * This symbol, if defined, indicates that the syscall routine is
622 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 623 */
2304df62 624#$d_syscall HAS_SYSCALL /**/
e5d73d77 625
ecfc5424
AD
626/* HAS_SYSCONF:
627 * This symbol, if defined, indicates that sysconf() is available
628 * to determine system related limits and options.
629 */
630#$d_sysconf HAS_SYSCONF /**/
631
2304df62
AD
632/* HAS_SYSTEM:
633 * This symbol, if defined, indicates that the system routine is
634 * available to issue a shell command.
9f971974 635 */
2304df62 636#$d_system HAS_SYSTEM /**/
9f971974 637
a0d0e21e
LW
638/* HAS_TCGETPGRP:
639 * This symbol, if defined, indicates that the tcgetpgrp routine is
640 * available to get foreground process group ID.
85e6fe83 641 */
a0d0e21e
LW
642#$d_tcgetpgrp HAS_TCGETPGRP /**/
643
644/* HAS_TCSETPGRP:
645 * This symbol, if defined, indicates that the tcsetpgrp routine is
646 * available to set foreground process group ID.
647 */
648#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 649
2304df62 650/* HAS_TRUNCATE:
87250799
LW
651 * This symbol, if defined, indicates that the truncate routine is
652 * available to truncate files.
653 */
2304df62 654#$d_truncate HAS_TRUNCATE /**/
87250799 655
a0d0e21e
LW
656/* HAS_TZNAME:
657 * This symbol, if defined, indicates that the tzname[] array is
658 * available to access timezone names.
659 */
660#$d_tzname HAS_TZNAME /**/
661
662/* HAS_UMASK:
663 * This symbol, if defined, indicates that the umask routine is
664 * available to set and get the value of the file creation mask.
665 */
666#$d_umask HAS_UMASK /**/
667
2304df62 668/* HASVOLATILE:
afd9f252
LW
669 * This symbol, if defined, indicates that this C compiler knows about
670 * the volatile declaration.
671 */
672#$d_volatile HASVOLATILE /**/
2304df62
AD
673#ifndef HASVOLATILE
674#define volatile
675#endif
afd9f252 676
2304df62 677/* HAS_WAIT4:
bf38876a
LW
678 * This symbol, if defined, indicates that wait4() exists.
679 */
2304df62 680#$d_wait4 HAS_WAIT4 /**/
bf38876a 681
2304df62
AD
682/* HAS_WAITPID:
683 * This symbol, if defined, indicates that the waitpid routine is
684 * available to wait for child process.
39c3038c 685 */
2304df62 686#$d_waitpid HAS_WAITPID /**/
39c3038c 687
a0d0e21e
LW
688/* HAS_WCSTOMBS:
689 * This symbol, if defined, indicates that the wcstombs routine is
690 * available to convert wide character strings to multibyte strings.
691 */
692#$d_wcstombs HAS_WCSTOMBS /**/
693
694/* HAS_WCTOMB:
695 * This symbol, if defined, indicates that the wctomb routine is available
696 * to covert a wide character to a multibyte.
697 */
698#$d_wctomb HAS_WCTOMB /**/
699
28e8609d 700/* I_ARPA_INET:
5ff3f7a4
GS
701 * This symbol, if defined, indicates to the C program that it should
702 * include <arpa/inet.h> to get inet_addr and friends declarations.
28e8609d 703 */
5ff3f7a4 704#$i_arpainet I_ARPA_INET /**/
28e8609d 705
dfe9444c
AD
706/* I_DBM:
707 * This symbol, if defined, indicates that <dbm.h> exists and should
708 * be included.
232e078e 709 */
dfe9444c
AD
710/* I_RPCSVC_DBM:
711 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
712 * should be included.
232e078e 713 */
dfe9444c
AD
714#$i_dbm I_DBM /**/
715#$i_rpcsvcdbm I_RPCSVC_DBM /**/
232e078e 716
2304df62
AD
717/* I_DIRENT:
718 * This symbol, if defined, indicates to the C program that it should
719 * include <dirent.h>. Using this symbol also triggers the definition
720 * of the Direntry_t define which ends up being 'struct dirent' or
721 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 722 */
2304df62
AD
723/* DIRNAMLEN:
724 * This symbol, if defined, indicates to the C program that the length
725 * of directory entry names is provided by a d_namlen field. Otherwise
726 * you need to do strlen() on the d_name field.
727 */
a0d0e21e
LW
728/* Direntry_t:
729 * This symbol is set to 'struct direct' or 'struct dirent' depending on
730 * whether dirent is available or not. You should use this pseudo type to
731 * portably declare your directory entries.
732 */
2304df62
AD
733#$i_dirent I_DIRENT /**/
734#$d_dirnamlen DIRNAMLEN /**/
a0d0e21e
LW
735#define Direntry_t $direntrytype
736
737/* I_DLFCN:
738 * This symbol, if defined, indicates that <dlfcn.h> exists and should
739 * be included.
740 */
741#$i_dlfcn I_DLFCN /**/
1c3d792e 742
2304df62 743/* I_FCNTL:
fe14fcc3 744 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 745 */
2304df62 746#$i_fcntl I_FCNTL /**/
a687059c 747
a0d0e21e
LW
748/* I_FLOAT:
749 * This symbol, if defined, indicates to the C program that it should
750 * include <float.h> to get definition of symbols like DBL_MAX or
751 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 752 */
a0d0e21e 753#$i_float I_FLOAT /**/
a687059c 754
a0d0e21e
LW
755/* I_LIMITS:
756 * This symbol, if defined, indicates to the C program that it should
757 * include <limits.h> to get definition of symbols like WORD_BIT or
758 * LONG_MAX, i.e. machine dependant limitations.
759 */
760#$i_limits I_LIMITS /**/
761
dfe9444c
AD
762/* I_LOCALE:
763 * This symbol, if defined, indicates to the C program that it should
764 * include <locale.h>.
765 */
766#$i_locale I_LOCALE /**/
767
a0d0e21e
LW
768/* I_MATH:
769 * This symbol, if defined, indicates to the C program that it should
770 * include <math.h>.
771 */
772#$i_math I_MATH /**/
773
774/* I_MEMORY:
775 * This symbol, if defined, indicates to the C program that it should
776 * include <memory.h>.
777 */
778#$i_memory I_MEMORY /**/
779
232e078e 780/* I_NDBM:
16d20bd9 781 * This symbol, if defined, indicates that <ndbm.h> exists and should
232e078e
AD
782 * be included.
783 */
784#$i_ndbm I_NDBM /**/
785
ecfc5424
AD
786/* I_NET_ERRNO:
787 * This symbol, if defined, indicates that <net/errno.h> exists and
788 * should be included.
2304df62 789 */
ecfc5424 790#$i_neterrno I_NET_ERRNO /**/
2304df62
AD
791
792/* I_NETINET_IN:
03a14243 793 * This symbol, if defined, indicates to the C program that it should
2304df62 794 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 795 */
2304df62 796#$i_niin I_NETINET_IN /**/
03a14243 797
dfe9444c
AD
798/* I_SFIO:
799 * This symbol, if defined, indicates to the C program that it should
800 * include <sfio.h>.
801 */
802#$i_sfio I_SFIO /**/
803
2304df62
AD
804/* I_STDDEF:
805 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c
LW
806 * be included.
807 */
2304df62 808#$i_stddef I_STDDEF /**/
a687059c 809
a0d0e21e
LW
810/* I_STDLIB:
811 * This symbol, if defined, indicates that <stdlib.h> exists and should
812 * be included.
813 */
814#$i_stdlib I_STDLIB /**/
815
816/* I_STRING:
85e6fe83
LW
817 * This symbol, if defined, indicates to the C program that it should
818 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
819 */
820#$i_string I_STRING /**/
821
2304df62
AD
822/* I_SYS_DIR:
823 * This symbol, if defined, indicates to the C program that it should
824 * include <sys/dir.h>.
d8f2e4cc 825 */
2304df62
AD
826#$i_sysdir I_SYS_DIR /**/
827
828/* I_SYS_FILE:
829 * This symbol, if defined, indicates to the C program that it should
830 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 831 */
2304df62
AD
832#$i_sysfile I_SYS_FILE /**/
833
834/* I_SYS_IOCTL:
835 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
836 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 837 */
2304df62
AD
838#$i_sysioctl I_SYS_IOCTL /**/
839
840/* I_SYS_NDIR:
841 * This symbol, if defined, indicates to the C program that it should
842 * include <sys/ndir.h>.
843 */
844#$i_sysndir I_SYS_NDIR /**/
845
a0d0e21e
LW
846/* I_SYS_PARAM:
847 * This symbol, if defined, indicates to the C program that it should
848 * include <sys/param.h>.
849 */
850#$i_sysparam I_SYS_PARAM /**/
851
e876cf0b 852/* I_SYS_RESOURCE:
853 * This symbol, if defined, indicates to the C program that it should
854 * include <sys/resource.h>.
855 */
856#$i_sysresrc I_SYS_RESOURCE /**/
857
2304df62
AD
858/* I_SYS_SELECT:
859 * This symbol, if defined, indicates to the C program that it should
860 * include <sys/select.h> in order to get definition of struct timeval.
861 */
862#$i_sysselct I_SYS_SELECT /**/
863
dfe9444c
AD
864/* I_SYS_STAT:
865 * This symbol, if defined, indicates to the C program that it should
866 * include <sys/stat.h>.
867 */
868#$i_sysstat I_SYS_STAT /**/
869
a0d0e21e
LW
870/* I_SYS_TIMES:
871 * This symbol, if defined, indicates to the C program that it should
872 * include <sys/times.h>.
873 */
874#$i_systimes I_SYS_TIMES /**/
875
bd89102f
AD
876/* I_SYS_TYPES:
877 * This symbol, if defined, indicates to the C program that it should
878 * include <sys/types.h>.
879 */
880#$i_systypes I_SYS_TYPES /**/
881
25f94b33
AD
882/* I_SYS_UN:
883 * This symbol, if defined, indicates to the C program that it should
884 * include <sys/un.h> to get UNIX domain socket definitions.
885 */
886#$i_sysun I_SYS_UN /**/
887
e876cf0b 888/* I_SYS_WAIT:
889 * This symbol, if defined, indicates to the C program that it should
890 * include <sys/wait.h>.
891 */
892#$i_syswait I_SYS_WAIT /**/
893
a0d0e21e
LW
894/* I_TERMIO:
895 * This symbol, if defined, indicates that the program should include
896 * <termio.h> rather than <sgtty.h>. There are also differences in
897 * the ioctl() calls that depend on the value of this symbol.
898 */
899/* I_TERMIOS:
900 * This symbol, if defined, indicates that the program should include
901 * the POSIX termios.h rather than sgtty.h or termio.h.
902 * There are also differences in the ioctl() calls that depend on the
903 * value of this symbol.
904 */
905/* I_SGTTY:
906 * This symbol, if defined, indicates that the program should include
907 * <sgtty.h> rather than <termio.h>. There are also differences in
908 * the ioctl() calls that depend on the value of this symbol.
909 */
910#$i_termio I_TERMIO /**/
911#$i_termios I_TERMIOS /**/
912#$i_sgtty I_SGTTY /**/
913
85e6fe83
LW
914/* I_UNISTD:
915 * This symbol, if defined, indicates to the C program that it should
916 * include <unistd.h>.
917 */
918#$i_unistd I_UNISTD /**/
d8f2e4cc 919
2304df62 920/* I_UTIME:
d8f2e4cc 921 * This symbol, if defined, indicates to the C program that it should
2304df62 922 * include <utime.h>.
d8f2e4cc 923 */
2304df62 924#$i_utime I_UTIME /**/
d8f2e4cc 925
dfe9444c
AD
926/* I_VALUES:
927 * This symbol, if defined, indicates to the C program that it should
928 * include <values.h> to get definition of symbols like MINFLOAT or
929 * MAXLONG, i.e. machine dependant limitations. Probably, you
930 * should use <limits.h> instead, if it is available.
931 */
932#$i_values I_VALUES /**/
933
e876cf0b 934/* I_STDARG:
935 * This symbol, if defined, indicates that <stdarg.h> exists and should
936 * be included.
937 */
938/* I_VARARGS:
939 * This symbol, if defined, indicates to the C program that it should
940 * include <varargs.h>.
941 */
942#$i_stdarg I_STDARG /**/
943#$i_varargs I_VARARGS /**/
944
a0d0e21e
LW
945/* I_VFORK:
946 * This symbol, if defined, indicates to the C program that it should
947 * include vfork.h.
948 */
949#$i_vfork I_VFORK /**/
a687059c 950
a0d0e21e
LW
951/* CAN_PROTOTYPE:
952 * If defined, this macro indicates that the C compiler can handle
953 * function prototypes.
85e6fe83 954 */
a0d0e21e
LW
955/* _:
956 * This macro is used to declare function parameters for folks who want
957 * to make declarations with prototypes using a different style than
958 * the above macros. Use double parentheses. For example:
959 *
960 * int main _((int argc, char *argv[]));
961 */
962#$prototype CAN_PROTOTYPE /**/
963#ifdef CAN_PROTOTYPE
964#define _(args) args
965#else
966#define _(args) ()
967#endif
85e6fe83 968
dfe9444c
AD
969/* SH_PATH:
970 * This symbol contains the full pathname to the shell used on this
971 * on this system to execute Bourne shell scripts. Usually, this will be
972 * /bin/sh, though it's possible that some systems will have /bin/ksh,
973 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
974 * D:/bin/sh.exe.
a0d0e21e 975 */
dfe9444c 976#define SH_PATH "$sh" /**/
a0d0e21e 977
aaacdc8b
GS
978/* CROSSCOMPILE:
979 * This symbol, if defined, signifies that we our
980 * build process is a cross-compilation.
981 */
982#$crosscompile CROSSCOMPILE /**/
983
984/* INTSIZE:
985 * This symbol contains the value of sizeof(int) so that the C
986 * preprocessor can make decisions based on it.
987 */
988/* LONGSIZE:
989 * This symbol contains the value of sizeof(long) so that the C
990 * preprocessor can make decisions based on it.
991 */
992/* SHORTSIZE:
993 * This symbol contains the value of sizeof(short) so that the C
994 * preprocessor can make decisions based on it.
995 */
996#define INTSIZE $intsize /**/
997#define LONGSIZE $longsize /**/
998#define SHORTSIZE $shortsize /**/
999
1000/* MULTIARCH:
1001 * This symbol, if defined, signifies that the build
1002 * process will produce some binary files that are going to be
1003 * used in a cross-platform environment. This is the case for
1004 * example with the NeXT "fat" binaries that contain executables
1005 * for several CPUs.
1006 */
1007#$multiarch MULTIARCH /**/
1008
de1c2614
JH
1009/* HAS_QUAD:
1010 * This symbol, if defined, tells that there's a 64-bit integer type,
1b8cd678
JH
1011 * Quad_t, and its unsigned counterpar, Uquad_t. QUADKIND will be one
1012 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, or QUAD_IS_INT64_T.
a22e52b9 1013 */
de1c2614 1014#$d_quad HAS_QUAD /**/
6b8eaf93 1015#ifdef HAS_QUAD
1b8cd678
JH
1016# define Quad_t $quadtype /**/
1017# define Uquad_t $uquadtype /**/
6b8eaf93
JH
1018# define QUADKIND $quadkind /**/
1019# define QUAD_IS_INT 1
1020# define QUAD_IS_LONG 2
1021# define QUAD_IS_LONG_LONG 3
1022# define QUAD_IS_INT64_T 4
1023#endif
a22e52b9 1024
5ff3f7a4
GS
1025/* HAS_ACCESSX:
1026 * This symbol, if defined, indicates that the accessx routine is
1027 * available to do extended access checks.
1028 */
1029#$d_accessx HAS_ACCESSX /**/
1030
1031/* HAS_EACCESS:
1032 * This symbol, if defined, indicates that the eaccess routine is
1033 * available to do extended access checks.
1034 */
1035#$d_eaccess HAS_EACCESS /**/
1036
1037/* I_SYS_ACCESS:
1038 * This symbol, if defined, indicates to the C program that it should
85ab1d1d 1039 * include <sys/access.h>.
5ff3f7a4
GS
1040 */
1041#$i_sysaccess I_SYS_ACCESS /**/
1042
1043/* I_SYS_SECURITY:
1044 * This symbol, if defined, indicates to the C program that it should
1045 * include <sys/security.h>.
1046 */
1047#$i_syssecrt I_SYS_SECURITY /**/
1048
ff935051
JH
1049/* OSNAME:
1050 * This symbol contains the name of the operating system, as determined
1051 * by Configure. You shouldn't rely on it too much; the specific
1052 * feature tests from Configure are generally more reliable.
1053 */
1054#define OSNAME "$osname" /**/
1055
dfe9444c 1056/* MEM_ALIGNBYTES:
68c15b6f 1057 * This symbol contains the number of bytes required to align a
87b71857
JH
1058 * double, or a long double when applicable. Usual values are 2,
1059 * 4 and 8. The default is eight, for safety.
5f05dabc 1060 */
c4747d3e 1061#if defined(CROSSCOMPILE) || defined(MULTIARCH)
68c15b6f
HM
1062# define MEM_ALIGNBYTES 8
1063#else
1064#define MEM_ALIGNBYTES $alignbytes
1065#endif
5f05dabc 1066
ff935051
JH
1067/* ARCHLIB:
1068 * This variable, if defined, holds the name of the directory in
1069 * which the user wants to put architecture-dependent public
1070 * library files for $package. It is most often a local directory
1071 * such as /usr/local/lib. Programs using this variable must be
1072 * prepared to deal with filename expansion. If ARCHLIB is the
1073 * same as PRIVLIB, it is not defined, since presumably the
1074 * program already searches PRIVLIB.
1075 */
1076/* ARCHLIB_EXP:
1077 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1078 * in programs that are not prepared to deal with ~ expansion at run-time.
1079 */
1080#$d_archlib ARCHLIB "$archlib" /**/
1081#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1082
1083/* ARCHNAME:
1084 * This symbol holds a string representing the architecture name.
1085 * It may be used to construct an architecture-dependant pathname
1086 * where library files may be held under a private library, for
1087 * instance.
1088 */
1089#define ARCHNAME "$archname" /**/
1090
1091/* HAS_ATOLF:
1092 * This symbol, if defined, indicates that the atolf routine is
1093 * available to convert strings into long doubles.
1094 */
1095#$d_atolf HAS_ATOLF /**/
1096
1097/* HAS_ATOLL:
1098 * This symbol, if defined, indicates that the atoll routine is
1099 * available to convert strings into long longs.
1100 */
1101#$d_atoll HAS_ATOLL /**/
1102
1103/* BIN:
1104 * This symbol holds the path of the bin directory where the package will
1105 * be installed. Program must be prepared to deal with ~name substitution.
1106 */
1107/* BIN_EXP:
1108 * This symbol is the filename expanded version of the BIN symbol, for
1109 * programs that do not want to deal with that at run-time.
1110 */
1111#define BIN "$bin" /**/
1112#define BIN_EXP "$binexp" /**/
1113
1114/* PERL_BINCOMPAT_5005:
f78bfc9c 1115 * This symbol, if defined, indicates that this version of Perl should be
ff935051
JH
1116 * binary-compatible with Perl 5.005. This is impossible for builds
1117 * that use features like threads and multiplicity it is always $undef
1118 * for those versions.
1119 */
1120#$d_bincompat5005 PERL_BINCOMPAT_5005 /**/
1121
8e07c86e 1122/* BYTEORDER:
e876cf0b 1123 * This symbol holds the hexadecimal constant defined in byteorder,
8e07c86e 1124 * i.e. 0x1234 or 0x4321, etc...
68c15b6f
HM
1125 * If the compiler supports cross-compiling or multiple-architecture
1126 * binaries (eg. on NeXT systems), use compiler-defined macros to
1127 * determine the byte order.
7bac28a0 1128 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
e876cf0b 1129 * Binaries (MAB) on either big endian or little endian machines.
1130 * The endian-ness is available at compile-time. This only matters
1131 * for perl, where the config.h can be generated and installed on
1132 * one system, and used by a different architecture to build an
1133 * extension. Older versions of NeXT that might not have
1134 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1135 * so the default case (for NeXT) is big endian to catch them.
1136 * This might matter for NeXT 3.0.
8e07c86e 1137 */
88d5303d
JH
1138#if defined(CROSSCOMPILE) || defined(MULTIARCH)
1139# ifdef __LITTLE_ENDIAN__
1140# if LONGSIZE == 4
1141# define BYTEORDER 0x1234
1142# else
1143# if LONGSIZE == 8
1144# define BYTEORDER 0x12345678
1145# endif
1146# endif
1147# else
1148# ifdef __BIG_ENDIAN__
1149# if LONGSIZE == 4
1150# define BYTEORDER 0x4321
1151# else
1152# if LONGSIZE == 8
1153# define BYTEORDER 0x87654321
1154# endif
1155# endif
1156# endif
1157# endif
1158# if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1159# define BYTEORDER 0x4321
1160# endif
1161#else
8e07c86e 1162#define BYTEORDER 0x$byteorder /* large digits for MSB */
88d5303d 1163#endif /* NeXT */
8e07c86e 1164
ff935051
JH
1165/* CAT2:
1166 * This macro catenates 2 tokens together.
1167 */
1168/* STRINGIFY:
1169 * This macro surrounds its token with double quotes.
1170 */
1171#if $cpp_stuff == 1
ac2a604d
GS
1172#define CAT2(a,b) a/**/b
1173#define STRINGIFY(a) "a"
ff935051
JH
1174 /* If you can get stringification with catify, tell me how! */
1175#endif
1176#if $cpp_stuff == 42
ac2a604d
GS
1177#define PeRl_CaTiFy(a, b) a ## b
1178#define PeRl_StGiFy(a) #a
3240d403
JH
1179/* the additional level of indirection enables these macros to be
1180 * used as arguments to other macros. See K&R 2nd ed., page 231. */
ac2a604d
GS
1181#define CAT2(a,b) PeRl_CaTiFy(a,b)
1182#define StGiFy(a) PeRl_StGiFy(a)
1183#define STRINGIFY(a) PeRl_StGiFy(a)
ff935051
JH
1184#endif
1185#if $cpp_stuff != 1 && $cpp_stuff != 42
b6592ff0 1186# include "Bletch: How does this C preprocessor catenate tokens?"
ff935051
JH
1187#endif
1188
1189/* CPPSTDIN:
1190 * This symbol contains the first part of the string which will invoke
1191 * the C preprocessor on the standard input and produce to standard
1192 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1193 * call a wrapper. See CPPRUN.
1194 */
1195/* CPPMINUS:
1196 * This symbol contains the second part of the string which will invoke
1197 * the C preprocessor on the standard input and produce to standard
1198 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1199 * to specify standard input, otherwise the value is "".
1200 */
1201/* CPPRUN:
1202 * This symbol contains the string which will invoke a C preprocessor on
1203 * the standard input and produce to standard output. It needs to end
1204 * with CPPLAST, after all other preprocessor flags have been specified.
1205 * The main difference with CPPSTDIN is that this program will never be a
1206 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1207 * available directly to the user. Note that it may well be different from
1208 * the preprocessor used to compile the C program.
1209 */
c71a9cee
JH
1210/* CPPLAST:
1211 * This symbol is intended to be used along with CPPRUN in the same manner
1212 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
1213 */
ff935051
JH
1214#define CPPSTDIN "$cppstdin"
1215#define CPPMINUS "$cppminus"
1216#define CPPRUN "$cpprun"
c71a9cee 1217#define CPPLAST "$cpplast"
ff935051
JH
1218
1219/* HAS_ACCESS:
1220 * This manifest constant lets the C program know that the access()
1221 * system call is available to check for accessibility using real UID/GID.
1222 * (always present on UNIX.)
1223 */
1224#$d_access HAS_ACCESS /**/
1225
dfe9444c
AD
1226/* CASTI32:
1227 * This symbol is defined if the C compiler can cast negative
1228 * or large floating point numbers to 32-bit ints.
1aef975c 1229 */
dfe9444c 1230#$d_casti32 CASTI32 /**/
85e6fe83 1231
dfe9444c
AD
1232/* CASTNEGFLOAT:
1233 * This symbol is defined if the C compiler can cast negative
1234 * numbers to unsigned longs, ints and shorts.
85e6fe83 1235 */
dfe9444c
AD
1236/* CASTFLAGS:
1237 * This symbol contains flags that say what difficulties the compiler
1238 * has casting odd floating values to unsigned long:
1239 * 0 = ok
1240 * 1 = couldn't cast < 0
1241 * 2 = couldn't cast >= 0x80000000
1242 * 4 = couldn't cast in argument expression list
bccf77a5 1243 */
dfe9444c
AD
1244#$d_castneg CASTNEGFLOAT /**/
1245#define CASTFLAGS $castflags /**/
1246
1247/* VOID_CLOSEDIR:
1248 * This symbol, if defined, indicates that the closedir() routine
1249 * does not return a value.
bccf77a5 1250 */
dfe9444c 1251#$d_void_closedir VOID_CLOSEDIR /**/
bccf77a5 1252
ff935051
JH
1253/* HAS_CSH:
1254 * This symbol, if defined, indicates that the C-shell exists.
1255 */
1256/* CSH:
1257 * This symbol, if defined, contains the full pathname of csh.
1258 */
1259#$d_csh HAS_CSH /**/
1260#ifdef HAS_CSH
1261#define CSH "$full_csh" /**/
1262#endif
1263
1264/* DLSYM_NEEDS_UNDERSCORE:
1265 * This symbol, if defined, indicates that we need to prepend an
1266 * underscore to the symbol name before calling dlsym(). This only
1267 * makes sense if you *have* dlsym, which we will presume is the
1268 * case if you're using dl_dlopen.xs.
1269 */
1270#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1271
1272/* HAS_DRAND48_PROTO:
1273 * This symbol, if defined, indicates that the system provides
1274 * a prototype for the drand48() function. Otherwise, it is up
1275 * to the program to supply one. A good guess is
1276 * extern double drand48 _((void));
1277 */
1278#$d_drand48proto HAS_DRAND48_PROTO /**/
1279
1280/* HAS_ENDGRENT:
1281 * This symbol, if defined, indicates that the getgrent routine is
1282 * available for finalizing sequential access of the group database.
1283 */
1284#$d_endgrent HAS_ENDGRENT /**/
1285
1286/* HAS_ENDHOSTENT:
1287 * This symbol, if defined, indicates that the endhostent() routine is
1288 * available to close whatever was being used for host queries.
1289 */
1290#$d_endhent HAS_ENDHOSTENT /**/
1291
1292/* HAS_ENDNETENT:
1293 * This symbol, if defined, indicates that the endnetent() routine is
1294 * available to close whatever was being used for network queries.
1295 */
1296#$d_endnent HAS_ENDNETENT /**/
1297
1298/* HAS_ENDPROTOENT:
1299 * This symbol, if defined, indicates that the endprotoent() routine is
1300 * available to close whatever was being used for protocol queries.
1301 */
1302#$d_endpent HAS_ENDPROTOENT /**/
1303
1304/* HAS_ENDPWENT:
1305 * This symbol, if defined, indicates that the getgrent routine is
1306 * available for finalizing sequential access of the passwd database.
1307 */
1308#$d_endpwent HAS_ENDPWENT /**/
1309
1310/* HAS_ENDSERVENT:
1311 * This symbol, if defined, indicates that the endservent() routine is
1312 * available to close whatever was being used for service queries.
1313 */
1314#$d_endsent HAS_ENDSERVENT /**/
1315
921b2963
JH
1316/* HAS_FD_SET:
1317 * This symbol, when defined, indicates presence of the fd_set typedef
1318 * in <sys/types.h>
1319 */
1320#$d_fd_set HAS_FD_SET /**/
1321
b6592ff0
JH
1322/* FLEXFILENAMES:
1323 * This symbol, if defined, indicates that the system supports filenames
1324 * longer than 14 characters.
1325 */
1326#$d_flexfnam FLEXFILENAMES /**/
1327
c5f05a91
JH
1328/* HAS_FPOS64_T:
1329 * This symbol will be defined if the C compiler supports fpos64_t.
1330 */
1331#$d_fpos64_t HAS_FPOS64_T /**/
1332
a3540c92
JH
1333/* HAS_FREXPL:
1334 * This symbol, if defined, indicates that the frexpl routine is
1335 * available to break a long double floating-point number into
1336 * a normalized fraction and an integral power of 2.
1337 */
1338#$d_frexpl HAS_FREXPL /**/
1339
ff935051
JH
1340/* HAS_STRUCT_FS_DATA:
1341 * This symbol, if defined, indicates that the struct fs_data
1342 * to do statfs() is supported.
1343 */
1344#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
1345
1346/* HAS_FSEEKO:
1347 * This symbol, if defined, indicates that the fseeko routine is
1348 * available to fseek beyond 32 bits (useful for ILP32 hosts).
1349 */
1350#$d_fseeko HAS_FSEEKO /**/
1351
1352/* HAS_FSTATFS:
1353 * This symbol, if defined, indicates that the fstatfs routine is
1354 * available to stat filesystems by file descriptors.
1355 */
1356#$d_fstatfs HAS_FSTATFS /**/
c890dc6c 1357
ff935051
JH
1358/* HAS_FTELLO:
1359 * This symbol, if defined, indicates that the ftello routine is
1360 * available to ftell beyond 32 bits (useful for ILP32 hosts).
1361 */
1362#$d_ftello HAS_FTELLO /**/
1363
8e07c86e
AD
1364/* Gconvert:
1365 * This preprocessor macro is defined to convert a floating point
1366 * number to a string without a trailing decimal point. This
1367 * emulates the behavior of sprintf("%g"), but is sometimes much more
1368 * efficient. If gconvert() is not available, but gcvt() drops the
1369 * trailing decimal point, then gcvt() is used. If all else fails,
1370 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1371 * macro are: value, number of digits, whether trailing zeros should
1372 * be retained, and the output buffer.
1373 * Possible values are:
1374 * d_Gconvert='gconvert((x),(n),(t),(b))'
1375 * d_Gconvert='gcvt((x),(n),(b))'
1376 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1377 * The last two assume trailing zeros should not be kept.
1378 */
1379#define Gconvert(x,n,t,b) $d_Gconvert
1380
49dabb45
JH
1381/* HAS_GETCWD:
1382 * This symbol, if defined, indicates that the getcwd routine is
1383 * available to get the current working directory.
1384 */
1385#$d_getcwd HAS_GETCWD /**/
1386
239780c6
GS
1387/* HAS_GETESPWNAM:
1388 * This symbol, if defined, indicates that the getespwnam system call is
1389 * available to retrieve enchanced (shadow) password entries by name.
1390 */
1391#$d_getespwnam HAS_GETESPWNAM /**/
1392
1acc7ade
JH
1393/* HAS_GETFSSTAT:
1394 * This symbol, if defined, indicates that the getfsstat routine is
1395 * available to stat filesystems in bulk.
1396 */
1397#$d_getfsstat HAS_GETFSSTAT /**/
1398
ff935051
JH
1399/* HAS_GETGRENT:
1400 * This symbol, if defined, indicates that the getgrent routine is
1401 * available for sequential access of the group database.
c1b76f5d 1402 */
ff935051 1403#$d_getgrent HAS_GETGRENT /**/
c1b76f5d 1404
ff935051
JH
1405/* HAS_GETHOSTBYADDR:
1406 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1407 * available to look up hosts by their IP addresses.
dd64f1c3 1408 */
ff935051 1409#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
dd64f1c3 1410
ff935051
JH
1411/* HAS_GETHOSTBYNAME:
1412 * This symbol, if defined, indicates that the gethostbyname() routine is
1413 * available to look up host names in some data base or other.
774d564b 1414 */
ff935051 1415#$d_gethbyname HAS_GETHOSTBYNAME /**/
774d564b 1416
ff935051
JH
1417/* HAS_GETHOSTENT:
1418 * This symbol, if defined, indicates that the gethostent() routine is
1419 * available to look up host names in some data base or another.
c1b76f5d 1420 */
ff935051 1421#$d_gethent HAS_GETHOSTENT /**/
c1b76f5d 1422
ff935051
JH
1423/* HAS_GETHOSTNAME:
1424 * This symbol, if defined, indicates that the C program may use the
1425 * gethostname() routine to derive the host name. See also HAS_UNAME
1426 * and PHOSTNAME.
c1b76f5d 1427 */
ff935051
JH
1428/* HAS_UNAME:
1429 * This symbol, if defined, indicates that the C program may use the
1430 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1431 * and PHOSTNAME.
760ac839 1432 */
ff935051
JH
1433/* PHOSTNAME:
1434 * This symbol, if defined, indicates the command to feed to the
1435 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1436 * and HAS_UNAME. Note that the command uses a fully qualified path,
1437 * so that it is safe even if used by a process with super-user
1438 * privileges.
1439 */
c71a9cee
JH
1440/* HAS_PHOSTNAME:
1441 * This symbol, if defined, indicates that the C program may use the
1442 * contents of PHOSTNAME as a command to feed to the popen() routine
1443 * to derive the host name.
1444 */
ff935051
JH
1445#$d_gethname HAS_GETHOSTNAME /**/
1446#$d_uname HAS_UNAME /**/
43999f95 1447#$d_phostname HAS_PHOSTNAME /**/
ff935051
JH
1448#ifdef HAS_PHOSTNAME
1449#define PHOSTNAME "$aphostname" /* How to get the host name */
1450#endif
760ac839 1451
ff935051
JH
1452/* HAS_GETHOST_PROTOS:
1453 * This symbol, if defined, indicates that <netdb.h> includes
1454 * prototypes for gethostent(), gethostbyname(), and
1455 * gethostbyaddr(). Otherwise, it is up to the program to guess
1456 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
52e1cb5e 1457 */
ff935051 1458#$d_gethostprotos HAS_GETHOST_PROTOS /**/
52e1cb5e 1459
ff935051
JH
1460/* HAS_GETMNT:
1461 * This symbol, if defined, indicates that the getmnt routine is
1462 * available to get filesystem mount info by filename.
921b2963 1463 */
ff935051
JH
1464#$d_getmnt HAS_GETMNT /**/
1465
1466/* HAS_GETMNTENT:
1467 * This symbol, if defined, indicates that the getmntent routine is
1468 * available to iterate through mounted file systems to get their info.
a5f75d66 1469 */
ff935051
JH
1470#$d_getmntent HAS_GETMNTENT /**/
1471
1472/* HAS_GETNETBYADDR:
1473 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1474 * available to look up networks by their IP addresses.
a5f75d66 1475 */
ff935051
JH
1476#$d_getnbyaddr HAS_GETNETBYADDR /**/
1477
1478/* HAS_GETNETBYNAME:
1479 * This symbol, if defined, indicates that the getnetbyname() routine is
1480 * available to look up networks by their names.
a5f75d66 1481 */
ff935051 1482#$d_getnbyname HAS_GETNETBYNAME /**/
a5f75d66 1483
ff935051
JH
1484/* HAS_GETNETENT:
1485 * This symbol, if defined, indicates that the getnetent() routine is
1486 * available to look up network names in some data base or another.
a687059c 1487 */
ff935051
JH
1488#$d_getnent HAS_GETNETENT /**/
1489
1490/* HAS_GETNET_PROTOS:
1491 * This symbol, if defined, indicates that <netdb.h> includes
1492 * prototypes for getnetent(), getnetbyname(), and
1493 * getnetbyaddr(). Otherwise, it is up to the program to guess
1494 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
dfe9444c 1495 */
ff935051
JH
1496#$d_getnetprotos HAS_GETNET_PROTOS /**/
1497
bb2c2f1d
GS
1498/* HAS_GETPAGESIZE:
1499 * This symbol, if defined, indicates that the getpagesize system call
1500 * is available to get system page size, which is the granularity of
1501 * many memory management calls.
1502 */
1503#$d_getpagsz HAS_GETPAGESIZE /**/
1504
ff935051
JH
1505/* HAS_GETPROTOENT:
1506 * This symbol, if defined, indicates that the getprotoent() routine is
1507 * available to look up protocols in some data base or another.
dfe9444c 1508 */
ff935051
JH
1509#$d_getpent HAS_GETPROTOENT /**/
1510
1511/* HAS_GETPROTOBYNAME:
1512 * This symbol, if defined, indicates that the getprotobyname()
1513 * routine is available to look up protocols by their name.
dfe9444c 1514 */
ff935051
JH
1515/* HAS_GETPROTOBYNUMBER:
1516 * This symbol, if defined, indicates that the getprotobynumber()
1517 * routine is available to look up protocols by their number.
dfe9444c 1518 */
ff935051
JH
1519#$d_getpbyname HAS_GETPROTOBYNAME /**/
1520#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
a687059c 1521
ff935051
JH
1522/* HAS_GETPROTO_PROTOS:
1523 * This symbol, if defined, indicates that <netdb.h> includes
1524 * prototypes for getprotoent(), getprotobyname(), and
1525 * getprotobyaddr(). Otherwise, it is up to the program to guess
1526 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
8e07c86e 1527 */
ff935051
JH
1528#$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
1529
239780c6
GS
1530/* HAS_GETPRPWNAM:
1531 * This symbol, if defined, indicates that the getprpwnam system call is
1532 * available to retrieve protected (shadow) password entries by name.
1533 */
1534#$d_getprpwnam HAS_GETPRPWNAM /**/
1535
ff935051
JH
1536/* HAS_GETPWENT:
1537 * This symbol, if defined, indicates that the getpwent routine is
1538 * available for sequential access of the passwd database.
1539 * If this is not available, the older getpw() function may be available.
dfe9444c 1540 */
ff935051 1541#$d_getpwent HAS_GETPWENT /**/
8e07c86e 1542
ff935051
JH
1543/* HAS_GETSERVENT:
1544 * This symbol, if defined, indicates that the getservent() routine is
1545 * available to look up network services in some data base or another.
4633a7c4 1546 */
ff935051
JH
1547#$d_getsent HAS_GETSERVENT /**/
1548
1549/* HAS_GETSERV_PROTOS:
1550 * This symbol, if defined, indicates that <netdb.h> includes
1551 * prototypes for getservent(), getservbyname(), and
1552 * getservbyaddr(). Otherwise, it is up to the program to guess
1553 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
dfe9444c 1554 */
ff935051 1555#$d_getservprotos HAS_GETSERV_PROTOS /**/
4633a7c4 1556
ff935051
JH
1557/* HAS_GETSPNAM:
1558 * This symbol, if defined, indicates that the getspnam system call is
1559 * available to retrieve SysV shadow password entries by name.
760ac839 1560 */
ff935051
JH
1561#$d_getspnam HAS_GETSPNAM /**/
1562
1563/* HAS_GETSERVBYNAME:
1564 * This symbol, if defined, indicates that the getservbyname()
1565 * routine is available to look up services by their name.
1aef975c 1566 */
ff935051
JH
1567/* HAS_GETSERVBYPORT:
1568 * This symbol, if defined, indicates that the getservbyport()
1569 * routine is available to look up services by their port.
bccf77a5 1570 */
ff935051
JH
1571#$d_getsbyname HAS_GETSERVBYNAME /**/
1572#$d_getsbyport HAS_GETSERVBYPORT /**/
8e07c86e 1573
ff935051
JH
1574/* HAS_GNULIBC:
1575 * This symbol, if defined, indicates to the C program that
1576 * the GNU C library is being used.
85e6fe83 1577 */
ff935051 1578#$d_gnulibc HAS_GNULIBC /**/
7378db63
JH
1579#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
1580# define _GNU_SOURCE
1581#endif
ff935051
JH
1582/* HAS_HASMNTOPT:
1583 * This symbol, if defined, indicates that the hasmntopt routine is
1584 * available to query the mount options of file systems.
dfe9444c 1585 */
ff935051
JH
1586#$d_hasmntopt HAS_HASMNTOPT /**/
1587
1588/* HAS_HTONL:
1589 * This symbol, if defined, indicates that the htonl() routine (and
1590 * friends htons() ntohl() ntohs()) are available to do network
1591 * order byte swapping.
dfe9444c 1592 */
ff935051
JH
1593/* HAS_HTONS:
1594 * This symbol, if defined, indicates that the htons() routine (and
1595 * friends htonl() ntohl() ntohs()) are available to do network
1596 * order byte swapping.
dfe9444c 1597 */
ff935051
JH
1598/* HAS_NTOHL:
1599 * This symbol, if defined, indicates that the ntohl() routine (and
1600 * friends htonl() htons() ntohs()) are available to do network
1601 * order byte swapping.
1602 */
1603/* HAS_NTOHS:
1604 * This symbol, if defined, indicates that the ntohs() routine (and
1605 * friends htonl() htons() ntohl()) are available to do network
1606 * order byte swapping.
1607 */
1608#$d_htonl HAS_HTONL /**/
1609#$d_htonl HAS_HTONS /**/
1610#$d_htonl HAS_NTOHL /**/
1611#$d_htonl HAS_NTOHS /**/
85e6fe83 1612
43999f95
JH
1613/* HAS_ICONV:
1614 * This symbol, if defined, indicates that the iconv routine is
1615 * available to do character set conversions.
1616 */
1617#$d_iconv HAS_ICONV /**/
1618
fe749a9f
JH
1619/* HAS_INT64_T:
1620 * This symbol will defined if the C compiler supports int64_t.
1621 * Usually the <inttypes.h> needs to be included, but sometimes
1622 * <sys/types.h> is enough.
1623 */
13b3f787 1624#$d_int64_t HAS_INT64_T /**/
fe749a9f 1625
ff935051
JH
1626/* HAS_ISASCII:
1627 * This manifest constant lets the C program know that isascii
1628 * is available.
693762b4 1629 */
ff935051 1630#$d_isascii HAS_ISASCII /**/
693762b4 1631
a3540c92
JH
1632/* HAS_ISNAN:
1633 * This symbol, if defined, indicates that the isnan routine is
1634 * available to check whether a double is a NaN.
1635 */
1636#$d_isnan HAS_ISNAN /**/
1637
1638/* HAS_ISNANL:
1639 * This symbol, if defined, indicates that the isnanl routine is
1640 * available to check whether a long double is a NaN.
1641 */
1642#$d_isnanl HAS_ISNANL /**/
1643
b6592ff0
JH
1644/* HAS_LCHOWN:
1645 * This symbol, if defined, indicates that the lchown routine is
1646 * available to operate on a symbolic link (instead of following the
1647 * link).
1648 */
1649#$d_lchown HAS_LCHOWN /**/
1650
ff935051
JH
1651/* HAS_LDBL_DIG:
1652 * This symbol, if defined, indicates that this system's <float.h>
1653 * or <limits.h> defines the symbol LDBL_DIG, which is the number
1654 * of significant digits in a long double precision number. Unlike
1655 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
85ab1d1d 1656 */
ff935051
JH
1657#$d_ldbl_dig HAS_LDBL_DIG /* */
1658
1659/* HAS_LONG_DOUBLE:
1660 * This symbol will be defined if the C compiler supports long
1661 * doubles.
85ab1d1d 1662 */
ff935051
JH
1663/* LONG_DOUBLESIZE:
1664 * This symbol contains the size of a long double, so that the
1665 * C preprocessor can make decisions based on it. It is only
1666 * defined if the system supports long doubles.
dfe9444c 1667 */
ff935051
JH
1668#$d_longdbl HAS_LONG_DOUBLE /**/
1669#ifdef HAS_LONG_DOUBLE
1670#define LONG_DOUBLESIZE $longdblsize /**/
1671#endif
dfe9444c 1672
ff935051
JH
1673/* HAS_LONG_LONG:
1674 * This symbol will be defined if the C compiler supports long long.
dfe9444c 1675 */
ff935051
JH
1676/* LONGLONGSIZE:
1677 * This symbol contains the size of a long long, so that the
1678 * C preprocessor can make decisions based on it. It is only
1679 * defined if the system supports long long.
5ff3f7a4 1680 */
ff935051
JH
1681#$d_longlong HAS_LONG_LONG /**/
1682#ifdef HAS_LONG_LONG
1683#define LONGLONGSIZE $longlongsize /**/
1684#endif
5ff3f7a4 1685
1acc7ade
JH
1686/* HAS_LSEEK_PROTO:
1687 * This symbol, if defined, indicates that the system provides
1688 * a prototype for the lseek() function. Otherwise, it is up
1689 * to the program to supply one. A good guess is
1690 * extern off_t lseek(int, off_t, int);
1691 */
1692#$d_lseekproto HAS_LSEEK_PROTO /**/
1693
1e8c3fde
JH
1694/* HAS_MADVISE:
1695 * This symbol, if defined, indicates that the madvise system call is
1696 * available to map a file into memory.
1697 */
1698#$d_madvise HAS_MADVISE /**/
1699
ff935051
JH
1700/* HAS_MEMCHR:
1701 * This symbol, if defined, indicates that the memchr routine is available
1702 * to locate characters within a C string.
dd4e71fd 1703 */
ff935051
JH
1704#$d_memchr HAS_MEMCHR /**/
1705
fe749a9f
JH
1706/* HAS_MKDTEMP:
1707 * This symbol, if defined, indicates that the mkdtemp routine is
1708 * available to exclusively create a uniquely named temporary directory.
1709 */
1710#$d_mkdtemp HAS_MKDTEMP /**/
1711
1712/* HAS_MKSTEMP:
1713 * This symbol, if defined, indicates that the mkstemp routine is
1714 * available to exclusively create and open a uniquely named
1715 * temporary file.
1716 */
1717#$d_mkstemp HAS_MKSTEMP /**/
1718
1719/* HAS_MKSTEMPS:
1720 * This symbol, if defined, indicates that the mkstemps routine is
1721 * available to excluslvely create and open a uniquely named
1722 * (with a suffix) temporary file.
1723 */
1724#$d_mkstemps HAS_MKSTEMPS /**/
1725
87b71857
JH
1726/* HAS_MMAP:
1727 * This symbol, if defined, indicates that the mmap system call is
1728 * available to map a file into memory.
1729 */
fe749a9f
JH
1730/* Mmap_t:
1731 * This symbol holds the return type of the mmap() system call
1732 * (and simultaneously the type of the first argument).
1733 * Usually set to 'void *' or 'cadd_t'.
1734 */
87b71857 1735#$d_mmap HAS_MMAP /**/
fe749a9f
JH
1736#define Mmap_t $mmaptype /**/
1737
239780c6
GS
1738/* HAS_MODFL:
1739 * This symbol, if defined, indicates that the modfl routine is
1740 * available to split a long double x into a fractional part f and
1741 * an integer part i such that |f| < 1.0 and (f + i) = x.
1742 */
1743#$d_modfl HAS_MODFL /**/
1744
fe749a9f
JH
1745/* HAS_MPROTECT:
1746 * This symbol, if defined, indicates that the mprotect system call is
1747 * available to modify the access protection of a memory mapped file.
1748 */
1749#$d_mprotect HAS_MPROTECT /**/
1750
ff935051
JH
1751/* HAS_MSG:
1752 * This symbol, if defined, indicates that the entire msg*(2) library is
1753 * supported (IPC mechanism based on message queues).
dd4e71fd 1754 */
ff935051 1755#$d_msg HAS_MSG /**/
dd4e71fd 1756
c5f05a91
JH
1757/* HAS_OFF64_T:
1758 * This symbol will be defined if the C compiler supports off64_t.
1759 */
1760#$d_off64_t HAS_OFF64_T /**/
1761
ff935051
JH
1762/* HAS_OPEN3:
1763 * This manifest constant lets the C program know that the three
1764 * argument form of open(2) is available.
dd4e71fd 1765 */
ff935051
JH
1766#$d_open3 HAS_OPEN3 /**/
1767
1768/* OLD_PTHREAD_CREATE_JOINABLE:
1769 * This symbol, if defined, indicates how to create pthread
1770 * in joinable (aka undetached) state. NOTE: not defined
1771 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
1772 * (the new version of the constant).
1773 * If defined, known values are PTHREAD_CREATE_UNDETACHED
1774 * and __UNDETACHED.
dd4e71fd 1775 */
ff935051 1776#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
dd4e71fd 1777
ff935051
JH
1778/* HAS_PTHREAD_YIELD:
1779 * This symbol, if defined, indicates that the pthread_yield
1780 * routine is available to yield the execution of the current
1781 * thread. sched_yield is preferable to pthread_yield.
1782 */
1783/* SCHED_YIELD:
1784 * This symbol defines the way to yield the execution of
1785 * the current thread. Known ways are sched_yield,
1786 * pthread_yield, and pthread_yield with NULL.
1787 */
1788/* HAS_SCHED_YIELD:
1789 * This symbol, if defined, indicates that the sched_yield
1790 * routine is available to yield the execution of the current
1791 * thread. sched_yield is preferable to pthread_yield.
dd4e71fd 1792 */
ff935051
JH
1793#$d_pthread_yield HAS_PTHREAD_YIELD /**/
1794#define SCHED_YIELD $sched_yield /**/
1795#$d_sched_yield HAS_SCHED_YIELD /**/
dd4e71fd 1796
ff935051
JH
1797/* HAS_SAFE_BCOPY:
1798 * This symbol, if defined, indicates that the bcopy routine is available
1799 * to copy potentially overlapping memory blocks. Otherwise you should
1800 * probably use memmove() or memcpy(). If neither is defined, roll your
1801 * own version.
dd4e71fd 1802 */
ff935051
JH
1803#$d_safebcpy HAS_SAFE_BCOPY /**/
1804
1805/* HAS_SAFE_MEMCPY:
1806 * This symbol, if defined, indicates that the memcpy routine is available
1807 * to copy potentially overlapping memory blocks. Otherwise you should
1808 * probably use memmove() or memcpy(). If neither is defined, roll your
1809 * own version.
dd4e71fd 1810 */
ff935051 1811#$d_safemcpy HAS_SAFE_MEMCPY /**/
dd4e71fd 1812
ff935051
JH
1813/* HAS_SANE_MEMCMP:
1814 * This symbol, if defined, indicates that the memcmp routine is available
1815 * and can be used to compare relative magnitudes of chars with their high
1816 * bits set. If it is not defined, roll your own version.
dd4e71fd 1817 */
ff935051
JH
1818#$d_sanemcmp HAS_SANE_MEMCMP /**/
1819
1820/* HAS_SEM:
1821 * This symbol, if defined, indicates that the entire sem*(2) library is
1822 * supported.
dd4e71fd 1823 */
ff935051 1824#$d_sem HAS_SEM /**/
dd4e71fd 1825
ff935051
JH
1826/* HAS_SETGRENT:
1827 * This symbol, if defined, indicates that the setgrent routine is
1828 * available for initializing sequential access of the group database.
dd4e71fd 1829 */
ff935051
JH
1830#$d_setgrent HAS_SETGRENT /**/
1831
1832/* HAS_SETGROUPS:
1833 * This symbol, if defined, indicates that the setgroups() routine is
1834 * available to set the list of process groups. If unavailable, multiple
1835 * groups are probably not supported.
dd4e71fd 1836 */
ff935051 1837#$d_setgrps HAS_SETGROUPS /**/
dd4e71fd 1838
ff935051
JH
1839/* HAS_SETHOSTENT:
1840 * This symbol, if defined, indicates that the sethostent() routine is
1841 * available.
a3635516 1842 */
ff935051 1843#$d_sethent HAS_SETHOSTENT /**/
a3635516 1844
ff935051
JH
1845/* HAS_SETNETENT:
1846 * This symbol, if defined, indicates that the setnetent() routine is
1847 * available.
dfe9444c 1848 */
ff935051 1849#$d_setnent HAS_SETNETENT /**/
dfe9444c 1850
ff935051
JH
1851/* HAS_SETPROTOENT:
1852 * This symbol, if defined, indicates that the setprotoent() routine is
1853 * available.
dfe9444c 1854 */
ff935051
JH
1855#$d_setpent HAS_SETPROTOENT /**/
1856
113d8e19
GS
1857/* HAS_SETPROCTITLE:
1858 * This symbol, if defined, indicates that the setproctitle routine is
1859 * available to set process title.
1860 */
1861#$d_setproctitle HAS_SETPROCTITLE /**/
1862
ff935051
JH
1863/* HAS_SETPWENT:
1864 * This symbol, if defined, indicates that the setpwent routine is
1865 * available for initializing sequential access of the passwd database.
dfe9444c 1866 */
ff935051 1867#$d_setpwent HAS_SETPWENT /**/
dfe9444c 1868
ff935051
JH
1869/* HAS_SETSERVENT:
1870 * This symbol, if defined, indicates that the setservent() routine is
1871 * available.
48159a0c 1872 */
ff935051 1873#$d_setsent HAS_SETSERVENT /**/
1cfa4ec7 1874
ff935051
JH
1875/* HAS_SETVBUF:
1876 * This symbol, if defined, indicates that the setvbuf routine is
1877 * available to change buffering on an open stdio stream.
1878 * to a line-buffered mode.
dfe9444c 1879 */
ff935051 1880#$d_setvbuf HAS_SETVBUF /**/
e5c9fcd0 1881
ff935051
JH
1882/* USE_SFIO:
1883 * This symbol, if defined, indicates that sfio should
1884 * be used.
5ff3f7a4 1885 */
ff935051 1886#$d_sfio USE_SFIO /**/
5ff3f7a4 1887
ff935051
JH
1888/* HAS_SHM:
1889 * This symbol, if defined, indicates that the entire shm*(2) library is
1890 * supported.
e5c9fcd0 1891 */
ff935051 1892#$d_shm HAS_SHM /**/
e5c9fcd0 1893
ff935051
JH
1894/* HAS_SIGACTION:
1895 * This symbol, if defined, indicates that Vr4's sigaction() routine
1896 * is available.
e5c9fcd0 1897 */
ff935051 1898#$d_sigaction HAS_SIGACTION /**/
e5c9fcd0 1899
ff935051
JH
1900/* HAS_SIGSETJMP:
1901 * This variable indicates to the C program that the sigsetjmp()
1902 * routine is available to save the calling process's registers
1903 * and stack environment for later use by siglongjmp(), and
1904 * to optionally save the process's signal mask. See
1905 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
e5c9fcd0 1906 */
ff935051
JH
1907/* Sigjmp_buf:
1908 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
5ff3f7a4 1909 */
ff935051
JH
1910/* Sigsetjmp:
1911 * This macro is used in the same way as sigsetjmp(), but will invoke
1912 * traditional setjmp() if sigsetjmp isn't available.
1913 * See HAS_SIGSETJMP.
e5c9fcd0 1914 */
ff935051
JH
1915/* Siglongjmp:
1916 * This macro is used in the same way as siglongjmp(), but will invoke
1917 * traditional longjmp() if siglongjmp isn't available.
1918 * See HAS_SIGSETJMP.
5ff3f7a4 1919 */
ff935051
JH
1920#$d_sigsetjmp HAS_SIGSETJMP /**/
1921#ifdef HAS_SIGSETJMP
1922#define Sigjmp_buf sigjmp_buf
1923#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1924#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1925#else
1926#define Sigjmp_buf jmp_buf
1927#define Sigsetjmp(buf,save_mask) setjmp((buf))
1928#define Siglongjmp(buf,retval) longjmp((buf),(retval))
1929#endif
5ff3f7a4 1930
ff935051
JH
1931/* HAS_SOCKET:
1932 * This symbol, if defined, indicates that the BSD socket interface is
1933 * supported.
693762b4 1934 */
ff935051
JH
1935/* HAS_SOCKETPAIR:
1936 * This symbol, if defined, indicates that the BSD socketpair() call is
1937 * supported.
693762b4 1938 */
ff935051
JH
1939/* HAS_MSG_CTRUNC:
1940 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
1941 * Checking just with #ifdef might not be enough because this symbol
1942 * has been known to be an enum.
693762b4 1943 */
ff935051
JH
1944/* HAS_MSG_DONTROUTE:
1945 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
1946 * Checking just with #ifdef might not be enough because this symbol
1947 * has been known to be an enum.
a12fb911 1948 */
ff935051
JH
1949/* HAS_MSG_OOB:
1950 * This symbol, if defined, indicates that the MSG_OOB is supported.
1951 * Checking just with #ifdef might not be enough because this symbol
1952 * has been known to be an enum.
a12fb911 1953 */
ff935051
JH
1954/* HAS_MSG_PEEK:
1955 * This symbol, if defined, indicates that the MSG_PEEK is supported.
1956 * Checking just with #ifdef might not be enough because this symbol
1957 * has been known to be an enum.
a12fb911 1958 */
ff935051
JH
1959/* HAS_MSG_PROXY:
1960 * This symbol, if defined, indicates that the MSG_PROXY is supported.
1961 * Checking just with #ifdef might not be enough because this symbol
1962 * has been known to be an enum.
48159a0c 1963 */
ff935051
JH
1964/* HAS_SCM_RIGHTS:
1965 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
1966 * Checking just with #ifdef might not be enough because this symbol
1967 * has been known to be an enum.
1968 */
1969#$d_socket HAS_SOCKET /**/
1970#$d_sockpair HAS_SOCKETPAIR /**/
1971#$d_msg_ctrunc HAS_MSG_CTRUNC /**/
1972#$d_msg_dontroute HAS_MSG_DONTROUTE /**/
1973#$d_msg_oob HAS_MSG_OOB /**/
1974#$d_msg_peek HAS_MSG_PEEK /**/
1975#$d_msg_proxy HAS_MSG_PROXY /**/
1976#$d_scm_rights HAS_SCM_RIGHTS /**/
a12fb911 1977
55516df5
GS
1978/* HAS_SOCKS5_INIT:
1979 * This symbol, if defined, indicates that the socks5_init routine is
1980 * available to initialize SOCKS 5.
1981 */
1982#$d_socks5_init HAS_SOCKS5_INIT /**/
1983
ff935051
JH
1984/* HAS_SQRTL:
1985 * This symbol, if defined, indicates that the sqrtl routine is
1986 * available to do long double square roots.
693762b4 1987 */
ff935051 1988#$d_sqrtl HAS_SQRTL /**/
693762b4 1989
ff935051
JH
1990/* USE_STAT_BLOCKS:
1991 * This symbol is defined if this system has a stat structure declaring
1992 * st_blksize and st_blocks.
693762b4 1993 */
ff935051
JH
1994#ifndef USE_STAT_BLOCKS
1995#$d_statblks USE_STAT_BLOCKS /**/
1996#endif
693762b4 1997
ff935051
JH
1998/* HAS_STRUCT_STATFS_F_FLAGS:
1999 * This symbol, if defined, indicates that the struct statfs
2000 * does have the f_flags member containing the mount flags of
2001 * the filesystem containing the file.
2002 * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
2003 * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
2004 * have statfs() and struct statfs, they have ustat() and getmnt()
2005 * with struct ustat and struct fs_data.
e5c9fcd0 2006 */
ff935051 2007#$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/
e5c9fcd0 2008
ff935051
JH
2009/* HAS_STRUCT_STATFS:
2010 * This symbol, if defined, indicates that the struct statfs
2011 * to do statfs() is supported.
e5c9fcd0 2012 */
ff935051 2013#$d_statfs_s HAS_STRUCT_STATFS /**/
e5c9fcd0 2014
ff935051
JH
2015/* HAS_FSTATVFS:
2016 * This symbol, if defined, indicates that the fstatvfs routine is
2017 * available to stat filesystems by file descriptors.
693762b4 2018 */
ff935051 2019#$d_fstatvfs HAS_FSTATVFS /**/
de4597cb 2020
ff935051
JH
2021/* USE_STDIO_PTR:
2022 * This symbol is defined if the _ptr and _cnt fields (or similar)
2023 * of the stdio FILE structure can be used to access the stdio buffer
2024 * for a file handle. If this is defined, then the FILE_ptr(fp)
2025 * and FILE_cnt(fp) macros will also be defined and should be used
2026 * to access these fields.
4633a7c4 2027 */
ff935051
JH
2028/* FILE_ptr:
2029 * This macro is used to access the _ptr field (or equivalent) of the
2030 * FILE structure pointed to by its argument. This macro will always be
2031 * defined if USE_STDIO_PTR is defined.
bfb7748a 2032 */
ff935051
JH
2033/* STDIO_PTR_LVALUE:
2034 * This symbol is defined if the FILE_ptr macro can be used as an
2035 * lvalue.
c4f23d77 2036 */
ff935051
JH
2037/* FILE_cnt:
2038 * This macro is used to access the _cnt field (or equivalent) of the
2039 * FILE structure pointed to by its argument. This macro will always be
2040 * defined if USE_STDIO_PTR is defined.
c4f23d77 2041 */
ff935051
JH
2042/* STDIO_CNT_LVALUE:
2043 * This symbol is defined if the FILE_cnt macro can be used as an
2044 * lvalue.
16d20bd9 2045 */
a4bf32d5
A
2046/* STDIO_PTR_LVAL_SETS_CNT:
2047 * This symbol is defined if using the FILE_ptr macro as an lvalue
2048 * to increase the pointer by n has the side effect of decreasing the
2049 * value of File_cnt(fp) by n.
2050 */
2051/* STDIO_PTR_LVAL_NOCHANGE_CNT:
2052 * This symbol is defined if using the FILE_ptr macro as an lvalue
2053 * to increase the pointer by n leaves File_cnt(fp) unchanged.
2054 */
ff935051
JH
2055#$d_stdstdio USE_STDIO_PTR /**/
2056#ifdef USE_STDIO_PTR
2057#define FILE_ptr(fp) $stdio_ptr
2058#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
2059#define FILE_cnt(fp) $stdio_cnt
2060#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
a4bf32d5
A
2061#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
2062#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
bfb7748a 2063#endif
16d20bd9 2064
ff935051
JH
2065/* USE_STDIO_BASE:
2066 * This symbol is defined if the _base field (or similar) of the
2067 * stdio FILE structure can be used to access the stdio buffer for
2068 * a file handle. If this is defined, then the FILE_base(fp) macro
2069 * will also be defined and should be used to access this field.
2070 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
2071 * to determine the number of bytes in the buffer. USE_STDIO_BASE
2072 * will never be defined unless USE_STDIO_PTR is.
732c9516 2073 */
ff935051
JH
2074/* FILE_base:
2075 * This macro is used to access the _base field (or equivalent) of the
2076 * FILE structure pointed to by its argument. This macro will always be
2077 * defined if USE_STDIO_BASE is defined.
6b8eaf93 2078 */
ff935051
JH
2079/* FILE_bufsiz:
2080 * This macro is used to determine the number of bytes in the I/O
2081 * buffer pointed to by _base field (or equivalent) of the FILE
2082 * structure pointed to its argument. This macro will always be defined
2083 * if USE_STDIO_BASE is defined.
2d4389e4 2084 */
ff935051
JH
2085#$d_stdiobase USE_STDIO_BASE /**/
2086#ifdef USE_STDIO_BASE
2087#define FILE_base(fp) $stdio_base
2088#define FILE_bufsiz(fp) $stdio_bufsiz
2089#endif
2d4389e4 2090
ff935051
JH
2091/* HAS_STRERROR:
2092 * This symbol, if defined, indicates that the strerror routine is
2093 * available to translate error numbers to strings. See the writeup
2094 * of Strerror() in this file before you try to define your own.
f1066039 2095 */
ff935051
JH
2096/* HAS_SYS_ERRLIST:
2097 * This symbol, if defined, indicates that the sys_errlist array is
2098 * available to translate error numbers to strings. The extern int
2099 * sys_nerr gives the size of that table.
dfe9444c 2100 */
ff935051
JH
2101/* Strerror:
2102 * This preprocessor symbol is defined as a macro if strerror() is
2103 * not available to translate error numbers to strings but sys_errlist[]
2104 * array is there.
68d4903c 2105 */
ff935051
JH
2106#$d_strerror HAS_STRERROR /**/
2107#$d_syserrlst HAS_SYS_ERRLIST /**/
2108#define Strerror(e) $d_strerrm
68d4903c 2109
ff935051
JH
2110/* HAS_STRTOLD:
2111 * This symbol, if defined, indicates that the strtold routine is
2112 * available to convert strings to long doubles.
104d25b7 2113 */
ff935051 2114#$d_strtold HAS_STRTOLD /**/
104d25b7 2115
76d49b1c
JH
2116/* HAS_STRTOLL:
2117 * This symbol, if defined, indicates that the strtoll routine is
2118 * available to convert strings to long longs.
2119 */
2120#$d_strtoll HAS_STRTOLL /**/
2121
ff935051
JH
2122/* HAS_STRTOULL:
2123 * This symbol, if defined, indicates that the strtoull routine is
2124 * available to convert strings to unsigned long longs.
ad27e871 2125 */
ff935051 2126#$d_strtoull HAS_STRTOULL /**/
ad27e871 2127
ff935051
JH
2128/* HAS_STRTOUQ:
2129 * This symbol, if defined, indicates that the strtouq routine is
2130 * available to convert strings to unsigned long longs (quads).
104d25b7 2131 */
ff935051 2132#$d_strtouq HAS_STRTOUQ /**/
104d25b7 2133
cb86ce0e
JH
2134/* HAS_TELLDIR_PROTO:
2135 * This symbol, if defined, indicates that the system provides
2136 * a prototype for the telldir() function. Otherwise, it is up
2137 * to the program to supply one. A good guess is
b0ca4213 2138 * extern long telldir _((DIR*));
cb86ce0e
JH
2139 */
2140#$d_telldirproto HAS_TELLDIR_PROTO /**/
2141
ff935051
JH
2142/* Time_t:
2143 * This symbol holds the type returned by time(). It can be long,
2144 * or time_t on BSD sites (in which case <sys/types.h> should be
2145 * included).
2146 */
2147#define Time_t $timetype /* Time type */
2148
2149/* HAS_TIMES:
2150 * This symbol, if defined, indicates that the times() routine exists.
2151 * Note that this became obsolete on some systems (SUNOS), which now
2152 * use getrusage(). It may be necessary to include <sys/times.h>.
2153 */
2154#$d_times HAS_TIMES /**/
2155
2156/* HAS_UNION_SEMUN:
2157 * This symbol, if defined, indicates that the union semun is
2158 * defined by including <sys/sem.h>. If not, the user code
2159 * probably needs to define it as:
2160 * union semun {
2161 * int val;
2162 * struct semid_ds *buf;
2163 * unsigned short *array;
2164 * }
2165 */
2166/* USE_SEMCTL_SEMUN:
2167 * This symbol, if defined, indicates that union semun is
2168 * used for semctl IPC_STAT.
2169 */
2170/* USE_SEMCTL_SEMID_DS:
2171 * This symbol, if defined, indicates that struct semid_ds * is
2172 * used for semctl IPC_STAT.
2173 */
2174#$d_union_semun HAS_UNION_SEMUN /**/
2175#$d_semctl_semun USE_SEMCTL_SEMUN /**/
2176#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
2177
0545a864
JH
2178/* HAS_USTAT:
2179 * This symbol, if defined, indicates that the ustat system call is
2180 * available to query file system statistics by dev_t.
2181 */
2182#$d_ustat HAS_USTAT /**/
2183
ff935051
JH
2184/* HAS_VFORK:
2185 * This symbol, if defined, indicates that vfork() exists.
2186 */
2187#$d_vfork HAS_VFORK /**/
2188
2189/* Signal_t:
2190 * This symbol's value is either "void" or "int", corresponding to the
2191 * appropriate return type of a signal handler. Thus, you can declare
2192 * a signal handler using "Signal_t (*handler)()", and define the
2193 * handler using "Signal_t handler(sig)".
2194 */
2195#define Signal_t $signal_t /* Signal handler's return type */
2196
2197/* HAS_VPRINTF:
2198 * This symbol, if defined, indicates that the vprintf routine is available
2199 * to printf with a pointer to an argument list. If unavailable, you
2200 * may need to write your own, probably in terms of _doprnt().
2201 */
2202/* USE_CHAR_VSPRINTF:
2203 * This symbol is defined if this system has vsprintf() returning type
2204 * (char*). The trend seems to be to declare it as "int vsprintf()". It
2205 * is up to the package author to declare vsprintf correctly based on the
2206 * symbol.
2207 */
2208#$d_vprintf HAS_VPRINTF /**/
2209#$d_charvspr USE_CHAR_VSPRINTF /**/
2210
dfe9444c
AD
2211/* USE_DYNAMIC_LOADING:
2212 * This symbol, if defined, indicates that dynamic loading of
2213 * some sort is available.
2214 */
2215#$usedl USE_DYNAMIC_LOADING /**/
2216
ff935051
JH
2217/* DOUBLESIZE:
2218 * This symbol contains the size of a double, so that the C preprocessor
2219 * can make decisions based on it.
2220 */
2221#define DOUBLESIZE $doublesize /**/
2222
2223/* EBCDIC:
2224 * This symbol, if defined, indicates that this system uses
2225 * EBCDIC encoding.
2226 */
2227#$ebcdic EBCDIC /**/
2228
66fe083f
JH
2229/* FFLUSH_NULL:
2230 * This symbol, if defined, tells that fflush(NULL) does flush
2231 * all pending stdio output.
2232 */
767df6a1
JH
2233/* FFLUSH_ALL:
2234 * This symbol, if defined, tells that to flush
2235 * all pending stdio output one must loop through all
a71cd7cd 2236 * the stdio file handles stored in an array and fflush them.
a32a45b6
JH
2237 * Note that if fflushNULL is defined, fflushall will not
2238 * even be probed for and will be left undefined.
767df6a1
JH
2239 */
2240#$fflushNULL FFLUSH_NULL /**/
2241#$fflushall FFLUSH_ALL /**/
66fe083f 2242
ff935051
JH
2243/* Fpos_t:
2244 * This symbol holds the type used to declare file positions in libc.
2245 * It can be fpos_t, long, uint, etc... It may be necessary to include
2246 * <sys/types.h> to get any typedef'ed information.
2247 */
2248#define Fpos_t $fpostype /* File position type */
2249
2250/* Gid_t_f:
2251 * This symbol defines the format string used for printing a Gid_t.
2252 */
2253#define Gid_t_f $gidformat /**/
2254
23dcd6c8
JH
2255/* Gid_t_sign:
2256 * This symbol holds the signedess of a Gid_t.
2257 * 1 for unsigned, -1 for signed.
2258 */
2259#define Gid_t_sign $gidsign /* GID sign */
2260
ff935051
JH
2261/* Gid_t_size:
2262 * This symbol holds the size of a Gid_t in bytes.
2263 */
2264#define Gid_t_size $gidsize /* GID size */
2265
2266/* Gid_t:
2267 * This symbol holds the return type of getgid() and the type of
2268 * argument to setrgid() and related functions. Typically,
2269 * it is the type of group ids in the kernel. It can be int, ushort,
23dcd6c8 2270 * gid_t, etc... It may be necessary to include <sys/types.h> to get
ff935051
JH
2271 * any typedef'ed information.
2272 */
2273#define Gid_t $gidtype /* Type for getgid(), etc... */
2274
2275/* Groups_t:
2276 * This symbol holds the type used for the second argument to
23dcd6c8 2277 * getgroups() and setgroups(). Usually, this is the same as
ff935051 2278 * gidtype (gid_t) , but sometimes it isn't.
23dcd6c8 2279 * It can be int, ushort, gid_t, etc...
ff935051
JH
2280 * It may be necessary to include <sys/types.h> to get any
2281 * typedef'ed information. This is only required if you have
6e78e524 2282 * getgroups() or setgroups()..
ff935051
JH
2283 */
2284#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
2285#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
2286#endif
2287
dfe9444c
AD
2288/* DB_Prefix_t:
2289 * This symbol contains the type of the prefix structure element
2290 * in the <db.h> header file. In older versions of DB, it was
2291 * int, while in newer ones it is u_int32_t.
2292 */
2293/* DB_Hash_t:
2294 * This symbol contains the type of the prefix structure element
2295 * in the <db.h> header file. In older versions of DB, it was
2296 * int, while in newer ones it is size_t.
2297 */
2298#define DB_Hash_t $db_hashtype /**/
2299#define DB_Prefix_t $db_prefixtype /**/
2300
ff935051
JH
2301/* I_GRP:
2302 * This symbol, if defined, indicates to the C program that it should
2303 * include <grp.h>.
2304 */
2305/* GRPASSWD:
2306 * This symbol, if defined, indicates to the C program that struct group
2307 * in <grp.h> contains gr_passwd.
2308 */
2309#$i_grp I_GRP /**/
2310#$d_grpasswd GRPASSWD /**/
2311
43999f95
JH
2312/* I_ICONV:
2313 * This symbol, if defined, indicates that <iconv.h> exists and
2314 * should be included.
2315 */
2316#$i_iconv I_ICONV /**/
2317
1acc7ade
JH
2318/* I_IEEEFP:
2319 * This symbol, if defined, indicates that <ieeefp.h> exists and
2320 * should be included.
2321 */
2322#$i_ieeefp I_IEEEFP /**/
2323
5ff3f7a4
GS
2324/* I_INTTYPES:
2325 * This symbol, if defined, indicates to the C program that it should
2326 * include <inttypes.h>.
2327 */
5ff3f7a4 2328#$i_inttypes I_INTTYPES /**/
5ff3f7a4 2329
55516df5
GS
2330/* I_LIBUTIL:
2331 * This symbol, if defined, indicates that <libutil.h> exists and
2332 * should be included.
2333 */
2334#$i_libutil I_LIBUTIL /**/
2335
ff935051
JH
2336/* I_MACH_CTHREADS:
2337 * This symbol, if defined, indicates to the C program that it should
2338 * include <mach/cthreads.h>.
2339 */
2340#$i_machcthr I_MACH_CTHREADS /**/
2341
e7fb4fcc
JH
2342/* I_MNTENT:
2343 * This symbol, if defined, indicates that <mntent.h> exists and
2344 * should be included.
2345 */
2346#$i_mntent I_MNTENT /**/
2347
ff935051
JH
2348/* I_NETDB:
2349 * This symbol, if defined, indicates that <netdb.h> exists and
2350 * should be included.
2351 */
2352#$i_netdb I_NETDB /**/
2353
9cc6feab
JH
2354/* I_NETINET_TCP:
2355 * This symbol, if defined, indicates to the C program that it should
2356 * include <netinet/tcp.h>.
2357 */
2358#$i_netinettcp I_NETINET_TCP /**/
2359
5b34fd99
JH
2360/* I_POLL:
2361 * This symbol, if defined, indicates that <poll.h> exists and
2362 * should be included.
2363 */
2364#$i_poll I_POLL /**/
2365
239780c6
GS
2366/* I_PROT:
2367 * This symbol, if defined, indicates that <prot.h> exists and
2368 * should be included.
2369 */
2370#$i_prot I_PROT /**/
2371
ff935051
JH
2372/* I_PTHREAD:
2373 * This symbol, if defined, indicates to the C program that it should
2374 * include <pthread.h>.
2375 */
2376#$i_pthread I_PTHREAD /**/
2377
2378/* I_PWD:
2379 * This symbol, if defined, indicates to the C program that it should
2380 * include <pwd.h>.
2381 */
2382/* PWQUOTA:
2383 * This symbol, if defined, indicates to the C program that struct passwd
2384 * contains pw_quota.
2385 */
2386/* PWAGE:
2387 * This symbol, if defined, indicates to the C program that struct passwd
2388 * contains pw_age.
2389 */
2390/* PWCHANGE:
2391 * This symbol, if defined, indicates to the C program that struct passwd
2392 * contains pw_change.
2393 */
2394/* PWCLASS:
2395 * This symbol, if defined, indicates to the C program that struct passwd
2396 * contains pw_class.
2397 */
2398/* PWEXPIRE:
2399 * This symbol, if defined, indicates to the C program that struct passwd
2400 * contains pw_expire.
2401 */
2402/* PWCOMMENT:
2403 * This symbol, if defined, indicates to the C program that struct passwd
2404 * contains pw_comment.
2405 */
2406/* PWGECOS:
2407 * This symbol, if defined, indicates to the C program that struct passwd
2408 * contains pw_gecos.
2409 */
2410/* PWPASSWD:
2411 * This symbol, if defined, indicates to the C program that struct passwd
2412 * contains pw_passwd.
2413 */
2414#$i_pwd I_PWD /**/
2415#$d_pwquota PWQUOTA /**/
2416#$d_pwage PWAGE /**/
2417#$d_pwchange PWCHANGE /**/
2418#$d_pwclass PWCLASS /**/
2419#$d_pwexpire PWEXPIRE /**/
2420#$d_pwcomment PWCOMMENT /**/
2421#$d_pwgecos PWGECOS /**/
2422#$d_pwpasswd PWPASSWD /**/
2423
f1066039
JH
2424/* I_SHADOW:
2425 * This symbol, if defined, indicates that <shadow.h> exists and
2426 * should be included.
2427 */
2428#$i_shadow I_SHADOW /**/
2429
86959918
JH
2430/* I_SOCKS:
2431 * This symbol, if defined, indicates that <socks.h> exists and
2432 * should be included.
2433 */
2434#$i_socks I_SOCKS /**/
2435
923fc586
JH
2436/* I_SUNMATH:
2437 * This symbol, if defined, indicates that <sunmath.h> exists and
2438 * should be included.
2439 */
2440#$i_sunmath I_SUNMATH /**/
2441
ca52efda
JH
2442/* I_SYSLOG:
2443 * This symbol, if defined, indicates that <syslog.h> exists and
2444 * should be included.
2445 */
2446#$i_syslog I_SYSLOG /**/
2447
13b3f787
JH
2448/* I_SYSMODE:
2449 * This symbol, if defined, indicates that <sys/mode.h> exists and
2450 * should be included.
2451 */
2452#$i_sysmode I_SYSMODE /**/
2453
104d25b7
JH
2454/* I_SYS_MOUNT:
2455 * This symbol, if defined, indicates that <sys/mount.h> exists and
2456 * should be included.
2457 */
2458#$i_sysmount I_SYS_MOUNT /**/
2459
0545a864
JH
2460/* I_SYS_STATFS:
2461 * This symbol, if defined, indicates that <sys/statfs.h> exists.
2462 */
2463#$i_sysstatfs I_SYS_STATFS /**/
2464
104d25b7
JH
2465/* I_SYS_STATVFS:
2466 * This symbol, if defined, indicates that <sys/statvfs.h> exists and
2467 * should be included.
2468 */
2469#$i_sysstatvfs I_SYS_STATVFS /**/
2470
ff935051
JH
2471/* I_SYSUIO:
2472 * This symbol, if defined, indicates that <sys/uio.h> exists and
2473 * should be included.
2474 */
2475#$i_sysuio I_SYSUIO /**/
2476
13b3f787
JH
2477/* I_SYSUTSNAME:
2478 * This symbol, if defined, indicates that <sys/utsname.h> exists and
2479 * should be included.
2480 */
2481#$i_sysutsname I_SYSUTSNAME /**/
2482
0545a864
JH
2483/* I_SYS_VFS:
2484 * This symbol, if defined, indicates that <sys/vfs.h> exists and
2485 * should be included.
2486 */
2487#$i_sysvfs I_SYS_VFS /**/
2488
ff935051
JH
2489/* I_TIME:
2490 * This symbol, if defined, indicates to the C program that it should
2491 * include <time.h>.
2492 */
2493/* I_SYS_TIME:
2494 * This symbol, if defined, indicates to the C program that it should
2495 * include <sys/time.h>.
2496 */
2497/* I_SYS_TIME_KERNEL:
2498 * This symbol, if defined, indicates to the C program that it should
2499 * include <sys/time.h> with KERNEL defined.
2500 */
2501#$i_time I_TIME /**/
2502#$i_systime I_SYS_TIME /**/
2503#$i_systimek I_SYS_TIME_KERNEL /**/
2504
0545a864
JH
2505/* I_USTAT:
2506 * This symbol, if defined, indicates that <ustat.h> exists and
2507 * should be included.
2508 */
2509#$i_ustat I_USTAT /**/
2510
ff935051
JH
2511/* PERL_INC_VERSION_LIST:
2512 * This variable specifies the list of subdirectories in over
2513 * which perl.c:incpush() and lib/lib.pm will automatically
2514 * search when adding directories to @INC, in a format suitable
2515 * for a C initialization string. See the inc_version_list entry
2516 * in Porting/Glossary for more details.
2517 */
3a096bf3 2518#define PERL_INC_VERSION_LIST $inc_version_list_init /**/
ff935051 2519
fe749a9f
JH
2520/* INSTALL_USR_BIN_PERL:
2521 * This symbol, if defined, indicates that Perl is to be installed
2522 * also as /usr/bin/perl.
2523 */
2524#$installusrbinperl INSTALL_USR_BIN_PERL /**/
2525
cf2093f6
JH
2526/* PERL_PRIfldbl:
2527 * This symbol, if defined, contains the string used by stdio to
2528 * format long doubles (format 'f') for output.
2529 */
2530/* PERL_PRIgldbl:
2531 * This symbol, if defined, contains the string used by stdio to
2532 * format long doubles (format 'g') for output.
2533 */
55516df5
GS
2534/* PERL_PRIeldbl:
2535 * This symbol, if defined, contains the string used by stdio to
2536 * format long doubles (format 'e') for output.
2537 */
1e8df282
GS
2538/* PERL_SCNfldbl:
2539 * This symbol, if defined, contains the string used by stdio to
2540 * format long doubles (format 'f') for input.
2541 */
cf2093f6
JH
2542#$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/
2543#$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/
55516df5 2544#$d_PRIeldbl PERL_PRIeldbl $sPRIeldbl /**/
1e8df282 2545#$d_SCNfldbl PERL_SCNfldbl $sSCNfldbl /**/
cf2093f6 2546
ff935051
JH
2547/* Off_t:
2548 * This symbol holds the type used to declare offsets in the kernel.
2549 * It can be int, long, off_t, etc... It may be necessary to include
2550 * <sys/types.h> to get any typedef'ed information.
2551 */
2552/* LSEEKSIZE:
2553 * This symbol holds the number of bytes used by the Off_t.
2554 */
2555/* Off_t_size:
2556 * This symbol holds the number of bytes used by the Off_t.
2557 */
2558#define Off_t $lseektype /* <offset> type */
2559#define LSEEKSIZE $lseeksize /* <offset> size */
2560#define Off_t_size $lseeksize /* <offset> size */
2561
2562/* Free_t:
2563 * This variable contains the return type of free(). It is usually
2564 * void, but occasionally int.
2565 */
2566/* Malloc_t:
2567 * This symbol is the type of pointer returned by malloc and realloc.
2568 */
2569#define Malloc_t $malloctype /**/
2570#define Free_t $freetype /**/
2571
2572/* MYMALLOC:
2573 * This symbol, if defined, indicates that we're using our own malloc.
2574 */
2575#$d_mymalloc MYMALLOC /**/
2576
2577/* Mode_t:
2578 * This symbol holds the type used to declare file modes
2579 * for systems calls. It is usually mode_t, but may be
2580 * int or unsigned short. It may be necessary to include <sys/types.h>
2581 * to get any typedef'ed information.
2582 */
2583#define Mode_t $modetype /* file mode parameter for system calls */
2584
2585/* VAL_O_NONBLOCK:
2586 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
2587 * non-blocking I/O for the file descriptor. Note that there is no way
2588 * back, i.e. you cannot turn it blocking again this way. If you wish to
2589 * alternatively switch between blocking and non-blocking, use the
2590 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
2591 */
2592/* VAL_EAGAIN:
2593 * This symbol holds the errno error code set by read() when no data was
2594 * present on the non-blocking file descriptor.
2595 */
2596/* RD_NODATA:
2597 * This symbol holds the return code from read() when no data is present
2598 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
2599 * not defined, then you can't distinguish between no data and EOF by
2600 * issuing a read(). You'll have to find another way to tell for sure!
2601 */
2602/* EOF_NONBLOCK:
2603 * This symbol, if defined, indicates to the C program that a read() on
2604 * a non-blocking file descriptor will return 0 on EOF, and not the value
2605 * held in RD_NODATA (-1 usually, in that case!).
2606 */
2607#define VAL_O_NONBLOCK $o_nonblock
2608#define VAL_EAGAIN $eagain
2609#define RD_NODATA $rd_nodata
2610#$d_eofnblk EOF_NONBLOCK
2611
2612/* Netdb_host_t:
2613 * This symbol holds the type used for the 1st argument
2614 * to gethostbyaddr().
2615 */
2616/* Netdb_hlen_t:
2617 * This symbol holds the type used for the 2nd argument
2618 * to gethostbyaddr().
2619 */
2620/* Netdb_name_t:
2621 * This symbol holds the type used for the argument to
2622 * gethostbyname().
2623 */
2624/* Netdb_net_t:
2625 * This symbol holds the type used for the 1st argument to
2626 * getnetbyaddr().
2627 */
2628#define Netdb_host_t $netdb_host_type /**/
2629#define Netdb_hlen_t $netdb_hlen_type /**/
2630#define Netdb_name_t $netdb_name_type /**/
2631#define Netdb_net_t $netdb_net_type /**/
2632
7cedd6f8
JH
2633/* PERL_OTHERLIBDIRS:
2634 * This variable contains a colon-separated set of paths for the perl
2635 * binary to search for additional library files or modules.
2636 * These directories will be tacked to the end of @INC.
2637 * Perl will automatically search below each path for version-
2638 * and architecture-specific directories. See PERL_INC_VERSION_LIST
2639 * for more details.
2640 */
2641#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
2642
8175356b
JH
2643/* IVTYPE:
2644 * This symbol defines the C type used for Perl's IV.
cf2093f6 2645 */
8175356b
JH
2646/* UVTYPE:
2647 * This symbol defines the C type used for Perl's UV.
cf2093f6 2648 */
8175356b
JH
2649/* I8TYPE:
2650 * This symbol defines the C type used for Perl's I8.
0f4b6630 2651 */
8175356b
JH
2652/* U8TYPE:
2653 * This symbol defines the C type used for Perl's U8.
2654 */
2655/* I16TYPE:
2656 * This symbol defines the C type used for Perl's I16.
2657 */
2658/* U16TYPE:
2659 * This symbol defines the C type used for Perl's U16.
2660 */
2661/* I32TYPE:
2662 * This symbol defines the C type used for Perl's I32.
2663 */
2664/* U32TYPE:
2665 * This symbol defines the C type used for Perl's U32.
2666 */
2667/* I64TYPE:
2668 * This symbol defines the C type used for Perl's I64.
2669 */
2670/* U64TYPE:
2671 * This symbol defines the C type used for Perl's U64.
2672 */
2673/* NVTYPE:
2674 * This symbol defines the C type used for Perl's NV.
2675 */
2676/* IVSIZE:
2677 * This symbol contains the sizeof(IV).
2678 */
2679/* UVSIZE:
2680 * This symbol contains the sizeof(UV).
2681 */
a22e52b9
JH
2682/* I8SIZE:
2683 * This symbol contains the sizeof(I8).
2684 */
2685/* U8SIZE:
2686 * This symbol contains the sizeof(U8).
2687 */
2688/* I16SIZE:
2689 * This symbol contains the sizeof(I16).
2690 */
2691/* U16SIZE:
2692 * This symbol contains the sizeof(U16).
2693 */
2694/* I32SIZE:
2695 * This symbol contains the sizeof(I32).
2696 */
2697/* U32SIZE:
2698 * This symbol contains the sizeof(U32).
2699 */
2700/* I64SIZE:
2701 * This symbol contains the sizeof(I64).
2702 */
2703/* U64SIZE:
2704 * This symbol contains the sizeof(U64).
2705 */
b6592ff0
JH
2706/* NVSIZE:
2707 * This symbol contains the sizeof(NV).
2708 */
cce08f5b
JH
2709/* NV_PRESERVES_UV:
2710 * This symbol, if defined, indicates that a variable of type NVTYPE
0fa24023 2711 * can preserve all the bits of a variable of type UVTYPE.
cce08f5b 2712 */
239780c6
GS
2713/* NV_PRESERVES_UV_BITS:
2714 * This symbol contains the number of bits a variable of type NVTYPE
2715 * can preserve of a variable of type UVTYPE.
2716 */
8175356b
JH
2717#define IVTYPE $ivtype /**/
2718#define UVTYPE $uvtype /**/
2719#define I8TYPE $i8type /**/
2720#define U8TYPE $u8type /**/
2721#define I16TYPE $i16type /**/
2722#define U16TYPE $u16type /**/
2723#define I32TYPE $i32type /**/
2724#define U32TYPE $u32type /**/
de1c2614 2725#ifdef HAS_QUAD
8175356b
JH
2726#define I64TYPE $i64type /**/
2727#define U64TYPE $u64type /**/
2728#endif
2729#define NVTYPE $nvtype /**/
2730#define IVSIZE $ivsize /**/
2731#define UVSIZE $uvsize /**/
a22e52b9
JH
2732#define I8SIZE $i8size /**/
2733#define U8SIZE $u8size /**/
2734#define I16SIZE $i16size /**/
2735#define U16SIZE $u16size /**/
2736#define I32SIZE $i32size /**/
2737#define U32SIZE $u32size /**/
de1c2614 2738#ifdef HAS_QUAD
8175356b
JH
2739#define I64SIZE $i64size /**/
2740#define U64SIZE $u64size /**/
2741#endif
b6592ff0 2742#define NVSIZE $nvsize /**/
78691af5 2743#$d_nv_preserves_uv NV_PRESERVES_UV
239780c6 2744#define NV_PRESERVES_UV_BITS $d_nv_preserves_uv_bits
8175356b
JH
2745
2746/* IVdf:
2747 * This symbol defines the format string used for printing a Perl IV
2748 * as a signed decimal integer.
2749 */
2750/* UVuf:
2751 * This symbol defines the format string used for printing a Perl UV
2752 * as an unsigned decimal integer.
2753 */
2754/* UVof:
2755 * This symbol defines the format string used for printing a Perl UV
2756 * as an unsigned octal integer.
2757 */
2758/* UVxf:
2759 * This symbol defines the format string used for printing a Perl UV
3a6f1039
GS
2760 * as an unsigned hexadecimal integer in lowercase abcdef.
2761 */
2762/* NVef:
2763 * This symbol defines the format string used for printing a Perl NV
2764 * using %e-ish floating point format.
2765 */
2766/* NVff:
2767 * This symbol defines the format string used for printing a Perl NV
2768 * using %f-ish floating point format.
2769 */
2770/* NVgf:
2771 * This symbol defines the format string used for printing a Perl NV
2772 * using %g-ish floating point format.
cf2093f6 2773 */
8175356b
JH
2774#define IVdf $ivdformat /**/
2775#define UVuf $uvuformat /**/
2776#define UVof $uvoformat /**/
2777#define UVxf $uvxformat /**/
3a6f1039
GS
2778#define NVef $nveformat /**/
2779#define NVff $nvfformat /**/
2780#define NVgf $nvgformat /**/
cf2093f6 2781
ff935051
JH
2782/* Pid_t:
2783 * This symbol holds the type used to declare process ids in the kernel.
2784 * It can be int, uint, pid_t, etc... It may be necessary to include
2785 * <sys/types.h> to get any typedef'ed information.
2786 */
2787#define Pid_t $pidtype /* PID type */
2788
2789/* PRIVLIB:
2790 * This symbol contains the name of the private library for this package.
2791 * The library is private in the sense that it needn't be in anyone's
2792 * execution path, but it should be accessible by the world. The program
2793 * should be prepared to do ~ expansion.
2794 */
2795/* PRIVLIB_EXP:
2796 * This symbol contains the ~name expanded version of PRIVLIB, to be used
2797 * in programs that are not prepared to deal with ~ expansion at run-time.
2798 */
2799#define PRIVLIB "$privlib" /**/
2800#define PRIVLIB_EXP "$privlibexp" /**/
2801
2802/* PTRSIZE:
2803 * This symbol contains the size of a pointer, so that the C preprocessor
2804 * can make decisions based on it. It will be sizeof(void *) if
2805 * the compiler supports (void *); otherwise it will be
2806 * sizeof(char *).
2807 */
2808#define PTRSIZE $ptrsize /**/
2809
2810/* Drand01:
2811 * This macro is to be used to generate uniformly distributed
2812 * random numbers over the range [0., 1.[. You may have to supply
2813 * an 'extern double drand48();' in your program since SunOS 4.1.3
2814 * doesn't provide you with anything relevant in it's headers.
2815 * See HAS_DRAND48_PROTO.
2816 */
2817/* Rand_seed_t:
2818 * This symbol defines the type of the argument of the
2819 * random seed function.
2820 */
2821/* seedDrand01:
2822 * This symbol defines the macro to be used in seeding the
2823 * random number generator (see Drand01).
2824 */
2825/* RANDBITS:
2826 * This symbol indicates how many bits are produced by the
2827 * function used to generate normalized random numbers.
2828 * Values include 15, 16, 31, and 48.
2829 */
2830#define Drand01() $drand01 /**/
2831#define Rand_seed_t $randseedtype /**/
2832#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
2833#define RANDBITS $randbits /**/
2834
5ff3f7a4
GS
2835/* SELECT_MIN_BITS:
2836 * This symbol holds the minimum number of bits operated by select.
2837 * That is, if you do select(n, ...), how many bits at least will be
2838 * cleared in the masks if some activity is detected. Usually this
2839 * is either n or 32*ceil(n/32), especially many little-endians do
2840 * the latter. This is only useful if you have select(), naturally.
2841 */
ff935051
JH
2842#define SELECT_MIN_BITS $selectminbits /**/
2843
2844/* Select_fd_set_t:
2845 * This symbol holds the type used for the 2nd, 3rd, and 4th
2846 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
2847 * is defined, and 'int *' otherwise. This is only useful if you
2848 * have select(), of course.
2849 */
2850#define Select_fd_set_t $selecttype /**/
2851
2852/* SIG_NAME:
2853 * This symbol contains a list of signal names in order of
2854 * signal number. This is intended
2855 * to be used as a static array initialization, like this:
2856 * char *sig_name[] = { SIG_NAME };
2857 * The signals in the list are separated with commas, and each signal
2858 * is surrounded by double quotes. There is no leading SIG in the signal
2859 * name, i.e. SIGQUIT is known as "QUIT".
2860 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
2861 * etc., where nn is the actual signal number (e.g. NUM37).
2862 * The signal number for sig_name[i] is stored in sig_num[i].
2863 * The last element is 0 to terminate the list with a NULL. This
2864 * corresponds to the 0 at the end of the sig_num list.
2865 */
2866/* SIG_NUM:
2867 * This symbol contains a list of signal numbers, in the same order as the
2868 * SIG_NAME list. It is suitable for static array initialization, as in:
2869 * int sig_num[] = { SIG_NUM };
2870 * The signals in the list are separated with commas, and the indices
2871 * within that list and the SIG_NAME list match, so it's easy to compute
2872 * the signal name from a number or vice versa at the price of a small
2873 * dynamic linear lookup.
2874 * Duplicates are allowed, but are moved to the end of the list.
2875 * The signal number corresponding to sig_name[i] is sig_number[i].
2876 * if (i < NSIG) then sig_number[i] == i.
2877 * The last element is 0, corresponding to the 0 at the end of
2878 * the sig_name list.
2879 */
2880#define SIG_NAME $sig_name_init /**/
2881#define SIG_NUM $sig_num_init /**/
2882
2883/* SITEARCH:
2884 * This symbol contains the name of the private library for this package.
2885 * The library is private in the sense that it needn't be in anyone's
2886 * execution path, but it should be accessible by the world. The program
2887 * should be prepared to do ~ expansion.
2888 * The standard distribution will put nothing in this directory.
2889 * After perl has been installed, users may install their own local
2890 * architecture-dependent modules in this directory with
2891 * MakeMaker Makefile.PL
2892 * or equivalent. See INSTALL for details.
2893 */
2894/* SITEARCH_EXP:
2895 * This symbol contains the ~name expanded version of SITEARCH, to be used
2896 * in programs that are not prepared to deal with ~ expansion at run-time.
2897 */
2898#define SITEARCH "$sitearch" /**/
2899#define SITEARCH_EXP "$sitearchexp" /**/
2900
2901/* SITELIB:
2902 * This symbol contains the name of the private library for this package.
2903 * The library is private in the sense that it needn't be in anyone's
2904 * execution path, but it should be accessible by the world. The program
2905 * should be prepared to do ~ expansion.
2906 * The standard distribution will put nothing in this directory.
2907 * After perl has been installed, users may install their own local
2908 * architecture-independent modules in this directory with
2909 * MakeMaker Makefile.PL
2910 * or equivalent. See INSTALL for details.
2911 */
2912/* SITELIB_EXP:
2913 * This symbol contains the ~name expanded version of SITELIB, to be used
2914 * in programs that are not prepared to deal with ~ expansion at run-time.
2915 */
526fdc24
MS
2916/* SITELIB_STEM:
2917 * This define is SITELIB_EXP with any trailing version-specific component
2918 * removed. The elements in inc_version_list (inc_version_list.U) can
2919 * be tacked onto this variable to generate a list of directories to search.
2920 */
ff935051
JH
2921#define SITELIB "$sitelib" /**/
2922#define SITELIB_EXP "$sitelibexp" /**/
526fdc24 2923#define SITELIB_STEM "$sitelib_stem" /**/
ff935051 2924
a13ea748
JH
2925/* Size_t_size:
2926 * This symbol holds the size of a Size_t in bytes.
2927 */
2928#define Size_t_size $sizesize /* */
2929
ff935051
JH
2930/* Size_t:
2931 * This symbol holds the type used to declare length parameters
2932 * for string functions. It is usually size_t, but may be
2933 * unsigned long, int, etc. It may be necessary to include
2934 * <sys/types.h> to get any typedef'ed information.
2935 */
2936#define Size_t $sizetype /* length paramater for string functions */
2937
1acc7ade
JH
2938/* Sock_size_t:
2939 * This symbol holds the type used for the size argument of
2940 * various socket calls (just the base type, not the pointer-to).
2941 */
2942#define Sock_size_t $socksizetype /**/
2943
ff935051
JH
2944/* SSize_t:
2945 * This symbol holds the type used by functions that return
2946 * a count of bytes or an error condition. It must be a signed type.
2947 * It is usually ssize_t, but may be long or int, etc.
2948 * It may be necessary to include <sys/types.h> or <unistd.h>
2949 * to get any typedef'ed information.
2950 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
2951 */
2952#define SSize_t $ssizetype /* signed count of bytes */
5ff3f7a4 2953
568ef1f6 2954/* STARTPERL:
2955 * This variable contains the string to put in front of a perl
2956 * script to make sure (one hopes) that it runs with perl and not
2957 * some shell.
2958 */
2959#define STARTPERL "$startperl" /**/
2960
ed39a0f2
JH
2961/* HAS_STDIO_STREAM_ARRAY:
2962 * This symbol, if defined, tells that there is an array
2963 * holding the stdio streams.
2964 */
767df6a1 2965/* STDIO_STREAM_ARRAY:
ed39a0f2
JH
2966 * This symbol tells the name of the array holding the stdio streams.
2967 * Usual values include _iob, __iob, and __sF.
767df6a1 2968 */
ed39a0f2 2969#$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/
767df6a1
JH
2970#define STDIO_STREAM_ARRAY $stdio_stream_array
2971
ff935051
JH
2972/* Uid_t_f:
2973 * This symbol defines the format string used for printing a Uid_t.
cf2093f6 2974 */
ff935051
JH
2975#define Uid_t_f $uidformat /**/
2976
23dcd6c8
JH
2977/* Uid_t_sign:
2978 * This symbol holds the signedess of a Uid_t.
2979 * 1 for unsigned, -1 for signed.
2980 */
2981#define Uid_t_sign $uidsign /* UID sign */
2982
ff935051
JH
2983/* Uid_t_size:
2984 * This symbol holds the size of a Uid_t in bytes.
2985 */
2986#define Uid_t_size $uidsize /* UID size */
2987
2988/* Uid_t:
2989 * This symbol holds the type used to declare user ids in the kernel.
2990 * It can be int, ushort, uid_t, etc... It may be necessary to include
2991 * <sys/types.h> to get any typedef'ed information.
2992 */
2993#define Uid_t $uidtype /* UID type */
cf2093f6 2994
10cc9d2a 2995/* USE_64_BIT_INT:
bd9b35c9
JH
2996 * This symbol, if defined, indicates that 64-bit integers should
2997 * be used when available. If not defined, the native integers
49c10eea
JH
2998 * will be employed (be they 32 or 64 bits). The minimal possible
2999 * 64-bitness is used, just enough to get 64-bit integers into Perl.
3000 * This may mean using for example "long longs", while your memory
3001 * may still be limited to 2 gigabytes.
5ff3f7a4 3002 */
10cc9d2a
JH
3003/* USE_64_BIT_ALL:
3004 * This symbol, if defined, indicates that 64-bit integers should
3005 * be used when available. If not defined, the native integers
3006 * will be used (be they 32 or 64 bits). The maximal possible
3007 * 64-bitness is employed: LP64 or ILP64, meaning that you will
3008 * be able to use more than 2 gigabytes of memory. This mode is
3009 * even more binary incompatible than USE_64_BIT_INT. You may not
3010 * be able to run the resulting executable in a 32-bit CPU at all or
3011 * you may need at least to reboot your OS to 64-bit mode.
3012 */
3013#ifndef USE_64_BIT_INT
3014#$use64bitint USE_64_BIT_INT /**/
d7d93a81 3015#endif
5ff3f7a4 3016
10cc9d2a
JH
3017#ifndef USE_64_BIT_ALL
3018#$use64bitall USE_64_BIT_ALL /**/
49c10eea
JH
3019#endif
3020
09458382
JH
3021/* USE_LARGE_FILES:
3022 * This symbol, if defined, indicates that large file support
c890dc6c 3023 * should be used when available.
09458382 3024 */
d7d93a81 3025#ifndef USE_LARGE_FILES
249b38c6 3026#$uselargefiles USE_LARGE_FILES /**/
d7d93a81 3027#endif
09458382 3028
b0ce926a
JH
3029/* USE_LONG_DOUBLE:
3030 * This symbol, if defined, indicates that long doubles should
3031 * be used when available.
3032 */
d7d93a81 3033#ifndef USE_LONG_DOUBLE
b0ce926a 3034#$uselongdouble USE_LONG_DOUBLE /**/
d7d93a81
JH
3035#endif
3036
c71a9cee
JH
3037/* USE_MORE_BITS:
3038 * This symbol, if defined, indicates that 64-bit interfaces and
3039 * long doubles should be used when available.
3040 */
d7d93a81
JH
3041#ifndef USE_MORE_BITS
3042#$usemorebits USE_MORE_BITS /**/
3043#endif
b0ce926a 3044
104d25b7
JH
3045/* MULTIPLICITY:
3046 * This symbol, if defined, indicates that Perl should
3047 * be built to use multiplicity.
3048 */
43999f95 3049#ifndef MULTIPLICITY
104d25b7 3050#$usemultiplicity MULTIPLICITY /**/
d7d93a81 3051#endif
104d25b7 3052
e876cf0b 3053/* USE_PERLIO:
3054 * This symbol, if defined, indicates that the PerlIO abstraction should
3055 * be used throughout. If not defined, stdio should be
3056 * used in a fully backward compatible manner.
3057 */
d7d93a81 3058#ifndef USE_PERLIO
e876cf0b 3059#$useperlio USE_PERLIO /**/
d7d93a81 3060#endif
e876cf0b 3061
29209bc5
JH
3062/* USE_SOCKS:
3063 * This symbol, if defined, indicates that Perl should
3064 * be built to use socks.
3065 */
d7d93a81 3066#ifndef USE_SOCKS
29209bc5 3067#$usesocks USE_SOCKS /**/
d7d93a81 3068#endif
29209bc5 3069
aaacdc8b
GS
3070/* USE_ITHREADS:
3071 * This symbol, if defined, indicates that Perl should be built to
3072 * use the interpreter-based threading implementation.
3073 */
3074/* USE_5005THREADS:
3075 * This symbol, if defined, indicates that Perl should be built to
3076 * use the 5.005-based threading implementation.
dfe9444c 3077 */
693762b4
AD
3078/* OLD_PTHREADS_API:
3079 * This symbol, if defined, indicates that Perl should
3080 * be built to use the old draft POSIX threads API.
3081 */
aaacdc8b
GS
3082#$use5005threads USE_5005THREADS /**/
3083#$useithreads USE_ITHREADS /**/
3084#if defined(USE_5005THREADS) && !defined(USE_ITHREADS)
3085#define USE_THREADS /* until src is revised*/
d7d93a81 3086#endif
693762b4 3087#$d_oldpthreads OLD_PTHREADS_API /**/
8e07c86e 3088
1acc7ade
JH
3089/* PERL_VENDORARCH:
3090 * If defined, this symbol contains the name of a private library.
3091 * The library is private in the sense that it needn't be in anyone's
3092 * execution path, but it should be accessible by the world.
3093 * It may have a ~ on the front.
3094 * The standard distribution will put nothing in this directory.
3095 * Vendors who distribute perl may wish to place their own
3096 * architecture-dependent modules and extensions in this directory with
3097 * MakeMaker Makefile.PL INSTALLDIRS=vendor
3098 * or equivalent. See INSTALL for details.
3099 */
526fdc24
MS
3100/* PERL_VENDORARCH_EXP:
3101 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
3102 * in programs that are not prepared to deal with ~ expansion at run-time.
3103 */
1acc7ade 3104#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
526fdc24
MS
3105#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
3106
ff935051
JH
3107/* PERL_VENDORLIB_EXP:
3108 * This symbol contains the ~name expanded version of VENDORLIB, to be used
3109 * in programs that are not prepared to deal with ~ expansion at run-time.
887d2938 3110 */
526fdc24
MS
3111/* PERL_VENDORLIB_STEM:
3112 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
3113 * removed. The elements in inc_version_list (inc_version_list.U) can
3114 * be tacked onto this variable to generate a list of directories to search.
3115 */
ff935051 3116#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
526fdc24 3117#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
887d2938 3118
ff935051
JH
3119/* VOIDFLAGS:
3120 * This symbol indicates how much support of the void type is given by this
3121 * compiler. What various bits mean:
3122 *
3123 * 1 = supports declaration of void
3124 * 2 = supports arrays of pointers to functions returning void
3125 * 4 = supports comparisons between pointers to void functions and
3126 * addresses of void functions
3127 * 8 = suports declaration of generic void pointers
3128 *
3129 * The package designer should define VOIDUSED to indicate the requirements
3130 * of the package. This can be done either by #defining VOIDUSED before
3131 * including config.h, or by defining defvoidused in Myinit.U. If the
3132 * latter approach is taken, only those flags will be tested. If the
3133 * level of void support necessary is not present, defines void to int.
dc45a647 3134 */
ff935051
JH
3135#ifndef VOIDUSED
3136#define VOIDUSED $defvoidused
3137#endif
3138#define VOIDFLAGS $voidflags
3139#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
3140#define void int /* is void to be avoided? */
3141#define M_VOID /* Xenix strikes again */
3142#endif
dc45a647 3143
fe749a9f
JH
3144/* PERL_XS_APIVERSION:
3145 * This variable contains the version of the oldest perl binary
3146 * compatible with the present perl. perl.c:incpush() and
3147 * lib/lib.pm will automatically search in $sitearch for older
3148 * directories across major versions back to xs_apiversion.
3149 * This is only useful if you have a perl library directory tree
3150 * structured like the default one.
3151 * See INSTALL for how this works.
3152 * The versioned site_perl directory was introduced in 5.005,
3153 * so that is the lowest possible value.
3154 * Since this can depend on compile time options (such as
3155 * bincompat) it is set by Configure. Other non-default sources
3156 * of potential incompatibility, such as multiplicity, threads,
3157 * debugging, 64bits, sfio, etc., are not checked for currently,
3158 * though in principle we could go snooping around in old
3159 * Config.pm files.
3160 */
3161/* PERL_PM_APIVERSION:
3162 * This variable contains the version of the oldest perl
3163 * compatible with the present perl. (That is, pure perl modules
3164 * written for pm_apiversion will still work for the current
3165 * version). perl.c:incpush() and lib/lib.pm will automatically
3166 * search in $sitelib for older directories across major versions
3167 * back to pm_apiversion. This is only useful if you have a perl
3168 * library directory tree structured like the default one. The
3169 * versioned site_perl library was introduced in 5.005, so that's
3170 * the default setting for this variable. It's hard to imagine
3171 * it changing before Perl6. It is included here for symmetry
3172 * with xs_apiveprsion -- the searching algorithms will
3173 * (presumably) be similar.
3174 * See the INSTALL file for how this works.
3175 */
3176#define PERL_XS_APIVERSION "$xs_apiversion"
3177#define PERL_PM_APIVERSION "$pm_apiversion"
3178
72d299db
GS
3179/* HAS_GETPGRP:
3180 * This symbol, if defined, indicates that the getpgrp routine is
3181 * available to get the current process group.
3182 */
3183/* USE_BSD_GETPGRP:
3184 * This symbol, if defined, indicates that getpgrp needs one
3185 * arguments whereas USG one needs none.
3186 */
3187#$d_getpgrp HAS_GETPGRP /**/
3188#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
3189
3190/* HAS_SETPGRP:
3191 * This symbol, if defined, indicates that the setpgrp routine is
3192 * available to set the current process group.
3193 */
3194/* USE_BSD_SETPGRP:
3195 * This symbol, if defined, indicates that setpgrp needs two
3196 * arguments whereas USG one needs none. See also HAS_SETPGID
3197 * for a POSIX interface.
3198 */
3199#$d_setpgrp HAS_SETPGRP /**/
3200#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
3201
f2be4e66
JH
3202/* STDCHAR:
3203 * This symbol is defined to be the type of char used in stdio.h.
3204 * It has the values "unsigned char" or "char".
3205 */
3206#define STDCHAR $stdchar /**/
3207
bb2c2f1d
GS
3208/* HAS__FWALK:
3209 * This symbol, if defined, indicates that the _fwalk system call is
3210 * available to apply a function to all the file handles.
3211 */
3212#$d__fwalk HAS__FWALK /**/
3213
bd3a7847
GS
3214/* FCNTL_CAN_LOCK:
3215 * This symbol, if defined, indicates that fcntl() can be used
3216 * for file locking. Normally on Unix systems this is defined.
3217 * It may be undefined on VMS.
3218 */
3219#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
3220
bb2c2f1d
GS
3221/* HAS_FSYNC:
3222 * This symbol, if defined, indicates that the fsync routine is
3223 * available to write a file's modified data and attributes to
3224 * permanent storage.
3225 */
3226#$d_fsync HAS_FSYNC /**/
3227
a59fd42a
JH
3228/* HAS_SBRK_PROTO:
3229 * This symbol, if defined, indicates that the system provides
3230 * a prototype for the sbrk() function. Otherwise, it is up
3231 * to the program to supply one. Good guesses are
3232 * extern void* sbrk _((int));
3233 * extern void* sbrk _((size_t));
3234 */
3235#$d_sbrkproto HAS_SBRK_PROTO /**/
3236
fe14fcc3 3237#endif
8d063cd8 3238!GROK!THIS!