[PATCH 5.004_62} Config_62-01 patch available.
[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
2304df62 58/* CPPSTDIN:
36ce8bec 59 * This symbol contains the first part of the string which will invoke
60 * the C preprocessor on the standard input and produce to standard
2304df62 61 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
62 * call a wrapper. See CPPRUN.
36ce8bec 63 */
2304df62 64/* CPPMINUS:
36ce8bec 65 * This symbol contains the second part of the string which will invoke
66 * the C preprocessor on the standard input and produce to standard
378cc40b 67 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
36ce8bec 68 * to specify standard input, otherwise the value is "".
69 */
378cc40b 70#define CPPSTDIN "$cppstdin"
36ce8bec 71#define CPPMINUS "$cppminus"
72
a0d0e21e 73/* HAS_ALARM:
74 * This symbol, if defined, indicates that the alarm routine is
75 * available.
76 */
77#$d_alarm HAS_ALARM /**/
78
ecfc5424 79/* HASATTRIBUTE:
80 * This symbol indicates the C compiler can check for function attributes,
81 * such as printf formats. This is normally only supported by GNU cc.
82 */
83#$d_attribut HASATTRIBUTE /**/
84#ifndef HASATTRIBUTE
85#define __attribute__(_arg_)
86#endif
87
2304df62 88/* HAS_BCMP:
89 * This symbol is defined if the bcmp() routine is available to
90 * compare blocks of memory.
a687059c 91 */
2304df62 92#$d_bcmp HAS_BCMP /**/
a687059c 93
2304df62 94/* HAS_BCOPY:
95 * This symbol is defined if the bcopy() routine is available to
96 * copy blocks of memory.
c51b80d1 97 */
2304df62 98#$d_bcopy HAS_BCOPY /**/
c51b80d1 99
2304df62 100/* HAS_BZERO:
101 * This symbol is defined if the bzero() routine is available to
102 * set a memory block to 0.
0d3e774c 103 */
2304df62 104#$d_bzero HAS_BZERO /**/
0d3e774c 105
a0d0e21e 106/* HAS_CHOWN:
107 * This symbol, if defined, indicates that the chown routine is
108 * available.
109 */
110#$d_chown HAS_CHOWN /**/
111
112/* HAS_CHROOT:
113 * This symbol, if defined, indicates that the chroot routine is
114 * available.
115 */
116#$d_chroot HAS_CHROOT /**/
117
2304df62 118/* HAS_CHSIZE:
87250799 119 * This symbol, if defined, indicates that the chsize routine is available
120 * to truncate files. You might need a -lx to get this routine.
121 */
fe14fcc3 122#$d_chsize HAS_CHSIZE /**/
87250799 123
2304df62 124/* HASCONST:
125 * This symbol, if defined, indicates that this C compiler knows about
126 * the const type. There is no need to actually test for that symbol
127 * within your programs. The mere use of the "const" keyword will
128 * trigger the necessary tests.
129 */
130#$d_const HASCONST /**/
131#ifndef HASCONST
132#define const
133#endif
134
135/* HAS_CRYPT:
2e1b3b7e 136 * This symbol, if defined, indicates that the crypt routine is available
137 * to encrypt passwords and the like.
138 */
2304df62 139#$d_crypt HAS_CRYPT /**/
2e1b3b7e 140
a0d0e21e 141/* HAS_CUSERID:
142 * This symbol, if defined, indicates that the cuserid routine is
143 * available to get character login names.
13281fa4 144 */
a0d0e21e 145#$d_cuserid HAS_CUSERID /**/
146
147/* HAS_DBL_DIG:
148 * This symbol, if defined, indicates that this system's <float.h>
149 * or <limits.h> defines the symbol DBL_DIG, which is the number
150 * of significant digits in a double precision number. If this
151 * symbol is not defined, a guess of 15 is usually pretty good.
152 */
153#$d_dbl_dig HAS_DBL_DIG /* */
154
155/* HAS_DIFFTIME:
156 * This symbol, if defined, indicates that the difftime routine is
157 * available.
158 */
159#$d_difftime HAS_DIFFTIME /**/
13281fa4 160
ecfc5424 161/* HAS_DLERROR:
162 * This symbol, if defined, indicates that the dlerror routine is
163 * available to return a string describing the last error that
164 * occurred from a call to dlopen(), dlclose() or dlsym().
165 */
166#$d_dlerror HAS_DLERROR /**/
167
dfe9444c 168/* SETUID_SCRIPTS_ARE_SECURE_NOW:
169 * This symbol, if defined, indicates that the bug that prevents
170 * setuid scripts from being secure is not present in this kernel.
171 */
172/* DOSUID:
173 * This symbol, if defined, indicates that the C program should
174 * check the script that it is executing for setuid/setgid bits, and
175 * attempt to emulate setuid/setgid on systems that have disabled
176 * setuid #! scripts because the kernel can't do it securely.
177 * It is up to the package designer to make sure that this emulation
178 * is done securely. Among other things, it should do an fstat on
179 * the script it just opened to make sure it really is a setuid/setgid
180 * script, it should make sure the arguments passed correspond exactly
181 * to the argument on the #! line, and it should not trust any
182 * subprocesses to which it must pass the filename rather than the
183 * file descriptor of the script to be executed.
184 */
185#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
186#$d_dosuid DOSUID /**/
187
2304df62 188/* HAS_DUP2:
189 * This symbol, if defined, indicates that the dup2 routine is
190 * available to duplicate file descriptors.
a687059c 191 */
2304df62 192#$d_dup2 HAS_DUP2 /**/
a687059c 193
2304df62 194/* HAS_FCHMOD:
378cc40b 195 * This symbol, if defined, indicates that the fchmod routine is available
196 * to change mode of opened files. If unavailable, use chmod().
197 */
2304df62 198#$d_fchmod HAS_FCHMOD /**/
378cc40b 199
2304df62 200/* HAS_FCHOWN:
378cc40b 201 * This symbol, if defined, indicates that the fchown routine is available
202 * to change ownership of opened files. If unavailable, use chown().
203 */
2304df62 204#$d_fchown HAS_FCHOWN /**/
378cc40b 205
2304df62 206/* HAS_FCNTL:
fe14fcc3 207 * This symbol, if defined, indicates to the C program that
208 * the fcntl() function exists.
a687059c 209 */
2304df62 210#$d_fcntl HAS_FCNTL /**/
a687059c 211
a0d0e21e 212/* HAS_FGETPOS:
213 * This symbol, if defined, indicates that the fgetpos routine is
214 * available to get the file position indicator, similar to ftell().
215 */
216#$d_fgetpos HAS_FGETPOS /**/
217
2304df62 218/* FLEXFILENAMES:
7e1cf235 219 * This symbol, if defined, indicates that the system supports filenames
220 * longer than 14 characters.
221 */
222#$d_flexfnam FLEXFILENAMES /**/
223
2304df62 224/* HAS_FLOCK:
225 * This symbol, if defined, indicates that the flock routine is
a687059c 226 * available to do file locking.
227 */
2304df62 228#$d_flock HAS_FLOCK /**/
a687059c 229
a0d0e21e 230/* HAS_FORK:
231 * This symbol, if defined, indicates that the fork routine is
232 * available.
233 */
234#$d_fork HAS_FORK /**/
235
236/* HAS_FSETPOS:
237 * This symbol, if defined, indicates that the fsetpos routine is
238 * available to set the file position indicator, similar to fseek().
239 */
240#$d_fsetpos HAS_FSETPOS /**/
241
5f05dabc 242/* HAS_GETTIMEOFDAY:
243 * This symbol, if defined, indicates that the gettimeofday() system
244 * call is available for a sub-second accuracy clock. Usually, the file
245 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
246 * The type "Timeval" should be used to refer to "struct timeval".
247 */
248#$d_gettimeod HAS_GETTIMEOFDAY /**/
249#ifdef HAS_GETTIMEOFDAY
250#define Timeval struct timeval /* Structure used by gettimeofday() */
251#endif
252
2304df62 253/* HAS_GETGROUPS:
378cc40b 254 * This symbol, if defined, indicates that the getgroups() routine is
255 * available to get the list of process groups. If unavailable, multiple
256 * groups are probably not supported.
257 */
2304df62 258#$d_getgrps HAS_GETGROUPS /**/
378cc40b 259
2304df62 260/* HAS_UNAME:
261 * This symbol, if defined, indicates that the C program may use the
262 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
263 * and PHOSTNAME.
264 */
265#$d_uname HAS_UNAME /**/
a687059c 266
a0d0e21e 267/* HAS_GETLOGIN:
268 * This symbol, if defined, indicates that the getlogin routine is
269 * available to get the login name.
270 */
271#$d_getlogin HAS_GETLOGIN /**/
272
dfe9444c 273/* HAS_GETPGID:
274 * This symbol, if defined, indicates to the C program that
275 * the getpgid(pid) function is available to get the
276 * process group id.
277 */
278#$d_getpgid HAS_GETPGID /**/
279
280/* HAS_GETPGRP:
281 * This symbol, if defined, indicates that the getpgrp routine is
282 * available to get the current process group.
283 */
284/* USE_BSD_GETPGRP:
285 * This symbol, if defined, indicates that getpgrp needs one
286 * arguments whereas USG one needs none.
287 */
288#$d_getpgrp HAS_GETPGRP /**/
289#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
290
2304df62 291/* HAS_GETPGRP2:
d8f2e4cc 292 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
293 * routine is available to get the current process group.
294 */
2304df62 295#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 296
a0d0e21e 297/* HAS_GETPPID:
298 * This symbol, if defined, indicates that the getppid routine is
299 * available to get the parent process ID.
300 */
301#$d_getppid HAS_GETPPID /**/
302
2304df62 303/* HAS_GETPRIORITY:
304 * This symbol, if defined, indicates that the getpriority routine is
a687059c 305 * available to get a process's priority.
306 */
2304df62 307#$d_getprior HAS_GETPRIORITY /**/
a687059c 308
a0d0e21e 309/* HAS_HTONL:
310 * This symbol, if defined, indicates that the htonl() routine (and
311 * friends htons() ntohl() ntohs()) are available to do network
312 * order byte swapping.
313 */
314/* HAS_HTONS:
315 * This symbol, if defined, indicates that the htons() routine (and
316 * friends htonl() ntohl() ntohs()) are available to do network
317 * order byte swapping.
318 */
319/* HAS_NTOHL:
320 * This symbol, if defined, indicates that the ntohl() routine (and
321 * friends htonl() htons() ntohs()) are available to do network
322 * order byte swapping.
323 */
324/* HAS_NTOHS:
325 * This symbol, if defined, indicates that the ntohs() routine (and
326 * friends htonl() htons() ntohl()) are available to do network
327 * order byte swapping.
328 */
329#$d_htonl HAS_HTONL /**/
330#$d_htonl HAS_HTONS /**/
331#$d_htonl HAS_NTOHL /**/
332#$d_htonl HAS_NTOHS /**/
333
dfe9444c 334/* HAS_INET_ATON:
335 * This symbol, if defined, indicates to the C program that the
336 * inet_aton() function is available to parse IP address "dotted-quad"
337 * strings.
ecfc5424 338 */
dfe9444c 339#$d_inetaton HAS_INET_ATON /**/
ecfc5424 340
2304df62 341/* HAS_KILLPG:
378cc40b 342 * This symbol, if defined, indicates that the killpg routine is available
343 * to kill process groups. If unavailable, you probably should use kill
344 * with a negative process number.
345 */
2304df62 346#$d_killpg HAS_KILLPG /**/
378cc40b 347
2304df62 348/* HAS_LINK:
349 * This symbol, if defined, indicates that the link routine is
350 * available to create hard links.
0d3e774c 351 */
2304df62 352#$d_link HAS_LINK /**/
0d3e774c 353
ecfc5424 354/* HAS_LOCALECONV:
355 * This symbol, if defined, indicates that the localeconv routine is
356 * available for numeric and monetary formatting conventions.
357 */
358#$d_locconv HAS_LOCALECONV /**/
359
a0d0e21e 360/* HAS_LOCKF:
361 * This symbol, if defined, indicates that the lockf routine is
362 * available to do file locking.
363 */
364#$d_lockf HAS_LOCKF /**/
365
2304df62 366/* HAS_LSTAT:
367 * This symbol, if defined, indicates that the lstat routine is
368 * available to do file stats on symbolic links.
a687059c 369 */
2304df62 370#$d_lstat HAS_LSTAT /**/
a687059c 371
a0d0e21e 372/* HAS_MBLEN:
373 * This symbol, if defined, indicates that the mblen routine is available
374 * to find the number of bytes in a multibye character.
375 */
376#$d_mblen HAS_MBLEN /**/
377
378/* HAS_MBSTOWCS:
379 * This symbol, if defined, indicates that the mbstowcs routine is
380 * available to covert a multibyte string into a wide character string.
381 */
382#$d_mbstowcs HAS_MBSTOWCS /**/
383
384/* HAS_MBTOWC:
385 * This symbol, if defined, indicates that the mbtowc routine is available
386 * to covert a multibyte to a wide character.
387 */
388#$d_mbtowc HAS_MBTOWC /**/
389
2304df62 390/* HAS_MEMCMP:
391 * This symbol, if defined, indicates that the memcmp routine is available
392 * to compare blocks of memory.
378cc40b 393 */
2304df62 394#$d_memcmp HAS_MEMCMP /**/
395
396/* HAS_MEMCPY:
9f971974 397 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 398 * to copy blocks of memory.
9f971974 399 */
2304df62 400#$d_memcpy HAS_MEMCPY /**/
9f971974 401
2304df62 402/* HAS_MEMMOVE:
9f971974 403 * This symbol, if defined, indicates that the memmove routine is available
2304df62 404 * to copy potentially overlapping blocks of memory. This should be used
405 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
406 * own version.
9f971974 407 */
2304df62 408#$d_memmove HAS_MEMMOVE /**/
9f971974 409
2304df62 410/* HAS_MEMSET:
9f971974 411 * This symbol, if defined, indicates that the memset routine is available
2304df62 412 * to set blocks of memory.
9f971974 413 */
2304df62 414#$d_memset HAS_MEMSET /**/
378cc40b 415
2304df62 416/* HAS_MKDIR:
a687059c 417 * This symbol, if defined, indicates that the mkdir routine is available
418 * to create directories. Otherwise you should fork off a new process to
419 * exec /bin/mkdir.
420 */
2304df62 421#$d_mkdir HAS_MKDIR /**/
fe14fcc3 422
ecfc5424 423/* HAS_MKFIFO:
424 * This symbol, if defined, indicates that the mkfifo routine is
425 * available to create FIFOs. Otherwise, mknod should be able to
426 * do it for you. However, if mkfifo is there, mknod might require
427 * super-user privileges which mkfifo will not.
428 */
429#$d_mkfifo HAS_MKFIFO /**/
430
a0d0e21e 431/* HAS_MKTIME:
432 * This symbol, if defined, indicates that the mktime routine is
433 * available.
434 */
435#$d_mktime HAS_MKTIME /**/
436
2304df62 437/* HAS_MSG:
fe14fcc3 438 * This symbol, if defined, indicates that the entire msg*(2) library is
2304df62 439 * supported (IPC mechanism based on message queues).
fe14fcc3 440 */
2304df62 441#$d_msg HAS_MSG /**/
fe14fcc3 442
a0d0e21e 443/* HAS_NICE:
444 * This symbol, if defined, indicates that the nice routine is
445 * available.
fe14fcc3 446 */
a0d0e21e 447#$d_nice HAS_NICE /**/
a687059c 448
ecfc5424 449/* HAS_PATHCONF:
450 * This symbol, if defined, indicates that pathconf() is available
451 * to determine file-system related limits and options associated
452 * with a given filename.
453 */
454/* HAS_FPATHCONF:
455 * This symbol, if defined, indicates that pathconf() is available
456 * to determine file-system related limits and options associated
457 * with a given open file descriptor.
458 */
459#$d_pathconf HAS_PATHCONF /**/
460#$d_fpathconf HAS_FPATHCONF /**/
461
a0d0e21e 462/* HAS_PAUSE:
463 * This symbol, if defined, indicates that the pause routine is
464 * available to suspend a process until a signal is received.
a687059c 465 */
a0d0e21e 466#$d_pause HAS_PAUSE /**/
a687059c 467
a0d0e21e 468/* HAS_PIPE:
469 * This symbol, if defined, indicates that the pipe routine is
470 * available to create an inter-process channel.
fe14fcc3 471 */
a0d0e21e 472#$d_pipe HAS_PIPE /**/
473
8e07c86e 474/* HAS_POLL:
475 * This symbol, if defined, indicates that the poll routine is
dfe9444c 476 * available to poll active file descriptors. You may safely
477 * include <poll.h> when this symbol is defined.
8e07c86e 478 */
479#$d_poll HAS_POLL /**/
480
a0d0e21e 481/* HAS_READDIR:
482 * This symbol, if defined, indicates that the readdir routine is
483 * available to read directory entries. You may have to include
484 * <dirent.h>. See I_DIRENT.
485 */
486#$d_readdir HAS_READDIR /**/
487
488/* HAS_SEEKDIR:
489 * This symbol, if defined, indicates that the seekdir routine is
490 * available. You may have to include <dirent.h>. See I_DIRENT.
491 */
492#$d_seekdir HAS_SEEKDIR /**/
493
494/* HAS_TELLDIR:
495 * This symbol, if defined, indicates that the telldir routine is
496 * available. You may have to include <dirent.h>. See I_DIRENT.
497 */
498#$d_telldir HAS_TELLDIR /**/
499
500/* HAS_REWINDDIR:
501 * This symbol, if defined, indicates that the rewinddir routine is
502 * available. You may have to include <dirent.h>. See I_DIRENT.
503 */
504#$d_rewinddir HAS_REWINDDIR /**/
505
506/* HAS_READLINK:
507 * This symbol, if defined, indicates that the readlink routine is
508 * available to read the value of a symbolic link.
509 */
510#$d_readlink HAS_READLINK /**/
fe14fcc3 511
2304df62 512/* HAS_RENAME:
378cc40b 513 * This symbol, if defined, indicates that the rename routine is available
514 * to rename files. Otherwise you should do the unlink(), link(), unlink()
515 * trick.
516 */
2304df62 517#$d_rename HAS_RENAME /**/
378cc40b 518
2304df62 519/* HAS_RMDIR:
520 * This symbol, if defined, indicates that the rmdir routine is
521 * available to remove directories. Otherwise you should fork off a
522 * new process to exec /bin/rmdir.
9f971974 523 */
2304df62 524#$d_rmdir HAS_RMDIR /**/
9f971974 525
2304df62 526/* HAS_SELECT:
527 * This symbol, if defined, indicates that the select routine is
528 * available to select active file descriptors. If the timeout field
529 * is used, <sys/time.h> may need to be included.
fe14fcc3 530 */
2304df62 531#$d_select HAS_SELECT /**/
a687059c 532
2304df62 533/* HAS_SEM:
fe14fcc3 534 * This symbol, if defined, indicates that the entire sem*(2) library is
535 * supported.
536 */
2304df62 537#$d_sem HAS_SEM /**/
fe14fcc3 538
2304df62 539/* HAS_SETEGID:
378cc40b 540 * This symbol, if defined, indicates that the setegid routine is available
541 * to change the effective gid of the current program.
542 */
2304df62 543#$d_setegid HAS_SETEGID /**/
378cc40b 544
2304df62 545/* HAS_SETEUID:
378cc40b 546 * This symbol, if defined, indicates that the seteuid routine is available
547 * to change the effective uid of the current program.
548 */
2304df62 549#$d_seteuid HAS_SETEUID /**/
550
a0d0e21e 551/* HAS_SETLINEBUF:
552 * This symbol, if defined, indicates that the setlinebuf routine is
553 * available to change stderr or stdout from block-buffered or unbuffered
554 * to a line-buffered mode.
555 */
556#$d_setlinebuf HAS_SETLINEBUF /**/
557
558/* HAS_SETLOCALE:
559 * This symbol, if defined, indicates that the setlocale routine is
560 * available to handle locale-specific ctype implementations.
561 */
562#$d_setlocale HAS_SETLOCALE /**/
563
dfe9444c 564/* HAS_SETPGID:
565 * This symbol, if defined, indicates that the setpgid(pid, gpid)
566 * routine is available to set process group ID.
567 */
568#$d_setpgid HAS_SETPGID /**/
569
570/* HAS_SETPGRP:
571 * This symbol, if defined, indicates that the setpgrp routine is
572 * available to set the current process group.
573 */
574/* USE_BSD_SETPGRP:
575 * This symbol, if defined, indicates that setpgrp needs two
576 * arguments whereas USG one needs none. See also HAS_SETPGID
577 * for a POSIX interface.
578 */
579#$d_setpgrp HAS_SETPGRP /**/
580#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
581
2304df62 582/* HAS_SETPGRP2:
d8f2e4cc 583 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
584 * routine is available to set the current process group.
585 */
2304df62 586#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 587
2304df62 588/* HAS_SETPRIORITY:
589 * This symbol, if defined, indicates that the setpriority routine is
a687059c 590 * available to set a process's priority.
591 */
2304df62 592#$d_setprior HAS_SETPRIORITY /**/
a687059c 593
2304df62 594/* HAS_SETREGID:
a687059c 595 * This symbol, if defined, indicates that the setregid routine is
2304df62 596 * available to change the real and effective gid of the current
597 * process.
a687059c 598 */
2304df62 599/* HAS_SETRESGID:
a687059c 600 * This symbol, if defined, indicates that the setresgid routine is
601 * available to change the real, effective and saved gid of the current
2304df62 602 * process.
a687059c 603 */
2304df62 604#$d_setregid HAS_SETREGID /**/
605#$d_setresgid HAS_SETRESGID /**/
a687059c 606
2304df62 607/* HAS_SETREUID:
a687059c 608 * This symbol, if defined, indicates that the setreuid routine is
2304df62 609 * available to change the real and effective uid of the current
610 * process.
a687059c 611 */
2304df62 612/* HAS_SETRESUID:
a687059c 613 * This symbol, if defined, indicates that the setresuid routine is
614 * available to change the real, effective and saved uid of the current
2304df62 615 * process.
a687059c 616 */
2304df62 617#$d_setreuid HAS_SETREUID /**/
618#$d_setresuid HAS_SETRESUID /**/
a687059c 619
2304df62 620/* HAS_SETRGID:
378cc40b 621 * This symbol, if defined, indicates that the setrgid routine is available
622 * to change the real gid of the current program.
623 */
2304df62 624#$d_setrgid HAS_SETRGID /**/
378cc40b 625
2304df62 626/* HAS_SETRUID:
378cc40b 627 * This symbol, if defined, indicates that the setruid routine is available
628 * to change the real uid of the current program.
629 */
2304df62 630#$d_setruid HAS_SETRUID /**/
631
632/* HAS_SETSID:
633 * This symbol, if defined, indicates that the setsid routine is
634 * available to set the process group ID.
635 */
636#$d_setsid HAS_SETSID /**/
fe14fcc3 637
2304df62 638/* HAS_SHM:
fe14fcc3 639 * This symbol, if defined, indicates that the entire shm*(2) library is
640 * supported.
641 */
2304df62 642#$d_shm HAS_SHM /**/
fe14fcc3 643
a0d0e21e 644/* Shmat_t:
645 * This symbol holds the return type of the shmat() system call.
646 * Usually set to 'void *' or 'char *'.
fe14fcc3 647 */
a0d0e21e 648/* HAS_SHMAT_PROTOTYPE:
649 * This symbol, if defined, indicates that the sys/shm.h includes
650 * a prototype for shmat(). Otherwise, it is up to the program to
651 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
652 * but not always right so it should be emitted by the program only
653 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 654 */
a0d0e21e 655#define Shmat_t $shmattype /**/
656#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 657
2304df62 658/* HAS_SOCKET:
a687059c 659 * This symbol, if defined, indicates that the BSD socket interface is
660 * supported.
661 */
2304df62 662/* HAS_SOCKETPAIR:
663 * This symbol, if defined, indicates that the BSD socketpair() call is
a687059c 664 * supported.
665 */
2304df62 666#$d_socket HAS_SOCKET /**/
667#$d_sockpair HAS_SOCKETPAIR /**/
a687059c 668
2304df62 669/* USE_STAT_BLOCKS:
c51b80d1 670 * This symbol is defined if this system has a stat structure declaring
671 * st_blksize and st_blocks.
672 */
2304df62 673#$d_statblks USE_STAT_BLOCKS /**/
c51b80d1 674
dfe9444c 675/* HAS_STRCHR:
676 * This symbol is defined to indicate that the strchr()/strrchr()
677 * functions are available for string searching. If not, try the
678 * index()/rindex() pair.
16d20bd9 679 */
dfe9444c 680/* HAS_INDEX:
681 * This symbol is defined to indicate that the index()/rindex()
682 * functions are available for string searching.
c2960299 683 */
dfe9444c 684#$d_strchr HAS_STRCHR /**/
685#$d_index HAS_INDEX /**/
686
687/* HAS_STRCOLL:
688 * This symbol, if defined, indicates that the strcoll routine is
689 * available to compare strings using collating information.
16d20bd9 690 */
dfe9444c 691#$d_strcoll HAS_STRCOLL /**/
692
693/* USE_STRUCT_COPY:
694 * This symbol, if defined, indicates that this C compiler knows how
695 * to copy structures. If undefined, you'll need to use a block copy
696 * routine of some sort instead.
c2960299 697 */
dfe9444c 698#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 699
a0d0e21e 700/* HAS_STRERROR:
701 * This symbol, if defined, indicates that the strerror routine is
702 * available to translate error numbers to strings. See the writeup
703 * of Strerror() in this file before you try to define your own.
704 */
705/* HAS_SYS_ERRLIST:
706 * This symbol, if defined, indicates that the sys_errlist array is
707 * available to translate error numbers to strings. The extern int
708 * sys_nerr gives the size of that table.
709 */
710/* Strerror:
711 * This preprocessor symbol is defined as a macro if strerror() is
712 * not available to translate error numbers to strings but sys_errlist[]
713 * array is there.
714 */
715#$d_strerror HAS_STRERROR /**/
716#$d_syserrlst HAS_SYS_ERRLIST /**/
717#define Strerror(e) $d_strerrm
718
a89d8a78 719/* HAS_STRTOD:
720 * This symbol, if defined, indicates that the strtod routine is
5f05dabc 721 * available to provide better numeric string conversion than atof().
a89d8a78 722 */
723#$d_strtod HAS_STRTOD /**/
724
725/* HAS_STRTOL:
5f05dabc 726 * This symbol, if defined, indicates that the strtol routine is available
727 * to provide better numeric string conversion than atoi() and friends.
a89d8a78 728 */
729#$d_strtol HAS_STRTOL /**/
730
731/* HAS_STRTOUL:
732 * This symbol, if defined, indicates that the strtoul routine is
5f05dabc 733 * available to provide conversion of strings to unsigned long.
a89d8a78 734 */
735#$d_strtoul HAS_STRTOUL /**/
736
a0d0e21e 737/* HAS_STRXFRM:
738 * This symbol, if defined, indicates that the strxfrm() routine is
739 * available to transform strings.
740 */
741#$d_strxfrm HAS_STRXFRM /**/
742
2304df62 743/* HAS_SYMLINK:
2e1b3b7e 744 * This symbol, if defined, indicates that the symlink routine is available
745 * to create symbolic links.
746 */
2304df62 747#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 748
2304df62 749/* HAS_SYSCALL:
750 * This symbol, if defined, indicates that the syscall routine is
751 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 752 */
2304df62 753#$d_syscall HAS_SYSCALL /**/
e5d73d77 754
ecfc5424 755/* HAS_SYSCONF:
756 * This symbol, if defined, indicates that sysconf() is available
757 * to determine system related limits and options.
758 */
759#$d_sysconf HAS_SYSCONF /**/
760
2304df62 761/* HAS_SYSTEM:
762 * This symbol, if defined, indicates that the system routine is
763 * available to issue a shell command.
9f971974 764 */
2304df62 765#$d_system HAS_SYSTEM /**/
9f971974 766
a0d0e21e 767/* HAS_TCGETPGRP:
768 * This symbol, if defined, indicates that the tcgetpgrp routine is
769 * available to get foreground process group ID.
85e6fe83 770 */
a0d0e21e 771#$d_tcgetpgrp HAS_TCGETPGRP /**/
772
773/* HAS_TCSETPGRP:
774 * This symbol, if defined, indicates that the tcsetpgrp routine is
775 * available to set foreground process group ID.
776 */
777#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 778
ecfc5424 779/* Time_t:
780 * This symbol holds the type returned by time(). It can be long,
781 * or time_t on BSD sites (in which case <sys/types.h> should be
782 * included).
783 */
784#define Time_t $timetype /* Time type */
785
2304df62 786/* HAS_TIMES:
787 * This symbol, if defined, indicates that the times() routine exists.
788 * Note that this became obsolete on some systems (SUNOS), which now
789 * use getrusage(). It may be necessary to include <sys/times.h>.
790 */
791#$d_times HAS_TIMES /**/
792
793/* HAS_TRUNCATE:
87250799 794 * This symbol, if defined, indicates that the truncate routine is
795 * available to truncate files.
796 */
2304df62 797#$d_truncate HAS_TRUNCATE /**/
87250799 798
a0d0e21e 799/* HAS_TZNAME:
800 * This symbol, if defined, indicates that the tzname[] array is
801 * available to access timezone names.
802 */
803#$d_tzname HAS_TZNAME /**/
804
805/* HAS_UMASK:
806 * This symbol, if defined, indicates that the umask routine is
807 * available to set and get the value of the file creation mask.
808 */
809#$d_umask HAS_UMASK /**/
810
811/* HAS_VFORK:
812 * This symbol, if defined, indicates that vfork() exists.
2304df62 813 */
a0d0e21e 814#$d_vfork HAS_VFORK /**/
2304df62 815
2304df62 816/* HASVOLATILE:
afd9f252 817 * This symbol, if defined, indicates that this C compiler knows about
818 * the volatile declaration.
819 */
820#$d_volatile HASVOLATILE /**/
2304df62 821#ifndef HASVOLATILE
822#define volatile
823#endif
afd9f252 824
2304df62 825/* HAS_WAIT4:
bf38876a 826 * This symbol, if defined, indicates that wait4() exists.
827 */
2304df62 828#$d_wait4 HAS_WAIT4 /**/
bf38876a 829
2304df62 830/* HAS_WAITPID:
831 * This symbol, if defined, indicates that the waitpid routine is
832 * available to wait for child process.
39c3038c 833 */
2304df62 834#$d_waitpid HAS_WAITPID /**/
39c3038c 835
a0d0e21e 836/* HAS_WCSTOMBS:
837 * This symbol, if defined, indicates that the wcstombs routine is
838 * available to convert wide character strings to multibyte strings.
839 */
840#$d_wcstombs HAS_WCSTOMBS /**/
841
842/* HAS_WCTOMB:
843 * This symbol, if defined, indicates that the wctomb routine is available
844 * to covert a wide character to a multibyte.
845 */
846#$d_wctomb HAS_WCTOMB /**/
847
848/* Fpos_t:
849 * This symbol holds the type used to declare file positions in libc.
850 * It can be fpos_t, long, uint, etc... It may be necessary to include
851 * <sys/types.h> to get any typedef'ed information.
852 */
853#define Fpos_t $fpostype /* File position type */
854
855/* Gid_t:
856 * This symbol holds the return type of getgid() and the type of
857 * argument to setrgid() and related functions. Typically,
858 * it is the type of group ids in the kernel. It can be int, ushort,
859 * uid_t, etc... It may be necessary to include <sys/types.h> to get
860 * any typedef'ed information.
378cc40b 861 */
a0d0e21e 862#define Gid_t $gidtype /* Type for getgid(), etc... */
378cc40b 863
dfe9444c 864/* I_DBM:
865 * This symbol, if defined, indicates that <dbm.h> exists and should
866 * be included.
232e078e 867 */
dfe9444c 868/* I_RPCSVC_DBM:
869 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
870 * should be included.
232e078e 871 */
dfe9444c 872#$i_dbm I_DBM /**/
873#$i_rpcsvcdbm I_RPCSVC_DBM /**/
232e078e 874
2304df62 875/* I_DIRENT:
876 * This symbol, if defined, indicates to the C program that it should
877 * include <dirent.h>. Using this symbol also triggers the definition
878 * of the Direntry_t define which ends up being 'struct dirent' or
879 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 880 */
2304df62 881/* DIRNAMLEN:
882 * This symbol, if defined, indicates to the C program that the length
883 * of directory entry names is provided by a d_namlen field. Otherwise
884 * you need to do strlen() on the d_name field.
885 */
a0d0e21e 886/* Direntry_t:
887 * This symbol is set to 'struct direct' or 'struct dirent' depending on
888 * whether dirent is available or not. You should use this pseudo type to
889 * portably declare your directory entries.
890 */
2304df62 891#$i_dirent I_DIRENT /**/
892#$d_dirnamlen DIRNAMLEN /**/
a0d0e21e 893#define Direntry_t $direntrytype
894
895/* I_DLFCN:
896 * This symbol, if defined, indicates that <dlfcn.h> exists and should
897 * be included.
898 */
899#$i_dlfcn I_DLFCN /**/
1c3d792e 900
2304df62 901/* I_FCNTL:
fe14fcc3 902 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 903 */
2304df62 904#$i_fcntl I_FCNTL /**/
a687059c 905
a0d0e21e 906/* I_FLOAT:
907 * This symbol, if defined, indicates to the C program that it should
908 * include <float.h> to get definition of symbols like DBL_MAX or
909 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 910 */
a0d0e21e 911#$i_float I_FLOAT /**/
a687059c 912
2304df62 913/* I_GRP:
a687059c 914 * This symbol, if defined, indicates to the C program that it should
2304df62 915 * include <grp.h>.
a687059c 916 */
2304df62 917#$i_grp I_GRP /**/
a687059c 918
a0d0e21e 919/* I_LIMITS:
920 * This symbol, if defined, indicates to the C program that it should
921 * include <limits.h> to get definition of symbols like WORD_BIT or
922 * LONG_MAX, i.e. machine dependant limitations.
923 */
924#$i_limits I_LIMITS /**/
925
dfe9444c 926/* I_LOCALE:
927 * This symbol, if defined, indicates to the C program that it should
928 * include <locale.h>.
929 */
930#$i_locale I_LOCALE /**/
931
a0d0e21e 932/* I_MATH:
933 * This symbol, if defined, indicates to the C program that it should
934 * include <math.h>.
935 */
936#$i_math I_MATH /**/
937
938/* I_MEMORY:
939 * This symbol, if defined, indicates to the C program that it should
940 * include <memory.h>.
941 */
942#$i_memory I_MEMORY /**/
943
232e078e 944/* I_NDBM:
16d20bd9 945 * This symbol, if defined, indicates that <ndbm.h> exists and should
232e078e 946 * be included.
947 */
948#$i_ndbm I_NDBM /**/
949
ecfc5424 950/* I_NET_ERRNO:
951 * This symbol, if defined, indicates that <net/errno.h> exists and
952 * should be included.
2304df62 953 */
ecfc5424 954#$i_neterrno I_NET_ERRNO /**/
2304df62 955
956/* I_NETINET_IN:
03a14243 957 * This symbol, if defined, indicates to the C program that it should
2304df62 958 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 959 */
2304df62 960#$i_niin I_NETINET_IN /**/
03a14243 961
a0d0e21e 962/* I_PWD:
963 * This symbol, if defined, indicates to the C program that it should
964 * include <pwd.h>.
a687059c 965 */
a0d0e21e 966/* PWQUOTA:
967 * This symbol, if defined, indicates to the C program that struct passwd
968 * contains pw_quota.
969 */
970/* PWAGE:
971 * This symbol, if defined, indicates to the C program that struct passwd
972 * contains pw_age.
973 */
974/* PWCHANGE:
975 * This symbol, if defined, indicates to the C program that struct passwd
976 * contains pw_change.
977 */
978/* PWCLASS:
979 * This symbol, if defined, indicates to the C program that struct passwd
980 * contains pw_class.
981 */
982/* PWEXPIRE:
983 * This symbol, if defined, indicates to the C program that struct passwd
984 * contains pw_expire.
985 */
986/* PWCOMMENT:
987 * This symbol, if defined, indicates to the C program that struct passwd
988 * contains pw_comment.
989 */
990#$i_pwd I_PWD /**/
991#$d_pwquota PWQUOTA /**/
992#$d_pwage PWAGE /**/
993#$d_pwchange PWCHANGE /**/
994#$d_pwclass PWCLASS /**/
995#$d_pwexpire PWEXPIRE /**/
996#$d_pwcomment PWCOMMENT /**/
a687059c 997
dfe9444c 998/* I_SFIO:
999 * This symbol, if defined, indicates to the C program that it should
1000 * include <sfio.h>.
1001 */
1002#$i_sfio I_SFIO /**/
1003
2304df62 1004/* I_STDDEF:
1005 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c 1006 * be included.
1007 */
2304df62 1008#$i_stddef I_STDDEF /**/
a687059c 1009
a0d0e21e 1010/* I_STDLIB:
1011 * This symbol, if defined, indicates that <stdlib.h> exists and should
1012 * be included.
1013 */
1014#$i_stdlib I_STDLIB /**/
1015
1016/* I_STRING:
85e6fe83 1017 * This symbol, if defined, indicates to the C program that it should
1018 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
1019 */
1020#$i_string I_STRING /**/
1021
2304df62 1022/* I_SYS_DIR:
1023 * This symbol, if defined, indicates to the C program that it should
1024 * include <sys/dir.h>.
d8f2e4cc 1025 */
2304df62 1026#$i_sysdir I_SYS_DIR /**/
1027
1028/* I_SYS_FILE:
1029 * This symbol, if defined, indicates to the C program that it should
1030 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 1031 */
2304df62 1032#$i_sysfile I_SYS_FILE /**/
1033
1034/* I_SYS_IOCTL:
1035 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
1036 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 1037 */
2304df62 1038#$i_sysioctl I_SYS_IOCTL /**/
1039
1040/* I_SYS_NDIR:
1041 * This symbol, if defined, indicates to the C program that it should
1042 * include <sys/ndir.h>.
1043 */
1044#$i_sysndir I_SYS_NDIR /**/
1045
a0d0e21e 1046/* I_SYS_PARAM:
1047 * This symbol, if defined, indicates to the C program that it should
1048 * include <sys/param.h>.
1049 */
1050#$i_sysparam I_SYS_PARAM /**/
1051
e876cf0b 1052/* I_SYS_RESOURCE:
1053 * This symbol, if defined, indicates to the C program that it should
1054 * include <sys/resource.h>.
1055 */
1056#$i_sysresrc I_SYS_RESOURCE /**/
1057
2304df62 1058/* I_SYS_SELECT:
1059 * This symbol, if defined, indicates to the C program that it should
1060 * include <sys/select.h> in order to get definition of struct timeval.
1061 */
1062#$i_sysselct I_SYS_SELECT /**/
1063
dfe9444c 1064/* I_SYS_STAT:
1065 * This symbol, if defined, indicates to the C program that it should
1066 * include <sys/stat.h>.
1067 */
1068#$i_sysstat I_SYS_STAT /**/
1069
a0d0e21e 1070/* I_SYS_TIMES:
1071 * This symbol, if defined, indicates to the C program that it should
1072 * include <sys/times.h>.
1073 */
1074#$i_systimes I_SYS_TIMES /**/
1075
fed7345c 1076/* I_SYS_TYPES:
1077 * This symbol, if defined, indicates to the C program that it should
1078 * include <sys/types.h>.
1079 */
1080#$i_systypes I_SYS_TYPES /**/
1081
25f94b33 1082/* I_SYS_UN:
1083 * This symbol, if defined, indicates to the C program that it should
1084 * include <sys/un.h> to get UNIX domain socket definitions.
1085 */
1086#$i_sysun I_SYS_UN /**/
1087
e876cf0b 1088/* I_SYS_WAIT:
1089 * This symbol, if defined, indicates to the C program that it should
1090 * include <sys/wait.h>.
1091 */
1092#$i_syswait I_SYS_WAIT /**/
1093
a0d0e21e 1094/* I_TERMIO:
1095 * This symbol, if defined, indicates that the program should include
1096 * <termio.h> rather than <sgtty.h>. There are also differences in
1097 * the ioctl() calls that depend on the value of this symbol.
1098 */
1099/* I_TERMIOS:
1100 * This symbol, if defined, indicates that the program should include
1101 * the POSIX termios.h rather than sgtty.h or termio.h.
1102 * There are also differences in the ioctl() calls that depend on the
1103 * value of this symbol.
1104 */
1105/* I_SGTTY:
1106 * This symbol, if defined, indicates that the program should include
1107 * <sgtty.h> rather than <termio.h>. There are also differences in
1108 * the ioctl() calls that depend on the value of this symbol.
1109 */
1110#$i_termio I_TERMIO /**/
1111#$i_termios I_TERMIOS /**/
1112#$i_sgtty I_SGTTY /**/
1113
85e6fe83 1114/* I_UNISTD:
1115 * This symbol, if defined, indicates to the C program that it should
1116 * include <unistd.h>.
1117 */
1118#$i_unistd I_UNISTD /**/
d8f2e4cc 1119
2304df62 1120/* I_UTIME:
d8f2e4cc 1121 * This symbol, if defined, indicates to the C program that it should
2304df62 1122 * include <utime.h>.
d8f2e4cc 1123 */
2304df62 1124#$i_utime I_UTIME /**/
d8f2e4cc 1125
dfe9444c 1126/* I_VALUES:
1127 * This symbol, if defined, indicates to the C program that it should
1128 * include <values.h> to get definition of symbols like MINFLOAT or
1129 * MAXLONG, i.e. machine dependant limitations. Probably, you
1130 * should use <limits.h> instead, if it is available.
1131 */
1132#$i_values I_VALUES /**/
1133
e876cf0b 1134/* I_STDARG:
1135 * This symbol, if defined, indicates that <stdarg.h> exists and should
1136 * be included.
1137 */
1138/* I_VARARGS:
1139 * This symbol, if defined, indicates to the C program that it should
1140 * include <varargs.h>.
1141 */
1142#$i_stdarg I_STDARG /**/
1143#$i_varargs I_VARARGS /**/
1144
a0d0e21e 1145/* I_VFORK:
1146 * This symbol, if defined, indicates to the C program that it should
1147 * include vfork.h.
1148 */
1149#$i_vfork I_VFORK /**/
a687059c 1150
85e6fe83 1151/* Off_t:
1152 * This symbol holds the type used to declare offsets in the kernel.
1153 * It can be int, long, off_t, etc... It may be necessary to include
1154 * <sys/types.h> to get any typedef'ed information.
1155 */
1156#define Off_t $lseektype /* <offset> type */
1157
dfe9444c 1158/* Free_t:
1159 * This variable contains the return type of free(). It is usually
1160 * void, but occasionally int.
1161 */
1162/* Malloc_t:
1163 * This symbol is the type of pointer returned by malloc and realloc.
1164 */
1165#define Malloc_t $malloctype /**/
1166#define Free_t $freetype /**/
1167
1168/* MYMALLOC:
1169 * This symbol, if defined, indicates that we're using our own malloc.
1170 */
1171#$d_mymalloc MYMALLOC /**/
1172
ecfc5424 1173/* Mode_t:
1174 * This symbol holds the type used to declare file modes
1175 * for systems calls. It is usually mode_t, but may be
1176 * int or unsigned short. It may be necessary to include <sys/types.h>
1177 * to get any typedef'ed information.
1178 */
1179#define Mode_t $modetype /* file mode parameter for system calls */
1180
dfe9444c 1181/* Pid_t:
1182 * This symbol holds the type used to declare process ids in the kernel.
1183 * It can be int, uint, pid_t, etc... It may be necessary to include
1184 * <sys/types.h> to get any typedef'ed information.
774d564b 1185 */
dfe9444c 1186#define Pid_t $pidtype /* PID type */
774d564b 1187
a0d0e21e 1188/* CAN_PROTOTYPE:
1189 * If defined, this macro indicates that the C compiler can handle
1190 * function prototypes.
85e6fe83 1191 */
a0d0e21e 1192/* _:
1193 * This macro is used to declare function parameters for folks who want
1194 * to make declarations with prototypes using a different style than
1195 * the above macros. Use double parentheses. For example:
1196 *
1197 * int main _((int argc, char *argv[]));
1198 */
1199#$prototype CAN_PROTOTYPE /**/
1200#ifdef CAN_PROTOTYPE
1201#define _(args) args
1202#else
1203#define _(args) ()
1204#endif
85e6fe83 1205
dfe9444c 1206/* SH_PATH:
1207 * This symbol contains the full pathname to the shell used on this
1208 * on this system to execute Bourne shell scripts. Usually, this will be
1209 * /bin/sh, though it's possible that some systems will have /bin/ksh,
1210 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
1211 * D:/bin/sh.exe.
a0d0e21e 1212 */
dfe9444c 1213#define SH_PATH "$sh" /**/
a0d0e21e 1214
a0d0e21e 1215/* Size_t:
1216 * This symbol holds the type used to declare length parameters
1217 * for string functions. It is usually size_t, but may be
1218 * unsigned long, int, etc. It may be necessary to include
1219 * <sys/types.h> to get any typedef'ed information.
1220 */
1221#define Size_t $sizetype /* length paramater for string functions */
1222
2304df62 1223/* STDCHAR:
1224 * This symbol is defined to be the type of char used in stdio.h.
1225 * It has the values "unsigned char" or "char".
fe14fcc3 1226 */
2304df62 1227#define STDCHAR $stdchar /**/
1228
1229/* Uid_t:
1230 * This symbol holds the type used to declare user ids in the kernel.
1231 * It can be int, ushort, uid_t, etc... It may be necessary to include
1232 * <sys/types.h> to get any typedef'ed information.
fe14fcc3 1233 */
2304df62 1234#define Uid_t $uidtype /* UID type */
fe14fcc3 1235
dfe9444c 1236/* VOIDFLAGS:
1237 * This symbol indicates how much support of the void type is given by this
1238 * compiler. What various bits mean:
1239 *
1240 * 1 = supports declaration of void
1241 * 2 = supports arrays of pointers to functions returning void
1242 * 4 = supports comparisons between pointers to void functions and
1243 * addresses of void functions
1244 * 8 = suports declaration of generic void pointers
1245 *
1246 * The package designer should define VOIDUSED to indicate the requirements
1247 * of the package. This can be done either by #defining VOIDUSED before
1248 * including config.h, or by defining defvoidused in Myinit.U. If the
1249 * latter approach is taken, only those flags will be tested. If the
1250 * level of void support necessary is not present, defines void to int.
85e6fe83 1251 */
dfe9444c 1252#ifndef VOIDUSED
1253#define VOIDUSED $defvoidused
1254#endif
1255#define VOIDFLAGS $voidflags
1256#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1257#define void int /* is void to be avoided? */
1258#define M_VOID /* Xenix strikes again */
1259#endif
1aef975c 1260
dfe9444c 1261/* MEM_ALIGNBYTES:
1262 * This symbol contains the number of bytes required to align a
1263 * double. Usual values are 2, 4 and 8.
1264 * On NeXT starting with 3.2, you can build "Fat" Multiple Architecture
1265 * Binaries (MAB) for targets with varying alignment. This only matters
1266 * for perl, where the config.h can be generated and installed on one
1267 * system, and used by a different architecture to build an extension.
1268 * The default is eight, for safety.
5f05dabc 1269 */
dfe9444c 1270#define MEM_ALIGNBYTES $alignbytes /**/
5f05dabc 1271
8e07c86e 1272/* BYTEORDER:
e876cf0b 1273 * This symbol holds the hexadecimal constant defined in byteorder,
8e07c86e 1274 * i.e. 0x1234 or 0x4321, etc...
7bac28a0 1275 * On NeXT 3.2 (and greater), you can build "Fat" Multiple Architecture
e876cf0b 1276 * Binaries (MAB) on either big endian or little endian machines.
1277 * The endian-ness is available at compile-time. This only matters
1278 * for perl, where the config.h can be generated and installed on
1279 * one system, and used by a different architecture to build an
1280 * extension. Older versions of NeXT that might not have
1281 * defined either *_ENDIAN__ were all on Motorola 680x0 series,
1282 * so the default case (for NeXT) is big endian to catch them.
1283 * This might matter for NeXT 3.0.
8e07c86e 1284 */
40750cc0 1285#ifndef NeXT
8e07c86e 1286#define BYTEORDER 0x$byteorder /* large digits for MSB */
760ac839 1287#else /* NeXT */
1288#ifdef __LITTLE_ENDIAN__
40750cc0 1289#define BYTEORDER 0x1234
760ac839 1290#else /* __BIG_ENDIAN__ */
1291#define BYTEORDER 0x4321
40750cc0 1292#endif /* ENDIAN CHECK */
760ac839 1293#endif /* NeXT */
8e07c86e 1294
dfe9444c 1295/* CASTI32:
1296 * This symbol is defined if the C compiler can cast negative
1297 * or large floating point numbers to 32-bit ints.
1aef975c 1298 */
dfe9444c 1299#$d_casti32 CASTI32 /**/
85e6fe83 1300
dfe9444c 1301/* CASTNEGFLOAT:
1302 * This symbol is defined if the C compiler can cast negative
1303 * numbers to unsigned longs, ints and shorts.
85e6fe83 1304 */
dfe9444c 1305/* CASTFLAGS:
1306 * This symbol contains flags that say what difficulties the compiler
1307 * has casting odd floating values to unsigned long:
1308 * 0 = ok
1309 * 1 = couldn't cast < 0
1310 * 2 = couldn't cast >= 0x80000000
1311 * 4 = couldn't cast in argument expression list
bccf77a5 1312 */
dfe9444c 1313#$d_castneg CASTNEGFLOAT /**/
1314#define CASTFLAGS $castflags /**/
1315
1316/* VOID_CLOSEDIR:
1317 * This symbol, if defined, indicates that the closedir() routine
1318 * does not return a value.
bccf77a5 1319 */
dfe9444c 1320#$d_void_closedir VOID_CLOSEDIR /**/
bccf77a5 1321
8e07c86e 1322/* Gconvert:
1323 * This preprocessor macro is defined to convert a floating point
1324 * number to a string without a trailing decimal point. This
1325 * emulates the behavior of sprintf("%g"), but is sometimes much more
1326 * efficient. If gconvert() is not available, but gcvt() drops the
1327 * trailing decimal point, then gcvt() is used. If all else fails,
1328 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1329 * macro are: value, number of digits, whether trailing zeros should
1330 * be retained, and the output buffer.
1331 * Possible values are:
1332 * d_Gconvert='gconvert((x),(n),(t),(b))'
1333 * d_Gconvert='gcvt((x),(n),(b))'
1334 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1335 * The last two assume trailing zeros should not be kept.
1336 */
1337#define Gconvert(x,n,t,b) $d_Gconvert
1338
dfe9444c 1339/* HAS_GNULIBC:
c1b76f5d 1340 * This symbol, if defined, indicates to the C program that
dfe9444c 1341 * the GNU C library is being used.
c1b76f5d 1342 */
dfe9444c 1343#$d_gnulibc HAS_GNULIBC /**/
1344/* HAS_ISASCII:
1345 * This manifest constant lets the C program know that isascii
1346 * is available.
c1b76f5d 1347 */
dfe9444c 1348#$d_isascii HAS_ISASCII /**/
c1b76f5d 1349
dfe9444c 1350/* HAS_OPEN3:
1351 * This manifest constant lets the C program know that the three
1352 * argument form of open(2) is available.
774d564b 1353 */
dfe9444c 1354#$d_open3 HAS_OPEN3 /**/
774d564b 1355
dfe9444c 1356/* HAS_SAFE_BCOPY:
1357 * This symbol, if defined, indicates that the bcopy routine is available
1358 * to copy potentially overlapping memory blocks. Otherwise you should
1359 * probably use memmove() or memcpy(). If neither is defined, roll your
1360 * own version.
c1b76f5d 1361 */
dfe9444c 1362#$d_safebcpy HAS_SAFE_BCOPY /**/
c1b76f5d 1363
dfe9444c 1364/* HAS_SAFE_MEMCPY:
1365 * This symbol, if defined, indicates that the memcpy routine is available
1366 * to copy potentially overlapping memory blocks. Otherwise you should
1367 * probably use memmove() or memcpy(). If neither is defined, roll your
1368 * own version.
c1b76f5d 1369 */
dfe9444c 1370#$d_safemcpy HAS_SAFE_MEMCPY /**/
c1b76f5d 1371
dfe9444c 1372/* HAS_SANE_MEMCMP:
1373 * This symbol, if defined, indicates that the memcmp routine is available
1374 * and can be used to compare relative magnitudes of chars with their high
1375 * bits set. If it is not defined, roll your own version.
760ac839 1376 */
dfe9444c 1377#$d_sanemcmp HAS_SANE_MEMCMP /**/
760ac839 1378
dfe9444c 1379/* HAS_SIGACTION:
1380 * This symbol, if defined, indicates that Vr4's sigaction() routine
1381 * is available.
52e1cb5e 1382 */
dfe9444c 1383#$d_sigaction HAS_SIGACTION /**/
52e1cb5e 1384
a5f75d66 1385/* Sigjmp_buf:
760ac839 1386 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
a5f75d66 1387 */
1388/* Sigsetjmp:
760ac839 1389 * This macro is used in the same way as sigsetjmp(), but will invoke
1390 * traditional setjmp() if sigsetjmp isn't available.
1391 * See HAS_SIGSETJMP.
a5f75d66 1392 */
1393/* Siglongjmp:
760ac839 1394 * This macro is used in the same way as siglongjmp(), but will invoke
1395 * traditional longjmp() if siglongjmp isn't available.
1396 * See HAS_SIGSETJMP.
a5f75d66 1397 */
1398#$d_sigsetjmp HAS_SIGSETJMP /**/
1399#ifdef HAS_SIGSETJMP
1400#define Sigjmp_buf sigjmp_buf
760ac839 1401#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1402#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
a5f75d66 1403#else
1404#define Sigjmp_buf jmp_buf
760ac839 1405#define Sigsetjmp(buf,save_mask) setjmp((buf))
1406#define Siglongjmp(buf,retval) longjmp((buf),(retval))
a5f75d66 1407#endif
1408
dfe9444c 1409/* USE_STDIO_PTR:
1410 * This symbol is defined if the _ptr and _cnt fields (or similar)
1411 * of the stdio FILE structure can be used to access the stdio buffer
1412 * for a file handle. If this is defined, then the FILE_ptr(fp)
1413 * and FILE_cnt(fp) macros will also be defined and should be used
1414 * to access these fields.
a687059c 1415 */
dfe9444c 1416/* FILE_ptr:
1417 * This macro is used to access the _ptr field (or equivalent) of the
1418 * FILE structure pointed to by its argument. This macro will always be
1419 * defined if USE_STDIO_PTR is defined.
1420 */
1421/* STDIO_PTR_LVALUE:
1422 * This symbol is defined if the FILE_ptr macro can be used as an
1423 * lvalue.
1424 */
1425/* FILE_cnt:
1426 * This macro is used to access the _cnt field (or equivalent) of the
1427 * FILE structure pointed to by its argument. This macro will always be
1428 * defined if USE_STDIO_PTR is defined.
1429 */
1430/* STDIO_CNT_LVALUE:
1431 * This symbol is defined if the FILE_cnt macro can be used as an
1432 * lvalue.
1433 */
1434#$d_stdstdio USE_STDIO_PTR /**/
1435#ifdef USE_STDIO_PTR
1436#define FILE_ptr(fp) $stdio_ptr
1437#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1438#define FILE_cnt(fp) $stdio_cnt
1439#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1440#endif
a687059c 1441
dfe9444c 1442/* USE_STDIO_BASE:
1443 * This symbol is defined if the _base field (or similar) of the
1444 * stdio FILE structure can be used to access the stdio buffer for
1445 * a file handle. If this is defined, then the FILE_base(fp) macro
1446 * will also be defined and should be used to access this field.
1447 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1448 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1449 * will never be defined unless USE_STDIO_PTR is.
8e07c86e 1450 */
dfe9444c 1451/* FILE_base:
1452 * This macro is used to access the _base field (or equivalent) of the
1453 * FILE structure pointed to by its argument. This macro will always be
1454 * defined if USE_STDIO_BASE is defined.
8e07c86e 1455 */
dfe9444c 1456/* FILE_bufsiz:
1457 * This macro is used to determine the number of bytes in the I/O
1458 * buffer pointed to by _base field (or equivalent) of the FILE
1459 * structure pointed to its argument. This macro will always be defined
1460 * if USE_STDIO_BASE is defined.
1461 */
1462#$d_stdiobase USE_STDIO_BASE /**/
1463#ifdef USE_STDIO_BASE
1464#define FILE_base(fp) $stdio_base
1465#define FILE_bufsiz(fp) $stdio_bufsiz
1466#endif
8e07c86e 1467
dfe9444c 1468/* HAS_VPRINTF:
1469 * This symbol, if defined, indicates that the vprintf routine is available
1470 * to printf with a pointer to an argument list. If unavailable, you
1471 * may need to write your own, probably in terms of _doprnt().
4633a7c4 1472 */
dfe9444c 1473/* USE_CHAR_VSPRINTF:
1474 * This symbol is defined if this system has vsprintf() returning type
1475 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1476 * is up to the package author to declare vsprintf correctly based on the
1477 * symbol.
1478 */
1479#$d_vprintf HAS_VPRINTF /**/
1480#$d_charvspr USE_CHAR_VSPRINTF /**/
4633a7c4 1481
693762b4 1482/* DOUBLESIZE:
1483 * This symbol contains the size of a double, so that the C preprocessor
1484 * can make decisions based on it.
1485 */
1486#define DOUBLESIZE $doublesize /**/
1487
dfe9444c 1488/* I_TIME:
760ac839 1489 * This symbol, if defined, indicates to the C program that it should
dfe9444c 1490 * include <time.h>.
760ac839 1491 */
dfe9444c 1492/* I_SYS_TIME:
1aef975c 1493 * This symbol, if defined, indicates to the C program that it should
dfe9444c 1494 * include <sys/time.h>.
1aef975c 1495 */
dfe9444c 1496/* I_SYS_TIME_KERNEL:
bccf77a5 1497 * This symbol, if defined, indicates to the C program that it should
dfe9444c 1498 * include <sys/time.h> with KERNEL defined.
bccf77a5 1499 */
dfe9444c 1500#$i_time I_TIME /**/
1501#$i_systime I_SYS_TIME /**/
1502#$i_systimek I_SYS_TIME_KERNEL /**/
8e07c86e 1503
dfe9444c 1504/* INTSIZE:
1505 * This symbol contains the value of sizeof(int) so that the C
1506 * preprocessor can make decisions based on it.
94b6baf5 1507 */
dfe9444c 1508/* LONGSIZE:
1509 * This symbol contains the value of sizeof(long) so that the C
1510 * preprocessor can make decisions based on it.
36ce8bec 1511 */
dfe9444c 1512/* SHORTSIZE:
1513 * This symbol contains the value of sizeof(short) so that the C
1514 * preprocessor can make decisions based on it.
1515 */
1516#define INTSIZE $intsize /**/
1517#define LONGSIZE $longsize /**/
1518#define SHORTSIZE $shortsize /**/
36ce8bec 1519
dfe9444c 1520/* VAL_O_NONBLOCK:
1521 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1522 * non-blocking I/O for the file descriptor. Note that there is no way
1523 * back, i.e. you cannot turn it blocking again this way. If you wish to
1524 * alternatively switch between blocking and non-blocking, use the
1525 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
85e6fe83 1526 */
dfe9444c 1527/* VAL_EAGAIN:
1528 * This symbol holds the errno error code set by read() when no data was
1529 * present on the non-blocking file descriptor.
1530 */
1531/* RD_NODATA:
1532 * This symbol holds the return code from read() when no data is present
1533 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1534 * not defined, then you can't distinguish between no data and EOF by
1535 * issuing a read(). You'll have to find another way to tell for sure!
1536 */
1537/* EOF_NONBLOCK:
1538 * This symbol, if defined, indicates to the C program that a read() on
1539 * a non-blocking file descriptor will return 0 on EOF, and not the value
1540 * held in RD_NODATA (-1 usually, in that case!).
1541 */
1542#define VAL_O_NONBLOCK $o_nonblock
1543#define VAL_EAGAIN $eagain
1544#define RD_NODATA $rd_nodata
1545#$d_eofnblk EOF_NONBLOCK
85e6fe83 1546
693762b4 1547/* PTRSIZE:
1548 * This symbol contains the size of a pointer, so that the C preprocessor
1549 * can make decisions based on it. It will be sizeof(void *) if
1550 * the compiler supports (void *); otherwise it will be
1551 * sizeof(char *).
1552 */
1553#define PTRSIZE $ptrsize /**/
1554
dfe9444c 1555/* RANDBITS:
1556 * This symbol contains the number of bits of random number the rand()
1557 * function produces. Usual values are 15, 16, and 31.
1558 */
1559#define RANDBITS $randbits /**/
1560
1561/* SSize_t:
1562 * This symbol holds the type used by functions that return
1563 * a count of bytes or an error condition. It must be a signed type.
1564 * It is usually ssize_t, but may be long or int, etc.
1565 * It may be necessary to include <sys/types.h> or <unistd.h>
1566 * to get any typedef'ed information.
1567 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
1568 */
1569#define SSize_t $ssizetype /* signed count of bytes */
1570
1571/* OSNAME:
1572 * This symbol contains the name of the operating system, as determined
1573 * by Configure. You shouldn't rely on it too much; the specific
1574 * feature tests from Configure are generally more reliable.
1575 */
1576#define OSNAME "$osname" /**/
1577
1578/* ARCHLIB:
e876cf0b 1579 * This variable, if defined, holds the name of the directory in
dfe9444c 1580 * which the user wants to put architecture-dependent public
1581 * library files for $package. It is most often a local directory
1582 * such as /usr/local/lib. Programs using this variable must be
1583 * prepared to deal with filename expansion. If ARCHLIB is the
1584 * same as PRIVLIB, it is not defined, since presumably the
1585 * program already searches PRIVLIB.
1586 */
1587/* ARCHLIB_EXP:
1588 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1589 * in programs that are not prepared to deal with ~ expansion at run-time.
1590 */
1591#$d_archlib ARCHLIB "$archlib" /**/
1592#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
1593
1594/* CAT2:
1595 * This macro catenates 2 tokens together.
1596 */
1597/* STRINGIFY:
1598 * This macro surrounds its token with double quotes.
1599 */
1600#if $cpp_stuff == 1
1601#define CAT2(a,b)a/**/b
1602#define STRINGIFY(a)"a"
1603 /* If you can get stringification with catify, tell me how! */
1604#endif
1605#if $cpp_stuff == 42
1606#define CAT2(a,b)a ## b
1607#define StGiFy(a)# a
1608#define STRINGIFY(a)StGiFy(a)
1609#endif
1610#if $cpp_stuff != 1 && $cpp_stuff != 42
1611#include "Bletch: How does this C preprocessor catenate tokens?"
1612#endif
1613
1614/* CSH:
e5c9fcd0 1615 * This symbol, if defined, contains the full pathname of csh.
dfe9444c 1616 */
e5c9fcd0 1617#$d_csh HAS_CSH /**/
1618#ifdef HAS_CSH
1619#define CSH "$full_csh" /**/
1620#endif
1621
1622/* HAS_ENDHOSTENT:
1623 * This symbol, if defined, indicates that the endhostent() routine is
1624 * available to close whatever was being used for host queries.
1625 */
1626#$d_endhent HAS_ENDHOSTENT /**/
1627
1628/* HAS_ENDNETENT:
1629 * This symbol, if defined, indicates that the endnetent() routine is
1630 * available to close whatever was being used for network queries.
1631 */
1632#$d_endnent HAS_ENDNETENT /**/
1633
1634/* HAS_ENDPROTOENT:
1635 * This symbol, if defined, indicates that the endprotoent() routine is
1636 * available to close whatever was being used for protocol queries.
1637 */
1638#$d_endpent HAS_ENDPROTOENT /**/
1639
1640/* HAS_ENDSERVENT:
1641 * This symbol, if defined, indicates that the endservent() routine is
1642 * available to close whatever was being used for service queries.
1643 */
1644#$d_endsent HAS_ENDSERVENT /**/
dfe9444c 1645
693762b4 1646/* HAS_GETHOSTBYADDR:
1647 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1648 * available to look up hosts by their IP addresses.
1649 */
1650#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
1651
1652/* HAS_GETHOSTBYNAME:
1653 * This symbol, if defined, indicates that the gethostbyname() routine is
1654 * available to look up host names in some data base or other.
1655 */
1656#$d_gethbyname HAS_GETHOSTBYNAME /**/
1657
1658/* HAS_GETHOSTENT:
1659 * This symbol, if defined, indicates that the gethostent() routine is
1660 * available to look up host names in some data base or another.
1661 */
1662#$d_gethent HAS_GETHOSTENT /**/
1663
1664/* HAS_GETNETBYADDR:
1665 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1666 * available to look up networks by their IP addresses.
1667 */
1668#$d_getnbyaddr HAS_GETNETBYADDR /**/
1669
1670/* HAS_GETNETBYNAME:
1671 * This symbol, if defined, indicates that the getnetbyname() routine is
1672 * available to look up networks by their names.
1673 */
1674#$d_getnbyname HAS_GETNETBYNAME /**/
1675
e5c9fcd0 1676/* HAS_GETNETENT:
1677 * This symbol, if defined, indicates that the getnetent() routine is
1678 * available to look up network names in some data base or another.
1679 */
1680#$d_getnent HAS_GETNETENT /**/
1681
1682/* HAS_GETPROTOENT:
1683 * This symbol, if defined, indicates that the getprotoent() routine is
1684 * available to look up protocols in some data base or another.
1685 */
1686#$d_getpent HAS_GETPROTOENT /**/
1687
693762b4 1688/* HAS_GETPROTOBYNAME:
1689 * This symbol, if defined, indicates that the getprotobyname()
1690 * routine is available to look up protocols by their name.
1691 */
1692/* HAS_GETPROTOBYNUMBER:
1693 * This symbol, if defined, indicates that the getprotobynumber()
1694 * routine is available to look up protocols by their number.
1695 */
1696#$d_getpbyname HAS_GETPROTOBYNAME /**/
1697#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
1698
e5c9fcd0 1699/* HAS_GETSERVENT:
1700 * This symbol, if defined, indicates that the getservent() routine is
1701 * available to look up network services in some data base or another.
1702 */
1703#$d_getsent HAS_GETSERVENT /**/
1704
693762b4 1705/* HAS_GETSERVBYNAME:
1706 * This symbol, if defined, indicates that the getservbyname()
1707 * routine is available to look up services by their name.
1708 */
1709/* HAS_GETSERVBYPORT:
1710 * This symbol, if defined, indicates that the getservbyport()
1711 * routine is available to look up services by their port.
1712 */
1713#$d_getsbyname HAS_GETSERVBYNAME /**/
1714#$d_getsbyport HAS_GETSERVBYPORT /**/
1715
e5c9fcd0 1716/* HAS_LONG_DOUBLE:
1717 * This symbol will be defined if the C compiler supports long
1718 * doubles.
1719 */
1720/* LONG_DOUBLESIZE:
1721 * This symbol contains the size of a long double, so that the
1722 * C preprocessor can make decisions based on it. It is only
1723 * defined if the system supports long doubles.
1724 */
1725#$d_longdbl HAS_LONG_DOUBLE /**/
1726#ifdef HAS_LONG_DOUBLE
1727#define LONG_DOUBLESIZE $longdblsize /**/
1728#endif
1729
1730/* HAS_MKSTEMP:
1731 * This symbol, if defined, indicates that the mkstemp routine is
1732 * available to create and open a unique temporary file.
1733 */
1734#$d_mkstemp HAS_MKSTEMP /**/
1735
dfe9444c 1736/* HAS_SETGROUPS:
1737 * This symbol, if defined, indicates that the setgroups() routine is
1738 * available to set the list of process groups. If unavailable, multiple
1739 * groups are probably not supported.
1740 */
1741#$d_setgrps HAS_SETGROUPS /**/
1742
693762b4 1743/* HAS_SETHOSTENT:
1744 * This symbol, if defined, indicates that the sethostent() routine is
1745 * available.
1746 */
1747#$d_sethent HAS_SETHOSTENT /**/
1748
e5c9fcd0 1749/* HAS_SETNETENT:
1750 * This symbol, if defined, indicates that the setnetent() routine is
1751 * available.
1752 */
1753#$d_setnent HAS_SETNETENT /**/
1754
1755/* HAS_SETPROTOENT:
1756 * This symbol, if defined, indicates that the setprotoent() routine is
1757 * available.
1758 */
1759#$d_setpent HAS_SETPROTOENT /**/
1760
1761/* HAS_SETSERVENT:
1762 * This symbol, if defined, indicates that the setservent() routine is
1763 * available.
1764 */
1765#$d_setsent HAS_SETSERVENT /**/
1766
1767/* HAS_SETVBUF:
1768 * This symbol, if defined, indicates that the setvbuf routine is
1769 * available to change buffering on an open stdio stream.
1770 * to a line-buffered mode.
1771 */
1772#$d_setvbuf HAS_SETVBUF /**/
1773
dfe9444c 1774/* Signal_t:
1775 * This symbol's value is either "void" or "int", corresponding to the
1776 * appropriate return type of a signal handler. Thus, you can declare
1777 * a signal handler using "Signal_t (*handler)()", and define the
1778 * handler using "Signal_t handler(sig)".
e876cf0b 1779 */
dfe9444c 1780#define Signal_t $signal_t /* Signal handler's return type */
1781
1782/* Groups_t:
1783 * This symbol holds the type used for the second argument to
1784 * getgroups() and setgropus(). Usually, this is the same as
1785 * gidtype (gid_t) , but sometimes it isn't.
1786 * It can be int, ushort, uid_t, etc...
1787 * It may be necessary to include <sys/types.h> to get any
1788 * typedef'ed information. This is only required if you have
1789 * getgroups() or setgropus()..
4633a7c4 1790 */
dfe9444c 1791#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
1792#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
1793#endif
1794
1795/* I_NETDB:
1796 * This symbol, if defined, indicates that <netdb.h> exists and
1797 * should be included.
1798 */
1799#$i_netdb I_NETDB /**/
4633a7c4 1800
e876cf0b 1801/* PRIVLIB:
1802 * This symbol contains the name of the private library for this package.
1803 * The library is private in the sense that it needn't be in anyone's
1804 * execution path, but it should be accessible by the world. The program
1805 * should be prepared to do ~ expansion.
1806 */
4633a7c4 1807/* PRIVLIB_EXP:
1808 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1809 * in programs that are not prepared to deal with ~ expansion at run-time.
1810 */
e876cf0b 1811#define PRIVLIB "$privlib" /**/
4633a7c4 1812#define PRIVLIB_EXP "$privlibexp" /**/
1813
8e07c86e 1814/* SIG_NAME:
4633a7c4 1815 * This symbol contains a list of signal names in order of
1816 * signal number. This is intended
8e07c86e 1817 * to be used as a static array initialization, like this:
1818 * char *sig_name[] = { SIG_NAME };
1819 * The signals in the list are separated with commas, and each signal
1820 * is surrounded by double quotes. There is no leading SIG in the signal
4633a7c4 1821 * name, i.e. SIGQUIT is known as "QUIT".
1822 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
1823 * etc., where nn is the actual signal number (e.g. NUM37).
8e07c86e 1824 * The signal number for sig_name[i] is stored in sig_num[i].
1825 * The last element is 0 to terminate the list with a NULL. This
1826 * corresponds to the 0 at the end of the sig_num list.
8e07c86e 1827 */
8e07c86e 1828/* SIG_NUM:
4633a7c4 1829 * This symbol contains a list of signal numbers, in the same order as the
8e07c86e 1830 * SIG_NAME list. It is suitable for static array initialization, as in:
1831 * int sig_num[] = { SIG_NUM };
1832 * The signals in the list are separated with commas, and the indices
1833 * within that list and the SIG_NAME list match, so it's easy to compute
1834 * the signal name from a number or vice versa at the price of a small
4633a7c4 1835 * dynamic linear lookup.
1836 * Duplicates are allowed, but are moved to the end of the list.
1837 * The signal number corresponding to sig_name[i] is sig_number[i].
1838 * if (i < NSIG) then sig_number[i] == i.
1839 * The last element is 0, corresponding to the 0 at the end of
1840 * the sig_name list.
8e07c86e 1841 */
dfe9444c 1842#define SIG_NAME $sig_name_init /**/
1843#define SIG_NUM $sig_num /**/
8e07c86e 1844
e876cf0b 1845/* SITEARCH:
1846 * This symbol contains the name of the private library for this package.
1847 * The library is private in the sense that it needn't be in anyone's
1848 * execution path, but it should be accessible by the world. The program
1849 * should be prepared to do ~ expansion.
1850 * The standard distribution will put nothing in this directory.
1851 * Individual sites may place their own extensions and modules in
1852 * this directory.
1853 */
4633a7c4 1854/* SITEARCH_EXP:
1855 * This symbol contains the ~name expanded version of SITEARCH, to be used
16d20bd9 1856 * in programs that are not prepared to deal with ~ expansion at run-time.
1857 */
e876cf0b 1858#define SITEARCH "$sitearch" /**/
4633a7c4 1859#define SITEARCH_EXP "$sitearchexp" /**/
16d20bd9 1860
e876cf0b 1861/* SITELIB:
1862 * This symbol contains the name of the private library for this package.
1863 * The library is private in the sense that it needn't be in anyone's
1864 * execution path, but it should be accessible by the world. The program
1865 * should be prepared to do ~ expansion.
1866 * The standard distribution will put nothing in this directory.
1867 * Individual sites may place their own extensions and modules in
1868 * this directory.
1869 */
25f94b33 1870/* SITELIB_EXP:
1871 * This symbol contains the ~name expanded version of SITELIB, to be used
1872 * in programs that are not prepared to deal with ~ expansion at run-time.
1873 */
e876cf0b 1874#define SITELIB "$sitelib" /**/
25f94b33 1875#define SITELIB_EXP "$sitelibexp" /**/
1876
dfe9444c 1877/* DLSYM_NEEDS_UNDERSCORE:
1878 * This symbol, if defined, indicates that we need to prepend an
1879 * underscore to the symbol name before calling dlsym(). This only
1880 * makes sense if you *have* dlsym, which we will presume is the
1881 * case if you're using dl_dlopen.xs.
1882 */
1883#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
1884
1885/* USE_SFIO:
1886 * This symbol, if defined, indicates that sfio should
1887 * be used.
1888 */
1889#$d_sfio USE_SFIO /**/
1890
1891/* USE_DYNAMIC_LOADING:
1892 * This symbol, if defined, indicates that dynamic loading of
1893 * some sort is available.
1894 */
1895#$usedl USE_DYNAMIC_LOADING /**/
1896
1897/* DB_Prefix_t:
1898 * This symbol contains the type of the prefix structure element
1899 * in the <db.h> header file. In older versions of DB, it was
1900 * int, while in newer ones it is u_int32_t.
1901 */
1902/* DB_Hash_t:
1903 * This symbol contains the type of the prefix structure element
1904 * in the <db.h> header file. In older versions of DB, it was
1905 * int, while in newer ones it is size_t.
1906 */
1907#define DB_Hash_t $db_hashtype /**/
1908#define DB_Prefix_t $db_prefixtype /**/
1909
568ef1f6 1910/* STARTPERL:
1911 * This variable contains the string to put in front of a perl
1912 * script to make sure (one hopes) that it runs with perl and not
1913 * some shell.
1914 */
1915#define STARTPERL "$startperl" /**/
1916
e876cf0b 1917/* USE_PERLIO:
1918 * This symbol, if defined, indicates that the PerlIO abstraction should
1919 * be used throughout. If not defined, stdio should be
1920 * used in a fully backward compatible manner.
1921 */
1922#$useperlio USE_PERLIO /**/
1923
dfe9444c 1924/* Netdb_host_t:
1925 * This symbol holds the type used for the 1st argument
1926 * to gethostbyaddr().
8e07c86e 1927 */
dfe9444c 1928/* Netdb_hlen_t:
1929 * This symbol holds the type used for the 2nd argument
1930 * to gethostbyaddr().
1931 */
1932/* Netdb_name_t:
1933 * This symbol holds the type used for the argument to
1934 * gethostbyname().
1935 */
1936/* Netdb_net_t:
1937 * This symbol holds the type used for the 1st argument to
1938 * getnetbyaddr().
1939 */
1940#define Netdb_host_t $netdb_host_type /**/
1941#define Netdb_hlen_t $netdb_hlen_type /**/
1942#define Netdb_name_t $netdb_name_type /**/
1943#define Netdb_net_t $netdb_net_type /**/
1944
1945/* Select_fd_set_t:
1946 * This symbol holds the type used for the 2nd, 3rd, and 4th
1947 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1948 * is defined, and 'int *' otherwise. This is only useful if you
1949 * have select(), of course.
1950 */
1951#define Select_fd_set_t $selecttype /**/
1952
1953/* ARCHNAME:
1954 * This symbol holds a string representing the architecture name.
1955 * It may be used to construct an architecture-dependant pathname
1956 * where library files may be held under a private library, for
1957 * instance.
1958 */
1959#define ARCHNAME "$archname" /**/
1960
1961/* HAS_PTHREAD_YIELD:
1962 * This symbol, if defined, indicates that the pthread_yield
1963 * routine is available to yield the execution of the current
1964 * thread.
1965 */
1966#$d_pthread_yield HAS_PTHREAD_YIELD /**/
1967
1968/* PTHREADS_CREATED_JOINABLE:
1969 * This symbol, if defined, indicates that pthreads are created
1970 * in the joinable (aka undetached) state.
1971 */
1972#$d_pthreads_created_joinable PTHREADS_CREATED_JOINABLE /**/
1973
1974/* USE_THREADS:
1975 * This symbol, if defined, indicates that Perl should
1976 * be built to use threads.
1977 */
693762b4 1978/* OLD_PTHREADS_API:
1979 * This symbol, if defined, indicates that Perl should
1980 * be built to use the old draft POSIX threads API.
1981 */
dfe9444c 1982#$usethreads USE_THREADS /**/
693762b4 1983#$d_oldpthreads OLD_PTHREADS_API /**/
8e07c86e 1984
fe14fcc3 1985#endif
8d063cd8 1986!GROK!THIS!