This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Hurd update from Mark Kettenis.
[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 192/* FLEXFILENAMES:
7e1cf235
LW
193 * This symbol, if defined, indicates that the system supports filenames
194 * longer than 14 characters.
195 */
196#$d_flexfnam FLEXFILENAMES /**/
197
2304df62
AD
198/* HAS_FLOCK:
199 * This symbol, if defined, indicates that the flock routine is
a687059c
LW
200 * available to do file locking.
201 */
2304df62 202#$d_flock HAS_FLOCK /**/
a687059c 203
a0d0e21e
LW
204/* HAS_FORK:
205 * This symbol, if defined, indicates that the fork routine is
206 * available.
207 */
208#$d_fork HAS_FORK /**/
209
210/* HAS_FSETPOS:
211 * This symbol, if defined, indicates that the fsetpos routine is
212 * available to set the file position indicator, similar to fseek().
213 */
214#$d_fsetpos HAS_FSETPOS /**/
215
5f05dabc
PP
216/* HAS_GETTIMEOFDAY:
217 * This symbol, if defined, indicates that the gettimeofday() system
218 * call is available for a sub-second accuracy clock. Usually, the file
219 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
220 * The type "Timeval" should be used to refer to "struct timeval".
221 */
222#$d_gettimeod HAS_GETTIMEOFDAY /**/
223#ifdef HAS_GETTIMEOFDAY
224#define Timeval struct timeval /* Structure used by gettimeofday() */
225#endif
226
2304df62 227/* HAS_GETGROUPS:
378cc40b
LW
228 * This symbol, if defined, indicates that the getgroups() routine is
229 * available to get the list of process groups. If unavailable, multiple
230 * groups are probably not supported.
231 */
2304df62 232#$d_getgrps HAS_GETGROUPS /**/
378cc40b 233
a0d0e21e
LW
234/* HAS_GETLOGIN:
235 * This symbol, if defined, indicates that the getlogin routine is
236 * available to get the login name.
237 */
238#$d_getlogin HAS_GETLOGIN /**/
239
dfe9444c
AD
240/* HAS_GETPGID:
241 * This symbol, if defined, indicates to the C program that
242 * the getpgid(pid) function is available to get the
243 * process group id.
244 */
245#$d_getpgid HAS_GETPGID /**/
246
247/* HAS_GETPGRP:
248 * This symbol, if defined, indicates that the getpgrp routine is
249 * available to get the current process group.
250 */
251/* USE_BSD_GETPGRP:
252 * This symbol, if defined, indicates that getpgrp needs one
253 * arguments whereas USG one needs none.
254 */
255#$d_getpgrp HAS_GETPGRP /**/
256#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
257
2304df62 258/* HAS_GETPGRP2:
d8f2e4cc
LW
259 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
260 * routine is available to get the current process group.
261 */
2304df62 262#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 263
a0d0e21e
LW
264/* HAS_GETPPID:
265 * This symbol, if defined, indicates that the getppid routine is
266 * available to get the parent process ID.
267 */
268#$d_getppid HAS_GETPPID /**/
269
2304df62
AD
270/* HAS_GETPRIORITY:
271 * This symbol, if defined, indicates that the getpriority routine is
a687059c
LW
272 * available to get a process's priority.
273 */
2304df62 274#$d_getprior HAS_GETPRIORITY /**/
a687059c 275
dfe9444c
AD
276/* HAS_INET_ATON:
277 * This symbol, if defined, indicates to the C program that the
278 * inet_aton() function is available to parse IP address "dotted-quad"
279 * strings.
ecfc5424 280 */
dfe9444c 281#$d_inetaton HAS_INET_ATON /**/
ecfc5424 282
2304df62 283/* HAS_KILLPG:
378cc40b
LW
284 * This symbol, if defined, indicates that the killpg routine is available
285 * to kill process groups. If unavailable, you probably should use kill
286 * with a negative process number.
287 */
2304df62 288#$d_killpg HAS_KILLPG /**/
378cc40b 289
2304df62
AD
290/* HAS_LINK:
291 * This symbol, if defined, indicates that the link routine is
292 * available to create hard links.
0d3e774c 293 */
2304df62 294#$d_link HAS_LINK /**/
0d3e774c 295
ecfc5424
AD
296/* HAS_LOCALECONV:
297 * This symbol, if defined, indicates that the localeconv routine is
298 * available for numeric and monetary formatting conventions.
299 */
300#$d_locconv HAS_LOCALECONV /**/
301
a0d0e21e
LW
302/* HAS_LOCKF:
303 * This symbol, if defined, indicates that the lockf routine is
304 * available to do file locking.
305 */
306#$d_lockf HAS_LOCKF /**/
307
2304df62
AD
308/* HAS_LSTAT:
309 * This symbol, if defined, indicates that the lstat routine is
310 * available to do file stats on symbolic links.
a687059c 311 */
2304df62 312#$d_lstat HAS_LSTAT /**/
a687059c 313
a0d0e21e
LW
314/* HAS_MBLEN:
315 * This symbol, if defined, indicates that the mblen routine is available
316 * to find the number of bytes in a multibye character.
317 */
318#$d_mblen HAS_MBLEN /**/
319
320/* HAS_MBSTOWCS:
321 * This symbol, if defined, indicates that the mbstowcs routine is
322 * available to covert a multibyte string into a wide character string.
323 */
324#$d_mbstowcs HAS_MBSTOWCS /**/
325
326/* HAS_MBTOWC:
327 * This symbol, if defined, indicates that the mbtowc routine is available
328 * to covert a multibyte to a wide character.
329 */
330#$d_mbtowc HAS_MBTOWC /**/
331
2304df62
AD
332/* HAS_MEMCMP:
333 * This symbol, if defined, indicates that the memcmp routine is available
334 * to compare blocks of memory.
378cc40b 335 */
2304df62
AD
336#$d_memcmp HAS_MEMCMP /**/
337
338/* HAS_MEMCPY:
9f971974 339 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 340 * to copy blocks of memory.
9f971974 341 */
2304df62 342#$d_memcpy HAS_MEMCPY /**/
9f971974 343
2304df62 344/* HAS_MEMMOVE:
9f971974 345 * This symbol, if defined, indicates that the memmove routine is available
2304df62
AD
346 * to copy potentially overlapping blocks of memory. This should be used
347 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
348 * own version.
9f971974 349 */
2304df62 350#$d_memmove HAS_MEMMOVE /**/
9f971974 351
2304df62 352/* HAS_MEMSET:
9f971974 353 * This symbol, if defined, indicates that the memset routine is available
2304df62 354 * to set blocks of memory.
9f971974 355 */
2304df62 356#$d_memset HAS_MEMSET /**/
378cc40b 357
2304df62 358/* HAS_MKDIR:
a687059c
LW
359 * This symbol, if defined, indicates that the mkdir routine is available
360 * to create directories. Otherwise you should fork off a new process to
361 * exec /bin/mkdir.
362 */
2304df62 363#$d_mkdir HAS_MKDIR /**/
fe14fcc3 364
ecfc5424
AD
365/* HAS_MKFIFO:
366 * This symbol, if defined, indicates that the mkfifo routine is
367 * available to create FIFOs. Otherwise, mknod should be able to
368 * do it for you. However, if mkfifo is there, mknod might require
369 * super-user privileges which mkfifo will not.
370 */
371#$d_mkfifo HAS_MKFIFO /**/
372
a0d0e21e
LW
373/* HAS_MKTIME:
374 * This symbol, if defined, indicates that the mktime routine is
375 * available.
376 */
377#$d_mktime HAS_MKTIME /**/
378
a0d0e21e
LW
379/* HAS_NICE:
380 * This symbol, if defined, indicates that the nice routine is
381 * available.
fe14fcc3 382 */
a0d0e21e 383#$d_nice HAS_NICE /**/
a687059c 384
ecfc5424
AD
385/* HAS_PATHCONF:
386 * This symbol, if defined, indicates that pathconf() is available
387 * to determine file-system related limits and options associated
388 * with a given filename.
389 */
390/* HAS_FPATHCONF:
391 * This symbol, if defined, indicates that pathconf() is available
392 * to determine file-system related limits and options associated
393 * with a given open file descriptor.
394 */
395#$d_pathconf HAS_PATHCONF /**/
396#$d_fpathconf HAS_FPATHCONF /**/
397
a0d0e21e
LW
398/* HAS_PAUSE:
399 * This symbol, if defined, indicates that the pause routine is
400 * available to suspend a process until a signal is received.
a687059c 401 */
a0d0e21e 402#$d_pause HAS_PAUSE /**/
a687059c 403
a0d0e21e
LW
404/* HAS_PIPE:
405 * This symbol, if defined, indicates that the pipe routine is
406 * available to create an inter-process channel.
fe14fcc3 407 */
a0d0e21e
LW
408#$d_pipe HAS_PIPE /**/
409
8e07c86e
AD
410/* HAS_POLL:
411 * This symbol, if defined, indicates that the poll routine is
dfe9444c
AD
412 * available to poll active file descriptors. You may safely
413 * include <poll.h> when this symbol is defined.
8e07c86e
AD
414 */
415#$d_poll HAS_POLL /**/
416
a0d0e21e
LW
417/* HAS_READDIR:
418 * This symbol, if defined, indicates that the readdir routine is
419 * available to read directory entries. You may have to include
420 * <dirent.h>. See I_DIRENT.
421 */
422#$d_readdir HAS_READDIR /**/
423
424/* HAS_SEEKDIR:
425 * This symbol, if defined, indicates that the seekdir routine is
426 * available. You may have to include <dirent.h>. See I_DIRENT.
427 */
428#$d_seekdir HAS_SEEKDIR /**/
429
430/* HAS_TELLDIR:
431 * This symbol, if defined, indicates that the telldir routine is
432 * available. You may have to include <dirent.h>. See I_DIRENT.
433 */
434#$d_telldir HAS_TELLDIR /**/
435
436/* HAS_REWINDDIR:
437 * This symbol, if defined, indicates that the rewinddir routine is
438 * available. You may have to include <dirent.h>. See I_DIRENT.
439 */
440#$d_rewinddir HAS_REWINDDIR /**/
441
442/* HAS_READLINK:
443 * This symbol, if defined, indicates that the readlink routine is
444 * available to read the value of a symbolic link.
445 */
446#$d_readlink HAS_READLINK /**/
fe14fcc3 447
2304df62 448/* HAS_RENAME:
378cc40b
LW
449 * This symbol, if defined, indicates that the rename routine is available
450 * to rename files. Otherwise you should do the unlink(), link(), unlink()
451 * trick.
452 */
2304df62 453#$d_rename HAS_RENAME /**/
378cc40b 454
2304df62
AD
455/* HAS_RMDIR:
456 * This symbol, if defined, indicates that the rmdir routine is
457 * available to remove directories. Otherwise you should fork off a
458 * new process to exec /bin/rmdir.
9f971974 459 */
2304df62 460#$d_rmdir HAS_RMDIR /**/
9f971974 461
2304df62
AD
462/* HAS_SELECT:
463 * This symbol, if defined, indicates that the select routine is
464 * available to select active file descriptors. If the timeout field
465 * is used, <sys/time.h> may need to be included.
fe14fcc3 466 */
2304df62 467#$d_select HAS_SELECT /**/
a687059c 468
2304df62 469/* HAS_SETEGID:
378cc40b
LW
470 * This symbol, if defined, indicates that the setegid routine is available
471 * to change the effective gid of the current program.
472 */
2304df62 473#$d_setegid HAS_SETEGID /**/
378cc40b 474
2304df62 475/* HAS_SETEUID:
378cc40b
LW
476 * This symbol, if defined, indicates that the seteuid routine is available
477 * to change the effective uid of the current program.
478 */
2304df62
AD
479#$d_seteuid HAS_SETEUID /**/
480
a0d0e21e
LW
481/* HAS_SETLINEBUF:
482 * This symbol, if defined, indicates that the setlinebuf routine is
483 * available to change stderr or stdout from block-buffered or unbuffered
484 * to a line-buffered mode.
485 */
486#$d_setlinebuf HAS_SETLINEBUF /**/
487
488/* HAS_SETLOCALE:
489 * This symbol, if defined, indicates that the setlocale routine is
490 * available to handle locale-specific ctype implementations.
491 */
492#$d_setlocale HAS_SETLOCALE /**/
493
dfe9444c
AD
494/* HAS_SETPGID:
495 * This symbol, if defined, indicates that the setpgid(pid, gpid)
496 * routine is available to set process group ID.
497 */
498#$d_setpgid HAS_SETPGID /**/
499
500/* HAS_SETPGRP:
501 * This symbol, if defined, indicates that the setpgrp routine is
502 * available to set the current process group.
503 */
504/* USE_BSD_SETPGRP:
505 * This symbol, if defined, indicates that setpgrp needs two
506 * arguments whereas USG one needs none. See also HAS_SETPGID
507 * for a POSIX interface.
508 */
509#$d_setpgrp HAS_SETPGRP /**/
510#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
511
2304df62 512/* HAS_SETPGRP2:
d8f2e4cc
LW
513 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
514 * routine is available to set the current process group.
515 */
2304df62 516#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 517
2304df62
AD
518/* HAS_SETPRIORITY:
519 * This symbol, if defined, indicates that the setpriority routine is
a687059c
LW
520 * available to set a process's priority.
521 */
2304df62 522#$d_setprior HAS_SETPRIORITY /**/
a687059c 523
2304df62 524/* HAS_SETREGID:
a687059c 525 * This symbol, if defined, indicates that the setregid routine is
2304df62
AD
526 * available to change the real and effective gid of the current
527 * process.
a687059c 528 */
2304df62 529/* HAS_SETRESGID:
a687059c
LW
530 * This symbol, if defined, indicates that the setresgid routine is
531 * available to change the real, effective and saved gid of the current
2304df62 532 * process.
a687059c 533 */
2304df62
AD
534#$d_setregid HAS_SETREGID /**/
535#$d_setresgid HAS_SETRESGID /**/
a687059c 536
2304df62 537/* HAS_SETREUID:
a687059c 538 * This symbol, if defined, indicates that the setreuid routine is
2304df62
AD
539 * available to change the real and effective uid of the current
540 * process.
a687059c 541 */
2304df62 542/* HAS_SETRESUID:
a687059c
LW
543 * This symbol, if defined, indicates that the setresuid routine is
544 * available to change the real, effective and saved uid of the current
2304df62 545 * process.
a687059c 546 */
2304df62
AD
547#$d_setreuid HAS_SETREUID /**/
548#$d_setresuid HAS_SETRESUID /**/
a687059c 549
2304df62 550/* HAS_SETRGID:
378cc40b
LW
551 * This symbol, if defined, indicates that the setrgid routine is available
552 * to change the real gid of the current program.
553 */
2304df62 554#$d_setrgid HAS_SETRGID /**/
378cc40b 555
2304df62 556/* HAS_SETRUID:
378cc40b
LW
557 * This symbol, if defined, indicates that the setruid routine is available
558 * to change the real uid of the current program.
559 */
2304df62
AD
560#$d_setruid HAS_SETRUID /**/
561
562/* HAS_SETSID:
563 * This symbol, if defined, indicates that the setsid routine is
564 * available to set the process group ID.
565 */
566#$d_setsid HAS_SETSID /**/
fe14fcc3 567
a0d0e21e
LW
568/* Shmat_t:
569 * This symbol holds the return type of the shmat() system call.
570 * Usually set to 'void *' or 'char *'.
fe14fcc3 571 */
a0d0e21e
LW
572/* HAS_SHMAT_PROTOTYPE:
573 * This symbol, if defined, indicates that the sys/shm.h includes
574 * a prototype for shmat(). Otherwise, it is up to the program to
b0ca4213 575 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
a0d0e21e
LW
576 * but not always right so it should be emitted by the program only
577 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 578 */
a0d0e21e
LW
579#define Shmat_t $shmattype /**/
580#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 581
dfe9444c
AD
582/* HAS_STRCHR:
583 * This symbol is defined to indicate that the strchr()/strrchr()
584 * functions are available for string searching. If not, try the
585 * index()/rindex() pair.
16d20bd9 586 */
dfe9444c
AD
587/* HAS_INDEX:
588 * This symbol is defined to indicate that the index()/rindex()
589 * functions are available for string searching.
c2960299 590 */
dfe9444c
AD
591#$d_strchr HAS_STRCHR /**/
592#$d_index HAS_INDEX /**/
593
594/* HAS_STRCOLL:
595 * This symbol, if defined, indicates that the strcoll routine is
596 * available to compare strings using collating information.
16d20bd9 597 */
dfe9444c
AD
598#$d_strcoll HAS_STRCOLL /**/
599
600/* USE_STRUCT_COPY:
601 * This symbol, if defined, indicates that this C compiler knows how
602 * to copy structures. If undefined, you'll need to use a block copy
603 * routine of some sort instead.
c2960299 604 */
dfe9444c 605#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 606
a89d8a78
DH
607/* HAS_STRTOD:
608 * This symbol, if defined, indicates that the strtod routine is
5f05dabc 609 * available to provide better numeric string conversion than atof().
a89d8a78
DH
610 */
611#$d_strtod HAS_STRTOD /**/
612
613/* HAS_STRTOL:
5f05dabc
PP
614 * This symbol, if defined, indicates that the strtol routine is available
615 * to provide better numeric string conversion than atoi() and friends.
a89d8a78
DH
616 */
617#$d_strtol HAS_STRTOL /**/
618
619/* HAS_STRTOUL:
620 * This symbol, if defined, indicates that the strtoul routine is
5f05dabc 621 * available to provide conversion of strings to unsigned long.
a89d8a78
DH
622 */
623#$d_strtoul HAS_STRTOUL /**/
624
a0d0e21e
LW
625/* HAS_STRXFRM:
626 * This symbol, if defined, indicates that the strxfrm() routine is
627 * available to transform strings.
628 */
629#$d_strxfrm HAS_STRXFRM /**/
630
2304df62 631/* HAS_SYMLINK:
2e1b3b7e
KK
632 * This symbol, if defined, indicates that the symlink routine is available
633 * to create symbolic links.
634 */
2304df62 635#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 636
2304df62
AD
637/* HAS_SYSCALL:
638 * This symbol, if defined, indicates that the syscall routine is
639 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 640 */
2304df62 641#$d_syscall HAS_SYSCALL /**/
e5d73d77 642
ecfc5424
AD
643/* HAS_SYSCONF:
644 * This symbol, if defined, indicates that sysconf() is available
645 * to determine system related limits and options.
646 */
647#$d_sysconf HAS_SYSCONF /**/
648
2304df62
AD
649/* HAS_SYSTEM:
650 * This symbol, if defined, indicates that the system routine is
651 * available to issue a shell command.
9f971974 652 */
2304df62 653#$d_system HAS_SYSTEM /**/
9f971974 654
a0d0e21e
LW
655/* HAS_TCGETPGRP:
656 * This symbol, if defined, indicates that the tcgetpgrp routine is
657 * available to get foreground process group ID.
85e6fe83 658 */
a0d0e21e
LW
659#$d_tcgetpgrp HAS_TCGETPGRP /**/
660
661/* HAS_TCSETPGRP:
662 * This symbol, if defined, indicates that the tcsetpgrp routine is
663 * available to set foreground process group ID.
664 */
665#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 666
2304df62 667/* HAS_TRUNCATE:
87250799
LW
668 * This symbol, if defined, indicates that the truncate routine is
669 * available to truncate files.
670 */
2304df62 671#$d_truncate HAS_TRUNCATE /**/
87250799 672
a0d0e21e
LW
673/* HAS_TZNAME:
674 * This symbol, if defined, indicates that the tzname[] array is
675 * available to access timezone names.
676 */
677#$d_tzname HAS_TZNAME /**/
678
679/* HAS_UMASK:
680 * This symbol, if defined, indicates that the umask routine is
681 * available to set and get the value of the file creation mask.
682 */
683#$d_umask HAS_UMASK /**/
684
2304df62 685/* HASVOLATILE:
afd9f252
LW
686 * This symbol, if defined, indicates that this C compiler knows about
687 * the volatile declaration.
688 */
689#$d_volatile HASVOLATILE /**/
2304df62
AD
690#ifndef HASVOLATILE
691#define volatile
692#endif
afd9f252 693
2304df62 694/* HAS_WAIT4:
bf38876a
LW
695 * This symbol, if defined, indicates that wait4() exists.
696 */
2304df62 697#$d_wait4 HAS_WAIT4 /**/
bf38876a 698
2304df62
AD
699/* HAS_WAITPID:
700 * This symbol, if defined, indicates that the waitpid routine is
701 * available to wait for child process.
39c3038c 702 */
2304df62 703#$d_waitpid HAS_WAITPID /**/
39c3038c 704
a0d0e21e
LW
705/* HAS_WCSTOMBS:
706 * This symbol, if defined, indicates that the wcstombs routine is
707 * available to convert wide character strings to multibyte strings.
708 */
709#$d_wcstombs HAS_WCSTOMBS /**/
710
711/* HAS_WCTOMB:
712 * This symbol, if defined, indicates that the wctomb routine is available
713 * to covert a wide character to a multibyte.
714 */
715#$d_wctomb HAS_WCTOMB /**/
716
28e8609d 717/* I_ARPA_INET:
5ff3f7a4
GS
718 * This symbol, if defined, indicates to the C program that it should
719 * include <arpa/inet.h> to get inet_addr and friends declarations.
28e8609d 720 */
5ff3f7a4 721#$i_arpainet I_ARPA_INET /**/
28e8609d 722
dfe9444c
AD
723/* I_DBM:
724 * This symbol, if defined, indicates that <dbm.h> exists and should
725 * be included.
232e078e 726 */
dfe9444c
AD
727/* I_RPCSVC_DBM:
728 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
729 * should be included.
232e078e 730 */
dfe9444c
AD
731#$i_dbm I_DBM /**/
732#$i_rpcsvcdbm I_RPCSVC_DBM /**/
232e078e 733
2304df62
AD
734/* I_DIRENT:
735 * This symbol, if defined, indicates to the C program that it should
736 * include <dirent.h>. Using this symbol also triggers the definition
737 * of the Direntry_t define which ends up being 'struct dirent' or
738 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 739 */
2304df62
AD
740/* DIRNAMLEN:
741 * This symbol, if defined, indicates to the C program that the length
742 * of directory entry names is provided by a d_namlen field. Otherwise
743 * you need to do strlen() on the d_name field.
744 */
a0d0e21e
LW
745/* Direntry_t:
746 * This symbol is set to 'struct direct' or 'struct dirent' depending on
747 * whether dirent is available or not. You should use this pseudo type to
748 * portably declare your directory entries.
749 */
2304df62
AD
750#$i_dirent I_DIRENT /**/
751#$d_dirnamlen DIRNAMLEN /**/
a0d0e21e
LW
752#define Direntry_t $direntrytype
753
754/* I_DLFCN:
755 * This symbol, if defined, indicates that <dlfcn.h> exists and should
756 * be included.
757 */
758#$i_dlfcn I_DLFCN /**/
1c3d792e 759
2304df62 760/* I_FCNTL:
fe14fcc3 761 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 762 */
2304df62 763#$i_fcntl I_FCNTL /**/
a687059c 764
a0d0e21e
LW
765/* I_FLOAT:
766 * This symbol, if defined, indicates to the C program that it should
767 * include <float.h> to get definition of symbols like DBL_MAX or
768 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 769 */
a0d0e21e 770#$i_float I_FLOAT /**/
a687059c 771
a0d0e21e
LW
772/* I_LIMITS:
773 * This symbol, if defined, indicates to the C program that it should
774 * include <limits.h> to get definition of symbols like WORD_BIT or
775 * LONG_MAX, i.e. machine dependant limitations.
776 */
777#$i_limits I_LIMITS /**/
778
dfe9444c
AD
779/* I_LOCALE:
780 * This symbol, if defined, indicates to the C program that it should
781 * include <locale.h>.
782 */
783#$i_locale I_LOCALE /**/
784
a0d0e21e
LW
785/* I_MATH:
786 * This symbol, if defined, indicates to the C program that it should
787 * include <math.h>.
788 */
789#$i_math I_MATH /**/
790
791/* I_MEMORY:
792 * This symbol, if defined, indicates to the C program that it should
793 * include <memory.h>.
794 */
795#$i_memory I_MEMORY /**/
796
232e078e 797/* I_NDBM:
16d20bd9 798 * This symbol, if defined, indicates that <ndbm.h> exists and should
232e078e
AD
799 * be included.
800 */
801#$i_ndbm I_NDBM /**/
802
ecfc5424
AD
803/* I_NET_ERRNO:
804 * This symbol, if defined, indicates that <net/errno.h> exists and
805 * should be included.
2304df62 806 */
ecfc5424 807#$i_neterrno I_NET_ERRNO /**/
2304df62
AD
808
809/* I_NETINET_IN:
03a14243 810 * This symbol, if defined, indicates to the C program that it should
2304df62 811 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 812 */
2304df62 813#$i_niin I_NETINET_IN /**/
03a14243 814
dfe9444c
AD
815/* I_SFIO:
816 * This symbol, if defined, indicates to the C program that it should
817 * include <sfio.h>.
818 */
819#$i_sfio I_SFIO /**/
820
2304df62
AD
821/* I_STDDEF:
822 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c
LW
823 * be included.
824 */
2304df62 825#$i_stddef I_STDDEF /**/
a687059c 826
a0d0e21e
LW
827/* I_STDLIB:
828 * This symbol, if defined, indicates that <stdlib.h> exists and should
829 * be included.
830 */
831#$i_stdlib I_STDLIB /**/
832
833/* I_STRING:
85e6fe83
LW
834 * This symbol, if defined, indicates to the C program that it should
835 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
836 */
837#$i_string I_STRING /**/
838
2304df62
AD
839/* I_SYS_DIR:
840 * This symbol, if defined, indicates to the C program that it should
841 * include <sys/dir.h>.
d8f2e4cc 842 */
2304df62
AD
843#$i_sysdir I_SYS_DIR /**/
844
845/* I_SYS_FILE:
846 * This symbol, if defined, indicates to the C program that it should
847 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 848 */
2304df62
AD
849#$i_sysfile I_SYS_FILE /**/
850
851/* I_SYS_IOCTL:
852 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
853 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 854 */
2304df62
AD
855#$i_sysioctl I_SYS_IOCTL /**/
856
857/* I_SYS_NDIR:
858 * This symbol, if defined, indicates to the C program that it should
859 * include <sys/ndir.h>.
860 */
861#$i_sysndir I_SYS_NDIR /**/
862
a0d0e21e
LW
863/* I_SYS_PARAM:
864 * This symbol, if defined, indicates to the C program that it should
865 * include <sys/param.h>.
866 */
867#$i_sysparam I_SYS_PARAM /**/
868
e876cf0b
PP
869/* I_SYS_RESOURCE:
870 * This symbol, if defined, indicates to the C program that it should
871 * include <sys/resource.h>.
872 */
873#$i_sysresrc I_SYS_RESOURCE /**/
874
2304df62
AD
875/* I_SYS_SELECT:
876 * This symbol, if defined, indicates to the C program that it should
877 * include <sys/select.h> in order to get definition of struct timeval.
878 */
879#$i_sysselct I_SYS_SELECT /**/
880
dfe9444c
AD
881/* I_SYS_STAT:
882 * This symbol, if defined, indicates to the C program that it should
883 * include <sys/stat.h>.
884 */
885#$i_sysstat I_SYS_STAT /**/
886
a0d0e21e
LW
887/* I_SYS_TIMES:
888 * This symbol, if defined, indicates to the C program that it should
889 * include <sys/times.h>.
890 */
891#$i_systimes I_SYS_TIMES /**/
892
bd89102f
AD
893/* I_SYS_TYPES:
894 * This symbol, if defined, indicates to the C program that it should
895 * include <sys/types.h>.
896 */
897#$i_systypes I_SYS_TYPES /**/
898
25f94b33
AD
899/* I_SYS_UN:
900 * This symbol, if defined, indicates to the C program that it should
901 * include <sys/un.h> to get UNIX domain socket definitions.
902 */
903#$i_sysun I_SYS_UN /**/
904
e876cf0b
PP
905/* I_SYS_WAIT:
906 * This symbol, if defined, indicates to the C program that it should
907 * include <sys/wait.h>.
908 */
909#$i_syswait I_SYS_WAIT /**/
910
a0d0e21e
LW
911/* I_TERMIO:
912 * This symbol, if defined, indicates that the program should include
913 * <termio.h> rather than <sgtty.h>. There are also differences in
914 * the ioctl() calls that depend on the value of this symbol.
915 */
916/* I_TERMIOS:
917 * This symbol, if defined, indicates that the program should include
918 * the POSIX termios.h rather than sgtty.h or termio.h.
919 * There are also differences in the ioctl() calls that depend on the
920 * value of this symbol.
921 */
922/* I_SGTTY:
923 * This symbol, if defined, indicates that the program should include
924 * <sgtty.h> rather than <termio.h>. There are also differences in
925 * the ioctl() calls that depend on the value of this symbol.
926 */
927#$i_termio I_TERMIO /**/
928#$i_termios I_TERMIOS /**/
929#$i_sgtty I_SGTTY /**/
930
85e6fe83
LW
931/* I_UNISTD:
932 * This symbol, if defined, indicates to the C program that it should
933 * include <unistd.h>.
934 */
935#$i_unistd I_UNISTD /**/
d8f2e4cc 936
2304df62 937/* I_UTIME:
d8f2e4cc 938 * This symbol, if defined, indicates to the C program that it should
2304df62 939 * include <utime.h>.
d8f2e4cc 940 */
2304df62 941#$i_utime I_UTIME /**/
d8f2e4cc 942
dfe9444c
AD
943/* I_VALUES:
944 * This symbol, if defined, indicates to the C program that it should
945 * include <values.h> to get definition of symbols like MINFLOAT or
946 * MAXLONG, i.e. machine dependant limitations. Probably, you
947 * should use <limits.h> instead, if it is available.
948 */
949#$i_values I_VALUES /**/
950
e876cf0b
PP
951/* I_STDARG:
952 * This symbol, if defined, indicates that <stdarg.h> exists and should
953 * be included.
954 */
955/* I_VARARGS:
956 * This symbol, if defined, indicates to the C program that it should
957 * include <varargs.h>.
958 */
959#$i_stdarg I_STDARG /**/
960#$i_varargs I_VARARGS /**/
961
a0d0e21e
LW
962/* I_VFORK:
963 * This symbol, if defined, indicates to the C program that it should
964 * include vfork.h.
965 */
966#$i_vfork I_VFORK /**/
a687059c 967
a0d0e21e
LW
968/* CAN_PROTOTYPE:
969 * If defined, this macro indicates that the C compiler can handle
970 * function prototypes.
85e6fe83 971 */
a0d0e21e
LW
972/* _:
973 * This macro is used to declare function parameters for folks who want
974 * to make declarations with prototypes using a different style than
975 * the above macros. Use double parentheses. For example:
976 *
977 * int main _((int argc, char *argv[]));
978 */
979#$prototype CAN_PROTOTYPE /**/
980#ifdef CAN_PROTOTYPE
981#define _(args) args
982#else
983#define _(args) ()
984#endif
85e6fe83 985
dfe9444c
AD
986/* SH_PATH:
987 * This symbol contains the full pathname to the shell used on this
988 * on this system to execute Bourne shell scripts. Usually, this will be
989 * /bin/sh, though it's possible that some systems will have /bin/ksh,
990 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
991 * D:/bin/sh.exe.
a0d0e21e 992 */
dfe9444c 993#define SH_PATH "$sh" /**/
a0d0e21e 994
2304df62
AD
995/* STDCHAR:
996 * This symbol is defined to be the type of char used in stdio.h.
997 * It has the values "unsigned char" or "char".
fe14fcc3 998 */
2304df62
AD
999#define STDCHAR $stdchar /**/
1000
5ff3f7a4
GS
1001/* HAS_ACCESSX:
1002 * This symbol, if defined, indicates that the accessx routine is
1003 * available to do extended access checks.
1004 */
1005#$d_accessx HAS_ACCESSX /**/
1006
1007/* HAS_EACCESS:
1008 * This symbol, if defined, indicates that the eaccess routine is
1009 * available to do extended access checks.
1010 */
1011#$d_eaccess HAS_EACCESS /**/
1012
1013/* I_SYS_ACCESS:
1014 * This symbol, if defined, indicates to the C program that it should
85ab1d1d 1015 * include <sys/access.h>.
5ff3f7a4
GS
1016 */
1017#$i_sysaccess I_SYS_ACCESS /**/
1018
1019/* I_SYS_SECURITY:
1020 * This symbol, if defined, indicates to the C program that it should
1021 * include <sys/security.h>.
1022 */
1023#$i_syssecrt I_SYS_SECURITY /**/
1024
a12fb911
HM
1025/* CROSSCOMPILE:
1026 * This symbol, if defined, signifies that we our
1027 * build process is a cross-compilation.
1028 */
1029#$crosscompile CROSSCOMPILE /**/
1030
8f1f23e8
W
1031/* INTSIZE:
1032 * This symbol contains the value of sizeof(int) so that the C
1033 * preprocessor can make decisions based on it.
1034 */
1035/* LONGSIZE:
1036 * This symbol contains the value of sizeof(long) so that the C
1037 * preprocessor can make decisions based on it.
1038 */
1039/* SHORTSIZE:
1040 * This symbol contains the value of sizeof(short) so that the C
1041 * preprocessor can make decisions based on it.
1042 */
1043#define INTSIZE $intsize /**/
1044#define LONGSIZE $longsize /**/
1045#define SHORTSIZE $shortsize /**/
1046
a12fb911
HM
1047/* MULTIARCH:
1048 * This symbol, if defined, signifies that the build
1049 * process will produce some binary files that are going to be
1050 * used in a cross-platform environment. This is the case for
1051 * example with the NeXT "fat" binaries that contain executables
1052 * for several CPUs.
1053 */
1054#$multiarch MULTIARCH /**/
1055
dfe9444c 1056/* MEM_ALIGNBYTES:
68c15b6f
HM
1057 * This symbol contains the number of bytes required to align a
1058 * double. Usual values are 2, 4 and 8. The default is eight,
1059 * 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
8e07c86e 1067/* BYTEORDER:
e876cf0b 1068 * This symbol holds the hexadecimal constant defined in byteorder,
8e07c86e 1069 * i.e. 0x1234 or 0x4321, etc...
68c15b6f
HM
1070 * If the compiler supports cross-compiling or multiple-architecture
1071 * binaries (eg. on NeXT systems), use compiler-defined macros to
1072 * determine the byte order.
7bac28a0 1073 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
e876cf0b
PP
1074 * Binaries (MAB) on either big endian or little endian machines.
1075 * The endian-ness is available at compile-time. This only matters
1076 * for perl, where the config.h can be generated and installed on
1077 * one system, and used by a different architecture to build an
1078 * extension. Older versions of NeXT that might not have
1079 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1080 * so the default case (for NeXT) is big endian to catch them.
1081 * This might matter for NeXT 3.0.
8e07c86e 1082 */
88d5303d
JH
1083#if defined(CROSSCOMPILE) || defined(MULTIARCH)
1084# ifdef __LITTLE_ENDIAN__
1085# if LONGSIZE == 4
1086# define BYTEORDER 0x1234
1087# else
1088# if LONGSIZE == 8
1089# define BYTEORDER 0x12345678
1090# endif
1091# endif
1092# else
1093# ifdef __BIG_ENDIAN__
1094# if LONGSIZE == 4
1095# define BYTEORDER 0x4321
1096# else
1097# if LONGSIZE == 8
1098# define BYTEORDER 0x87654321
1099# endif
1100# endif
1101# endif
1102# endif
1103# if !defined(BYTEORDER) && (defined(NeXT) || defined(__NeXT__))
1104# define BYTEORDER 0x4321
1105# endif
1106#else
8e07c86e 1107#define BYTEORDER 0x$byteorder /* large digits for MSB */
88d5303d 1108#endif /* NeXT */
8e07c86e 1109
dfe9444c
AD
1110/* CASTI32:
1111 * This symbol is defined if the C compiler can cast negative
1112 * or large floating point numbers to 32-bit ints.
1aef975c 1113 */
dfe9444c 1114#$d_casti32 CASTI32 /**/
85e6fe83 1115
dfe9444c
AD
1116/* CASTNEGFLOAT:
1117 * This symbol is defined if the C compiler can cast negative
1118 * numbers to unsigned longs, ints and shorts.
85e6fe83 1119 */
dfe9444c
AD
1120/* CASTFLAGS:
1121 * This symbol contains flags that say what difficulties the compiler
1122 * has casting odd floating values to unsigned long:
1123 * 0 = ok
1124 * 1 = couldn't cast < 0
1125 * 2 = couldn't cast >= 0x80000000
1126 * 4 = couldn't cast in argument expression list
bccf77a5 1127 */
dfe9444c
AD
1128#$d_castneg CASTNEGFLOAT /**/
1129#define CASTFLAGS $castflags /**/
1130
1131/* VOID_CLOSEDIR:
1132 * This symbol, if defined, indicates that the closedir() routine
1133 * does not return a value.
bccf77a5 1134 */
dfe9444c 1135#$d_void_closedir VOID_CLOSEDIR /**/
bccf77a5 1136
921b2963
JH
1137/* HAS_FD_SET:
1138 * This symbol, when defined, indicates presence of the fd_set typedef
1139 * in <sys/types.h>
1140 */
1141#$d_fd_set HAS_FD_SET /**/
1142
8e07c86e
AD
1143/* Gconvert:
1144 * This preprocessor macro is defined to convert a floating point
1145 * number to a string without a trailing decimal point. This
1146 * emulates the behavior of sprintf("%g"), but is sometimes much more
1147 * efficient. If gconvert() is not available, but gcvt() drops the
1148 * trailing decimal point, then gcvt() is used. If all else fails,
1149 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1150 * macro are: value, number of digits, whether trailing zeros should
1151 * be retained, and the output buffer.
1152 * Possible values are:
1153 * d_Gconvert='gconvert((x),(n),(t),(b))'
1154 * d_Gconvert='gcvt((x),(n),(b))'
1155 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1156 * The last two assume trailing zeros should not be kept.
1157 */
1158#define Gconvert(x,n,t,b) $d_Gconvert
1159
dfe9444c 1160/* HAS_GNULIBC:
c1b76f5d 1161 * This symbol, if defined, indicates to the C program that
dfe9444c 1162 * the GNU C library is being used.
c1b76f5d 1163 */
dfe9444c
AD
1164#$d_gnulibc HAS_GNULIBC /**/
1165/* HAS_ISASCII:
1166 * This manifest constant lets the C program know that isascii
1167 * is available.
c1b76f5d 1168 */
dfe9444c 1169#$d_isascii HAS_ISASCII /**/
c1b76f5d 1170
dd64f1c3
AD
1171/* HAS_LCHOWN:
1172 * This symbol, if defined, indicates that the lchown routine is
1173 * available to operate on a symbolic link (instead of following the
1174 * link).
1175 */
1176#$d_lchown HAS_LCHOWN /**/
1177
dfe9444c
AD
1178/* HAS_OPEN3:
1179 * This manifest constant lets the C program know that the three
1180 * argument form of open(2) is available.
774d564b 1181 */
dfe9444c 1182#$d_open3 HAS_OPEN3 /**/
774d564b 1183
dfe9444c
AD
1184/* HAS_SAFE_BCOPY:
1185 * This symbol, if defined, indicates that the bcopy routine is available
1186 * to copy potentially overlapping memory blocks. Otherwise you should
1187 * probably use memmove() or memcpy(). If neither is defined, roll your
1188 * own version.
c1b76f5d 1189 */
dfe9444c 1190#$d_safebcpy HAS_SAFE_BCOPY /**/
c1b76f5d 1191
dfe9444c
AD
1192/* HAS_SAFE_MEMCPY:
1193 * This symbol, if defined, indicates that the memcpy routine is available
1194 * to copy potentially overlapping memory blocks. Otherwise you should
1195 * probably use memmove() or memcpy(). If neither is defined, roll your
1196 * own version.
c1b76f5d 1197 */
dfe9444c 1198#$d_safemcpy HAS_SAFE_MEMCPY /**/
c1b76f5d 1199
dfe9444c
AD
1200/* HAS_SANE_MEMCMP:
1201 * This symbol, if defined, indicates that the memcmp routine is available
1202 * and can be used to compare relative magnitudes of chars with their high
1203 * bits set. If it is not defined, roll your own version.
760ac839 1204 */
dfe9444c 1205#$d_sanemcmp HAS_SANE_MEMCMP /**/
760ac839 1206
dfe9444c
AD
1207/* HAS_SIGACTION:
1208 * This symbol, if defined, indicates that Vr4's sigaction() routine
1209 * is available.
52e1cb5e 1210 */
dfe9444c 1211#$d_sigaction HAS_SIGACTION /**/
52e1cb5e 1212
921b2963
JH
1213/* HAS_SIGSETJMP:
1214 * This variable indicates to the C program that the sigsetjmp()
1215 * routine is available to save the calling process's registers
1216 * and stack environment for later use by siglongjmp(), and
1217 * to optionally save the process's signal mask. See
1218 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
1219 */
a5f75d66 1220/* Sigjmp_buf:
760ac839 1221 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
a5f75d66
AD
1222 */
1223/* Sigsetjmp:
760ac839
LW
1224 * This macro is used in the same way as sigsetjmp(), but will invoke
1225 * traditional setjmp() if sigsetjmp isn't available.
1226 * See HAS_SIGSETJMP.
a5f75d66
AD
1227 */
1228/* Siglongjmp:
760ac839
LW
1229 * This macro is used in the same way as siglongjmp(), but will invoke
1230 * traditional longjmp() if siglongjmp isn't available.
1231 * See HAS_SIGSETJMP.
a5f75d66
AD
1232 */
1233#$d_sigsetjmp HAS_SIGSETJMP /**/
1234#ifdef HAS_SIGSETJMP
1235#define Sigjmp_buf sigjmp_buf
760ac839
LW
1236#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1237#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
a5f75d66
AD
1238#else
1239#define Sigjmp_buf jmp_buf
760ac839
LW
1240#define Sigsetjmp(buf,save_mask) setjmp((buf))
1241#define Siglongjmp(buf,retval) longjmp((buf),(retval))
a5f75d66
AD
1242#endif
1243
dfe9444c
AD
1244/* USE_STDIO_PTR:
1245 * This symbol is defined if the _ptr and _cnt fields (or similar)
1246 * of the stdio FILE structure can be used to access the stdio buffer
1247 * for a file handle. If this is defined, then the FILE_ptr(fp)
1248 * and FILE_cnt(fp) macros will also be defined and should be used
1249 * to access these fields.
a687059c 1250 */
dfe9444c
AD
1251/* FILE_ptr:
1252 * This macro is used to access the _ptr field (or equivalent) of the
1253 * FILE structure pointed to by its argument. This macro will always be
1254 * defined if USE_STDIO_PTR is defined.
1255 */
1256/* STDIO_PTR_LVALUE:
1257 * This symbol is defined if the FILE_ptr macro can be used as an
1258 * lvalue.
1259 */
1260/* FILE_cnt:
1261 * This macro is used to access the _cnt field (or equivalent) of the
1262 * FILE structure pointed to by its argument. This macro will always be
1263 * defined if USE_STDIO_PTR is defined.
1264 */
1265/* STDIO_CNT_LVALUE:
1266 * This symbol is defined if the FILE_cnt macro can be used as an
1267 * lvalue.
1268 */
1269#$d_stdstdio USE_STDIO_PTR /**/
1270#ifdef USE_STDIO_PTR
1271#define FILE_ptr(fp) $stdio_ptr
1272#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1273#define FILE_cnt(fp) $stdio_cnt
1274#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1275#endif
a687059c 1276
dfe9444c
AD
1277/* USE_STDIO_BASE:
1278 * This symbol is defined if the _base field (or similar) of the
1279 * stdio FILE structure can be used to access the stdio buffer for
1280 * a file handle. If this is defined, then the FILE_base(fp) macro
1281 * will also be defined and should be used to access this field.
1282 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1283 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1284 * will never be defined unless USE_STDIO_PTR is.
8e07c86e 1285 */
dfe9444c
AD
1286/* FILE_base:
1287 * This macro is used to access the _base field (or equivalent) of the
1288 * FILE structure pointed to by its argument. This macro will always be
1289 * defined if USE_STDIO_BASE is defined.
8e07c86e 1290 */
dfe9444c
AD
1291/* FILE_bufsiz:
1292 * This macro is used to determine the number of bytes in the I/O
1293 * buffer pointed to by _base field (or equivalent) of the FILE
1294 * structure pointed to its argument. This macro will always be defined
1295 * if USE_STDIO_BASE is defined.
1296 */
1297#$d_stdiobase USE_STDIO_BASE /**/
1298#ifdef USE_STDIO_BASE
1299#define FILE_base(fp) $stdio_base
1300#define FILE_bufsiz(fp) $stdio_bufsiz
1301#endif
8e07c86e 1302
dfe9444c
AD
1303/* HAS_VPRINTF:
1304 * This symbol, if defined, indicates that the vprintf routine is available
1305 * to printf with a pointer to an argument list. If unavailable, you
1306 * may need to write your own, probably in terms of _doprnt().
4633a7c4 1307 */
dfe9444c
AD
1308/* USE_CHAR_VSPRINTF:
1309 * This symbol is defined if this system has vsprintf() returning type
1310 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1311 * is up to the package author to declare vsprintf correctly based on the
1312 * symbol.
1313 */
1314#$d_vprintf HAS_VPRINTF /**/
1315#$d_charvspr USE_CHAR_VSPRINTF /**/
4633a7c4 1316
693762b4
AD
1317/* DOUBLESIZE:
1318 * This symbol contains the size of a double, so that the C preprocessor
1319 * can make decisions based on it.
1320 */
1321#define DOUBLESIZE $doublesize /**/
1322
dfe9444c 1323/* I_TIME:
760ac839 1324 * This symbol, if defined, indicates to the C program that it should
dfe9444c 1325 * include <time.h>.
760ac839 1326 */
dfe9444c 1327/* I_SYS_TIME:
1aef975c 1328 * This symbol, if defined, indicates to the C program that it should
dfe9444c 1329 * include <sys/time.h>.
1aef975c 1330 */
dfe9444c 1331/* I_SYS_TIME_KERNEL:
bccf77a5 1332 * This symbol, if defined, indicates to the C program that it should
dfe9444c 1333 * include <sys/time.h> with KERNEL defined.
bccf77a5 1334 */
dfe9444c
AD
1335#$i_time I_TIME /**/
1336#$i_systime I_SYS_TIME /**/
1337#$i_systimek I_SYS_TIME_KERNEL /**/
8e07c86e 1338
dfe9444c
AD
1339/* VAL_O_NONBLOCK:
1340 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1341 * non-blocking I/O for the file descriptor. Note that there is no way
1342 * back, i.e. you cannot turn it blocking again this way. If you wish to
1343 * alternatively switch between blocking and non-blocking, use the
1344 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
85e6fe83 1345 */
dfe9444c
AD
1346/* VAL_EAGAIN:
1347 * This symbol holds the errno error code set by read() when no data was
1348 * present on the non-blocking file descriptor.
1349 */
1350/* RD_NODATA:
1351 * This symbol holds the return code from read() when no data is present
1352 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1353 * not defined, then you can't distinguish between no data and EOF by
1354 * issuing a read(). You'll have to find another way to tell for sure!
1355 */
1356/* EOF_NONBLOCK:
1357 * This symbol, if defined, indicates to the C program that a read() on
1358 * a non-blocking file descriptor will return 0 on EOF, and not the value
1359 * held in RD_NODATA (-1 usually, in that case!).
1360 */
1361#define VAL_O_NONBLOCK $o_nonblock
1362#define VAL_EAGAIN $eagain
1363#define RD_NODATA $rd_nodata
1364#$d_eofnblk EOF_NONBLOCK
85e6fe83 1365
693762b4
AD
1366/* PTRSIZE:
1367 * This symbol contains the size of a pointer, so that the C preprocessor
1368 * can make decisions based on it. It will be sizeof(void *) if
1369 * the compiler supports (void *); otherwise it will be
1370 * sizeof(char *).
1371 */
1372#define PTRSIZE $ptrsize /**/
1373
85ab1d1d
JH
1374/* Drand01:
1375 * This macro is to be used to generate uniformly distributed
1376 * random numbers over the range [0., 1.[. You may have to supply
1377 * an 'extern double drand48();' in your program since SunOS 4.1.3
1378 * doesn't provide you with anything relevant in it's headers.
1379 * See HAS_DRAND48_PROTO.
1380 */
1381/* Rand_seed_t:
1382 * This symbol defines the type of the argument of the
1383 * random seed function.
1384 */
1385/* seedDrand01:
1386 * This symbol defines the macro to be used in seeding the
1387 * random number generator (see Drand01).
1388 */
dfe9444c 1389/* RANDBITS:
85ab1d1d
JH
1390 * This symbol indicates how many bits are produced by the
1391 * function used to generate normalized random numbers.
1392 * Values include 15, 16, 31, and 48.
dfe9444c 1393 */
85ab1d1d
JH
1394#define Drand01() $drand01 /**/
1395#define Rand_seed_t $randseedtype /**/
1396#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
1397#define RANDBITS $randbits /**/
dfe9444c
AD
1398
1399/* SSize_t:
1400 * This symbol holds the type used by functions that return
1401 * a count of bytes or an error condition. It must be a signed type.
1402 * It is usually ssize_t, but may be long or int, etc.
1403 * It may be necessary to include <sys/types.h> or <unistd.h>
1404 * to get any typedef'ed information.
1405 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1406 */
1407#define SSize_t $ssizetype /* signed count of bytes */
1408
5ff3f7a4
GS
1409/* EBCDIC:
1410 * This symbol, if defined, indicates that this system uses
1411 * EBCDIC encoding.
1412 */
1413#$ebcdic EBCDIC /**/
1414
dd4e71fd
JH
1415/* ARCHLIB:
1416 * This variable, if defined, holds the name of the directory in
1417 * which the user wants to put architecture-dependent public
1418 * library files for $package. It is most often a local directory
1419 * such as /usr/local/lib. Programs using this variable must be
1420 * prepared to deal with filename expansion. If ARCHLIB is the
1421 * same as PRIVLIB, it is not defined, since presumably the
1422 * program already searches PRIVLIB.
1423 */
1424/* ARCHLIB_EXP:
1425 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1426 * in programs that are not prepared to deal with ~ expansion at run-time.
1427 */
1428#$d_archlib ARCHLIB "$archlib" /**/
1429#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1430
1431/* BIN:
1432 * This symbol holds the path of the bin directory where the package will
1433 * be installed. Program must be prepared to deal with ~name substitution.
1434 */
1435/* BIN_EXP:
1436 * This symbol is the filename expanded version of the BIN symbol, for
1437 * programs that do not want to deal with that at run-time.
1438 */
1439#define BIN "$bin" /**/
1440#define BIN_EXP "$binexp" /**/
1441
1442/* INSTALL_USR_BIN_PERL:
1443 * This symbol, if defined, indicates that Perl is to be installed
1444 * also as /usr/bin/perl.
1445 */
1446#$installusrbinperl INSTALL_USR_BIN_PERL /**/
1447
1448/* PRIVLIB:
1449 * This symbol contains the name of the private library for this package.
1450 * The library is private in the sense that it needn't be in anyone's
1451 * execution path, but it should be accessible by the world. The program
1452 * should be prepared to do ~ expansion.
1453 */
1454/* PRIVLIB_EXP:
1455 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1456 * in programs that are not prepared to deal with ~ expansion at run-time.
1457 */
1458#define PRIVLIB "$privlib" /**/
1459#define PRIVLIB_EXP "$privlibexp" /**/
1460
1461/* SITEARCH:
1462 * This symbol contains the name of the private library for this package.
1463 * The library is private in the sense that it needn't be in anyone's
1464 * execution path, but it should be accessible by the world. The program
1465 * should be prepared to do ~ expansion.
1466 * The standard distribution will put nothing in this directory.
f868067f
JH
1467 * After perl has been installed, users may install their own local
1468 * architecture-dependent modules in this directory with
1469 * MakeMaker Makefile.PL
1470 * or equivalent. See INSTALL for details.
dd4e71fd
JH
1471 */
1472/* SITEARCH_EXP:
1473 * This symbol contains the ~name expanded version of SITEARCH, to be used
1474 * in programs that are not prepared to deal with ~ expansion at run-time.
1475 */
1476#define SITEARCH "$sitearch" /**/
1477#define SITEARCH_EXP "$sitearchexp" /**/
1478
1479/* SITELIB:
1480 * This symbol contains the name of the private library for this package.
1481 * The library is private in the sense that it needn't be in anyone's
1482 * execution path, but it should be accessible by the world. The program
1483 * should be prepared to do ~ expansion.
1484 * The standard distribution will put nothing in this directory.
f868067f
JH
1485 * After perl has been installed, users may install their own local
1486 * architecture-independent modules in this directory with
1487 * MakeMaker Makefile.PL
1488 * or equivalent. See INSTALL for details.
dd4e71fd
JH
1489 */
1490/* SITELIB_EXP:
1491 * This symbol contains the ~name expanded version of SITELIB, to be used
1492 * in programs that are not prepared to deal with ~ expansion at run-time.
1493 */
1494#define SITELIB "$sitelib" /**/
1495#define SITELIB_EXP "$sitelibexp" /**/
1496
a3635516
JH
1497/* PERL_VENDORLIB_EXP:
1498 * This symbol contains the ~name expanded version of VENDORLIB, to be used
1499 * in programs that are not prepared to deal with ~ expansion at run-time.
1500 */
1501#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
1502
dfe9444c
AD
1503/* OSNAME:
1504 * This symbol contains the name of the operating system, as determined
1505 * by Configure. You shouldn't rely on it too much; the specific
1506 * feature tests from Configure are generally more reliable.
1507 */
1508#define OSNAME "$osname" /**/
1509
dfe9444c
AD
1510/* CAT2:
1511 * This macro catenates 2 tokens together.
1512 */
1513/* STRINGIFY:
1514 * This macro surrounds its token with double quotes.
1515 */
1516#if $cpp_stuff == 1
9cc6feab
JH
1517#define CAT2(a,b)a/**/b
1518#define STRINGIFY(a)"a"
dfe9444c 1519 /* If you can get stringification with catify, tell me how! */
9cc6feab
JH
1520#endif
1521#if $cpp_stuff == 42
1522#define CAT2(a,b)a ## b
1523#define StGiFy(a)# a
1524#define STRINGIFY(a)StGiFy(a)
1525#endif
1526#if $cpp_stuff != 1 && $cpp_stuff != 42
1527#include "Bletch: How does this C preprocessor catenate tokens?"
dfe9444c
AD
1528#endif
1529
1cfa4ec7
GS
1530/* CPPSTDIN:
1531 * This symbol contains the first part of the string which will invoke
1532 * the C preprocessor on the standard input and produce to standard
1533 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1534 * call a wrapper. See CPPRUN.
1535 */
1536/* CPPMINUS:
1537 * This symbol contains the second part of the string which will invoke
1538 * the C preprocessor on the standard input and produce to standard
1539 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1540 * to specify standard input, otherwise the value is "".
1541 */
921b2963
JH
1542/* CPPRUN:
1543 * This symbol contains the string which will invoke a C preprocessor on
1544 * the standard input and produce to standard output. It needs to end
1545 * with CPPLAST, after all other preprocessor flags have been specified.
1546 * The main difference with CPPSTDIN is that this program will never be a
1547 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1548 * available directly to the user. Note that it may well be different from
1549 * the preprocessor used to compile the C program.
1550 */
48159a0c
JH
1551/* CPPLAST:
1552 * This symbol is intended to be used along with CPPRUN in the same manner
1553 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
1554 */
1cfa4ec7
GS
1555#define CPPSTDIN "$cppstdin"
1556#define CPPMINUS "$cppminus"
921b2963 1557#define CPPRUN "$cpprun"
48159a0c 1558#define CPPLAST "$cpplast"
1cfa4ec7 1559
5ff3f7a4
GS
1560/* HAS_ACCESS:
1561 * This manifest constant lets the C program know that the access()
1562 * system call is available to check for accessibility using real UID/GID.
1563 * (always present on UNIX.)
1564 */
1565#$d_access HAS_ACCESS /**/
1566
921b2963
JH
1567/* HAS_CSH:
1568 * This symbol, if defined, indicates that the C-shell exists.
1569 */
dfe9444c 1570/* CSH:
e5c9fcd0 1571 * This symbol, if defined, contains the full pathname of csh.
dfe9444c 1572 */
e5c9fcd0
AD
1573#$d_csh HAS_CSH /**/
1574#ifdef HAS_CSH
1575#define CSH "$full_csh" /**/
1576#endif
1577
5ff3f7a4
GS
1578/* HAS_ENDGRENT:
1579 * This symbol, if defined, indicates that the getgrent routine is
1580 * available for finalizing sequential access of the group database.
1581 */
1582#$d_endgrent HAS_ENDGRENT /**/
1583
e5c9fcd0
AD
1584/* HAS_ENDHOSTENT:
1585 * This symbol, if defined, indicates that the endhostent() routine is
1586 * available to close whatever was being used for host queries.
1587 */
1588#$d_endhent HAS_ENDHOSTENT /**/
1589
1590/* HAS_ENDNETENT:
1591 * This symbol, if defined, indicates that the endnetent() routine is
1592 * available to close whatever was being used for network queries.
1593 */
1594#$d_endnent HAS_ENDNETENT /**/
1595
1596/* HAS_ENDPROTOENT:
1597 * This symbol, if defined, indicates that the endprotoent() routine is
1598 * available to close whatever was being used for protocol queries.
1599 */
1600#$d_endpent HAS_ENDPROTOENT /**/
1601
5ff3f7a4
GS
1602/* HAS_ENDPWENT:
1603 * This symbol, if defined, indicates that the getgrent routine is
1604 * available for finalizing sequential access of the passwd database.
1605 */
1606#$d_endpwent HAS_ENDPWENT /**/
1607
e5c9fcd0
AD
1608/* HAS_ENDSERVENT:
1609 * This symbol, if defined, indicates that the endservent() routine is
1610 * available to close whatever was being used for service queries.
1611 */
1612#$d_endsent HAS_ENDSERVENT /**/
dfe9444c 1613
5ff3f7a4
GS
1614/* HAS_GETGRENT:
1615 * This symbol, if defined, indicates that the getgrent routine is
1616 * available for sequential access of the group database.
1617 */
1618#$d_getgrent HAS_GETGRENT /**/
1619
693762b4
AD
1620/* HAS_GETHOSTBYADDR:
1621 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1622 * available to look up hosts by their IP addresses.
1623 */
1624#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1625
1626/* HAS_GETHOSTBYNAME:
1627 * This symbol, if defined, indicates that the gethostbyname() routine is
1628 * available to look up host names in some data base or other.
1629 */
1630#$d_gethbyname HAS_GETHOSTBYNAME /**/
1631
1632/* HAS_GETHOSTENT:
1633 * This symbol, if defined, indicates that the gethostent() routine is
1634 * available to look up host names in some data base or another.
1635 */
1636#$d_gethent HAS_GETHOSTENT /**/
1637
a12fb911
HM
1638/* HAS_GETHOSTNAME:
1639 * This symbol, if defined, indicates that the C program may use the
1640 * gethostname() routine to derive the host name. See also HAS_UNAME
1641 * and PHOSTNAME.
1642 */
1643/* HAS_UNAME:
1644 * This symbol, if defined, indicates that the C program may use the
1645 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1646 * and PHOSTNAME.
1647 */
1648/* PHOSTNAME:
c4747d3e
JH
1649 * This symbol, if defined, indicates the command to feed to the
1650 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1651 * and HAS_UNAME. Note that the command uses a fully qualified path,
1652 * so that it is safe even if used by a process with super-user
1653 * privileges.
a12fb911 1654 */
48159a0c
JH
1655/* HAS_PHOSTNAME:
1656 * This symbol, if defined, indicates that the C program may use the
1657 * contents of PHOSTNAME as a command to feed to the popen() routine
1658 * to derive the host name.
1659 */
a12fb911
HM
1660#$d_gethname HAS_GETHOSTNAME /**/
1661#$d_uname HAS_UNAME /**/
c4747d3e
JH
1662#$d_phostname HAS_PHOSTNAME
1663#ifdef HAS_PHOSTNAME
1664#define PHOSTNAME "$aphostname" /* How to get the host name */
a12fb911
HM
1665#endif
1666
693762b4
AD
1667/* HAS_GETNETBYADDR:
1668 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1669 * available to look up networks by their IP addresses.
1670 */
1671#$d_getnbyaddr HAS_GETNETBYADDR /**/
1672
1673/* HAS_GETNETBYNAME:
1674 * This symbol, if defined, indicates that the getnetbyname() routine is
1675 * available to look up networks by their names.
1676 */
1677#$d_getnbyname HAS_GETNETBYNAME /**/
1678
e5c9fcd0
AD
1679/* HAS_GETNETENT:
1680 * This symbol, if defined, indicates that the getnetent() routine is
1681 * available to look up network names in some data base or another.
1682 */
1683#$d_getnent HAS_GETNETENT /**/
1684
1685/* HAS_GETPROTOENT:
1686 * This symbol, if defined, indicates that the getprotoent() routine is
1687 * available to look up protocols in some data base or another.
1688 */
1689#$d_getpent HAS_GETPROTOENT /**/
1690
693762b4
AD
1691/* HAS_GETPROTOBYNAME:
1692 * This symbol, if defined, indicates that the getprotobyname()
1693 * routine is available to look up protocols by their name.
1694 */
1695/* HAS_GETPROTOBYNUMBER:
1696 * This symbol, if defined, indicates that the getprotobynumber()
1697 * routine is available to look up protocols by their number.
1698 */
1699#$d_getpbyname HAS_GETPROTOBYNAME /**/
1700#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1701
5ff3f7a4
GS
1702/* HAS_GETPWENT:
1703 * This symbol, if defined, indicates that the getpwent routine is
1704 * available for sequential access of the passwd database.
1705 * If this is not available, the older getpw() function may be available.
1706 */
1707#$d_getpwent HAS_GETPWENT /**/
1708
e5c9fcd0
AD
1709/* HAS_GETSERVENT:
1710 * This symbol, if defined, indicates that the getservent() routine is
1711 * available to look up network services in some data base or another.
1712 */
1713#$d_getsent HAS_GETSERVENT /**/
1714
693762b4
AD
1715/* HAS_GETSERVBYNAME:
1716 * This symbol, if defined, indicates that the getservbyname()
1717 * routine is available to look up services by their name.
1718 */
1719/* HAS_GETSERVBYPORT:
1720 * This symbol, if defined, indicates that the getservbyport()
1721 * routine is available to look up services by their port.
1722 */
1723#$d_getsbyname HAS_GETSERVBYNAME /**/
1724#$d_getsbyport HAS_GETSERVBYPORT /**/
1725
5ff3f7a4
GS
1726/* HAS_HTONL:
1727 * This symbol, if defined, indicates that the htonl() routine (and
1728 * friends htons() ntohl() ntohs()) are available to do network
1729 * order byte swapping.
1730 */
1731/* HAS_HTONS:
1732 * This symbol, if defined, indicates that the htons() routine (and
1733 * friends htonl() ntohl() ntohs()) are available to do network
1734 * order byte swapping.
1735 */
1736/* HAS_NTOHL:
1737 * This symbol, if defined, indicates that the ntohl() routine (and
1738 * friends htonl() htons() ntohs()) are available to do network
1739 * order byte swapping.
1740 */
1741/* HAS_NTOHS:
1742 * This symbol, if defined, indicates that the ntohs() routine (and
1743 * friends htonl() htons() ntohl()) are available to do network
1744 * order byte swapping.
1745 */
1746#$d_htonl HAS_HTONL /**/
1747#$d_htonl HAS_HTONS /**/
1748#$d_htonl HAS_NTOHL /**/
1749#$d_htonl HAS_NTOHS /**/
1750
e5c9fcd0
AD
1751/* HAS_LONG_DOUBLE:
1752 * This symbol will be defined if the C compiler supports long
1753 * doubles.
1754 */
1755/* LONG_DOUBLESIZE:
1756 * This symbol contains the size of a long double, so that the
1757 * C preprocessor can make decisions based on it. It is only
1758 * defined if the system supports long doubles.
1759 */
1760#$d_longdbl HAS_LONG_DOUBLE /**/
1761#ifdef HAS_LONG_DOUBLE
1762#define LONG_DOUBLESIZE $longdblsize /**/
1763#endif
1764
dc45a647 1765/* HAS_LONG_LONG:
5ff3f7a4 1766 * This symbol will be defined if the C compiler supports long long.
dc45a647
MB
1767 */
1768/* LONGLONGSIZE:
1769 * This symbol contains the size of a long long, so that the
1770 * C preprocessor can make decisions based on it. It is only
1771 * defined if the system supports long long.
1772 */
1773#$d_longlong HAS_LONG_LONG /**/
1774#ifdef HAS_LONG_LONG
1775#define LONGLONGSIZE $longlongsize /**/
1776#endif
1777
0f27ced1
JH
1778/* HAS_MEMCHR:
1779 * This symbol, if defined, indicates that the memchr routine is available
1780 * to locate characters within a C string.
1781 */
1782#$d_memchr HAS_MEMCHR /**/
1783
5ff3f7a4
GS
1784/* HAS_MSG:
1785 * This symbol, if defined, indicates that the entire msg*(2) library is
1786 * supported (IPC mechanism based on message queues).
1787 */
1788#$d_msg HAS_MSG /**/
1789
1790/* HAS_SEM:
1791 * This symbol, if defined, indicates that the entire sem*(2) library is
1792 * supported.
1793 */
1794#$d_sem HAS_SEM /**/
1795
1796/* HAS_SETGRENT:
1797 * This symbol, if defined, indicates that the setgrent routine is
1798 * available for initializing sequential access of the group database.
1799 */
1800#$d_setgrent HAS_SETGRENT /**/
1801
dfe9444c
AD
1802/* HAS_SETGROUPS:
1803 * This symbol, if defined, indicates that the setgroups() routine is
1804 * available to set the list of process groups. If unavailable, multiple
1805 * groups are probably not supported.
1806 */
1807#$d_setgrps HAS_SETGROUPS /**/
1808
693762b4
AD
1809/* HAS_SETHOSTENT:
1810 * This symbol, if defined, indicates that the sethostent() routine is
1811 * available.
1812 */
1813#$d_sethent HAS_SETHOSTENT /**/
1814
e5c9fcd0
AD
1815/* HAS_SETNETENT:
1816 * This symbol, if defined, indicates that the setnetent() routine is
1817 * available.
1818 */
1819#$d_setnent HAS_SETNETENT /**/
1820
1821/* HAS_SETPROTOENT:
1822 * This symbol, if defined, indicates that the setprotoent() routine is
1823 * available.
1824 */
1825#$d_setpent HAS_SETPROTOENT /**/
1826
5ff3f7a4
GS
1827/* HAS_SETPWENT:
1828 * This symbol, if defined, indicates that the setpwent routine is
1829 * available for initializing sequential access of the passwd database.
1830 */
1831#$d_setpwent HAS_SETPWENT /**/
1832
e5c9fcd0
AD
1833/* HAS_SETSERVENT:
1834 * This symbol, if defined, indicates that the setservent() routine is
1835 * available.
1836 */
1837#$d_setsent HAS_SETSERVENT /**/
1838
1839/* HAS_SETVBUF:
1840 * This symbol, if defined, indicates that the setvbuf routine is
1841 * available to change buffering on an open stdio stream.
1842 * to a line-buffered mode.
1843 */
1844#$d_setvbuf HAS_SETVBUF /**/
1845
5ff3f7a4
GS
1846/* HAS_SHM:
1847 * This symbol, if defined, indicates that the entire shm*(2) library is
1848 * supported.
1849 */
1850#$d_shm HAS_SHM /**/
1851
dc45a647
MB
1852/* HAS_SOCKET:
1853 * This symbol, if defined, indicates that the BSD socket interface is
1854 * supported.
1855 */
1856/* HAS_SOCKETPAIR:
1857 * This symbol, if defined, indicates that the BSD socketpair() call is
1858 * supported.
1859 */
de4597cb
JH
1860/* HAS_MSG_CTRUNC:
1861 * This symbol, if defined, indicates that the MSG_CTRUNC is supported.
1862 * Checking just with #ifdef might not be enough because this symbol
1863 * has been known to be an enum.
1864 */
1865/* HAS_MSG_DONTROUTE:
1866 * This symbol, if defined, indicates that the MSG_DONTROUTE is supported.
1867 * Checking just with #ifdef might not be enough because this symbol
1868 * has been known to be an enum.
1869 */
1870/* HAS_MSG_OOB:
1871 * This symbol, if defined, indicates that the MSG_OOB is supported.
1872 * Checking just with #ifdef might not be enough because this symbol
1873 * has been known to be an enum.
1874 */
1875/* HAS_MSG_PEEK:
1876 * This symbol, if defined, indicates that the MSG_PEEK is supported.
1877 * Checking just with #ifdef might not be enough because this symbol
1878 * has been known to be an enum.
1879 */
1880/* HAS_MSG_PROXY:
1881 * This symbol, if defined, indicates that the MSG_PROXY is supported.
1882 * Checking just with #ifdef might not be enough because this symbol
1883 * has been known to be an enum.
1884 */
1885/* HAS_SCM_RIGHTS:
1886 * This symbol, if defined, indicates that the SCM_RIGHTS is supported.
1887 * Checking just with #ifdef might not be enough because this symbol
1888 * has been known to be an enum.
1889 */
de4597cb
JH
1890#$d_socket HAS_SOCKET /**/
1891#$d_sockpair HAS_SOCKETPAIR /**/
1892#$d_msg_ctrunc HAS_MSG_CTRUNC /**/
1893#$d_msg_dontroute HAS_MSG_DONTROUTE /**/
1894#$d_msg_oob HAS_MSG_OOB /**/
1895#$d_msg_peek HAS_MSG_PEEK /**/
1896#$d_msg_proxy HAS_MSG_PROXY /**/
1897#$d_scm_rights HAS_SCM_RIGHTS /**/
dc45a647 1898
5ff3f7a4
GS
1899/* USE_STAT_BLOCKS:
1900 * This symbol is defined if this system has a stat structure declaring
1901 * st_blksize and st_blocks.
1902 */
d7d93a81 1903#ifndef USE_STAT_BLOCKS
85ab1d1d 1904#$d_statblks USE_STAT_BLOCKS /**/
d7d93a81 1905#endif
5ff3f7a4
GS
1906
1907/* HAS_STRERROR:
1908 * This symbol, if defined, indicates that the strerror routine is
1909 * available to translate error numbers to strings. See the writeup
1910 * of Strerror() in this file before you try to define your own.
1911 */
1912/* HAS_SYS_ERRLIST:
1913 * This symbol, if defined, indicates that the sys_errlist array is
1914 * available to translate error numbers to strings. The extern int
1915 * sys_nerr gives the size of that table.
1916 */
1917/* Strerror:
1918 * This preprocessor symbol is defined as a macro if strerror() is
1919 * not available to translate error numbers to strings but sys_errlist[]
1920 * array is there.
1921 */
1922#$d_strerror HAS_STRERROR /**/
1923#$d_syserrlst HAS_SYS_ERRLIST /**/
1924#define Strerror(e) $d_strerrm
1925
bd89102f
AD
1926/* HAS_UNION_SEMUN:
1927 * This symbol, if defined, indicates that the union semun is
1928 * defined by including <sys/sem.h>. If not, the user code
1929 * probably needs to define it as:
1930 * union semun {
1931 * int val;
1932 * struct semid_ds *buf;
1933 * unsigned short *array;
1934 * }
1935 */
1936/* USE_SEMCTL_SEMUN:
1937 * This symbol, if defined, indicates that union semun is
1938 * used for semctl IPC_STAT.
1939 */
1940/* USE_SEMCTL_SEMID_DS:
1941 * This symbol, if defined, indicates that struct semid_ds * is
1942 * used for semctl IPC_STAT.
1943 */
1944#$d_union_semun HAS_UNION_SEMUN /**/
1945#$d_semctl_semun USE_SEMCTL_SEMUN /**/
1946#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
1947
f10488a3
JH
1948/* HAS_VFORK:
1949 * This symbol, if defined, indicates that vfork() exists.
1950 */
1951#$d_vfork HAS_VFORK /**/
1952
dfe9444c
AD
1953/* Signal_t:
1954 * This symbol's value is either "void" or "int", corresponding to the
1955 * appropriate return type of a signal handler. Thus, you can declare
1956 * a signal handler using "Signal_t (*handler)()", and define the
1957 * handler using "Signal_t handler(sig)".
e876cf0b 1958 */
dfe9444c
AD
1959#define Signal_t $signal_t /* Signal handler's return type */
1960
1961/* Groups_t:
1962 * This symbol holds the type used for the second argument to
1963 * getgroups() and setgropus(). Usually, this is the same as
1964 * gidtype (gid_t) , but sometimes it isn't.
1965 * It can be int, ushort, uid_t, etc...
1966 * It may be necessary to include <sys/types.h> to get any
1967 * typedef'ed information. This is only required if you have
1968 * getgroups() or setgropus()..
4633a7c4 1969 */
dfe9444c
AD
1970#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1971#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
1972#endif
1973
5ff3f7a4
GS
1974/* I_GRP:
1975 * This symbol, if defined, indicates to the C program that it should
1976 * include <grp.h>.
1977 */
1978/* GRPASSWD:
1979 * This symbol, if defined, indicates to the C program that struct group
1980 * in <grp.h> contains gr_passwd.
1981 */
1982#$i_grp I_GRP /**/
1983#$d_grpasswd GRPASSWD /**/
1984
dfe9444c
AD
1985/* I_NETDB:
1986 * This symbol, if defined, indicates that <netdb.h> exists and
1987 * should be included.
1988 */
1989#$i_netdb I_NETDB /**/
4633a7c4 1990
c4f23d77
AD
1991/* I_PWD:
1992 * This symbol, if defined, indicates to the C program that it should
1993 * include <pwd.h>.
1994 */
1995/* PWQUOTA:
1996 * This symbol, if defined, indicates to the C program that struct passwd
1997 * contains pw_quota.
1998 */
1999/* PWAGE:
2000 * This symbol, if defined, indicates to the C program that struct passwd
2001 * contains pw_age.
2002 */
2003/* PWCHANGE:
2004 * This symbol, if defined, indicates to the C program that struct passwd
2005 * contains pw_change.
2006 */
2007/* PWCLASS:
2008 * This symbol, if defined, indicates to the C program that struct passwd
2009 * contains pw_class.
2010 */
2011/* PWEXPIRE:
2012 * This symbol, if defined, indicates to the C program that struct passwd
2013 * contains pw_expire.
2014 */
2015/* PWCOMMENT:
2016 * This symbol, if defined, indicates to the C program that struct passwd
2017 * contains pw_comment.
2018 */
2019/* PWGECOS:
2020 * This symbol, if defined, indicates to the C program that struct passwd
2021 * contains pw_gecos.
2022 */
28e8609d
JH
2023/* PWPASSWD:
2024 * This symbol, if defined, indicates to the C program that struct passwd
2025 * contains pw_passwd.
2026 */
c4f23d77
AD
2027#$i_pwd I_PWD /**/
2028#$d_pwquota PWQUOTA /**/
2029#$d_pwage PWAGE /**/
2030#$d_pwchange PWCHANGE /**/
2031#$d_pwclass PWCLASS /**/
2032#$d_pwexpire PWEXPIRE /**/
2033#$d_pwcomment PWCOMMENT /**/
2034#$d_pwgecos PWGECOS /**/
28e8609d 2035#$d_pwpasswd PWPASSWD /**/
c4f23d77 2036
de4597cb
JH
2037/* I_SYSUIO:
2038 * This symbol, if defined, indicates that <sys/uio.h> exists and
2039 * should be included.
2040 */
2041#$i_sysuio I_SYSUIO /**/
2042
bfb7748a
AD
2043/* Free_t:
2044 * This variable contains the return type of free(). It is usually
2045 * void, but occasionally int.
e876cf0b 2046 */
bfb7748a
AD
2047/* Malloc_t:
2048 * This symbol is the type of pointer returned by malloc and realloc.
4633a7c4 2049 */
bfb7748a
AD
2050#define Malloc_t $malloctype /**/
2051#define Free_t $freetype /**/
2052
2053/* MYMALLOC:
2054 * This symbol, if defined, indicates that we're using our own malloc.
2055 */
2056#$d_mymalloc MYMALLOC /**/
4633a7c4 2057
c4f23d77
AD
2058/* SIG_NAME:
2059 * This symbol contains a list of signal names in order of
2060 * signal number. This is intended
2061 * to be used as a static array initialization, like this:
2062 * char *sig_name[] = { SIG_NAME };
2063 * The signals in the list are separated with commas, and each signal
2064 * is surrounded by double quotes. There is no leading SIG in the signal
2065 * name, i.e. SIGQUIT is known as "QUIT".
2066 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
2067 * etc., where nn is the actual signal number (e.g. NUM37).
2068 * The signal number for sig_name[i] is stored in sig_num[i].
2069 * The last element is 0 to terminate the list with a NULL. This
2070 * corresponds to the 0 at the end of the sig_num list.
2071 */
2072/* SIG_NUM:
2073 * This symbol contains a list of signal numbers, in the same order as the
2074 * SIG_NAME list. It is suitable for static array initialization, as in:
2075 * int sig_num[] = { SIG_NUM };
2076 * The signals in the list are separated with commas, and the indices
2077 * within that list and the SIG_NAME list match, so it's easy to compute
2078 * the signal name from a number or vice versa at the price of a small
2079 * dynamic linear lookup.
2080 * Duplicates are allowed, but are moved to the end of the list.
2081 * The signal number corresponding to sig_name[i] is sig_number[i].
2082 * if (i < NSIG) then sig_number[i] == i.
2083 * The last element is 0, corresponding to the 0 at the end of
2084 * the sig_name list.
2085 */
2086#define SIG_NAME $sig_name_init /**/
824a2ba3 2087#define SIG_NUM $sig_num_init /**/
c4f23d77 2088
bfb7748a
AD
2089/* VOIDFLAGS:
2090 * This symbol indicates how much support of the void type is given by this
2091 * compiler. What various bits mean:
2092 *
2093 * 1 = supports declaration of void
2094 * 2 = supports arrays of pointers to functions returning void
2095 * 4 = supports comparisons between pointers to void functions and
2096 * addresses of void functions
2097 * 8 = suports declaration of generic void pointers
2098 *
2099 * The package designer should define VOIDUSED to indicate the requirements
2100 * of the package. This can be done either by #defining VOIDUSED before
2101 * including config.h, or by defining defvoidused in Myinit.U. If the
2102 * latter approach is taken, only those flags will be tested. If the
2103 * level of void support necessary is not present, defines void to int.
16d20bd9 2104 */
bfb7748a
AD
2105#ifndef VOIDUSED
2106#define VOIDUSED $defvoidused
2107#endif
2108#define VOIDFLAGS $voidflags
2109#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
2110#define void int /* is void to be avoided? */
2111#define M_VOID /* Xenix strikes again */
2112#endif
16d20bd9 2113
cf2093f6
JH
2114/* HAS_ATOLF:
2115 * This symbol, if defined, indicates that the atolf routine is
2116 * available to convert strings into long doubles.
2117 */
2118#$d_atolf HAS_ATOLF /**/
2119
2120/* HAS_ATOLL:
2121 * This symbol, if defined, indicates that the atoll routine is
2122 * available to convert strings into long longs.
2123 */
2124#$d_atoll HAS_ATOLL /**/
2125
d71b2b6b
JH
2126/* PERL_BINCOMPAT_5005:
2127 * This symbol, if defined, indicates that Perl 5.006 should be
2128 * binary-compatible with Perl 5.005. This is impossible for builds
2129 * that use features like threads and multiplicity it is always $undef
2130 * for those versions.
2131 */
2132#$d_bincompat5005 PERL_BINCOMPAT_5005 /**/
2133
dfe9444c
AD
2134/* DLSYM_NEEDS_UNDERSCORE:
2135 * This symbol, if defined, indicates that we need to prepend an
2136 * underscore to the symbol name before calling dlsym(). This only
2137 * makes sense if you *have* dlsym, which we will presume is the
2138 * case if you're using dl_dlopen.xs.
2139 */
2140#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
2141
f1066039
JH
2142/* HAS_ENDSPENT:
2143 * This symbol, if defined, indicates that the endspent system call is
2144 * available to finalize the scan of SysV shadow password entries.
2145 */
2146#$d_endspent HAS_ENDSPENT /**/
2147
ad27e871
JH
2148/* HAS_STRUCT_FS_DATA:
2149 * This symbol, if defined, indicates that the struct fs_data
2150 * to do statfs() is supported.
2151 */
2152#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
2153
5ff3f7a4
GS
2154/* HAS_FSEEKO:
2155 * This symbol, if defined, indicates that the fseeko routine is
2156 * available to fseek beyond 32 bits (useful for ILP32 hosts).
2157 */
2158#$d_fseeko HAS_FSEEKO /**/
2159
0545a864
JH
2160/* HAS_FSTATFS:
2161 * This symbol, if defined, indicates that the fstatfs routine is
2162 * available to stat filesystems by file descriptors.
2163 */
2164#$d_fstatfs HAS_FSTATFS /**/
5ff3f7a4
GS
2165/* HAS_FTELLO:
2166 * This symbol, if defined, indicates that the ftello routine is
5f9d9a17 2167 * available to ftell beyond 32 bits (useful for ILP32 hosts).
5ff3f7a4
GS
2168 */
2169#$d_ftello HAS_FTELLO /**/
2170
ad27e871
JH
2171/* HAS_GETMNT:
2172 * This symbol, if defined, indicates that the getmnt routine is
2173 * available to get filesystem mount info by filename.
2174 */
2175#$d_getmnt HAS_GETMNT /**/
2176
732c9516
JH
2177/* HAS_GETMNTENT:
2178 * This symbol, if defined, indicates that the getmntent routine is
0617aed7 2179 * available to iterate through mounted file systems to get their info.
732c9516
JH
2180 */
2181#$d_getmntent HAS_GETMNTENT /**/
2182
f1066039
JH
2183/* HAS_GETSPENT:
2184 * This symbol, if defined, indicates that the getspent system call is
2185 * available to retrieve SysV shadow password entries sequentially.
2186 */
2187#$d_getspent HAS_GETSPENT /**/
2188
2189/* HAS_GETSPNAM:
2190 * This symbol, if defined, indicates that the getspnam system call is
2191 * available to retrieve SysV shadow password entries by name.
2192 */
2193#$d_getspnam HAS_GETSPNAM /**/
2194
732c9516
JH
2195/* HAS_HASMNTOPT:
2196 * This symbol, if defined, indicates that the hasmntopt routine is
2197 * available to query the mount options of file systems.
2198 */
2199#$d_hasmntopt HAS_HASMNTOPT /**/
2200
2d4389e4
JH
2201/* HAS_LDBL_DIG:
2202 * This symbol, if defined, indicates that this system's <float.h>
2203 * or <limits.h> defines the symbol LDBL_DIG, which is the number
2204 * of significant digits in a long double precision number. Unlike
2205 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
2206 */
2207#$d_ldbl_dig HAS_LDBL_DIG /* */
2208
f1066039
JH
2209/* HAS_SETSPENT:
2210 * This symbol, if defined, indicates that the setspent system call is
2211 * available to initialize the scan of SysV shadow password entries.
2212 */
2213#$d_setspent HAS_SETSPENT /**/
2214
dfe9444c
AD
2215/* USE_SFIO:
2216 * This symbol, if defined, indicates that sfio should
2217 * be used.
2218 */
2219#$d_sfio USE_SFIO /**/
2220
68d4903c
JH
2221/* HAS_SQRTL:
2222 * This symbol, if defined, indicates that the sqrtl routine is
2223 * available to do long double square roots.
2224 */
2225#$d_sqrtl HAS_SQRTL /**/
2226
0545a864 2227/* HAS_STRUCT_STATFS_F_FLAGS:
104d25b7
JH
2228 * This symbol, if defined, indicates that the struct statfs
2229 * does have the f_flags member containing the mount flags of
0545a864 2230 * the filesystem containing the file.
0617aed7
JH
2231 * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
2232 * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
ad27e871
JH
2233 * have statfs() and struct statfs, they have ustat() and getmnt()
2234 * with struct ustat and struct fs_data.
104d25b7 2235 */
0545a864 2236#$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/
104d25b7 2237
ad27e871
JH
2238/* HAS_STRUCT_STATFS:
2239 * This symbol, if defined, indicates that the struct statfs
2240 * to do statfs() is supported.
2241 */
2242#$d_statfs_s HAS_STRUCT_STATFS /**/
2243
104d25b7
JH
2244/* HAS_FSTATVFS:
2245 * This symbol, if defined, indicates that the fstatvfs routine is
0617aed7 2246 * available to stat filesystems by file descriptors.
104d25b7
JH
2247 */
2248#$d_fstatvfs HAS_FSTATVFS /**/
2249
cb86ce0e
JH
2250/* HAS_TELLDIR_PROTO:
2251 * This symbol, if defined, indicates that the system provides
2252 * a prototype for the telldir() function. Otherwise, it is up
2253 * to the program to supply one. A good guess is
b0ca4213 2254 * extern long telldir _((DIR*));
cb86ce0e
JH
2255 */
2256#$d_telldirproto HAS_TELLDIR_PROTO /**/
2257
0545a864
JH
2258/* HAS_USTAT:
2259 * This symbol, if defined, indicates that the ustat system call is
2260 * available to query file system statistics by dev_t.
2261 */
2262#$d_ustat HAS_USTAT /**/
2263
dfe9444c
AD
2264/* USE_DYNAMIC_LOADING:
2265 * This symbol, if defined, indicates that dynamic loading of
2266 * some sort is available.
2267 */
2268#$usedl USE_DYNAMIC_LOADING /**/
2269
66fe083f
JH
2270/* FFLUSH_NULL:
2271 * This symbol, if defined, tells that fflush(NULL) does flush
2272 * all pending stdio output.
2273 */
767df6a1
JH
2274/* FFLUSH_ALL:
2275 * This symbol, if defined, tells that to flush
2276 * all pending stdio output one must loop through all
a71cd7cd 2277 * the stdio file handles stored in an array and fflush them.
a32a45b6
JH
2278 * Note that if fflushNULL is defined, fflushall will not
2279 * even be probed for and will be left undefined.
767df6a1
JH
2280 */
2281#$fflushNULL FFLUSH_NULL /**/
2282#$fflushall FFLUSH_ALL /**/
66fe083f 2283
dfe9444c
AD
2284/* DB_Prefix_t:
2285 * This symbol contains the type of the prefix structure element
2286 * in the <db.h> header file. In older versions of DB, it was
2287 * int, while in newer ones it is u_int32_t.
2288 */
2289/* DB_Hash_t:
2290 * This symbol contains the type of the prefix structure element
2291 * in the <db.h> header file. In older versions of DB, it was
2292 * int, while in newer ones it is size_t.
2293 */
2294#define DB_Hash_t $db_hashtype /**/
2295#define DB_Prefix_t $db_prefixtype /**/
2296
5ff3f7a4
GS
2297/* I_INTTYPES:
2298 * This symbol, if defined, indicates to the C program that it should
2299 * include <inttypes.h>.
2300 */
2301/* HAS_INT64_T:
2302 * This symbol will defined if the C compiler supports int64_t.
2303 * Usually the <inttypes.h> needs to be included, but sometimes
2304 * <sys/types.h> is enough.
2305 */
2306#$i_inttypes I_INTTYPES /**/
2307#$d_int64t HAS_INT64_T /**/
2308
e7fb4fcc
JH
2309/* I_MNTENT:
2310 * This symbol, if defined, indicates that <mntent.h> exists and
2311 * should be included.
2312 */
2313#$i_mntent I_MNTENT /**/
2314
9cc6feab
JH
2315/* I_NETINET_TCP:
2316 * This symbol, if defined, indicates to the C program that it should
2317 * include <netinet/tcp.h>.
2318 */
2319#$i_netinettcp I_NETINET_TCP /**/
2320
5b34fd99
JH
2321/* I_POLL:
2322 * This symbol, if defined, indicates that <poll.h> exists and
2323 * should be included.
2324 */
2325#$i_poll I_POLL /**/
2326
f1066039
JH
2327/* I_SHADOW:
2328 * This symbol, if defined, indicates that <shadow.h> exists and
2329 * should be included.
2330 */
2331#$i_shadow I_SHADOW /**/
2332
86959918
JH
2333/* I_SOCKS:
2334 * This symbol, if defined, indicates that <socks.h> exists and
2335 * should be included.
2336 */
2337#$i_socks I_SOCKS /**/
2338
104d25b7
JH
2339/* I_SYS_MOUNT:
2340 * This symbol, if defined, indicates that <sys/mount.h> exists and
2341 * should be included.
2342 */
2343#$i_sysmount I_SYS_MOUNT /**/
2344
0545a864
JH
2345/* I_SYS_STATFS:
2346 * This symbol, if defined, indicates that <sys/statfs.h> exists.
2347 */
2348#$i_sysstatfs I_SYS_STATFS /**/
2349
104d25b7
JH
2350/* I_SYS_STATVFS:
2351 * This symbol, if defined, indicates that <sys/statvfs.h> exists and
2352 * should be included.
2353 */
2354#$i_sysstatvfs I_SYS_STATVFS /**/
2355
0545a864
JH
2356/* I_SYS_VFS:
2357 * This symbol, if defined, indicates that <sys/vfs.h> exists and
2358 * should be included.
2359 */
2360#$i_sysvfs I_SYS_VFS /**/
2361
2362/* I_USTAT:
2363 * This symbol, if defined, indicates that <ustat.h> exists and
2364 * should be included.
2365 */
2366#$i_ustat I_USTAT /**/
2367
5ff3f7a4
GS
2368/* HAS_OFF64_T:
2369 * This symbol will be defined if the C compiler supports off64_t.
2370 */
d9b3e12d
JH
2371/* HAS_FPOS64_T:
2372 * This symbol will be defined if the C compiler supports fpos64_t.
2373 */
2374#$d_off64_t HAS_OFF64_T /**/
2375#$d_fpos64_t HAS_FPOS64_T /**/
5ff3f7a4 2376
cf2093f6
JH
2377/* PERL_PRIfldbl:
2378 * This symbol, if defined, contains the string used by stdio to
2379 * format long doubles (format 'f') for output.
2380 */
2381/* PERL_PRIgldbl:
2382 * This symbol, if defined, contains the string used by stdio to
2383 * format long doubles (format 'g') for output.
2384 */
2385#$d_PRIfldbl PERL_PRIfldbl $sPRIfldbl /**/
2386#$d_PRIgldbl PERL_PRIgldbl $sPRIgldbl /**/
2387
2388/* PERL_PRId64:
2389 * This symbol, if defined, contains the string used by stdio to
2390 * format 64-bit decimal numbers (format 'd') for output.
2391 */
2392/* PERL_PRIu64:
2393 * This symbol, if defined, contains the string used by stdio to
2394 * format 64-bit unsigned decimal numbers (format 'u') for output.
2395 */
0f4b6630
JH
2396/* PERL_PRIo64:
2397 * This symbol, if defined, contains the string used by stdio to
2398 * format 64-bit octal numbers (format 'o') for output.
2399 */
cf2093f6
JH
2400/* PERL_PRIx64:
2401 * This symbol, if defined, contains the string used by stdio to
2402 * format 64-bit hexadecimal numbers (format 'x') for output.
2403 */
2404#$d_PRId64 PERL_PRId64 $sPRId64 /**/
2405#$d_PRIu64 PERL_PRIu64 $sPRIu64 /**/
0f4b6630 2406#$d_PRIo64 PERL_PRIo64 $sPRIo64 /**/
cf2093f6
JH
2407#$d_PRIx64 PERL_PRIx64 $sPRIx64 /**/
2408
5ff3f7a4
GS
2409/* SELECT_MIN_BITS:
2410 * This symbol holds the minimum number of bits operated by select.
2411 * That is, if you do select(n, ...), how many bits at least will be
2412 * cleared in the masks if some activity is detected. Usually this
2413 * is either n or 32*ceil(n/32), especially many little-endians do
2414 * the latter. This is only useful if you have select(), naturally.
2415 */
2416#define SELECT_MIN_BITS $selectminbits /**/
2417
568ef1f6
PP
2418/* STARTPERL:
2419 * This variable contains the string to put in front of a perl
2420 * script to make sure (one hopes) that it runs with perl and not
2421 * some shell.
2422 */
2423#define STARTPERL "$startperl" /**/
2424
ed39a0f2
JH
2425/* HAS_STDIO_STREAM_ARRAY:
2426 * This symbol, if defined, tells that there is an array
2427 * holding the stdio streams.
2428 */
767df6a1 2429/* STDIO_STREAM_ARRAY:
ed39a0f2
JH
2430 * This symbol tells the name of the array holding the stdio streams.
2431 * Usual values include _iob, __iob, and __sF.
767df6a1 2432 */
ed39a0f2 2433#$d_stdio_stream_array HAS_STDIO_STREAM_ARRAY /**/
767df6a1
JH
2434#define STDIO_STREAM_ARRAY $stdio_stream_array
2435
cf2093f6
JH
2436/* HAS_STRTOULL:
2437 * This symbol, if defined, indicates that the strtoull routine is
2438 * available to convert strings into unsigned long longs.
2439 */
2440#$d_strtoull HAS_STRTOULL /**/
2441
5ff3f7a4 2442/* USE_64_BITS:
85ab1d1d
JH
2443 * This symbol, if defined, indicates that 64-bit interfaces should
2444 * be used when available. If not defined, the native default interfaces
5ff3f7a4
GS
2445 * will be used (be they 32 or 64 bits).
2446 */
d7d93a81 2447#ifndef USE_64_BITS
5ff3f7a4 2448#$use64bits USE_64_BITS /**/
d7d93a81 2449#endif
5ff3f7a4 2450
09458382
JH
2451/* USE_LARGE_FILES:
2452 * This symbol, if defined, indicates that large file support
2453 * should be used when available. The USE_64_BITS symbol will
1baac590 2454 * also be turned on if necessary.
09458382 2455 */
d7d93a81 2456#ifndef USE_LARGE_FILES
249b38c6 2457#$uselargefiles USE_LARGE_FILES /**/
d7d93a81 2458#endif
09458382 2459
b0ce926a
JH
2460/* USE_LONG_DOUBLE:
2461 * This symbol, if defined, indicates that long doubles should
2462 * be used when available.
2463 */
d7d93a81 2464#ifndef USE_LONG_DOUBLE
b0ce926a 2465#$uselongdouble USE_LONG_DOUBLE /**/
d7d93a81
JH
2466#endif
2467
2468/* USE_LONG_LONG:
2469 * This symbol, if defined, indicates that long longs should
2470 * be used when available.
2471 */
2472#ifndef USE_LONG_LONG
2473#$uselonglong USE_LONG_LONG /**/
2474#endif
2475
2476#ifndef USE_MORE_BITS
2477#$usemorebits USE_MORE_BITS /**/
2478#endif
b0ce926a 2479
104d25b7
JH
2480/* MULTIPLICITY:
2481 * This symbol, if defined, indicates that Perl should
2482 * be built to use multiplicity.
2483 */
d7d93a81 2484#ifndef MULTIPLICTY
104d25b7 2485#$usemultiplicity MULTIPLICITY /**/
d7d93a81 2486#endif
104d25b7 2487
e876cf0b
PP
2488/* USE_PERLIO:
2489 * This symbol, if defined, indicates that the PerlIO abstraction should
2490 * be used throughout. If not defined, stdio should be
2491 * used in a fully backward compatible manner.
2492 */
d7d93a81 2493#ifndef USE_PERLIO
e876cf0b 2494#$useperlio USE_PERLIO /**/
d7d93a81 2495#endif
e876cf0b 2496
29209bc5
JH
2497/* USE_SOCKS:
2498 * This symbol, if defined, indicates that Perl should
2499 * be built to use socks.
2500 */
d7d93a81 2501#ifndef USE_SOCKS
29209bc5 2502#$usesocks USE_SOCKS /**/
d7d93a81 2503#endif
29209bc5 2504
75347591
JH
2505/* PERL_XS_APIVERSION:
2506 * This variable contains the version of the oldest perl binary
2507 * compatible with the present perl. perl.c:incpush() and
2508 * lib/lib.pm will automatically search in $sitearch for older
2509 * directories across major versions back to xs_apiversion.
2510 * This is only useful if you have a perl library directory tree
2511 * structured like the default one.
2512 * See INSTALL for how this works.
2513 * The versioned site_perl directory was introduced in 5.005,
2514 * so that is the lowest possible value.
2515 * Since this can depend on compile time options (such as
2516 * bincompat) it is set by Configure. Other non-default sources
2517 * of potential incompatibility, such as multiplicity, threads,
2518 * debugging, 64bits, sfio, etc., are not checked for currently,
2519 * though in principle we could go snooping around in old
2520 * Config.pm files.
2521 */
2522/* PERL_PM_APIVERSION:
2523 * This variable contains the version of the oldest perl
2524 * compatible with the present perl. (That is, pure perl modules
2525 * written for pm_apiversion will still work for the current
2526 * version). perl.c:incpush() and lib/lib.pm will automatically
2527 * search in $sitelib for older directories across major versions
2528 * back to pm_apiversion. This is only useful if you have a perl
2529 * library directory tree structured like the default one. The
2530 * versioned site_perl library was introduced in 5.005, so that's
2531 * the default setting for this variable. It's hard to imagine
2532 * it changing before Perl6. It is included here for symmetry
2533 * with xs_apiveprsion -- the searching algorithms will
2534 * (presumably) be similar.
2535 * See the INSTALL file for how this works.
2536 */
2537#define PERL_XS_APIVERSION $xs_apiversion /* Change to string for tuples?*/
2538#define PERL_PM_APIVERSION $pm_apiversion /* Change to string for tuples?*/
2539
85ab1d1d
JH
2540/* HAS_DRAND48_PROTO:
2541 * This symbol, if defined, indicates that the system provides
2542 * a prototype for the drand48() function. Otherwise, it is up
2543 * to the program to supply one. A good guess is
b0ca4213 2544 * extern double drand48 _((void));
85ab1d1d
JH
2545 */
2546#$d_drand48proto HAS_DRAND48_PROTO /**/
2547
dc45a647
MB
2548/* HAS_GETHOST_PROTOS:
2549 * This symbol, if defined, indicates that <netdb.h> includes
2550 * prototypes for gethostent(), gethostbyname(), and
2551 * gethostbyaddr(). Otherwise, it is up to the program to guess
2552 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2553 */
2554#$d_gethostprotos HAS_GETHOST_PROTOS /**/
2555
2556/* HAS_GETNET_PROTOS:
2557 * This symbol, if defined, indicates that <netdb.h> includes
2558 * prototypes for getnetent(), getnetbyname(), and
2559 * getnetbyaddr(). Otherwise, it is up to the program to guess
2560 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2561 */
2562#$d_getnetprotos HAS_GETNET_PROTOS /**/
2563
2564/* HAS_GETPROTO_PROTOS:
2565 * This symbol, if defined, indicates that <netdb.h> includes
2566 * prototypes for getprotoent(), getprotobyname(), and
2567 * getprotobyaddr(). Otherwise, it is up to the program to guess
2568 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2569 */
2570#$d_getprotoprotos HAS_GETPROTO_PROTOS /**/
2571
2572/* HAS_GETSERV_PROTOS:
2573 * This symbol, if defined, indicates that <netdb.h> includes
2574 * prototypes for getservent(), getservbyname(), and
2575 * getservbyaddr(). Otherwise, it is up to the program to guess
2576 * them. See netdbtype.U for probing for various Netdb_xxx_t types.
2577 */
2578#$d_getservprotos HAS_GETSERV_PROTOS /**/
2579
dfe9444c
AD
2580/* Netdb_host_t:
2581 * This symbol holds the type used for the 1st argument
2582 * to gethostbyaddr().
8e07c86e 2583 */
dfe9444c
AD
2584/* Netdb_hlen_t:
2585 * This symbol holds the type used for the 2nd argument
2586 * to gethostbyaddr().
2587 */
2588/* Netdb_name_t:
2589 * This symbol holds the type used for the argument to
2590 * gethostbyname().
2591 */
2592/* Netdb_net_t:
2593 * This symbol holds the type used for the 1st argument to
2594 * getnetbyaddr().
2595 */
2596#define Netdb_host_t $netdb_host_type /**/
2597#define Netdb_hlen_t $netdb_hlen_type /**/
2598#define Netdb_name_t $netdb_name_type /**/
2599#define Netdb_net_t $netdb_net_type /**/
2600
2601/* Select_fd_set_t:
2602 * This symbol holds the type used for the 2nd, 3rd, and 4th
2603 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
2604 * is defined, and 'int *' otherwise. This is only useful if you
2605 * have select(), of course.
2606 */
2607#define Select_fd_set_t $selecttype /**/
2608
2609/* ARCHNAME:
2610 * This symbol holds a string representing the architecture name.
2611 * It may be used to construct an architecture-dependant pathname
2612 * where library files may be held under a private library, for
2613 * instance.
2614 */
2615#define ARCHNAME "$archname" /**/
2616
ef4af2be 2617/* OLD_PTHREAD_CREATE_JOINABLE:
13666627 2618 * This symbol, if defined, indicates how to create pthread
ef4af2be
JH
2619 * in joinable (aka undetached) state. NOTE: not defined
2620 * if pthread.h already has defined PTHREAD_CREATE_JOINABLE
2621 * (the new version of the constant).
104d25b7 2622 * If defined, known values are PTHREAD_CREATE_UNDETACHED
13666627
JH
2623 * and __UNDETACHED.
2624 */
ef4af2be 2625#$d_old_pthread_create_joinable OLD_PTHREAD_CREATE_JOINABLE $old_pthread_create_joinable /**/
13666627 2626
31dfa2f6
JH
2627/* HAS_PTHREAD_YIELD:
2628 * This symbol, if defined, indicates that the pthread_yield
2629 * routine is available to yield the execution of the current
2630 * thread. sched_yield is preferable to pthread_yield.
2631 */
1cfa4ec7
GS
2632/* SCHED_YIELD:
2633 * This symbol defines the way to yield the execution of
2634 * the current thread. Known ways are sched_yield,
2635 * pthread_yield, and pthread_yield with NULL.
c4f23d77 2636 */
31dfa2f6
JH
2637/* HAS_SCHED_YIELD:
2638 * This symbol, if defined, indicates that the sched_yield
2639 * routine is available to yield the execution of the current
2640 * thread. sched_yield is preferable to pthread_yield.
2641 */
2642#$d_pthread_yield HAS_PTHREAD_YIELD /**/
1cfa4ec7 2643#define SCHED_YIELD $sched_yield /**/
31dfa2f6 2644#$d_sched_yield HAS_SCHED_YIELD /**/
dfe9444c 2645
7f3d1cf1
BH
2646/* I_MACH_CTHREADS:
2647 * This symbol, if defined, indicates to the C program that it should
2648 * include <mach/cthreads.h>.
2649 */
2650#$i_machcthr I_MACH_CTHREADS /**/
2651
c107d834
JH
2652/* I_PTHREAD:
2653 * This symbol, if defined, indicates to the C program that it should
2654 * include <pthread.h>.
2655 */
2656#$i_pthread I_PTHREAD /**/
2657
dfe9444c
AD
2658/* USE_THREADS:
2659 * This symbol, if defined, indicates that Perl should
2660 * be built to use threads.
2661 */
693762b4
AD
2662/* OLD_PTHREADS_API:
2663 * This symbol, if defined, indicates that Perl should
2664 * be built to use the old draft POSIX threads API.
2665 */
d7d93a81 2666#ifndef USE_TTHREADS
dfe9444c 2667#$usethreads USE_THREADS /**/
d7d93a81 2668#endif
693762b4 2669#$d_oldpthreads OLD_PTHREADS_API /**/
8e07c86e 2670
dc45a647
MB
2671/* Time_t:
2672 * This symbol holds the type returned by time(). It can be long,
2673 * or time_t on BSD sites (in which case <sys/types.h> should be
2674 * included).
2675 */
2676#define Time_t $timetype /* Time type */
2677
2678/* HAS_TIMES:
2679 * This symbol, if defined, indicates that the times() routine exists.
2680 * Note that this became obsolete on some systems (SUNOS), which now
2681 * use getrusage(). It may be necessary to include <sys/times.h>.
2682 */
2683#$d_times HAS_TIMES /**/
2684
2685/* Fpos_t:
2686 * This symbol holds the type used to declare file positions in libc.
2687 * It can be fpos_t, long, uint, etc... It may be necessary to include
2688 * <sys/types.h> to get any typedef'ed information.
2689 */
2690#define Fpos_t $fpostype /* File position type */
2691
785fb66b
JH
2692/* Gid_t_SIGN:
2693 * This symbol holds the signedess of a Gid_t.
2694 * 1 for unsigned, -1 for signed.
2695 */
2696#define Gid_t_SIGN $gidsign /* GID sign */
2697
2698/* Gid_t_SIZE:
2699 * This symbol holds the size of a Gid_t in bytes.
2700 */
2701#define Gid_t_SIZE $gidsize /* GID size */
2702
dc45a647
MB
2703/* Gid_t:
2704 * This symbol holds the return type of getgid() and the type of
2705 * argument to setrgid() and related functions. Typically,
2706 * it is the type of group ids in the kernel. It can be int, ushort,
2707 * uid_t, etc... It may be necessary to include <sys/types.h> to get
2708 * any typedef'ed information.
2709 */
2710#define Gid_t $gidtype /* Type for getgid(), etc... */
2711
2712/* Off_t:
2713 * This symbol holds the type used to declare offsets in the kernel.
2714 * It can be int, long, off_t, etc... It may be necessary to include
2715 * <sys/types.h> to get any typedef'ed information.
2716 */
aa5812c3
JH
2717/* LSEEKSIZE:
2718 * This symbol holds the number of bytes used by the Off_t.
2719 */
dc45a647 2720#define Off_t $lseektype /* <offset> type */
aa5812c3 2721#define LSEEKSIZE $lseeksize /* <offset> size */
dc45a647
MB
2722
2723/* Mode_t:
2724 * This symbol holds the type used to declare file modes
2725 * for systems calls. It is usually mode_t, but may be
2726 * int or unsigned short. It may be necessary to include <sys/types.h>
2727 * to get any typedef'ed information.
2728 */
2729#define Mode_t $modetype /* file mode parameter for system calls */
2730
2731/* Pid_t:
2732 * This symbol holds the type used to declare process ids in the kernel.
2733 * It can be int, uint, pid_t, etc... It may be necessary to include
2734 * <sys/types.h> to get any typedef'ed information.
2735 */
2736#define Pid_t $pidtype /* PID type */
2737
d7d93a81
JH
2738/* Quad_t:
2739 * This symbol holds the type used for 64-bit integers.
2740 * It can be int, long, long long, int64_t etc...
2741 */
2742/* QUADCASE:
2743 * This symbol, if defined, encodes the type of a quad:
2744 * 1 = int, 2 = long, 3 = long long, 4 = int64_t.
2745 */
2746/* Uquad_t:
2747 * This symbol holds the type used for unsigned 64-bit integers.
2748 * It can be unsigned int, unsigned long, unsigned long long,
2749 * uint64_t etc...
2750 */
2751#define Quad_t $quadtype
2752#define Uquad_t $uquadtype
2753#define QUADCASE $quadcase
2754
dc45a647
MB
2755/* Size_t:
2756 * This symbol holds the type used to declare length parameters
2757 * for string functions. It is usually size_t, but may be
2758 * unsigned long, int, etc. It may be necessary to include
2759 * <sys/types.h> to get any typedef'ed information.
2760 */
2761#define Size_t $sizetype /* length paramater for string functions */
2762
57def98f
JH
2763/* Uid_t_SIGN:
2764 * This symbol holds the signedess of a Uid_t.
2765 * 1 for unsigned, -1 for signed.
2766 */
2767#define Uid_t_SIGN $uidsign /* UID sign */
2768
785fb66b
JH
2769/* Uid_t_SIZE:
2770 * This symbol holds the size of a Uid_t in bytes.
2771 */
2772#define Uid_t_SIZE $uidsize /* UID size */
2773
dc45a647
MB
2774/* Uid_t:
2775 * This symbol holds the type used to declare user ids in the kernel.
2776 * It can be int, ushort, uid_t, etc... It may be necessary to include
2777 * <sys/types.h> to get any typedef'ed information.
2778 */
2779#define Uid_t $uidtype /* UID type */
2780
fe14fcc3 2781#endif
8d063cd8 2782!GROK!THIS!