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