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