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