perl5.000 patch.0f: [enable metaconfig (PL48) users to regenerate Configure]
[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)"
2304df62 18sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!' -e 's!^#un-def!#undef!'
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,
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 *
a0d0e21e 28 * Config_h.U
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.
42 */
43#define MEM_ALIGNBYTES $alignbytes /**/
44
2304df62 45/* BIN:
46 * This symbol holds the path of the bin directory where the package will
47 * be installed. Program must be prepared to deal with ~name substitution.
a687059c 48 */
2304df62 49#define BIN "$bin" /**/
a687059c 50
2304df62 51/* BYTEORDER:
52 * This symbol hold the hexadecimal constant defined in byteorder,
53 * i.e. 0x1234 or 0x4321, etc...
a687059c 54 */
2304df62 55#define BYTEORDER 0x$byteorder /* large digits for MSB */
a687059c 56
2304df62 57/* CPPSTDIN:
36ce8bec 58 * This symbol contains the first part of the string which will invoke
59 * the C preprocessor on the standard input and produce to standard
2304df62 60 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
61 * call a wrapper. See CPPRUN.
36ce8bec 62 */
2304df62 63/* CPPMINUS:
36ce8bec 64 * This symbol contains the second part of the string which will invoke
65 * the C preprocessor on the standard input and produce to standard
378cc40b 66 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
36ce8bec 67 * to specify standard input, otherwise the value is "".
68 */
378cc40b 69#define CPPSTDIN "$cppstdin"
36ce8bec 70#define CPPMINUS "$cppminus"
71
a0d0e21e 72/* HAS_ALARM:
73 * This symbol, if defined, indicates that the alarm routine is
74 * available.
75 */
76#$d_alarm HAS_ALARM /**/
77
2304df62 78/* HAS_BCMP:
79 * This symbol is defined if the bcmp() routine is available to
80 * compare blocks of memory.
a687059c 81 */
2304df62 82#$d_bcmp HAS_BCMP /**/
a687059c 83
2304df62 84/* HAS_BCOPY:
85 * This symbol is defined if the bcopy() routine is available to
86 * copy blocks of memory.
c51b80d1 87 */
2304df62 88#$d_bcopy HAS_BCOPY /**/
c51b80d1 89
2304df62 90/* HAS_BZERO:
91 * This symbol is defined if the bzero() routine is available to
92 * set a memory block to 0.
0d3e774c 93 */
2304df62 94#$d_bzero HAS_BZERO /**/
0d3e774c 95
a0d0e21e 96/* CASTI32:
97 * This symbol is defined if the C compiler can cast negative
98 * or large floating point numbers to 32-bit ints.
99 */
100#$d_casti32 CASTI32 /**/
101
2304df62 102/* CASTNEGFLOAT:
103 * This symbol is defined if the C compiler can cast negative
104 * numbers to unsigned longs, ints and shorts.
b1248f16 105 */
2304df62 106/* CASTFLAGS:
7e1cf235 107 * This symbol contains flags that say what difficulties the compiler
108 * has casting odd floating values to unsigned long:
2304df62 109 * 0 = ok
7e1cf235 110 * 1 = couldn't cast < 0
111 * 2 = couldn't cast >= 0x80000000
112 */
2304df62 113#$d_castneg CASTNEGFLOAT /**/
114#define CASTFLAGS $castflags /**/
ed6116ce 115
2304df62 116/* CHARSPRINTF:
8d063cd8 117 * This symbol is defined if this system declares "char *sprintf()" in
118 * stdio.h. The trend seems to be to declare it as "int sprintf()". It
119 * is up to the package author to declare sprintf correctly based on the
120 * symbol.
121 */
122#$d_charsprf CHARSPRINTF /**/
123
a0d0e21e 124/* HAS_CHOWN:
125 * This symbol, if defined, indicates that the chown routine is
126 * available.
127 */
128#$d_chown HAS_CHOWN /**/
129
130/* HAS_CHROOT:
131 * This symbol, if defined, indicates that the chroot routine is
132 * available.
133 */
134#$d_chroot HAS_CHROOT /**/
135
2304df62 136/* HAS_CHSIZE:
87250799 137 * This symbol, if defined, indicates that the chsize routine is available
138 * to truncate files. You might need a -lx to get this routine.
139 */
fe14fcc3 140#$d_chsize HAS_CHSIZE /**/
87250799 141
2304df62 142/* HASCONST:
143 * This symbol, if defined, indicates that this C compiler knows about
144 * the const type. There is no need to actually test for that symbol
145 * within your programs. The mere use of the "const" keyword will
146 * trigger the necessary tests.
147 */
148#$d_const HASCONST /**/
149#ifndef HASCONST
150#define const
151#endif
152
153/* HAS_CRYPT:
2e1b3b7e 154 * This symbol, if defined, indicates that the crypt routine is available
155 * to encrypt passwords and the like.
156 */
2304df62 157#$d_crypt HAS_CRYPT /**/
2e1b3b7e 158
2304df62 159/* CSH:
bf38876a 160 * This symbol, if defined, indicates that the C-shell exists.
161 * If defined, contains the full pathname of csh.
162 */
163#$d_csh CSH "$csh" /**/
164
a0d0e21e 165/* HAS_CUSERID:
166 * This symbol, if defined, indicates that the cuserid routine is
167 * available to get character login names.
13281fa4 168 */
a0d0e21e 169#$d_cuserid HAS_CUSERID /**/
170
171/* HAS_DBL_DIG:
172 * This symbol, if defined, indicates that this system's <float.h>
173 * or <limits.h> defines the symbol DBL_DIG, which is the number
174 * of significant digits in a double precision number. If this
175 * symbol is not defined, a guess of 15 is usually pretty good.
176 */
177#$d_dbl_dig HAS_DBL_DIG /* */
178
179/* HAS_DIFFTIME:
180 * This symbol, if defined, indicates that the difftime routine is
181 * available.
182 */
183#$d_difftime HAS_DIFFTIME /**/
13281fa4 184
2304df62 185/* HAS_DUP2:
186 * This symbol, if defined, indicates that the dup2 routine is
187 * available to duplicate file descriptors.
a687059c 188 */
2304df62 189#$d_dup2 HAS_DUP2 /**/
a687059c 190
2304df62 191/* HAS_FCHMOD:
378cc40b 192 * This symbol, if defined, indicates that the fchmod routine is available
193 * to change mode of opened files. If unavailable, use chmod().
194 */
2304df62 195#$d_fchmod HAS_FCHMOD /**/
378cc40b 196
2304df62 197/* HAS_FCHOWN:
378cc40b 198 * This symbol, if defined, indicates that the fchown routine is available
199 * to change ownership of opened files. If unavailable, use chown().
200 */
2304df62 201#$d_fchown HAS_FCHOWN /**/
378cc40b 202
2304df62 203/* HAS_FCNTL:
fe14fcc3 204 * This symbol, if defined, indicates to the C program that
205 * the fcntl() function exists.
a687059c 206 */
2304df62 207#$d_fcntl HAS_FCNTL /**/
a687059c 208
a0d0e21e 209/* HAS_FGETPOS:
210 * This symbol, if defined, indicates that the fgetpos routine is
211 * available to get the file position indicator, similar to ftell().
212 */
213#$d_fgetpos HAS_FGETPOS /**/
214
2304df62 215/* FLEXFILENAMES:
7e1cf235 216 * This symbol, if defined, indicates that the system supports filenames
217 * longer than 14 characters.
218 */
219#$d_flexfnam FLEXFILENAMES /**/
220
2304df62 221/* HAS_FLOCK:
222 * This symbol, if defined, indicates that the flock routine is
a687059c 223 * available to do file locking.
224 */
2304df62 225#$d_flock HAS_FLOCK /**/
a687059c 226
a0d0e21e 227/* HAS_FORK:
228 * This symbol, if defined, indicates that the fork routine is
229 * available.
230 */
231#$d_fork HAS_FORK /**/
232
233/* HAS_FSETPOS:
234 * This symbol, if defined, indicates that the fsetpos routine is
235 * available to set the file position indicator, similar to fseek().
236 */
237#$d_fsetpos HAS_FSETPOS /**/
238
2304df62 239/* HAS_GETGROUPS:
378cc40b 240 * This symbol, if defined, indicates that the getgroups() routine is
241 * available to get the list of process groups. If unavailable, multiple
242 * groups are probably not supported.
243 */
2304df62 244#$d_getgrps HAS_GETGROUPS /**/
378cc40b 245
2304df62 246/* HAS_GETHOSTENT:
247 * This symbol, if defined, indicates that the gethostent routine is
a687059c 248 * available to lookup host names in some data base or other.
249 */
2304df62 250#$d_gethent HAS_GETHOSTENT /**/
251
252/* HAS_UNAME:
253 * This symbol, if defined, indicates that the C program may use the
254 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
255 * and PHOSTNAME.
256 */
257#$d_uname HAS_UNAME /**/
a687059c 258
a0d0e21e 259/* HAS_GETLOGIN:
260 * This symbol, if defined, indicates that the getlogin routine is
261 * available to get the login name.
262 */
263#$d_getlogin HAS_GETLOGIN /**/
264
2304df62 265/* HAS_GETPGRP:
266 * This symbol, if defined, indicates that the getpgrp routine is
a687059c 267 * available to get the current process group.
268 */
2304df62 269#$d_getpgrp HAS_GETPGRP /**/
a687059c 270
2304df62 271/* HAS_GETPGRP2:
d8f2e4cc 272 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
273 * routine is available to get the current process group.
274 */
2304df62 275#$d_getpgrp2 HAS_GETPGRP2 /**/
d8f2e4cc 276
a0d0e21e 277/* HAS_GETPPID:
278 * This symbol, if defined, indicates that the getppid routine is
279 * available to get the parent process ID.
280 */
281#$d_getppid HAS_GETPPID /**/
282
2304df62 283/* HAS_GETPRIORITY:
284 * This symbol, if defined, indicates that the getpriority routine is
a687059c 285 * available to get a process's priority.
286 */
2304df62 287#$d_getprior HAS_GETPRIORITY /**/
a687059c 288
a0d0e21e 289/* HAS_GROUP:
290 * This symbol, if defined, indicates that the group routine is
291 * available.
292 */
293#$d_group HAS_GROUP /**/
294
295/* HAS_HTONL:
296 * This symbol, if defined, indicates that the htonl() routine (and
297 * friends htons() ntohl() ntohs()) are available to do network
298 * order byte swapping.
299 */
300/* HAS_HTONS:
301 * This symbol, if defined, indicates that the htons() routine (and
302 * friends htonl() ntohl() ntohs()) are available to do network
303 * order byte swapping.
304 */
305/* HAS_NTOHL:
306 * This symbol, if defined, indicates that the ntohl() routine (and
307 * friends htonl() htons() ntohs()) are available to do network
308 * order byte swapping.
309 */
310/* HAS_NTOHS:
311 * This symbol, if defined, indicates that the ntohs() routine (and
312 * friends htonl() htons() ntohl()) are available to do network
313 * order byte swapping.
314 */
315#$d_htonl HAS_HTONL /**/
316#$d_htonl HAS_HTONS /**/
317#$d_htonl HAS_NTOHL /**/
318#$d_htonl HAS_NTOHS /**/
319
2304df62 320/* HAS_KILLPG:
378cc40b 321 * This symbol, if defined, indicates that the killpg routine is available
322 * to kill process groups. If unavailable, you probably should use kill
323 * with a negative process number.
324 */
2304df62 325#$d_killpg HAS_KILLPG /**/
378cc40b 326
2304df62 327/* HAS_LINK:
328 * This symbol, if defined, indicates that the link routine is
329 * available to create hard links.
0d3e774c 330 */
2304df62 331#$d_link HAS_LINK /**/
0d3e774c 332
a0d0e21e 333/* HAS_LOCKF:
334 * This symbol, if defined, indicates that the lockf routine is
335 * available to do file locking.
336 */
337#$d_lockf HAS_LOCKF /**/
338
2304df62 339/* HAS_LSTAT:
340 * This symbol, if defined, indicates that the lstat routine is
341 * available to do file stats on symbolic links.
a687059c 342 */
2304df62 343#$d_lstat HAS_LSTAT /**/
a687059c 344
a0d0e21e 345/* HAS_MBLEN:
346 * This symbol, if defined, indicates that the mblen routine is available
347 * to find the number of bytes in a multibye character.
348 */
349#$d_mblen HAS_MBLEN /**/
350
351/* HAS_MBSTOWCS:
352 * This symbol, if defined, indicates that the mbstowcs routine is
353 * available to covert a multibyte string into a wide character string.
354 */
355#$d_mbstowcs HAS_MBSTOWCS /**/
356
357/* HAS_MBTOWC:
358 * This symbol, if defined, indicates that the mbtowc routine is available
359 * to covert a multibyte to a wide character.
360 */
361#$d_mbtowc HAS_MBTOWC /**/
362
2304df62 363/* HAS_MEMCMP:
364 * This symbol, if defined, indicates that the memcmp routine is available
365 * to compare blocks of memory.
378cc40b 366 */
2304df62 367#$d_memcmp HAS_MEMCMP /**/
368
369/* HAS_MEMCPY:
9f971974 370 * This symbol, if defined, indicates that the memcpy routine is available
2304df62 371 * to copy blocks of memory.
9f971974 372 */
2304df62 373#$d_memcpy HAS_MEMCPY /**/
9f971974 374
2304df62 375/* HAS_MEMMOVE:
9f971974 376 * This symbol, if defined, indicates that the memmove routine is available
2304df62 377 * to copy potentially overlapping blocks of memory. This should be used
378 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
379 * own version.
9f971974 380 */
2304df62 381#$d_memmove HAS_MEMMOVE /**/
9f971974 382
2304df62 383/* HAS_MEMSET:
9f971974 384 * This symbol, if defined, indicates that the memset routine is available
2304df62 385 * to set blocks of memory.
9f971974 386 */
2304df62 387#$d_memset HAS_MEMSET /**/
378cc40b 388
2304df62 389/* HAS_MKDIR:
a687059c 390 * This symbol, if defined, indicates that the mkdir routine is available
391 * to create directories. Otherwise you should fork off a new process to
392 * exec /bin/mkdir.
393 */
2304df62 394#$d_mkdir HAS_MKDIR /**/
fe14fcc3 395
a0d0e21e 396/* HAS_MKTIME:
397 * This symbol, if defined, indicates that the mktime routine is
398 * available.
399 */
400#$d_mktime HAS_MKTIME /**/
401
2304df62 402/* HAS_MSG:
fe14fcc3 403 * This symbol, if defined, indicates that the entire msg*(2) library is
2304df62 404 * supported (IPC mechanism based on message queues).
fe14fcc3 405 */
2304df62 406#$d_msg HAS_MSG /**/
fe14fcc3 407
a0d0e21e 408/* HAS_NICE:
409 * This symbol, if defined, indicates that the nice routine is
410 * available.
fe14fcc3 411 */
a0d0e21e 412#$d_nice HAS_NICE /**/
a687059c 413
a0d0e21e 414/* HAS_OPEN3:
415 * This manifest constant lets the C program know that the three
416 * argument form of open(2) is available.
fe14fcc3 417 */
a0d0e21e 418#$d_open3 HAS_OPEN3 /**/
fe14fcc3 419
a0d0e21e 420/* HAS_PASSWD:
421 * This symbol, if defined, indicates that the passwd routine is
422 * available.
fe14fcc3 423 */
a0d0e21e 424#$d_passwd HAS_PASSWD /**/
fe14fcc3 425
a0d0e21e 426/* HAS_PAUSE:
427 * This symbol, if defined, indicates that the pause routine is
428 * available to suspend a process until a signal is received.
a687059c 429 */
a0d0e21e 430#$d_pause HAS_PAUSE /**/
a687059c 431
a0d0e21e 432/* HAS_PIPE:
433 * This symbol, if defined, indicates that the pipe routine is
434 * available to create an inter-process channel.
fe14fcc3 435 */
a0d0e21e 436#$d_pipe HAS_PIPE /**/
437
438/* HAS_READDIR:
439 * This symbol, if defined, indicates that the readdir routine is
440 * available to read directory entries. You may have to include
441 * <dirent.h>. See I_DIRENT.
442 */
443#$d_readdir HAS_READDIR /**/
444
445/* HAS_SEEKDIR:
446 * This symbol, if defined, indicates that the seekdir routine is
447 * available. You may have to include <dirent.h>. See I_DIRENT.
448 */
449#$d_seekdir HAS_SEEKDIR /**/
450
451/* HAS_TELLDIR:
452 * This symbol, if defined, indicates that the telldir routine is
453 * available. You may have to include <dirent.h>. See I_DIRENT.
454 */
455#$d_telldir HAS_TELLDIR /**/
456
457/* HAS_REWINDDIR:
458 * This symbol, if defined, indicates that the rewinddir routine is
459 * available. You may have to include <dirent.h>. See I_DIRENT.
460 */
461#$d_rewinddir HAS_REWINDDIR /**/
462
463/* HAS_READLINK:
464 * This symbol, if defined, indicates that the readlink routine is
465 * available to read the value of a symbolic link.
466 */
467#$d_readlink HAS_READLINK /**/
fe14fcc3 468
2304df62 469/* HAS_RENAME:
378cc40b 470 * This symbol, if defined, indicates that the rename routine is available
471 * to rename files. Otherwise you should do the unlink(), link(), unlink()
472 * trick.
473 */
2304df62 474#$d_rename HAS_RENAME /**/
378cc40b 475
2304df62 476/* HAS_RMDIR:
477 * This symbol, if defined, indicates that the rmdir routine is
478 * available to remove directories. Otherwise you should fork off a
479 * new process to exec /bin/rmdir.
9f971974 480 */
2304df62 481#$d_rmdir HAS_RMDIR /**/
9f971974 482
2304df62 483/* HAS_SELECT:
484 * This symbol, if defined, indicates that the select routine is
485 * available to select active file descriptors. If the timeout field
486 * is used, <sys/time.h> may need to be included.
fe14fcc3 487 */
2304df62 488#$d_select HAS_SELECT /**/
a687059c 489
2304df62 490/* HAS_SEM:
fe14fcc3 491 * This symbol, if defined, indicates that the entire sem*(2) library is
492 * supported.
493 */
2304df62 494#$d_sem HAS_SEM /**/
fe14fcc3 495
2304df62 496/* HAS_SETEGID:
378cc40b 497 * This symbol, if defined, indicates that the setegid routine is available
498 * to change the effective gid of the current program.
499 */
2304df62 500#$d_setegid HAS_SETEGID /**/
378cc40b 501
2304df62 502/* HAS_SETEUID:
378cc40b 503 * This symbol, if defined, indicates that the seteuid routine is available
504 * to change the effective uid of the current program.
505 */
2304df62 506#$d_seteuid HAS_SETEUID /**/
507
a0d0e21e 508/* HAS_SETLINEBUF:
509 * This symbol, if defined, indicates that the setlinebuf routine is
510 * available to change stderr or stdout from block-buffered or unbuffered
511 * to a line-buffered mode.
512 */
513#$d_setlinebuf HAS_SETLINEBUF /**/
514
515/* HAS_SETLOCALE:
516 * This symbol, if defined, indicates that the setlocale routine is
517 * available to handle locale-specific ctype implementations.
518 */
519#$d_setlocale HAS_SETLOCALE /**/
520
2304df62 521/* HAS_SETPGID:
522 * This symbol, if defined, indicates that the setpgid routine is
523 * available to set process group ID.
524 */
525#$d_setpgid HAS_SETPGID /**/
378cc40b 526
2304df62 527/* HAS_SETPGRP2:
d8f2e4cc 528 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
529 * routine is available to set the current process group.
530 */
2304df62 531#$d_setpgrp2 HAS_SETPGRP2 /**/
d8f2e4cc 532
2304df62 533/* HAS_SETPRIORITY:
534 * This symbol, if defined, indicates that the setpriority routine is
a687059c 535 * available to set a process's priority.
536 */
2304df62 537#$d_setprior HAS_SETPRIORITY /**/
a687059c 538
2304df62 539/* HAS_SETREGID:
a687059c 540 * This symbol, if defined, indicates that the setregid routine is
2304df62 541 * available to change the real and effective gid of the current
542 * process.
a687059c 543 */
2304df62 544/* HAS_SETRESGID:
a687059c 545 * This symbol, if defined, indicates that the setresgid routine is
546 * available to change the real, effective and saved gid of the current
2304df62 547 * process.
a687059c 548 */
2304df62 549#$d_setregid HAS_SETREGID /**/
550#$d_setresgid HAS_SETRESGID /**/
a687059c 551
2304df62 552/* HAS_SETREUID:
a687059c 553 * This symbol, if defined, indicates that the setreuid routine is
2304df62 554 * available to change the real and effective uid of the current
555 * process.
a687059c 556 */
2304df62 557/* HAS_SETRESUID:
a687059c 558 * This symbol, if defined, indicates that the setresuid routine is
559 * available to change the real, effective and saved uid of the current
2304df62 560 * process.
a687059c 561 */
2304df62 562#$d_setreuid HAS_SETREUID /**/
563#$d_setresuid HAS_SETRESUID /**/
a687059c 564
2304df62 565/* HAS_SETRGID:
378cc40b 566 * This symbol, if defined, indicates that the setrgid routine is available
567 * to change the real gid of the current program.
568 */
2304df62 569#$d_setrgid HAS_SETRGID /**/
378cc40b 570
2304df62 571/* HAS_SETRUID:
378cc40b 572 * This symbol, if defined, indicates that the setruid routine is available
573 * to change the real uid of the current program.
574 */
2304df62 575#$d_setruid HAS_SETRUID /**/
576
577/* HAS_SETSID:
578 * This symbol, if defined, indicates that the setsid routine is
579 * available to set the process group ID.
580 */
581#$d_setsid HAS_SETSID /**/
fe14fcc3 582
2304df62 583/* HAS_SHM:
fe14fcc3 584 * This symbol, if defined, indicates that the entire shm*(2) library is
585 * supported.
586 */
2304df62 587#$d_shm HAS_SHM /**/
fe14fcc3 588
a0d0e21e 589/* Shmat_t:
590 * This symbol holds the return type of the shmat() system call.
591 * Usually set to 'void *' or 'char *'.
fe14fcc3 592 */
a0d0e21e 593/* HAS_SHMAT_PROTOTYPE:
594 * This symbol, if defined, indicates that the sys/shm.h includes
595 * a prototype for shmat(). Otherwise, it is up to the program to
596 * guess one. Shmat_t shmat _((int, Shmat_t, int)) is a good guess,
597 * but not always right so it should be emitted by the program only
598 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
fe14fcc3 599 */
a0d0e21e 600#define Shmat_t $shmattype /**/
601#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
fe14fcc3 602
2304df62 603/* HAS_SOCKET:
a687059c 604 * This symbol, if defined, indicates that the BSD socket interface is
605 * supported.
606 */
2304df62 607/* HAS_SOCKETPAIR:
608 * This symbol, if defined, indicates that the BSD socketpair() call is
a687059c 609 * supported.
610 */
2304df62 611#$d_socket HAS_SOCKET /**/
612#$d_sockpair HAS_SOCKETPAIR /**/
a687059c 613
2304df62 614/* USE_STAT_BLOCKS:
c51b80d1 615 * This symbol is defined if this system has a stat structure declaring
616 * st_blksize and st_blocks.
617 */
2304df62 618#$d_statblks USE_STAT_BLOCKS /**/
c51b80d1 619
2304df62 620/* USE_STD_STDIO:
36ce8bec 621 * This symbol is defined if this system has a FILE structure declaring
622 * _ptr and _cnt in stdio.h.
623 */
2304df62 624#$d_stdstdio USE_STD_STDIO /**/
36ce8bec 625
a0d0e21e 626/* HAS_STRCHR:
627 * This symbol is defined to indicate that the strchr()/strrchr()
628 * functions are available for string searching. If not, try the
629 * index()/rindex() pair.
630 */
631/* HAS_INDEX:
632 * This symbol is defined to indicate that the index()/rindex()
633 * functions are available for string searching.
634 */
635#$d_strchr HAS_STRCHR /**/
636#$d_index HAS_INDEX /**/
637
638/* HAS_STRCOLL:
639 * This symbol, if defined, indicates that the strcoll routine is
640 * available to compare strings using collating information.
641 */
642#$d_strcoll HAS_STRCOLL /**/
643
2304df62 644/* USE_STRUCT_COPY:
8d063cd8 645 * This symbol, if defined, indicates that this C compiler knows how
646 * to copy structures. If undefined, you'll need to use a block copy
647 * routine of some sort instead.
648 */
2304df62 649#$d_strctcpy USE_STRUCT_COPY /**/
8d063cd8 650
a0d0e21e 651/* HAS_STRERROR:
652 * This symbol, if defined, indicates that the strerror routine is
653 * available to translate error numbers to strings. See the writeup
654 * of Strerror() in this file before you try to define your own.
655 */
656/* HAS_SYS_ERRLIST:
657 * This symbol, if defined, indicates that the sys_errlist array is
658 * available to translate error numbers to strings. The extern int
659 * sys_nerr gives the size of that table.
660 */
661/* Strerror:
662 * This preprocessor symbol is defined as a macro if strerror() is
663 * not available to translate error numbers to strings but sys_errlist[]
664 * array is there.
665 */
666#$d_strerror HAS_STRERROR /**/
667#$d_syserrlst HAS_SYS_ERRLIST /**/
668#define Strerror(e) $d_strerrm
669
670/* HAS_STRXFRM:
671 * This symbol, if defined, indicates that the strxfrm() routine is
672 * available to transform strings.
673 */
674#$d_strxfrm HAS_STRXFRM /**/
675
2304df62 676/* HAS_SYMLINK:
2e1b3b7e 677 * This symbol, if defined, indicates that the symlink routine is available
678 * to create symbolic links.
679 */
2304df62 680#$d_symlink HAS_SYMLINK /**/
2e1b3b7e 681
2304df62 682/* HAS_SYSCALL:
683 * This symbol, if defined, indicates that the syscall routine is
684 * available to call arbitrary system calls. If undefined, that's tough.
a687059c 685 */
2304df62 686#$d_syscall HAS_SYSCALL /**/
e5d73d77 687
2304df62 688/* HAS_SYSTEM:
689 * This symbol, if defined, indicates that the system routine is
690 * available to issue a shell command.
9f971974 691 */
2304df62 692#$d_system HAS_SYSTEM /**/
9f971974 693
a0d0e21e 694/* HAS_TCGETPGRP:
695 * This symbol, if defined, indicates that the tcgetpgrp routine is
696 * available to get foreground process group ID.
85e6fe83 697 */
a0d0e21e 698#$d_tcgetpgrp HAS_TCGETPGRP /**/
699
700/* HAS_TCSETPGRP:
701 * This symbol, if defined, indicates that the tcsetpgrp routine is
702 * available to set foreground process group ID.
703 */
704#$d_tcsetpgrp HAS_TCSETPGRP /**/
85e6fe83 705
2304df62 706/* HAS_TIMES:
707 * This symbol, if defined, indicates that the times() routine exists.
708 * Note that this became obsolete on some systems (SUNOS), which now
709 * use getrusage(). It may be necessary to include <sys/times.h>.
710 */
711#$d_times HAS_TIMES /**/
712
713/* HAS_TRUNCATE:
87250799 714 * This symbol, if defined, indicates that the truncate routine is
715 * available to truncate files.
716 */
2304df62 717#$d_truncate HAS_TRUNCATE /**/
87250799 718
a0d0e21e 719/* HAS_TZNAME:
720 * This symbol, if defined, indicates that the tzname[] array is
721 * available to access timezone names.
722 */
723#$d_tzname HAS_TZNAME /**/
724
725/* HAS_UMASK:
726 * This symbol, if defined, indicates that the umask routine is
727 * available to set and get the value of the file creation mask.
728 */
729#$d_umask HAS_UMASK /**/
730
731/* HAS_VFORK:
732 * This symbol, if defined, indicates that vfork() exists.
2304df62 733 */
a0d0e21e 734#$d_vfork HAS_VFORK /**/
2304df62 735
2304df62 736/* VOIDSIG:
737 * This symbol is defined if this system declares "void (*signal(...))()" in
738 * signal.h. The old way was to declare it as "int (*signal(...))()". It
36ce8bec 739 * is up to the package author to declare things correctly based on the
740 * symbol.
741 */
2304df62 742#$d_voidsig VOIDSIG /**/
36ce8bec 743
2304df62 744/* HASVOLATILE:
afd9f252 745 * This symbol, if defined, indicates that this C compiler knows about
746 * the volatile declaration.
747 */
748#$d_volatile HASVOLATILE /**/
2304df62 749#ifndef HASVOLATILE
750#define volatile
751#endif
afd9f252 752
2304df62 753/* HAS_VPRINTF:
a687059c 754 * This symbol, if defined, indicates that the vprintf routine is available
755 * to printf with a pointer to an argument list. If unavailable, you
756 * may need to write your own, probably in terms of _doprnt().
757 */
2304df62 758/* USE_CHAR_VSPRINTF:
a687059c 759 * This symbol is defined if this system has vsprintf() returning type
760 * (char*). The trend seems to be to declare it as "int vsprintf()". It
761 * is up to the package author to declare vsprintf correctly based on the
762 * symbol.
763 */
2304df62 764#$d_vprintf HAS_VPRINTF /**/
765#$d_charvspr USE_CHAR_VSPRINTF /**/
a687059c 766
2304df62 767/* HAS_WAIT4:
bf38876a 768 * This symbol, if defined, indicates that wait4() exists.
769 */
2304df62 770#$d_wait4 HAS_WAIT4 /**/
bf38876a 771
2304df62 772/* HAS_WAITPID:
773 * This symbol, if defined, indicates that the waitpid routine is
774 * available to wait for child process.
39c3038c 775 */
2304df62 776#$d_waitpid HAS_WAITPID /**/
39c3038c 777
a0d0e21e 778/* HAS_WCSTOMBS:
779 * This symbol, if defined, indicates that the wcstombs routine is
780 * available to convert wide character strings to multibyte strings.
781 */
782#$d_wcstombs HAS_WCSTOMBS /**/
783
784/* HAS_WCTOMB:
785 * This symbol, if defined, indicates that the wctomb routine is available
786 * to covert a wide character to a multibyte.
787 */
788#$d_wctomb HAS_WCTOMB /**/
789
790/* Fpos_t:
791 * This symbol holds the type used to declare file positions in libc.
792 * It can be fpos_t, long, uint, etc... It may be necessary to include
793 * <sys/types.h> to get any typedef'ed information.
794 */
795#define Fpos_t $fpostype /* File position type */
796
797/* Gid_t:
798 * This symbol holds the return type of getgid() and the type of
799 * argument to setrgid() and related functions. Typically,
800 * it is the type of group ids in the kernel. It can be int, ushort,
801 * uid_t, etc... It may be necessary to include <sys/types.h> to get
802 * any typedef'ed information.
378cc40b 803 */
a0d0e21e 804#define Gid_t $gidtype /* Type for getgid(), etc... */
378cc40b 805
2304df62 806/* I_DIRENT:
807 * This symbol, if defined, indicates to the C program that it should
808 * include <dirent.h>. Using this symbol also triggers the definition
809 * of the Direntry_t define which ends up being 'struct dirent' or
810 * 'struct direct' depending on the availability of <dirent.h>.
1c3d792e 811 */
2304df62 812/* DIRNAMLEN:
813 * This symbol, if defined, indicates to the C program that the length
814 * of directory entry names is provided by a d_namlen field. Otherwise
815 * you need to do strlen() on the d_name field.
816 */
a0d0e21e 817/* Direntry_t:
818 * This symbol is set to 'struct direct' or 'struct dirent' depending on
819 * whether dirent is available or not. You should use this pseudo type to
820 * portably declare your directory entries.
821 */
2304df62 822#$i_dirent I_DIRENT /**/
823#$d_dirnamlen DIRNAMLEN /**/
a0d0e21e 824#define Direntry_t $direntrytype
825
826/* I_DLFCN:
827 * This symbol, if defined, indicates that <dlfcn.h> exists and should
828 * be included.
829 */
830#$i_dlfcn I_DLFCN /**/
1c3d792e 831
2304df62 832/* I_FCNTL:
fe14fcc3 833 * This manifest constant tells the C program to include <fcntl.h>.
a687059c 834 */
2304df62 835#$i_fcntl I_FCNTL /**/
a687059c 836
a0d0e21e 837/* I_FLOAT:
838 * This symbol, if defined, indicates to the C program that it should
839 * include <float.h> to get definition of symbols like DBL_MAX or
840 * DBL_MIN, i.e. machine dependent floating point values.
a687059c 841 */
a0d0e21e 842#$i_float I_FLOAT /**/
a687059c 843
2304df62 844/* I_GRP:
a687059c 845 * This symbol, if defined, indicates to the C program that it should
2304df62 846 * include <grp.h>.
a687059c 847 */
2304df62 848#$i_grp I_GRP /**/
a687059c 849
a0d0e21e 850/* I_LIMITS:
851 * This symbol, if defined, indicates to the C program that it should
852 * include <limits.h> to get definition of symbols like WORD_BIT or
853 * LONG_MAX, i.e. machine dependant limitations.
854 */
855#$i_limits I_LIMITS /**/
856
857/* I_MATH:
858 * This symbol, if defined, indicates to the C program that it should
859 * include <math.h>.
860 */
861#$i_math I_MATH /**/
862
863/* I_MEMORY:
864 * This symbol, if defined, indicates to the C program that it should
865 * include <memory.h>.
866 */
867#$i_memory I_MEMORY /**/
868
2304df62 869/* I_NDBM:
870 * This symbol, if defined, indicates that ndbm.h exists and should
871 * be included.
872 */
873#$i_ndbm I_NDBM /**/
874
875/* I_NETINET_IN:
03a14243 876 * This symbol, if defined, indicates to the C program that it should
2304df62 877 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
03a14243 878 */
2304df62 879#$i_niin I_NETINET_IN /**/
03a14243 880
a0d0e21e 881/* I_PWD:
882 * This symbol, if defined, indicates to the C program that it should
883 * include <pwd.h>.
a687059c 884 */
a0d0e21e 885/* PWQUOTA:
886 * This symbol, if defined, indicates to the C program that struct passwd
887 * contains pw_quota.
888 */
889/* PWAGE:
890 * This symbol, if defined, indicates to the C program that struct passwd
891 * contains pw_age.
892 */
893/* PWCHANGE:
894 * This symbol, if defined, indicates to the C program that struct passwd
895 * contains pw_change.
896 */
897/* PWCLASS:
898 * This symbol, if defined, indicates to the C program that struct passwd
899 * contains pw_class.
900 */
901/* PWEXPIRE:
902 * This symbol, if defined, indicates to the C program that struct passwd
903 * contains pw_expire.
904 */
905/* PWCOMMENT:
906 * This symbol, if defined, indicates to the C program that struct passwd
907 * contains pw_comment.
908 */
909#$i_pwd I_PWD /**/
910#$d_pwquota PWQUOTA /**/
911#$d_pwage PWAGE /**/
912#$d_pwchange PWCHANGE /**/
913#$d_pwclass PWCLASS /**/
914#$d_pwexpire PWEXPIRE /**/
915#$d_pwcomment PWCOMMENT /**/
a687059c 916
2304df62 917/* I_STDDEF:
918 * This symbol, if defined, indicates that <stddef.h> exists and should
a687059c 919 * be included.
920 */
2304df62 921#$i_stddef I_STDDEF /**/
a687059c 922
a0d0e21e 923/* I_STDLIB:
924 * This symbol, if defined, indicates that <stdlib.h> exists and should
925 * be included.
926 */
927#$i_stdlib I_STDLIB /**/
928
929/* I_STRING:
85e6fe83 930 * This symbol, if defined, indicates to the C program that it should
931 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
932 */
933#$i_string I_STRING /**/
934
2304df62 935/* I_SYS_DIR:
936 * This symbol, if defined, indicates to the C program that it should
937 * include <sys/dir.h>.
d8f2e4cc 938 */
2304df62 939#$i_sysdir I_SYS_DIR /**/
940
941/* I_SYS_FILE:
942 * This symbol, if defined, indicates to the C program that it should
943 * include <sys/file.h> to get definition of R_OK and friends.
d8f2e4cc 944 */
2304df62 945#$i_sysfile I_SYS_FILE /**/
946
947/* I_SYS_IOCTL:
948 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
949 * be included. Otherwise, include <sgtty.h> or <termio.h>.
d8f2e4cc 950 */
2304df62 951#$i_sysioctl I_SYS_IOCTL /**/
952
953/* I_SYS_NDIR:
954 * This symbol, if defined, indicates to the C program that it should
955 * include <sys/ndir.h>.
956 */
957#$i_sysndir I_SYS_NDIR /**/
958
a0d0e21e 959/* I_SYS_PARAM:
960 * This symbol, if defined, indicates to the C program that it should
961 * include <sys/param.h>.
962 */
963#$i_sysparam I_SYS_PARAM /**/
964
2304df62 965/* I_SYS_SELECT:
966 * This symbol, if defined, indicates to the C program that it should
967 * include <sys/select.h> in order to get definition of struct timeval.
968 */
969#$i_sysselct I_SYS_SELECT /**/
970
a0d0e21e 971/* I_SYS_TIMES:
972 * This symbol, if defined, indicates to the C program that it should
973 * include <sys/times.h>.
974 */
975#$i_systimes I_SYS_TIMES /**/
976
977/* I_TERMIO:
978 * This symbol, if defined, indicates that the program should include
979 * <termio.h> rather than <sgtty.h>. There are also differences in
980 * the ioctl() calls that depend on the value of this symbol.
981 */
982/* I_TERMIOS:
983 * This symbol, if defined, indicates that the program should include
984 * the POSIX termios.h rather than sgtty.h or termio.h.
985 * There are also differences in the ioctl() calls that depend on the
986 * value of this symbol.
987 */
988/* I_SGTTY:
989 * This symbol, if defined, indicates that the program should include
990 * <sgtty.h> rather than <termio.h>. There are also differences in
991 * the ioctl() calls that depend on the value of this symbol.
992 */
993#$i_termio I_TERMIO /**/
994#$i_termios I_TERMIOS /**/
995#$i_sgtty I_SGTTY /**/
996
2304df62 997/* I_TIME:
998 * This symbol, if defined, indicates to the C program that it should
999 * include <time.h>.
1000 */
1001/* I_SYS_TIME:
1002 * This symbol, if defined, indicates to the C program that it should
1003 * include <sys/time.h>.
fe14fcc3 1004 */
85e6fe83 1005/* I_SYS_TIME_KERNEL:
1006 * This symbol, if defined, indicates to the C program that it should
1007 * include <sys/time.h> with KERNEL defined.
1008 */
2304df62 1009#$i_time I_TIME /**/
1010#$i_systime I_SYS_TIME /**/
85e6fe83 1011#$i_systimek I_SYS_TIME_KERNEL /**/
1012
1013/* I_UNISTD:
1014 * This symbol, if defined, indicates to the C program that it should
1015 * include <unistd.h>.
1016 */
1017#$i_unistd I_UNISTD /**/
d8f2e4cc 1018
2304df62 1019/* I_UTIME:
d8f2e4cc 1020 * This symbol, if defined, indicates to the C program that it should
2304df62 1021 * include <utime.h>.
d8f2e4cc 1022 */
2304df62 1023#$i_utime I_UTIME /**/
d8f2e4cc 1024
a0d0e21e 1025/* I_STDARG:
1026 * This symbol, if defined, indicates that <stdarg.h> exists and should
1027 * be included.
1028 */
2304df62 1029/* I_VARARGS:
a687059c 1030 * This symbol, if defined, indicates to the C program that it should
2304df62 1031 * include <varargs.h>.
a687059c 1032 */
a0d0e21e 1033#$i_stdarg I_STDARG /**/
1034#$i_varargs I_VARARGS /**/
1035
1036/* I_VFORK:
1037 * This symbol, if defined, indicates to the C program that it should
1038 * include vfork.h.
1039 */
1040#$i_vfork I_VFORK /**/
a687059c 1041
2304df62 1042/* INTSIZE:
a687059c 1043 * This symbol contains the size of an int, so that the C preprocessor
1044 * can make decisions based on it.
1045 */
1046#define INTSIZE $intsize /**/
1047
85e6fe83 1048/* Off_t:
1049 * This symbol holds the type used to declare offsets in the kernel.
1050 * It can be int, long, off_t, etc... It may be necessary to include
1051 * <sys/types.h> to get any typedef'ed information.
1052 */
1053#define Off_t $lseektype /* <offset> type */
1054
2304df62 1055/* PRIVLIB:
1056 * This symbol contains the name of the private library for this package.
1057 * The library is private in the sense that it needn't be in anyone's
1058 * execution path, but it should be accessible by the world. The program
1059 * should be prepared to do ~ expansion.
fe14fcc3 1060 */
2304df62 1061#define PRIVLIB "$privlib" /**/
1062
a0d0e21e 1063/* CAN_PROTOTYPE:
1064 * If defined, this macro indicates that the C compiler can handle
1065 * function prototypes.
85e6fe83 1066 */
a0d0e21e 1067/* _:
1068 * This macro is used to declare function parameters for folks who want
1069 * to make declarations with prototypes using a different style than
1070 * the above macros. Use double parentheses. For example:
1071 *
1072 * int main _((int argc, char *argv[]));
1073 */
1074#$prototype CAN_PROTOTYPE /**/
1075#ifdef CAN_PROTOTYPE
1076#define _(args) args
1077#else
1078#define _(args) ()
1079#endif
85e6fe83 1080
2304df62 1081/* RANDBITS:
1082 * This symbol contains the number of bits of random number the rand()
1083 * function produces. Usual values are 15, 16, and 31.
fe14fcc3 1084 */
2304df62 1085#define RANDBITS $randbits /**/
1086
1087/* SCRIPTDIR:
1088 * This symbol holds the name of the directory in which the user wants
1089 * to put publicly executable scripts for the package in question. It
1090 * is often a directory that is mounted across diverse architectures.
1091 * Programs must be prepared to deal with ~name expansion.
fe14fcc3 1092 */
2304df62 1093#define SCRIPTDIR "$scriptdir" /**/
1094
a0d0e21e 1095/* Select_fd_set_t:
1096 * This symbol holds the type used for the 2nd, 3rd, and 4th
1097 * arguments to select. Usually, this is 'fd_set *', if HAS_FD_SET
1098 * is defined, and 'int *' otherwise. This is only useful if you
1099 * have select(), of course.
1100 */
1101#define Select_fd_set_t $selecttype /**/
1102
1103/* SIG_NAME:
1104 * This symbol contains a list of signal names in order. This is intended
1105 * to be used as a static array initialization, like this:
1106 * char *sig_name[] = { SIG_NAME };
1107 * The signals in the list are separated with commas, and each signal
1108 * is surrounded by double quotes. There is no leading SIG in the signal
1109 * name, i.e. SIGQUIT is known as "QUIT".
1110 */
1111#define SIG_NAME "`echo $sig_name | sed 's/ /","/g'`" /**/
1112
1113/* Size_t:
1114 * This symbol holds the type used to declare length parameters
1115 * for string functions. It is usually size_t, but may be
1116 * unsigned long, int, etc. It may be necessary to include
1117 * <sys/types.h> to get any typedef'ed information.
1118 */
1119#define Size_t $sizetype /* length paramater for string functions */
1120
2304df62 1121/* STDCHAR:
1122 * This symbol is defined to be the type of char used in stdio.h.
1123 * It has the values "unsigned char" or "char".
fe14fcc3 1124 */
2304df62 1125#define STDCHAR $stdchar /**/
1126
1127/* Uid_t:
1128 * This symbol holds the type used to declare user ids in the kernel.
1129 * It can be int, ushort, uid_t, etc... It may be necessary to include
1130 * <sys/types.h> to get any typedef'ed information.
fe14fcc3 1131 */
2304df62 1132#define Uid_t $uidtype /* UID type */
fe14fcc3 1133
a0d0e21e 1134/* VOIDFLAGS:
1135 * This symbol indicates how much support of the void type is given by this
1136 * compiler. What various bits mean:
1137 *
1138 * 1 = supports declaration of void
1139 * 2 = supports arrays of pointers to functions returning void
1140 * 4 = supports comparisons between pointers to void functions and
1141 * addresses of void functions
1142 * 8 = suports declaration of generic void pointers
1143 *
1144 * The package designer should define VOIDUSED to indicate the requirements
1145 * of the package. This can be done either by #defining VOIDUSED before
1146 * including config.h, or by defining defvoidused in Myinit.U. If the
1147 * latter approach is taken, only those flags will be tested. If the
1148 * level of void support necessary is not present, defines void to int.
1149 */
1150#ifndef VOIDUSED
1151#define VOIDUSED $defvoidused
1152#endif
1153#define VOIDFLAGS $voidflags
1154#if (VOIDFLAGS & VOIDUSED) != VOIDUSED
1155#define void int /* is void to be avoided? */
1156#define M_VOID /* Xenix strikes again */
1157#endif
1158
85e6fe83 1159/* EUNICE:
1160 * This symbol, if defined, indicates that the program is being compiled
1161 * under the EUNICE package under VMS. The program will need to handle
1162 * things like files that don't go away the first time you unlink them,
1163 * due to version numbering. It will also need to compensate for lack
1164 * of a respectable link() command.
1165 */
1166/* VMS:
1167 * This symbol, if defined, indicates that the program is running under
1168 * VMS. It is currently only set in conjunction with the EUNICE symbol.
1169 */
1170#$d_eunice EUNICE /**/
1171#$d_eunice VMS /**/
1172
a0d0e21e 1173/* LOC_SED:
1174 * This symbol holds the complete pathname to the sed program.
85e6fe83 1175 */
a0d0e21e 1176#define LOC_SED "$sed" /**/
85e6fe83 1177
a0d0e21e 1178/* ARCHLIB:
1179 * This variable, if defined, holds the name of the directory in
1180 * which the user wants to put architecture-dependent public
1181 * library files for $package. It is most often a local directory
1182 * such as /usr/local/lib. Programs using this variable must be
1183 * prepared to deal with filename expansion. If ARCHLIB is the
1184 * same as PRIVLIB, it is not defined, since presumably the
1185 * program already searches PRIVLIB.
1186 */
1187#$d_archlib ARCHLIB "$archlib" /**/
1188
1189/* CAT2:
1190 * This macro catenates 2 tokens together.
1191 */
1192/* STRINGIFY:
1193 * This macro surrounds its token with double quotes.
1194 */
1195#if $cpp_stuff == 1
1196#define CAT2(a,b)a/**/b
1197#define CAT3(a,b,c)a/**/b/**/c
1198#define CAT4(a,b,c,d)a/**/b/**/c/**/d
1199#define CAT5(a,b,c,d,e)a/**/b/**/c/**/d/**/e
1200#define STRINGIFY(a)"a"
1201 /* If you can get stringification with catify, tell me how! */
1202#endif
1203#if $cpp_stuff == 42
1204#define CAT2(a,b)a ## b
1205#define CAT3(a,b,c)a ## b ## c
1206#define CAT4(a,b,c,d)a ## b ## c ## d
1207#define CAT5(a,b,c,d,e)a ## b ## c ## d ## e
1208#define StGiFy(a)# a
1209#define STRINGIFY(a)StGiFy(a)
1210#define SCAT2(a,b)StGiFy(a) StGiFy(b)
1211#define SCAT3(a,b,c)StGiFy(a) StGiFy(b) StGiFy(c)
1212#define SCAT4(a,b,c,d)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d)
1213#define SCAT5(a,b,c,d,e)StGiFy(a) StGiFy(b) StGiFy(c) StGiFy(d) StGiFy(e)
1214#endif
1215#ifndef CAT2
1216#include "Bletch: How does this C preprocessor catenate tokens?"
1217#endif
1218
1219/* GNUC_ATTRIBUTE_CHECK:
1220 * This symbol indicates the C compiler can check for function attributes,
1221 * such as printf formats.
db4e6270 1222 */
a0d0e21e 1223#$d_attrib GNUC_ATTRIBUTE_CHECK /* */
2304df62 1224
a0d0e21e 1225/* VOID_CLOSEDIR:
1226 * This symbol, if defined, indicates that the closedir() routine
1227 * does not return a value.
85e6fe83 1228 */
a0d0e21e 1229#$d_void_closedir VOID_CLOSEDIR /**/
1230
1231/* HAS_DLERROR:
1232 * This symbol, if defined, indicates that the dlerror routine is
1233 * available.
85e6fe83 1234 */
a0d0e21e 1235#$d_dlerror HAS_DLERROR /**/
1236
1237/* DLSYM_NEEDS_UNDERSCORE:
1238 * This symbol, if defined, indicates that we need to prepend an
1239 * underscore to the symbol name before calling dlsym(). This only
1240 * makes sense if you *have* dlsym, which we will presume is the
1241 * case if you're using dl_dlopen.xs.
85e6fe83 1242 */
a0d0e21e 1243#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /* */
1244
1245/* SETUID_SCRIPTS_ARE_SECURE_NOW:
1246 * This symbol, if defined, indicates that the bug that prevents
1247 * setuid scripts from being secure is not present in this kernel.
85e6fe83 1248 */
a0d0e21e 1249/* DOSUID:
1250 * This symbol, if defined, indicates that the C program should
1251 * check the script that it is executing for setuid/setgid bits, and
1252 * attempt to emulate setuid/setgid on systems that have disabled
1253 * setuid #! scripts because the kernel can't do it securely.
1254 * It is up to the package designer to make sure that this emulation
1255 * is done securely. Among other things, it should do an fstat on
1256 * the script it just opened to make sure it really is a setuid/setgid
1257 * script, it should make sure the arguments passed correspond exactly
1258 * to the argument on the #! line, and it should not trust any
1259 * subprocesses to which it must pass the filename rather than the
1260 * file descriptor of the script to be executed.
1261 */
1262#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1263
1264#$d_dosuid DOSUID /**/
1265
1266/* HAS_DREM:
1267 * This symbol, if defined, indicates that the drem routine is
1268 * available. This is a Pyramid routine that is the same as
1269 * fmod.
1270 */
1271#$d_drem HAS_DREM /**/
1272
1273/* HAS_FMOD:
1274 * This symbol, if defined, indicates that the fmod routine is
1275 * available.
1276 */
1277#$d_fmod HAS_FMOD /**/
1278
1279/* Gconvert:
1280 * This preprocessor macro is defined to convert a floating point
1281 * number to a string without a trailing decimal point. This
1282 * emulates the behavior of sprintf("%g"), but is sometimes much more
1283 * efficient. If gconvert() is not available, but gcvt() drops the
1284 * trailing decimal point, then gcvt() is used. If all else fails,
1285 * a macro using sprintf("%g") is used.
1286 */
1287#define Gconvert(x,n,t,b) $d_Gconvert
85e6fe83 1288
2304df62 1289/* HAS_ISASCII:
a0d0e21e 1290 * This manifest constant lets the C program know that isascii
1291 * is available.
1c3d792e 1292 */
2304df62 1293#$d_isascii HAS_ISASCII /**/
db4e6270 1294
a0d0e21e 1295/* USE_LINUX_STDIO:
1296 * This symbol is defined if this system has a FILE structure declaring
1297 * _IO_read_base, _IO_read_ptr, and _IO_read_end in stdio.h.
85e6fe83 1298 */
a0d0e21e 1299#$d_linuxstd USE_LINUX_STDIO /**/
85e6fe83 1300
a0d0e21e 1301/* HAS_LOCALECONV:
1302 * This symbol, if defined, indicates that the localeconv routine is
1303 * available for numeric and monetary formatting conventions.
85e6fe83 1304 */
a0d0e21e 1305#$d_locconv HAS_LOCALECONV /**/
85e6fe83 1306
a0d0e21e 1307/* HAS_MKFIFO:
1308 * This symbol, if defined, indicates that the mkfifo routine is
1309 * available.
85e6fe83 1310 */
a0d0e21e 1311#$d_mkfifo HAS_MKFIFO /**/
85e6fe83 1312
a0d0e21e 1313/* HAS_PATHCONF:
1314 * This symbol, if defined, indicates that pathconf() is available
1315 * to determine file-system related limits and options associated
1316 * with a given filename.
85e6fe83 1317 */
a0d0e21e 1318/* HAS_FPATHCONF:
1319 * This symbol, if defined, indicates that pathconf() is available
1320 * to determine file-system related limits and options associated
1321 * with a given open file descriptor.
1322 */
1323#$d_pathconf HAS_PATHCONF /**/
1324#$d_fpathconf HAS_FPATHCONF /**/
85e6fe83 1325
1326/* HAS_SAFE_BCOPY:
1327 * This symbol, if defined, indicates that the bcopy routine is available
1328 * to copy potentially overlapping memory blocks. Otherwise you should
1329 * probably use memmove() or memcpy(). If neither is defined, roll your
1330 * own version.
1331 */
1332#$d_safebcpy HAS_SAFE_BCOPY /**/
1333
1334/* HAS_SAFE_MEMCPY:
1335 * This symbol, if defined, indicates that the memcpy routine is available
1336 * to copy potentially overlapping memory blocks. Otherwise you should
1337 * probably use memmove() or memcpy(). If neither is defined, roll your
1338 * own version.
1339 */
1340#$d_safemcpy HAS_SAFE_MEMCPY /**/
1341
a0d0e21e 1342/* HAS_SETPGRP:
1343 * This symbol, if defined, indicates that the setpgrp routine is
1344 * available to set the current process group.
85e6fe83 1345 */
a0d0e21e 1346/* USE_BSDPGRP:
1347 * This symbol, if defined, indicates that the BSD notion of process
1348 * group is to be used. For instance, you have to say setpgrp(pid, pgrp)
1349 * instead of the USG setpgrp().
85e6fe83 1350 */
a0d0e21e 1351#$d_setpgrp HAS_SETPGRP /**/
1352#$d_bsdpgrp USE_BSDPGRP /**/
85e6fe83 1353
a0d0e21e 1354/* HAS_SYSCONF:
1355 * This symbol, if defined, indicates that sysconf() is available
1356 * to determine system related limits and options.
2304df62 1357 */
a0d0e21e 1358#$d_sysconf HAS_SYSCONF /**/
fe14fcc3 1359
a0d0e21e 1360/* Time_t:
1361 * This symbol holds the type returned by time(). It can be long,
1362 * or time_t on BSD sites (in which case <sys/types.h> should be
1363 * included).
85e6fe83 1364 */
a0d0e21e 1365#define Time_t $timetype /* Time type */
85e6fe83 1366
2304df62 1367/* USE_DYNAMIC_LOADING:
1368 * This symbol, if defined, indicates that dynamic loading of
1369 * some sort is available.
a687059c 1370 */
2304df62 1371#$usedl USE_DYNAMIC_LOADING /**/
a687059c 1372
a0d0e21e 1373/* Groups_t:
2304df62 1374 * This symbol holds the type used for the second argument to
1375 * getgroups(). Usually, this is the same of gidtype, but
1376 * sometimes it isn't. It can be int, ushort, uid_t, etc...
1377 * It may be necessary to include <sys/types.h> to get any
1378 * typedef'ed information. This is only required if you have
1379 * getgroups().
a687059c 1380 */
2304df62 1381#ifdef HAS_GETGROUPS
a0d0e21e 1382#define Groups_t $groupstype /* Type for 2nd arg to getgroups() */
2304df62 1383#endif
a687059c 1384
85e6fe83 1385/* I_NET_ERRNO:
1386 * This symbol, if defined, indicates that <net/errno.h> exists and
1387 * should be included.
1388 */
1389#$i_neterrno I_NET_ERRNO /**/
1390
2304df62 1391/* Malloc_t:
1392 * This symbol is the type of pointer returned by malloc and realloc.
36ce8bec 1393 */
2304df62 1394#define Malloc_t $malloctype /**/
36ce8bec 1395
85e6fe83 1396/* MYMALLOC:
1397 * This symbol, if defined, indicates that we're using our own malloc.
1398 */
1399#$d_mymalloc MYMALLOC /**/
1400
a0d0e21e 1401/* Mode_t:
1402 * This symbol holds the type used to declare file modes
1403 * for systems calls. It is usually mode_t, but may be
1404 * int or unsigned short. It may be necessary to include <sys/types.h>
1405 * to get any typedef'ed information.
2304df62 1406 */
a0d0e21e 1407#define Mode_t $modetype /* file mode parameter for system calls*/
8d063cd8 1408
a0d0e21e 1409/* SSize_t:
1410 * This symbol holds the type used by functions that return
1411 * a count of bytes or an error condition. It must be a signed type.
1412 * It is usually ssize_t, but may be long or int, etc.
1413 * It may be necessary to include <sys/types.h> or <unistd.h>
1414 * to get any typedef'ed information.
1415 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
378cc40b 1416 */
a0d0e21e 1417#define SSize_t $ssizetype /* signed count of bytes */
378cc40b 1418
fe14fcc3 1419#endif
8d063cd8 1420!GROK!THIS!