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