This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
[perl #128747] Fix line number bug with s//<<END/e
[perl5.git] / config_h.SH
CommitLineData
9f28af37
FC
1#!/bin/sh
2#
43dddb59
MB
3# THIS IS A GENERATED FILE
4# DO NOT HAND-EDIT
5#
6# See Porting/config_h.pl
7
34f1896b 8: Set up for generating config_h.SH
12ae5dfc 9case "$CONFIG_SH" in
776a38e3 10'') CONFIG_SH=config.sh;;
12ae5dfc
JH
11esac
12case "$CONFIG_H" in
776a38e3 13'') CONFIG_H=config.h;;
12ae5dfc 14esac
a02608de 15case $PERL_CONFIG_SH in
8d063cd8 16'')
12ae5dfc
JH
17 if test -f $CONFIG_SH; then TOP=.;
18 elif test -f ../$CONFIG_SH; then TOP=..;
19 elif test -f ../../$CONFIG_SH; then TOP=../..;
20 elif test -f ../../../$CONFIG_SH; then TOP=../../..;
21 elif test -f ../../../../$CONFIG_SH; then TOP=../../../..;
2304df62 22 else
12ae5dfc 23 echo "Can't find $CONFIG_SH."; exit 1
2304df62 24 fi
12ae5dfc 25 . $TOP/$CONFIG_SH
2304df62
AD
26 ;;
27esac
28case "$0" in
29*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
8d063cd8 30esac
11e2f395
RGS
31case "$CONFIG_H" in
32already-done) echo "Not re-extracting config.h" ;;
33*)
43dddb59
MB
34echo "Extracting $CONFIG_H (with variable substitutions)"
35sed <<!GROK!THIS! >$CONFIG_H -e 's!^#undef\(.*/\)\*!/\*#define\1 \*!' -e 's!^#un-def!#undef!'
aa86d596 36/* This file was produced by running the config_h.SH script, which
12ae5dfc 37 * gets its values from $CONFIG_SH, which is generally produced by
8d063cd8
LW
38 * running Configure.
39 *
40 * Feel free to modify any of this as the need arises. Note, however,
1aef975c 41 * that running config_h.SH again will wipe out any changes you've made.
12ae5dfc 42 * For a more permanent change edit $CONFIG_SH and rerun config_h.SH.
8d063cd8
LW
43 */
44
cd95ead5 45/* Package name : $package
dfe9444c
AD
46 * Source directory : $src
47 * Configuration time: $cf_time
48 * Configured by : $cf_by
49 * Target system : $myuname
2304df62 50 */
8d063cd8 51
2304df62
AD
52#ifndef _config_h_
53#define _config_h_
54
dfe9444c
AD
55/* LOC_SED:
56 * This symbol holds the complete pathname to the sed program.
774d564b 57 */
dfe9444c 58#define LOC_SED "$full_sed" /**/
774d564b 59
88fdc172
SB
60/* HAS_ALARM:
61 * This symbol, if defined, indicates that the alarm routine is
62 * available.
a0d0e21e 63 */
88fdc172 64#$d_alarm HAS_ALARM /**/
a0d0e21e 65
88fdc172
SB
66/* HAS_BCMP:
67 * This symbol is defined if the bcmp() routine is available to
68 * compare blocks of memory.
b4eb6b3d 69 */
88fdc172 70#$d_bcmp HAS_BCMP /**/
b4eb6b3d 71
88fdc172
SB
72/* HAS_BCOPY:
73 * This symbol is defined if the bcopy() routine is available to
74 * copy blocks of memory.
a687059c 75 */
88fdc172 76#$d_bcopy HAS_BCOPY /**/
a687059c 77
88fdc172
SB
78/* HAS_BZERO:
79 * This symbol is defined if the bzero() routine is available to
80 * set a memory block to 0.
0d3e774c 81 */
88fdc172 82#$d_bzero HAS_BZERO /**/
0d3e774c 83
f40bbcbf
MB
84/* HAS_CBRT:
85 * This symbol, if defined, indicates that the cbrt() (cube root)
86 * function is available.
87 */
88#$d_cbrt HAS_CBRT /**/
89
88fdc172
SB
90/* HAS_CHOWN:
91 * This symbol, if defined, indicates that the chown routine is
92 * available.
a0d0e21e 93 */
88fdc172 94#$d_chown HAS_CHOWN /**/
a0d0e21e 95
88fdc172
SB
96/* HAS_CHROOT:
97 * This symbol, if defined, indicates that the chroot routine is
98 * available.
a0d0e21e 99 */
88fdc172 100#$d_chroot HAS_CHROOT /**/
a0d0e21e 101
88fdc172
SB
102/* HAS_CHSIZE:
103 * This symbol, if defined, indicates that the chsize routine is available
104 * to truncate files. You might need a -lx to get this routine.
87250799 105 */
88fdc172 106#$d_chsize HAS_CHSIZE /**/
87250799 107
1d8eaf8c
MB
108/* HAS_CRYPT:
109 * This symbol, if defined, indicates that the crypt routine is available
110 * to encrypt passwords and the like.
111 */
112#$d_crypt HAS_CRYPT /**/
113
13cfc98d
MB
114/* HAS_CTERMID:
115 * This symbol, if defined, indicates that the ctermid routine is
116 * available to generate filename for terminal.
117 */
118#$d_ctermid HAS_CTERMID /**/
119
88fdc172
SB
120/* HAS_CUSERID:
121 * This symbol, if defined, indicates that the cuserid routine is
122 * available to get character login names.
13281fa4 123 */
88fdc172 124#$d_cuserid HAS_CUSERID /**/
a0d0e21e 125
88fdc172
SB
126/* HAS_DBL_DIG:
127 * This symbol, if defined, indicates that this system's <float.h>
128 * or <limits.h> defines the symbol DBL_DIG, which is the number
129 * of significant digits in a double precision number. If this
130 * symbol is not defined, a guess of 15 is usually pretty good.
a0d0e21e 131 */
e5eef985 132#$d_dbl_dig HAS_DBL_DIG /**/
a0d0e21e 133
88fdc172
SB
134/* HAS_DIFFTIME:
135 * This symbol, if defined, indicates that the difftime routine is
136 * available.
a0d0e21e 137 */
88fdc172 138#$d_difftime HAS_DIFFTIME /**/
13281fa4 139
88fdc172
SB
140/* HAS_DLERROR:
141 * This symbol, if defined, indicates that the dlerror routine is
142 * available to return a string describing the last error that
143 * occurred from a call to dlopen(), dlclose() or dlsym().
ecfc5424 144 */
88fdc172 145#$d_dlerror HAS_DLERROR /**/
ecfc5424 146
88fdc172
SB
147/* HAS_DUP2:
148 * This symbol, if defined, indicates that the dup2 routine is
149 * available to duplicate file descriptors.
a687059c 150 */
88fdc172 151#$d_dup2 HAS_DUP2 /**/
a687059c 152
88fdc172
SB
153/* HAS_FCHMOD:
154 * This symbol, if defined, indicates that the fchmod routine is available
155 * to change mode of opened files. If unavailable, use chmod().
378cc40b 156 */
88fdc172 157#$d_fchmod HAS_FCHMOD /**/
378cc40b 158
88fdc172
SB
159/* HAS_FCHOWN:
160 * This symbol, if defined, indicates that the fchown routine is available
161 * to change ownership of opened files. If unavailable, use chown().
378cc40b 162 */
88fdc172 163#$d_fchown HAS_FCHOWN /**/
378cc40b 164
88fdc172
SB
165/* HAS_FCNTL:
166 * This symbol, if defined, indicates to the C program that
167 * the fcntl() function exists.
a687059c 168 */
88fdc172 169#$d_fcntl HAS_FCNTL /**/
a687059c 170
88fdc172
SB
171/* HAS_FGETPOS:
172 * This symbol, if defined, indicates that the fgetpos routine is
173 * available to get the file position indicator, similar to ftell().
a0d0e21e 174 */
88fdc172 175#$d_fgetpos HAS_FGETPOS /**/
a0d0e21e 176
88fdc172
SB
177/* HAS_FLOCK:
178 * This symbol, if defined, indicates that the flock routine is
179 * available to do file locking.
a687059c 180 */
88fdc172 181#$d_flock HAS_FLOCK /**/
a687059c 182
88fdc172
SB
183/* HAS_FORK:
184 * This symbol, if defined, indicates that the fork routine is
185 * available.
a0d0e21e 186 */
88fdc172 187#$d_fork HAS_FORK /**/
a0d0e21e 188
88fdc172
SB
189/* HAS_FSETPOS:
190 * This symbol, if defined, indicates that the fsetpos routine is
191 * available to set the file position indicator, similar to fseek().
a0d0e21e 192 */
88fdc172 193#$d_fsetpos HAS_FSETPOS /**/
a0d0e21e 194
88fdc172
SB
195/* HAS_GETTIMEOFDAY:
196 * This symbol, if defined, indicates that the gettimeofday() system
197 * call is available for a sub-second accuracy clock. Usually, the file
198 * <sys/resource.h> needs to be included (see I_SYS_RESOURCE).
199 * The type "Timeval" should be used to refer to "struct timeval".
5f05dabc 200 */
88fdc172
SB
201#$d_gettimeod HAS_GETTIMEOFDAY /**/
202#ifdef HAS_GETTIMEOFDAY
203#define Timeval struct timeval /* Structure used by gettimeofday() */
204#endif
5f05dabc 205
88fdc172
SB
206/* HAS_GETGROUPS:
207 * This symbol, if defined, indicates that the getgroups() routine is
208 * available to get the list of process groups. If unavailable, multiple
209 * groups are probably not supported.
378cc40b 210 */
88fdc172 211#$d_getgrps HAS_GETGROUPS /**/
378cc40b 212
88fdc172
SB
213/* HAS_GETLOGIN:
214 * This symbol, if defined, indicates that the getlogin routine is
215 * available to get the login name.
dfe9444c 216 */
88fdc172 217#$d_getlogin HAS_GETLOGIN /**/
dfe9444c 218
88fdc172 219/* HAS_GETPGID:
bd4dc887 220 * This symbol, if defined, indicates to the C program that
88fdc172
SB
221 * the getpgid(pid) function is available to get the
222 * process group id.
a0d0e21e 223 */
88fdc172 224#$d_getpgid HAS_GETPGID /**/
a0d0e21e 225
88fdc172
SB
226/* HAS_GETPGRP2:
227 * This symbol, if defined, indicates that the getpgrp2() (as in DG/UX)
228 * routine is available to get the current process group.
a687059c 229 */
88fdc172 230#$d_getpgrp2 HAS_GETPGRP2 /**/
ecfc5424 231
88fdc172
SB
232/* HAS_GETPPID:
233 * This symbol, if defined, indicates that the getppid routine is
234 * available to get the parent process ID.
378cc40b 235 */
88fdc172 236#$d_getppid HAS_GETPPID /**/
378cc40b 237
88fdc172
SB
238/* HAS_GETPRIORITY:
239 * This symbol, if defined, indicates that the getpriority routine is
240 * available to get a process's priority.
0d3e774c 241 */
88fdc172 242#$d_getprior HAS_GETPRIORITY /**/
0d3e774c 243
88fdc172
SB
244/* HAS_INET_ATON:
245 * This symbol, if defined, indicates to the C program that the
246 * inet_aton() function is available to parse IP address "dotted-quad"
247 * strings.
a0d0e21e 248 */
88fdc172 249#$d_inetaton HAS_INET_ATON /**/
a0d0e21e 250
88fdc172
SB
251/* HAS_KILLPG:
252 * This symbol, if defined, indicates that the killpg routine is available
253 * to kill process groups. If unavailable, you probably should use kill
254 * with a negative process number.
a687059c 255 */
88fdc172 256#$d_killpg HAS_KILLPG /**/
a687059c 257
88fdc172
SB
258/* HAS_LINK:
259 * This symbol, if defined, indicates that the link routine is
260 * available to create hard links.
a0d0e21e 261 */
88fdc172 262#$d_link HAS_LINK /**/
a0d0e21e 263
88fdc172
SB
264/* HAS_LOCALECONV:
265 * This symbol, if defined, indicates that the localeconv routine is
266 * available for numeric and monetary formatting conventions.
a0d0e21e 267 */
88fdc172 268#$d_locconv HAS_LOCALECONV /**/
a0d0e21e 269
88fdc172
SB
270/* HAS_LOCKF:
271 * This symbol, if defined, indicates that the lockf routine is
272 * available to do file locking.
a0d0e21e 273 */
88fdc172 274#$d_lockf HAS_LOCKF /**/
a0d0e21e 275
88fdc172
SB
276/* HAS_LSTAT:
277 * This symbol, if defined, indicates that the lstat routine is
278 * available to do file stats on symbolic links.
378cc40b 279 */
88fdc172 280#$d_lstat HAS_LSTAT /**/
2304df62 281
88fdc172
SB
282/* HAS_MBLEN:
283 * This symbol, if defined, indicates that the mblen routine is available
284 * to find the number of bytes in a multibye character.
9f971974 285 */
88fdc172 286#$d_mblen HAS_MBLEN /**/
9f971974 287
88fdc172
SB
288/* HAS_MBSTOWCS:
289 * This symbol, if defined, indicates that the mbstowcs routine is
9cdcdad1 290 * available to convert a multibyte string into a wide character string.
9f971974 291 */
88fdc172 292#$d_mbstowcs HAS_MBSTOWCS /**/
9f971974 293
88fdc172
SB
294/* HAS_MBTOWC:
295 * This symbol, if defined, indicates that the mbtowc routine is available
9cdcdad1 296 * to convert a multibyte to a wide character.
9f971974 297 */
88fdc172 298#$d_mbtowc HAS_MBTOWC /**/
378cc40b 299
88fdc172
SB
300/* HAS_MEMCMP:
301 * This symbol, if defined, indicates that the memcmp routine is available
302 * to compare blocks of memory.
a687059c 303 */
88fdc172 304#$d_memcmp HAS_MEMCMP /**/
fe14fcc3 305
88fdc172
SB
306/* HAS_MEMCPY:
307 * This symbol, if defined, indicates that the memcpy routine is available
308 * to copy blocks of memory.
ecfc5424 309 */
88fdc172 310#$d_memcpy HAS_MEMCPY /**/
ecfc5424 311
88fdc172
SB
312/* HAS_MEMMOVE:
313 * This symbol, if defined, indicates that the memmove routine is available
314 * to copy potentially overlapping blocks of memory. This should be used
315 * only when HAS_SAFE_BCOPY is not defined. If neither is there, roll your
316 * own version.
a0d0e21e 317 */
88fdc172 318#$d_memmove HAS_MEMMOVE /**/
a0d0e21e 319
88fdc172
SB
320/* HAS_MEMSET:
321 * This symbol, if defined, indicates that the memset routine is available
322 * to set blocks of memory.
fe749a9f 323 */
88fdc172 324#$d_memset HAS_MEMSET /**/
fe749a9f 325
88fdc172
SB
326/* HAS_MKDIR:
327 * This symbol, if defined, indicates that the mkdir routine is available
328 * to create directories. Otherwise you should fork off a new process to
329 * exec /bin/mkdir.
fe749a9f 330 */
88fdc172 331#$d_mkdir HAS_MKDIR /**/
fe749a9f 332
88fdc172
SB
333/* HAS_MKFIFO:
334 * This symbol, if defined, indicates that the mkfifo routine is
335 * available to create FIFOs. Otherwise, mknod should be able to
336 * do it for you. However, if mkfifo is there, mknod might require
337 * super-user privileges which mkfifo will not.
fe14fcc3 338 */
88fdc172 339#$d_mkfifo HAS_MKFIFO /**/
a687059c 340
88fdc172
SB
341/* HAS_MKTIME:
342 * This symbol, if defined, indicates that the mktime routine is
343 * available.
ecfc5424 344 */
88fdc172 345#$d_mktime HAS_MKTIME /**/
ecfc5424 346
88fdc172
SB
347/* HAS_MSYNC:
348 * This symbol, if defined, indicates that the msync system call is
349 * available to synchronize a mapped file.
a687059c 350 */
88fdc172 351#$d_msync HAS_MSYNC /**/
a687059c 352
88fdc172
SB
353/* HAS_MUNMAP:
354 * This symbol, if defined, indicates that the munmap system call is
355 * available to unmap a region, usually mapped by mmap().
fe14fcc3 356 */
88fdc172 357#$d_munmap HAS_MUNMAP /**/
a0d0e21e 358
88fdc172
SB
359/* HAS_NICE:
360 * This symbol, if defined, indicates that the nice routine is
361 * available.
8e07c86e 362 */
88fdc172 363#$d_nice HAS_NICE /**/
8e07c86e 364
88fdc172
SB
365/* HAS_PATHCONF:
366 * This symbol, if defined, indicates that pathconf() is available
367 * to determine file-system related limits and options associated
368 * with a given filename.
a0d0e21e 369 */
88fdc172
SB
370/* HAS_FPATHCONF:
371 * This symbol, if defined, indicates that pathconf() is available
372 * to determine file-system related limits and options associated
373 * with a given open file descriptor.
a0d0e21e 374 */
88fdc172
SB
375#$d_pathconf HAS_PATHCONF /**/
376#$d_fpathconf HAS_FPATHCONF /**/
a0d0e21e 377
88fdc172
SB
378/* HAS_PAUSE:
379 * This symbol, if defined, indicates that the pause routine is
380 * available to suspend a process until a signal is received.
a0d0e21e 381 */
88fdc172 382#$d_pause HAS_PAUSE /**/
a0d0e21e 383
88fdc172
SB
384/* HAS_PIPE:
385 * This symbol, if defined, indicates that the pipe routine is
386 * available to create an inter-process channel.
a0d0e21e 387 */
88fdc172 388#$d_pipe HAS_PIPE /**/
fe14fcc3 389
1d8eaf8c
MB
390/* HAS_POLL:
391 * This symbol, if defined, indicates that the poll routine is
392 * available to poll active file descriptors. Please check I_POLL and
393 * I_SYS_POLL to know which header should be included as well.
394 */
395#$d_poll HAS_POLL /**/
396
88fdc172
SB
397/* HAS_READDIR:
398 * This symbol, if defined, indicates that the readdir routine is
399 * available to read directory entries. You may have to include
400 * <dirent.h>. See I_DIRENT.
378cc40b 401 */
88fdc172 402#$d_readdir HAS_READDIR /**/
378cc40b 403
88fdc172
SB
404/* HAS_SEEKDIR:
405 * This symbol, if defined, indicates that the seekdir routine is
406 * available. You may have to include <dirent.h>. See I_DIRENT.
378cc40b 407 */
88fdc172 408#$d_seekdir HAS_SEEKDIR /**/
2304df62 409
88fdc172
SB
410/* HAS_TELLDIR:
411 * This symbol, if defined, indicates that the telldir routine is
412 * available. You may have to include <dirent.h>. See I_DIRENT.
a0d0e21e 413 */
88fdc172 414#$d_telldir HAS_TELLDIR /**/
a0d0e21e 415
88fdc172
SB
416/* HAS_REWINDDIR:
417 * This symbol, if defined, indicates that the rewinddir routine is
418 * available. You may have to include <dirent.h>. See I_DIRENT.
a0d0e21e 419 */
88fdc172 420#$d_rewinddir HAS_REWINDDIR /**/
a0d0e21e 421
88fdc172
SB
422/* HAS_READLINK:
423 * This symbol, if defined, indicates that the readlink routine is
424 * available to read the value of a symbolic link.
dfe9444c 425 */
88fdc172 426#$d_readlink HAS_READLINK /**/
dfe9444c 427
f40bbcbf
MB
428/* HAS_REGCOMP:
429 * This symbol, if defined, indicates that the regcomp() routine is
430 * available to do some regular patern matching (usually on POSIX.2
431 * conforming systems).
427d28ce 432 */
f40bbcbf 433#$d_regcomp HAS_REGCOMP /* POSIX.2 */
427d28ce 434
88fdc172
SB
435/* HAS_RENAME:
436 * This symbol, if defined, indicates that the rename routine is available
437 * to rename files. Otherwise you should do the unlink(), link(), unlink()
438 * trick.
d8f2e4cc 439 */
88fdc172 440#$d_rename HAS_RENAME /**/
d8f2e4cc 441
88fdc172
SB
442/* HAS_RMDIR:
443 * This symbol, if defined, indicates that the rmdir routine is
444 * available to remove directories. Otherwise you should fork off a
445 * new process to exec /bin/rmdir.
a687059c 446 */
88fdc172 447#$d_rmdir HAS_RMDIR /**/
a687059c 448
88fdc172
SB
449/* HAS_SELECT:
450 * This symbol, if defined, indicates that the select routine is
451 * available to select active file descriptors. If the timeout field
452 * is used, <sys/time.h> may need to be included.
a687059c 453 */
88fdc172 454#$d_select HAS_SELECT /**/
a687059c 455
88fdc172
SB
456/* HAS_SETEGID:
457 * This symbol, if defined, indicates that the setegid routine is available
458 * to change the effective gid of the current program.
a687059c 459 */
88fdc172 460#$d_setegid HAS_SETEGID /**/
a687059c 461
88fdc172
SB
462/* HAS_SETEUID:
463 * This symbol, if defined, indicates that the seteuid routine is available
464 * to change the effective uid of the current program.
378cc40b 465 */
88fdc172 466#$d_seteuid HAS_SETEUID /**/
378cc40b 467
1d8eaf8c
MB
468/* HAS_SETGROUPS:
469 * This symbol, if defined, indicates that the setgroups() routine is
470 * available to set the list of process groups. If unavailable, multiple
471 * groups are probably not supported.
472 */
473#$d_setgrps HAS_SETGROUPS /**/
474
88fdc172
SB
475/* HAS_SETLINEBUF:
476 * This symbol, if defined, indicates that the setlinebuf routine is
477 * available to change stderr or stdout from block-buffered or unbuffered
478 * to a line-buffered mode.
378cc40b 479 */
88fdc172 480#$d_setlinebuf HAS_SETLINEBUF /**/
2304df62 481
88fdc172
SB
482/* HAS_SETLOCALE:
483 * This symbol, if defined, indicates that the setlocale routine is
484 * available to handle locale-specific ctype implementations.
2304df62 485 */
88fdc172 486#$d_setlocale HAS_SETLOCALE /**/
fe14fcc3 487
88fdc172
SB
488/* HAS_SETPGID:
489 * This symbol, if defined, indicates that the setpgid(pid, gpid)
490 * routine is available to set process group ID.
c2960299 491 */
88fdc172 492#$d_setpgid HAS_SETPGID /**/
dfe9444c 493
88fdc172
SB
494/* HAS_SETPGRP2:
495 * This symbol, if defined, indicates that the setpgrp2() (as in DG/UX)
496 * routine is available to set the current process group.
16d20bd9 497 */
88fdc172 498#$d_setpgrp2 HAS_SETPGRP2 /**/
dfe9444c 499
88fdc172
SB
500/* HAS_SETPRIORITY:
501 * This symbol, if defined, indicates that the setpriority routine is
502 * available to set a process's priority.
c2960299 503 */
88fdc172 504#$d_setprior HAS_SETPRIORITY /**/
8d063cd8 505
88fdc172
SB
506/* HAS_SETREGID:
507 * This symbol, if defined, indicates that the setregid routine is
508 * available to change the real and effective gid of the current
509 * process.
a89d8a78 510 */
88fdc172
SB
511/* HAS_SETRESGID:
512 * This symbol, if defined, indicates that the setresgid routine is
513 * available to change the real, effective and saved gid of the current
514 * process.
a89d8a78 515 */
88fdc172
SB
516#$d_setregid HAS_SETREGID /**/
517#$d_setresgid HAS_SETRESGID /**/
a89d8a78 518
88fdc172
SB
519/* HAS_SETREUID:
520 * This symbol, if defined, indicates that the setreuid routine is
521 * available to change the real and effective uid of the current
522 * process.
a0d0e21e 523 */
88fdc172
SB
524/* HAS_SETRESUID:
525 * This symbol, if defined, indicates that the setresuid routine is
526 * available to change the real, effective and saved uid of the current
527 * process.
2e1b3b7e 528 */
88fdc172
SB
529#$d_setreuid HAS_SETREUID /**/
530#$d_setresuid HAS_SETRESUID /**/
2e1b3b7e 531
88fdc172
SB
532/* HAS_SETRGID:
533 * This symbol, if defined, indicates that the setrgid routine is available
534 * to change the real gid of the current program.
a687059c 535 */
88fdc172 536#$d_setrgid HAS_SETRGID /**/
e5d73d77 537
88fdc172
SB
538/* HAS_SETRUID:
539 * This symbol, if defined, indicates that the setruid routine is available
540 * to change the real uid of the current program.
ecfc5424 541 */
88fdc172 542#$d_setruid HAS_SETRUID /**/
ecfc5424 543
88fdc172
SB
544/* HAS_SETSID:
545 * This symbol, if defined, indicates that the setsid routine is
546 * available to set the process group ID.
9f971974 547 */
88fdc172 548#$d_setsid HAS_SETSID /**/
9f971974 549
f40bbcbf
MB
550/* HAS_STAT:
551 * This symbol, if defined, indicates that the stat routine is
552 * available to get file status.
553 */
554#$d_stat HAS_STAT /**/
555
88fdc172
SB
556/* HAS_STRCHR:
557 * This symbol is defined to indicate that the strchr()/strrchr()
558 * functions are available for string searching. If not, try the
559 * index()/rindex() pair.
85e6fe83 560 */
88fdc172
SB
561/* HAS_INDEX:
562 * This symbol is defined to indicate that the index()/rindex()
563 * functions are available for string searching.
a0d0e21e 564 */
88fdc172
SB
565#$d_strchr HAS_STRCHR /**/
566#$d_index HAS_INDEX /**/
85e6fe83 567
88fdc172
SB
568/* HAS_STRCOLL:
569 * This symbol, if defined, indicates that the strcoll routine is
570 * available to compare strings using collating information.
87250799 571 */
88fdc172 572#$d_strcoll HAS_STRCOLL /**/
87250799 573
88fdc172
SB
574/* HAS_STRTOD:
575 * This symbol, if defined, indicates that the strtod routine is
576 * available to provide better numeric string conversion than atof().
a0d0e21e 577 */
88fdc172 578#$d_strtod HAS_STRTOD /**/
a0d0e21e 579
88fdc172
SB
580/* HAS_STRTOL:
581 * This symbol, if defined, indicates that the strtol routine is available
582 * to provide better numeric string conversion than atoi() and friends.
85e6fe83 583 */
88fdc172 584#$d_strtol HAS_STRTOL /**/
d8f2e4cc 585
88fdc172
SB
586/* HAS_STRXFRM:
587 * This symbol, if defined, indicates that the strxfrm() routine is
588 * available to transform strings.
d8f2e4cc 589 */
88fdc172 590#$d_strxfrm HAS_STRXFRM /**/
d8f2e4cc 591
88fdc172
SB
592/* HAS_SYMLINK:
593 * This symbol, if defined, indicates that the symlink routine is available
594 * to create symbolic links.
dfe9444c 595 */
88fdc172 596#$d_symlink HAS_SYMLINK /**/
dfe9444c 597
88fdc172
SB
598/* HAS_SYSCALL:
599 * This symbol, if defined, indicates that the syscall routine is
600 * available to call arbitrary system calls. If undefined, that's tough.
a0d0e21e 601 */
88fdc172 602#$d_syscall HAS_SYSCALL /**/
a687059c 603
88fdc172
SB
604/* HAS_SYSCONF:
605 * This symbol, if defined, indicates that sysconf() is available
606 * to determine system related limits and options.
aaacdc8b 607 */
88fdc172
SB
608#$d_sysconf HAS_SYSCONF /**/
609
610/* HAS_SYSTEM:
611 * This symbol, if defined, indicates that the system routine is
612 * available to issue a shell command.
aaacdc8b 613 */
88fdc172 614#$d_system HAS_SYSTEM /**/
aaacdc8b 615
88fdc172
SB
616/* HAS_TCGETPGRP:
617 * This symbol, if defined, indicates that the tcgetpgrp routine is
618 * available to get foreground process group ID.
aaacdc8b 619 */
88fdc172 620#$d_tcgetpgrp HAS_TCGETPGRP /**/
aaacdc8b 621
88fdc172
SB
622/* HAS_TCSETPGRP:
623 * This symbol, if defined, indicates that the tcsetpgrp routine is
624 * available to set foreground process group ID.
a22e52b9 625 */
88fdc172 626#$d_tcsetpgrp HAS_TCSETPGRP /**/
a22e52b9 627
88fdc172
SB
628/* HAS_TRUNCATE:
629 * This symbol, if defined, indicates that the truncate routine is
630 * available to truncate files.
5ff3f7a4 631 */
88fdc172 632#$d_truncate HAS_TRUNCATE /**/
5ff3f7a4 633
88fdc172
SB
634/* HAS_TZNAME:
635 * This symbol, if defined, indicates that the tzname[] array is
636 * available to access timezone names.
5ff3f7a4 637 */
88fdc172 638#$d_tzname HAS_TZNAME /**/
5ff3f7a4 639
88fdc172
SB
640/* HAS_UMASK:
641 * This symbol, if defined, indicates that the umask routine is
642 * available to set and get the value of the file creation mask.
5ff3f7a4 643 */
88fdc172 644#$d_umask HAS_UMASK /**/
5ff3f7a4 645
88fdc172
SB
646/* HAS_USLEEP:
647 * This symbol, if defined, indicates that the usleep routine is
648 * available to let the process sleep on a sub-second accuracy.
5ff3f7a4 649 */
88fdc172 650#$d_usleep HAS_USLEEP /**/
5ff3f7a4 651
88fdc172
SB
652/* HAS_WAIT4:
653 * This symbol, if defined, indicates that wait4() exists.
8e07c86e 654 */
88fdc172 655#$d_wait4 HAS_WAIT4 /**/
8e07c86e 656
88fdc172
SB
657/* HAS_WAITPID:
658 * This symbol, if defined, indicates that the waitpid routine is
659 * available to wait for child process.
1aef975c 660 */
88fdc172 661#$d_waitpid HAS_WAITPID /**/
85e6fe83 662
88fdc172
SB
663/* HAS_WCSTOMBS:
664 * This symbol, if defined, indicates that the wcstombs routine is
665 * available to convert wide character strings to multibyte strings.
bccf77a5 666 */
88fdc172 667#$d_wcstombs HAS_WCSTOMBS /**/
dfe9444c 668
88fdc172
SB
669/* HAS_WCTOMB:
670 * This symbol, if defined, indicates that the wctomb routine is available
9cdcdad1 671 * to convert a wide character to a multibyte.
bccf77a5 672 */
88fdc172 673#$d_wctomb HAS_WCTOMB /**/
bccf77a5 674
1d8eaf8c
MB
675/* Groups_t:
676 * This symbol holds the type used for the second argument to
677 * getgroups() and setgroups(). Usually, this is the same as
678 * gidtype (gid_t) , but sometimes it isn't.
bd4dc887
AC
679 * It can be int, ushort, gid_t, etc...
680 * It may be necessary to include <sys/types.h> to get any
1d8eaf8c
MB
681 * typedef'ed information. This is only required if you have
682 * getgroups() or setgroups()..
683 */
684#if defined(HAS_GETGROUPS) || defined(HAS_SETGROUPS)
685#define Groups_t $groupstype /* Type for 2nd arg to [sg]etgroups() */
686#endif
687
88fdc172
SB
688/* I_ARPA_INET:
689 * This symbol, if defined, indicates to the C program that it should
690 * include <arpa/inet.h> to get inet_addr and friends declarations.
ff935051 691 */
88fdc172 692#$i_arpainet I_ARPA_INET /**/
ff935051 693
88fdc172
SB
694/* I_DBM:
695 * This symbol, if defined, indicates that <dbm.h> exists and should
696 * be included.
ff935051 697 */
88fdc172
SB
698/* I_RPCSVC_DBM:
699 * This symbol, if defined, indicates that <rpcsvc/dbm.h> exists and
700 * should be included.
10bc17b6 701 */
88fdc172
SB
702#$i_dbm I_DBM /**/
703#$i_rpcsvcdbm I_RPCSVC_DBM /**/
10bc17b6 704
88fdc172
SB
705/* I_DLFCN:
706 * This symbol, if defined, indicates that <dlfcn.h> exists and should
707 * be included.
78a7c709 708 */
88fdc172 709#$i_dlfcn I_DLFCN /**/
78a7c709 710
88fdc172
SB
711/* I_FCNTL:
712 * This manifest constant tells the C program to include <fcntl.h>.
c7aff470 713 */
88fdc172 714#$i_fcntl I_FCNTL /**/
44b94491 715
88fdc172
SB
716/* I_FLOAT:
717 * This symbol, if defined, indicates to the C program that it should
718 * include <float.h> to get definition of symbols like DBL_MAX or
719 * DBL_MIN, i.e. machine dependent floating point values.
c7aff470 720 */
88fdc172 721#$i_float I_FLOAT /**/
c7aff470 722
13cfc98d
MB
723/* I_GDBM:
724 * This symbol, if defined, indicates that <gdbm.h> exists and should
725 * be included.
726 */
727#$i_gdbm I_GDBM /**/
728
88fdc172
SB
729/* I_LIMITS:
730 * This symbol, if defined, indicates to the C program that it should
731 * include <limits.h> to get definition of symbols like WORD_BIT or
732 * LONG_MAX, i.e. machine dependant limitations.
c7aff470 733 */
88fdc172 734#$i_limits I_LIMITS /**/
c7aff470 735
88fdc172
SB
736/* I_LOCALE:
737 * This symbol, if defined, indicates to the C program that it should
738 * include <locale.h>.
a845a0d4 739 */
88fdc172 740#$i_locale I_LOCALE /**/
a845a0d4 741
88fdc172
SB
742/* I_MATH:
743 * This symbol, if defined, indicates to the C program that it should
744 * include <math.h>.
a845a0d4 745 */
88fdc172 746#$i_math I_MATH /**/
a845a0d4 747
88fdc172
SB
748/* I_MEMORY:
749 * This symbol, if defined, indicates to the C program that it should
750 * include <memory.h>.
a845a0d4 751 */
88fdc172
SB
752#$i_memory I_MEMORY /**/
753
88fdc172
SB
754/* I_NETINET_IN:
755 * This symbol, if defined, indicates to the C program that it should
756 * include <netinet/in.h>. Otherwise, you may try <sys/in.h>.
a845a0d4 757 */
88fdc172
SB
758#$i_niin I_NETINET_IN /**/
759
88fdc172
SB
760/* I_STDDEF:
761 * This symbol, if defined, indicates that <stddef.h> exists and should
762 * be included.
a845a0d4 763 */
88fdc172
SB
764#$i_stddef I_STDDEF /**/
765
766/* I_STDLIB:
767 * This symbol, if defined, indicates that <stdlib.h> exists and should
768 * be included.
a845a0d4 769 */
88fdc172
SB
770#$i_stdlib I_STDLIB /**/
771
772/* I_STRING:
773 * This symbol, if defined, indicates to the C program that it should
774 * include <string.h> (USG systems) instead of <strings.h> (BSD systems).
a845a0d4 775 */
88fdc172
SB
776#$i_string I_STRING /**/
777
778/* I_SYS_DIR:
779 * This symbol, if defined, indicates to the C program that it should
780 * include <sys/dir.h>.
a845a0d4 781 */
88fdc172
SB
782#$i_sysdir I_SYS_DIR /**/
783
784/* I_SYS_FILE:
785 * This symbol, if defined, indicates to the C program that it should
786 * include <sys/file.h> to get definition of R_OK and friends.
a845a0d4 787 */
88fdc172 788#$i_sysfile I_SYS_FILE /**/
a845a0d4 789
88fdc172
SB
790/* I_SYS_IOCTL:
791 * This symbol, if defined, indicates that <sys/ioctl.h> exists and should
792 * be included. Otherwise, include <sgtty.h> or <termio.h>.
a845a0d4 793 */
88fdc172
SB
794/* I_SYS_SOCKIO:
795 * This symbol, if defined, indicates the <sys/sockio.h> should be included
796 * to get socket ioctl options, like SIOCATMARK.
a845a0d4 797 */
88fdc172
SB
798#$i_sysioctl I_SYS_IOCTL /**/
799#$i_syssockio I_SYS_SOCKIO /**/
800
801/* I_SYS_NDIR:
802 * This symbol, if defined, indicates to the C program that it should
803 * include <sys/ndir.h>.
a845a0d4 804 */
88fdc172 805#$i_sysndir I_SYS_NDIR /**/
a845a0d4 806
88fdc172
SB
807/* I_SYS_PARAM:
808 * This symbol, if defined, indicates to the C program that it should
809 * include <sys/param.h>.
a845a0d4 810 */
88fdc172
SB
811#$i_sysparam I_SYS_PARAM /**/
812
216dac04
MB
813/* I_SYS_POLL:
814 * This symbol, if defined, indicates that the program may include
815 * <sys/poll.h>. When I_POLL is also defined, it's probably safest
816 * to only include <poll.h>.
817 */
818#$i_syspoll I_SYS_POLL /**/
819
88fdc172
SB
820/* I_SYS_RESOURCE:
821 * This symbol, if defined, indicates to the C program that it should
822 * include <sys/resource.h>.
a845a0d4 823 */
88fdc172 824#$i_sysresrc I_SYS_RESOURCE /**/
a845a0d4 825
88fdc172
SB
826/* I_SYS_SELECT:
827 * This symbol, if defined, indicates to the C program that it should
828 * include <sys/select.h> in order to get definition of struct timeval.
a845a0d4 829 */
88fdc172 830#$i_sysselct I_SYS_SELECT /**/
a845a0d4 831
88fdc172 832/* I_SYS_STAT:
a845a0d4 833 * This symbol, if defined, indicates to the C program that it should
88fdc172 834 * include <sys/stat.h>.
a845a0d4 835 */
88fdc172
SB
836#$i_sysstat I_SYS_STAT /**/
837
838/* I_SYS_TIMES:
a845a0d4 839 * This symbol, if defined, indicates to the C program that it should
88fdc172 840 * include <sys/times.h>.
a845a0d4 841 */
88fdc172
SB
842#$i_systimes I_SYS_TIMES /**/
843
844/* I_SYS_TYPES:
a845a0d4 845 * This symbol, if defined, indicates to the C program that it should
88fdc172 846 * include <sys/types.h>.
a845a0d4 847 */
88fdc172
SB
848#$i_systypes I_SYS_TYPES /**/
849
850/* I_SYS_UN:
851 * This symbol, if defined, indicates to the C program that it should
852 * include <sys/un.h> to get UNIX domain socket definitions.
a845a0d4 853 */
88fdc172
SB
854#$i_sysun I_SYS_UN /**/
855
856/* I_SYS_WAIT:
857 * This symbol, if defined, indicates to the C program that it should
858 * include <sys/wait.h>.
a845a0d4 859 */
88fdc172 860#$i_syswait I_SYS_WAIT /**/
a845a0d4 861
88fdc172
SB
862/* I_UNISTD:
863 * This symbol, if defined, indicates to the C program that it should
864 * include <unistd.h>.
a845a0d4 865 */
88fdc172 866#$i_unistd I_UNISTD /**/
a845a0d4 867
88fdc172
SB
868/* I_UTIME:
869 * This symbol, if defined, indicates to the C program that it should
870 * include <utime.h>.
a845a0d4 871 */
88fdc172 872#$i_utime I_UTIME /**/
a845a0d4 873
88fdc172
SB
874/* I_VALUES:
875 * This symbol, if defined, indicates to the C program that it should
876 * include <values.h> to get definition of symbols like MINFLOAT or
877 * MAXLONG, i.e. machine dependant limitations. Probably, you
878 * should use <limits.h> instead, if it is available.
a845a0d4 879 */
88fdc172
SB
880#$i_values I_VALUES /**/
881
882/* I_VFORK:
883 * This symbol, if defined, indicates to the C program that it should
884 * include vfork.h.
a845a0d4 885 */
88fdc172
SB
886#$i_vfork I_VFORK /**/
887
7e69463d
AC
888/* STDCHAR:
889 * This symbol is defined to be the type of char used in stdio.h.
890 * It has the values "unsigned char" or "char".
891 */
892#define STDCHAR $stdchar /**/
893
d03b3b00
MB
894/* CAN_VAPROTO:
895 * This variable is defined on systems supporting prototype declaration
896 * of functions with a variable number of arguments.
897 */
898/* _V:
899 * This macro is used to declare function parameters in prototypes for
900 * functions with a variable number of parameters. Use double parentheses.
901 * For example:
902 *
903 * int printf _V((char *fmt, ...));
904 *
905 * Remember to use the plain simple _() macro when declaring a function
906 * with no variable number of arguments, since it might be possible to
907 * have a non-effect _V() macro and still get prototypes via _().
908 */
909#$vaproto CAN_VAPROTO /**/
910#ifdef CAN_VAPROTO
911#define _V(args) args
912#else
913#define _V(args) ()
914#endif
915
7e69463d
AC
916/* INTSIZE:
917 * This symbol contains the value of sizeof(int) so that the C
918 * preprocessor can make decisions based on it.
a845a0d4 919 */
7e69463d
AC
920/* LONGSIZE:
921 * This symbol contains the value of sizeof(long) so that the C
922 * preprocessor can make decisions based on it.
eaf812ae 923 */
7e69463d
AC
924/* SHORTSIZE:
925 * This symbol contains the value of sizeof(short) so that the C
926 * preprocessor can make decisions based on it.
927 */
928#define INTSIZE $intsize /**/
929#define LONGSIZE $longsize /**/
930#define SHORTSIZE $shortsize /**/
eaf812ae 931
6e89a33a
MB
932/* MULTIARCH:
933 * This symbol, if defined, signifies that the build
934 * process will produce some binary files that are going to be
935 * used in a cross-platform environment. This is the case for
936 * example with the NeXT "fat" binaries that contain executables
937 * for several CPUs.
938 */
939#$multiarch MULTIARCH /**/
940
7e69463d
AC
941/* HAS_QUAD:
942 * This symbol, if defined, tells that there's a 64-bit integer type,
943 * Quad_t, and its unsigned counterpart, Uquad_t. QUADKIND will be one
944 * of QUAD_IS_INT, QUAD_IS_LONG, QUAD_IS_LONG_LONG, QUAD_IS_INT64_T,
945 * or QUAD_IS___INT64.
b8677e3b 946 */
7e69463d
AC
947#$d_quad HAS_QUAD /**/
948#ifdef HAS_QUAD
949# define Quad_t $quadtype /**/
950# define Uquad_t $uquadtype /**/
951# define QUADKIND $quadkind /**/
952# define QUAD_IS_INT 1
953# define QUAD_IS_LONG 2
954# define QUAD_IS_LONG_LONG 3
955# define QUAD_IS_INT64_T 4
956# define QUAD_IS___INT64 5
957#endif
08c92000 958
7e69463d
AC
959/* HAS_ACCESSX:
960 * This symbol, if defined, indicates that the accessx routine is
961 * available to do extended access checks.
08c92000 962 */
7e69463d 963#$d_accessx HAS_ACCESSX /**/
08c92000 964
7e69463d
AC
965/* HAS_EACCESS:
966 * This symbol, if defined, indicates that the eaccess routine is
967 * available to do extended access checks.
08c92000 968 */
7e69463d 969#$d_eaccess HAS_EACCESS /**/
08c92000 970
7e69463d
AC
971/* I_SYS_ACCESS:
972 * This symbol, if defined, indicates to the C program that it should
973 * include <sys/access.h>.
f3f1a2d8 974 */
7e69463d 975#$i_sysaccess I_SYS_ACCESS /**/
08c92000 976
7e69463d
AC
977/* I_SYS_SECURITY:
978 * This symbol, if defined, indicates to the C program that it should
979 * include <sys/security.h>.
06501368 980 */
7e69463d
AC
981#$i_syssecrt I_SYS_SECURITY /**/
982
983/* MEM_ALIGNBYTES:
984 * This symbol contains the number of bytes required to align a
985 * double, or a long double when applicable. Usual values are 2,
986 * 4 and 8. The default is eight, for safety. For cross-compiling
987 * or multiarch support, Configure will set a minimum of 8.
06501368 988 */
7e69463d 989#define MEM_ALIGNBYTES $alignbytes
06501368 990
b8677e3b
MB
991/* BYTEORDER:
992 * This symbol holds the hexadecimal constant defined in byteorder,
993 * in a UV, i.e. 0x1234 or 0x4321 or 0x12345678, etc...
994 * If the compiler supports cross-compiling or multiple-architecture
f05550c0 995 * binaries, use compiler-defined macros to
b8677e3b 996 * determine the byte order.
08c92000 997 */
c9d1bf8e 998#if defined(MULTIARCH)
b8677e3b
MB
999# ifdef __LITTLE_ENDIAN__
1000# if LONGSIZE == 4
1001# define BYTEORDER 0x1234
1002# else
1003# if LONGSIZE == 8
1004# define BYTEORDER 0x12345678
1005# endif
1006# endif
1007# else
1008# ifdef __BIG_ENDIAN__
1009# if LONGSIZE == 4
1010# define BYTEORDER 0x4321
1011# else
1012# if LONGSIZE == 8
1013# define BYTEORDER 0x87654321
1014# endif
1015# endif
1016# endif
1017# endif
b8677e3b
MB
1018#else
1019#define BYTEORDER 0x$byteorder /* large digits for MSB */
f05550c0 1020#endif
08c92000 1021
b8677e3b
MB
1022/* CHARBITS:
1023 * This symbol contains the size of a char, so that the C preprocessor
1024 * can make decisions based on it.
08c92000 1025 */
b8677e3b 1026#define CHARBITS $charbits /**/
08c92000 1027
b8677e3b
MB
1028/* CASTI32:
1029 * This symbol is defined if the C compiler can cast negative
1030 * or large floating point numbers to 32-bit ints.
eaf812ae 1031 */
b8677e3b
MB
1032#$d_casti32 CASTI32 /**/
1033
1034/* CASTNEGFLOAT:
1035 * This symbol is defined if the C compiler can cast negative
1036 * numbers to unsigned longs, ints and shorts.
fcdf39cf 1037 */
b8677e3b
MB
1038/* CASTFLAGS:
1039 * This symbol contains flags that say what difficulties the compiler
1040 * has casting odd floating values to unsigned long:
1041 * 0 = ok
1042 * 1 = couldn't cast < 0
1043 * 2 = couldn't cast >= 0x80000000
1044 * 4 = couldn't cast in argument expression list
eaf812ae 1045 */
b8677e3b
MB
1046#$d_castneg CASTNEGFLOAT /**/
1047#define CASTFLAGS $castflags /**/
eaf812ae 1048
b8677e3b
MB
1049/* VOID_CLOSEDIR:
1050 * This symbol, if defined, indicates that the closedir() routine
1051 * does not return a value.
f244a502 1052 */
b8677e3b 1053#$d_void_closedir VOID_CLOSEDIR /**/
f244a502 1054
7e69463d
AC
1055/* HAS_FD_SET:
1056 * This symbol, when defined, indicates presence of the fd_set typedef
1057 * in <sys/types.h>
06501368 1058 */
7e69463d 1059#$d_fd_set HAS_FD_SET /**/
06501368 1060
7e69463d
AC
1061/* Gconvert:
1062 * This preprocessor macro is defined to convert a floating point
1063 * number to a string without a trailing decimal point. This
1064 * emulates the behavior of sprintf("%g"), but is sometimes much more
1065 * efficient. If gconvert() is not available, but gcvt() drops the
1066 * trailing decimal point, then gcvt() is used. If all else fails,
1067 * a macro using sprintf("%g") is used. Arguments for the Gconvert
1068 * macro are: value, number of digits, whether trailing zeros should
1069 * be retained, and the output buffer.
1070 * The usual values are:
1071 * d_Gconvert='gconvert((x),(n),(t),(b))'
1072 * d_Gconvert='gcvt((x),(n),(b))'
1073 * d_Gconvert='sprintf((b),"%.*g",(n),(x))'
1074 * The last two assume trailing zeros should not be kept.
a845a0d4 1075 */
7e69463d 1076#define Gconvert(x,n,t,b) $d_Gconvert
a845a0d4 1077
7e69463d
AC
1078/* HAS_GETPAGESIZE:
1079 * This symbol, if defined, indicates that the getpagesize system call
1080 * is available to get system page size, which is the granularity of
1081 * many memory management calls.
06501368 1082 */
7e69463d
AC
1083#$d_getpagsz HAS_GETPAGESIZE /**/
1084
1085/* HAS_GNULIBC:
1086 * This symbol, if defined, indicates to the C program that
1087 * the GNU C library is being used. A better check is to use
1088 * the __GLIBC__ and __GLIBC_MINOR__ symbols supplied with glibc.
06501368 1089 */
7e69463d
AC
1090#$d_gnulibc HAS_GNULIBC /**/
1091#if defined(HAS_GNULIBC) && !defined(_GNU_SOURCE)
1092# define _GNU_SOURCE
06501368
MB
1093#endif
1094
7e69463d
AC
1095/* HAS_ISASCII:
1096 * This manifest constant lets the C program know that isascii
1097 * is available.
eaf812ae 1098 */
7e69463d 1099#$d_isascii HAS_ISASCII /**/
eaf812ae 1100
7e69463d
AC
1101/* HAS_LCHOWN:
1102 * This symbol, if defined, indicates that the lchown routine is
1103 * available to operate on a symbolic link (instead of following the
1104 * link).
a845a0d4 1105 */
7e69463d 1106#$d_lchown HAS_LCHOWN /**/
a845a0d4 1107
7e69463d
AC
1108/* HAS_OPEN3:
1109 * This manifest constant lets the C program know that the three
1110 * argument form of open(2) is available.
0e0c5f82 1111 */
7e69463d 1112#$d_open3 HAS_OPEN3 /**/
0e0c5f82 1113
7e69463d
AC
1114/* HAS_SAFE_BCOPY:
1115 * This symbol, if defined, indicates that the bcopy routine is available
1116 * to copy potentially overlapping memory blocks. Normally, you should
1117 * probably use memmove() or memcpy(). If neither is defined, roll your
1118 * own version.
06501368 1119 */
7e69463d 1120#$d_safebcpy HAS_SAFE_BCOPY /**/
06501368 1121
7e69463d
AC
1122/* HAS_SAFE_MEMCPY:
1123 * This symbol, if defined, indicates that the memcpy routine is available
1124 * to copy potentially overlapping memory blocks. If you need to
1125 * copy overlapping memory blocks, you should check HAS_MEMMOVE and
1126 * use memmove() instead, if available.
08c92000 1127 */
7e69463d 1128#$d_safemcpy HAS_SAFE_MEMCPY /**/
a845a0d4 1129
7e69463d
AC
1130/* HAS_SANE_MEMCMP:
1131 * This symbol, if defined, indicates that the memcmp routine is available
1132 * and can be used to compare relative magnitudes of chars with their high
1133 * bits set. If it is not defined, roll your own version.
06501368 1134 */
7e69463d 1135#$d_sanemcmp HAS_SANE_MEMCMP /**/
06501368 1136
7e69463d
AC
1137/* HAS_SIGACTION:
1138 * This symbol, if defined, indicates that Vr4's sigaction() routine
1139 * is available.
ed140128 1140 */
7e69463d 1141#$d_sigaction HAS_SIGACTION /**/
ed140128 1142
7e69463d
AC
1143/* HAS_SIGINFO_SI_ERRNO:
1144 * This symbol, if defined, indicates that siginfo_t has the
1145 * si_errno member
06501368 1146 */
7e69463d
AC
1147/* HAS_SIGINFO_SI_PID:
1148 * This symbol, if defined, indicates that siginfo_t has the
1149 * si_pid member
88fdc172 1150 */
7e69463d
AC
1151/* HAS_SIGINFO_SI_UID:
1152 * This symbol, if defined, indicates that siginfo_t has the
1153 * si_uid member
88fdc172 1154 */
7e69463d
AC
1155/* HAS_SIGINFO_SI_ADDR:
1156 * This symbol, if defined, indicates that siginfo_t has the
1157 * si_addr member
06501368 1158 */
7e69463d
AC
1159/* HAS_SIGINFO_SI_STATUS:
1160 * This symbol, if defined, indicates that siginfo_t has the
1161 * si_status member
eaf812ae 1162 */
7e69463d
AC
1163/* HAS_SIGINFO_SI_BAND:
1164 * This symbol, if defined, indicates that siginfo_t has the
1165 * si_band member
eaf812ae 1166 */
7e69463d
AC
1167/* HAS_SIGINFO_SI_VALUE:
1168 * This symbol, if defined, indicates that siginfo_t has the
1169 * si_value member
06501368 1170 */
7e69463d
AC
1171#$d_siginfo_si_errno HAS_SIGINFO_SI_ERRNO /**/
1172#$d_siginfo_si_pid HAS_SIGINFO_SI_PID /**/
1173#$d_siginfo_si_uid HAS_SIGINFO_SI_UID /**/
1174#$d_siginfo_si_addr HAS_SIGINFO_SI_ADDR /**/
1175#$d_siginfo_si_status HAS_SIGINFO_SI_STATUS /**/
1176#$d_siginfo_si_band HAS_SIGINFO_SI_BAND /**/
1177#$d_siginfo_si_value HAS_SIGINFO_SI_VALUE /**/
06501368 1178
7e69463d
AC
1179/* HAS_SIGSETJMP:
1180 * This variable indicates to the C program that the sigsetjmp()
1181 * routine is available to save the calling process's registers
1182 * and stack environment for later use by siglongjmp(), and
1183 * to optionally save the process's signal mask. See
1184 * Sigjmp_buf, Sigsetjmp, and Siglongjmp.
eaf812ae 1185 */
7e69463d
AC
1186/* Sigjmp_buf:
1187 * This is the buffer type to be used with Sigsetjmp and Siglongjmp.
06501368 1188 */
7e69463d
AC
1189/* Sigsetjmp:
1190 * This macro is used in the same way as sigsetjmp(), but will invoke
1191 * traditional setjmp() if sigsetjmp isn't available.
1192 * See HAS_SIGSETJMP.
eaf812ae 1193 */
7e69463d
AC
1194/* Siglongjmp:
1195 * This macro is used in the same way as siglongjmp(), but will invoke
1196 * traditional longjmp() if siglongjmp isn't available.
1197 * See HAS_SIGSETJMP.
eaf812ae 1198 */
7e69463d
AC
1199#$d_sigsetjmp HAS_SIGSETJMP /**/
1200#ifdef HAS_SIGSETJMP
1201#define Sigjmp_buf sigjmp_buf
1202#define Sigsetjmp(buf,save_mask) sigsetjmp((buf),(save_mask))
1203#define Siglongjmp(buf,retval) siglongjmp((buf),(retval))
1204#else
1205#define Sigjmp_buf jmp_buf
1206#define Sigsetjmp(buf,save_mask) setjmp((buf))
1207#define Siglongjmp(buf,retval) longjmp((buf),(retval))
1208#endif
06501368 1209
7e69463d
AC
1210/* HAS_STATIC_INLINE:
1211 * This symbol, if defined, indicates that the C compiler supports
1212 * C99-style static inline. That is, the function can't be called
1213 * from another translation unit.
88fdc172 1214 */
7e69463d
AC
1215/* PERL_STATIC_INLINE:
1216 * This symbol gives the best-guess incantation to use for static
1217 * inline functions. If HAS_STATIC_INLINE is defined, this will
1218 * give C99-style inline. If HAS_STATIC_INLINE is not defined,
1219 * this will give a plain 'static'. It will always be defined
1220 * to something that gives static linkage.
1221 * Possibilities include
1222 * static inline (c99)
1223 * static __inline__ (gcc -ansi)
1224 * static __inline (MSVC)
1225 * static _inline (older MSVC)
1226 * static (c89 compilers)
88fdc172 1227 */
7e69463d
AC
1228#$d_static_inline HAS_STATIC_INLINE /**/
1229#define PERL_STATIC_INLINE $perl_static_inline /**/
08c92000 1230
7e69463d
AC
1231/* USE_STDIO_PTR:
1232 * This symbol is defined if the _ptr and _cnt fields (or similar)
1233 * of the stdio FILE structure can be used to access the stdio buffer
1234 * for a file handle. If this is defined, then the FILE_ptr(fp)
1235 * and FILE_cnt(fp) macros will also be defined and should be used
1236 * to access these fields.
06501368 1237 */
7e69463d
AC
1238/* FILE_ptr:
1239 * This macro is used to access the _ptr field (or equivalent) of the
1240 * FILE structure pointed to by its argument. This macro will always be
1241 * defined if USE_STDIO_PTR is defined.
06501368 1242 */
7e69463d
AC
1243/* STDIO_PTR_LVALUE:
1244 * This symbol is defined if the FILE_ptr macro can be used as an
1245 * lvalue.
eaf812ae 1246 */
7e69463d
AC
1247/* FILE_cnt:
1248 * This macro is used to access the _cnt field (or equivalent) of the
1249 * FILE structure pointed to by its argument. This macro will always be
1250 * defined if USE_STDIO_PTR is defined.
a845a0d4 1251 */
7e69463d
AC
1252/* STDIO_CNT_LVALUE:
1253 * This symbol is defined if the FILE_cnt macro can be used as an
1254 * lvalue.
06501368 1255 */
7e69463d
AC
1256/* STDIO_PTR_LVAL_SETS_CNT:
1257 * This symbol is defined if using the FILE_ptr macro as an lvalue
1258 * to increase the pointer by n has the side effect of decreasing the
1259 * value of File_cnt(fp) by n.
a845a0d4 1260 */
7e69463d
AC
1261/* STDIO_PTR_LVAL_NOCHANGE_CNT:
1262 * This symbol is defined if using the FILE_ptr macro as an lvalue
1263 * to increase the pointer by n leaves File_cnt(fp) unchanged.
06501368 1264 */
7e69463d
AC
1265#$d_stdstdio USE_STDIO_PTR /**/
1266#ifdef USE_STDIO_PTR
1267#define FILE_ptr(fp) $stdio_ptr
1268#$d_stdio_ptr_lval STDIO_PTR_LVALUE /**/
1269#define FILE_cnt(fp) $stdio_cnt
1270#$d_stdio_cnt_lval STDIO_CNT_LVALUE /**/
1271#$d_stdio_ptr_lval_sets_cnt STDIO_PTR_LVAL_SETS_CNT /**/
1272#$d_stdio_ptr_lval_nochange_cnt STDIO_PTR_LVAL_NOCHANGE_CNT /**/
1273#endif
06501368 1274
7e69463d
AC
1275/* USE_STDIO_BASE:
1276 * This symbol is defined if the _base field (or similar) of the
1277 * stdio FILE structure can be used to access the stdio buffer for
1278 * a file handle. If this is defined, then the FILE_base(fp) macro
1279 * will also be defined and should be used to access this field.
1280 * Also, the FILE_bufsiz(fp) macro will be defined and should be used
1281 * to determine the number of bytes in the buffer. USE_STDIO_BASE
1282 * will never be defined unless USE_STDIO_PTR is.
08c92000 1283 */
7e69463d
AC
1284/* FILE_base:
1285 * This macro is used to access the _base field (or equivalent) of the
1286 * FILE structure pointed to by its argument. This macro will always be
1287 * defined if USE_STDIO_BASE is defined.
a845a0d4 1288 */
7e69463d
AC
1289/* FILE_bufsiz:
1290 * This macro is used to determine the number of bytes in the I/O
1291 * buffer pointed to by _base field (or equivalent) of the FILE
1292 * structure pointed to its argument. This macro will always be defined
1293 * if USE_STDIO_BASE is defined.
a845a0d4 1294 */
7e69463d
AC
1295#$d_stdiobase USE_STDIO_BASE /**/
1296#ifdef USE_STDIO_BASE
1297#define FILE_base(fp) $stdio_base
1298#define FILE_bufsiz(fp) $stdio_bufsiz
1299#endif
a845a0d4 1300
7e69463d
AC
1301/* HAS_VPRINTF:
1302 * This symbol, if defined, indicates that the vprintf routine is available
1303 * to printf with a pointer to an argument list. If unavailable, you
1304 * may need to write your own, probably in terms of _doprnt().
a845a0d4 1305 */
7e69463d
AC
1306/* USE_CHAR_VSPRINTF:
1307 * This symbol is defined if this system has vsprintf() returning type
1308 * (char*). The trend seems to be to declare it as "int vsprintf()". It
1309 * is up to the package author to declare vsprintf correctly based on the
1310 * symbol.
06501368 1311 */
7e69463d
AC
1312#$d_vprintf HAS_VPRINTF /**/
1313#$d_charvspr USE_CHAR_VSPRINTF /**/
06501368 1314
7e69463d
AC
1315/* DOUBLESIZE:
1316 * This symbol contains the size of a double, so that the C preprocessor
1317 * can make decisions based on it.
06501368 1318 */
7e69463d 1319#define DOUBLESIZE $doublesize /**/
06501368 1320
7e69463d
AC
1321/* I_TIME:
1322 * This symbol, if defined, indicates to the C program that it should
1323 * include <time.h>.
06501368 1324 */
7e69463d
AC
1325/* I_SYS_TIME:
1326 * This symbol, if defined, indicates to the C program that it should
1327 * include <sys/time.h>.
06501368 1328 */
7e69463d
AC
1329/* I_SYS_TIME_KERNEL:
1330 * This symbol, if defined, indicates to the C program that it should
1331 * include <sys/time.h> with KERNEL defined.
06501368 1332 */
7e69463d
AC
1333/* HAS_TM_TM_ZONE:
1334 * This symbol, if defined, indicates to the C program that
1335 * the struct tm has a tm_zone field.
06501368 1336 */
7e69463d
AC
1337/* HAS_TM_TM_GMTOFF:
1338 * This symbol, if defined, indicates to the C program that
1339 * the struct tm has a tm_gmtoff field.
06501368 1340 */
7e69463d
AC
1341#$i_time I_TIME /**/
1342#$i_systime I_SYS_TIME /**/
1343#$i_systimek I_SYS_TIME_KERNEL /**/
1344#$d_tm_tm_zone HAS_TM_TM_ZONE /**/
1345#$d_tm_tm_gmtoff HAS_TM_TM_GMTOFF /**/
06501368 1346
7e69463d
AC
1347/* VAL_O_NONBLOCK:
1348 * This symbol is to be used during open() or fcntl(F_SETFL) to turn on
1349 * non-blocking I/O for the file descriptor. Note that there is no way
1350 * back, i.e. you cannot turn it blocking again this way. If you wish to
1351 * alternatively switch between blocking and non-blocking, use the
1352 * ioctl(FIOSNBIO) call instead, but that is not supported by all devices.
a845a0d4 1353 */
7e69463d
AC
1354/* VAL_EAGAIN:
1355 * This symbol holds the errno error code set by read() when no data was
1356 * present on the non-blocking file descriptor.
a845a0d4 1357 */
7e69463d
AC
1358/* RD_NODATA:
1359 * This symbol holds the return code from read() when no data is present
1360 * on the non-blocking file descriptor. Be careful! If EOF_NONBLOCK is
1361 * not defined, then you can't distinguish between no data and EOF by
1362 * issuing a read(). You'll have to find another way to tell for sure!
eaf812ae 1363 */
7e69463d
AC
1364/* EOF_NONBLOCK:
1365 * This symbol, if defined, indicates to the C program that a read() on
1366 * a non-blocking file descriptor will return 0 on EOF, and not the value
1367 * held in RD_NODATA (-1 usually, in that case!).
eaf812ae 1368 */
7e69463d
AC
1369#define VAL_O_NONBLOCK $o_nonblock
1370#define VAL_EAGAIN $eagain
1371#define RD_NODATA $rd_nodata
1372#$d_eofnblk EOF_NONBLOCK
eaf812ae 1373
7e69463d
AC
1374/* PTRSIZE:
1375 * This symbol contains the size of a pointer, so that the C preprocessor
1376 * can make decisions based on it. It will be sizeof(void *) if
1377 * the compiler supports (void *); otherwise it will be
1378 * sizeof(char *).
06501368 1379 */
7e69463d 1380#define PTRSIZE $ptrsize /**/
06501368 1381
7e69463d
AC
1382/* Drand01:
1383 * This macro is to be used to generate uniformly distributed
1384 * random numbers over the range [0., 1.[. You may have to supply
1385 * an 'extern double drand48();' in your program since SunOS 4.1.3
1386 * doesn't provide you with anything relevant in its headers.
1387 * See HAS_DRAND48_PROTO.
eaf812ae 1388 */
7e69463d
AC
1389/* Rand_seed_t:
1390 * This symbol defines the type of the argument of the
1391 * random seed function.
eaf812ae 1392 */
7e69463d
AC
1393/* seedDrand01:
1394 * This symbol defines the macro to be used in seeding the
1395 * random number generator (see Drand01).
06501368 1396 */
7e69463d
AC
1397/* RANDBITS:
1398 * This symbol indicates how many bits are produced by the
1399 * function used to generate normalized random numbers.
1400 * Values include 15, 16, 31, and 48.
06501368 1401 */
7e69463d
AC
1402#define Drand01() $drand01 /**/
1403#define Rand_seed_t $randseedtype /**/
1404#define seedDrand01(x) $seedfunc((Rand_seed_t)x) /**/
1405#define RANDBITS $randbits /**/
06501368 1406
7e69463d
AC
1407/* SSize_t:
1408 * This symbol holds the type used by functions that return
1409 * a count of bytes or an error condition. It must be a signed type.
1410 * It is usually ssize_t, but may be long or int, etc.
1411 * It may be necessary to include <sys/types.h> or <unistd.h>
1412 * to get any typedef'ed information.
1413 * We will pick a type such that sizeof(SSize_t) == sizeof(Size_t).
06501368 1414 */
7e69463d 1415#define SSize_t $ssizetype /* signed count of bytes */
06501368 1416
7e69463d
AC
1417/* EBCDIC:
1418 * This symbol, if defined, indicates that this system uses
1419 * EBCDIC encoding.
eaf812ae 1420 */
7e69463d 1421#$ebcdic EBCDIC /**/
eaf812ae 1422
7e69463d
AC
1423/* ARCHLIB:
1424 * This variable, if defined, holds the name of the directory in
1425 * which the user wants to put architecture-dependent public
1426 * library files for $package. It is most often a local directory
1427 * such as /usr/local/lib. Programs using this variable must be
1428 * prepared to deal with filename expansion. If ARCHLIB is the
1429 * same as PRIVLIB, it is not defined, since presumably the
1430 * program already searches PRIVLIB.
eaf812ae 1431 */
7e69463d
AC
1432/* ARCHLIB_EXP:
1433 * This symbol contains the ~name expanded version of ARCHLIB, to be used
1434 * in programs that are not prepared to deal with ~ expansion at run-time.
eaf812ae 1435 */
7e69463d
AC
1436#$d_archlib ARCHLIB "$archlib" /**/
1437#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
eaf812ae 1438
7e69463d
AC
1439/* BIN:
1440 * This symbol holds the path of the bin directory where the package will
1441 * be installed. Program must be prepared to deal with ~name substitution.
eaf812ae 1442 */
7e69463d
AC
1443/* BIN_EXP:
1444 * This symbol is the filename expanded version of the BIN symbol, for
1445 * programs that do not want to deal with that at run-time.
eaf812ae 1446 */
7e69463d
AC
1447/* PERL_RELOCATABLE_INC:
1448 * This symbol, if defined, indicates that we'd like to relocate entries
1449 * in @INC at run time based on the location of the perl binary.
1450 */
1451#define BIN "$bin" /**/
1452#define BIN_EXP "$binexp" /**/
1453#define PERL_RELOCATABLE_INC "$userelocatableinc" /**/
eaf812ae 1454
7e69463d
AC
1455/* PERL_INC_VERSION_LIST:
1456 * This variable specifies the list of subdirectories in over
1457 * which perl.c:incpush() and lib/lib.pm will automatically
1458 * search when adding directories to @INC, in a format suitable
1459 * for a C initialization string. See the inc_version_list entry
1460 * in Porting/Glossary for more details.
06501368 1461 */
7e69463d 1462#$d_inc_version_list PERL_INC_VERSION_LIST $inc_version_list_init /**/
06501368 1463
7e69463d
AC
1464/* INSTALL_USR_BIN_PERL:
1465 * This symbol, if defined, indicates that Perl is to be installed
1466 * also as /usr/bin/perl.
a845a0d4 1467 */
7e69463d 1468#$installusrbinperl INSTALL_USR_BIN_PERL /**/
a845a0d4 1469
7e69463d
AC
1470/* PERL_OTHERLIBDIRS:
1471 * This variable contains a colon-separated set of paths for the perl
1472 * binary to search for additional library files or modules.
1473 * These directories will be tacked to the end of @INC.
1474 * Perl will automatically search below each path for version-
1475 * and architecture-specific directories. See PERL_INC_VERSION_LIST
1476 * for more details.
06501368 1477 */
7e69463d 1478#$d_perl_otherlibdirs PERL_OTHERLIBDIRS "$otherlibdirs" /**/
06501368 1479
7e69463d
AC
1480/* PRIVLIB:
1481 * This symbol contains the name of the private library for this package.
1482 * The library is private in the sense that it needn't be in anyone's
1483 * execution path, but it should be accessible by the world. The program
1484 * should be prepared to do ~ expansion.
06501368 1485 */
7e69463d
AC
1486/* PRIVLIB_EXP:
1487 * This symbol contains the ~name expanded version of PRIVLIB, to be used
1488 * in programs that are not prepared to deal with ~ expansion at run-time.
06501368 1489 */
7e69463d
AC
1490#define PRIVLIB "$privlib" /**/
1491#define PRIVLIB_EXP "$privlibexp" /**/
06501368 1492
7e69463d
AC
1493/* SITEARCH:
1494 * This symbol contains the name of the private library for this package.
1495 * The library is private in the sense that it needn't be in anyone's
1496 * execution path, but it should be accessible by the world. The program
1497 * should be prepared to do ~ expansion.
1498 * The standard distribution will put nothing in this directory.
1499 * After perl has been installed, users may install their own local
1500 * architecture-dependent modules in this directory with
1501 * MakeMaker Makefile.PL
1502 * or equivalent. See INSTALL for details.
06501368 1503 */
7e69463d
AC
1504/* SITEARCH_EXP:
1505 * This symbol contains the ~name expanded version of SITEARCH, to be used
1506 * in programs that are not prepared to deal with ~ expansion at run-time.
06501368 1507 */
7e69463d
AC
1508#$d_sitearch SITEARCH "$sitearch" /**/
1509#$d_sitearch SITEARCH_EXP "$sitearchexp" /**/
06501368 1510
7e69463d
AC
1511/* SITELIB:
1512 * This symbol contains the name of the private library for this package.
1513 * The library is private in the sense that it needn't be in anyone's
1514 * execution path, but it should be accessible by the world. The program
1515 * should be prepared to do ~ expansion.
1516 * The standard distribution will put nothing in this directory.
1517 * After perl has been installed, users may install their own local
1518 * architecture-independent modules in this directory with
1519 * MakeMaker Makefile.PL
1520 * or equivalent. See INSTALL for details.
eaf812ae 1521 */
7e69463d
AC
1522/* SITELIB_EXP:
1523 * This symbol contains the ~name expanded version of SITELIB, to be used
1524 * in programs that are not prepared to deal with ~ expansion at run-time.
eaf812ae 1525 */
7e69463d
AC
1526/* SITELIB_STEM:
1527 * This define is SITELIB_EXP with any trailing version-specific component
1528 * removed. The elements in inc_version_list (inc_version_list.U) can
1529 * be tacked onto this variable to generate a list of directories to search.
eaf812ae 1530 */
7e69463d
AC
1531#define SITELIB "$sitelib" /**/
1532#define SITELIB_EXP "$sitelibexp" /**/
1533#define SITELIB_STEM "$sitelib_stem" /**/
eaf812ae 1534
7e69463d
AC
1535/* PERL_VENDORARCH:
1536 * If defined, this symbol contains the name of a private library.
1537 * The library is private in the sense that it needn't be in anyone's
1538 * execution path, but it should be accessible by the world.
1539 * It may have a ~ on the front.
1540 * The standard distribution will put nothing in this directory.
1541 * Vendors who distribute perl may wish to place their own
1542 * architecture-dependent modules and extensions in this directory with
1543 * MakeMaker Makefile.PL INSTALLDIRS=vendor
1544 * or equivalent. See INSTALL for details.
eaf812ae 1545 */
7e69463d
AC
1546/* PERL_VENDORARCH_EXP:
1547 * This symbol contains the ~name expanded version of PERL_VENDORARCH, to be used
1548 * in programs that are not prepared to deal with ~ expansion at run-time.
eaf812ae 1549 */
7e69463d
AC
1550#$d_vendorarch PERL_VENDORARCH "$vendorarch" /**/
1551#$d_vendorarch PERL_VENDORARCH_EXP "$vendorarchexp" /**/
eaf812ae 1552
7e69463d
AC
1553/* PERL_VENDORLIB_EXP:
1554 * This symbol contains the ~name expanded version of VENDORLIB, to be used
1555 * in programs that are not prepared to deal with ~ expansion at run-time.
06501368 1556 */
7e69463d
AC
1557/* PERL_VENDORLIB_STEM:
1558 * This define is PERL_VENDORLIB_EXP with any trailing version-specific component
1559 * removed. The elements in inc_version_list (inc_version_list.U) can
1560 * be tacked onto this variable to generate a list of directories to search.
06501368 1561 */
7e69463d
AC
1562#$d_vendorlib PERL_VENDORLIB_EXP "$vendorlibexp" /**/
1563#$d_vendorlib PERL_VENDORLIB_STEM "$vendorlib_stem" /**/
06501368 1564
7e69463d
AC
1565/* OSNAME:
1566 * This symbol contains the name of the operating system, as determined
1567 * by Configure. You shouldn't rely on it too much; the specific
1568 * feature tests from Configure are generally more reliable.
a845a0d4 1569 */
7e69463d
AC
1570/* OSVERS:
1571 * This symbol contains the version of the operating system, as determined
1572 * by Configure. You shouldn't rely on it too much; the specific
1573 * feature tests from Configure are generally more reliable.
a845a0d4 1574 */
7e69463d
AC
1575#define OSNAME "$osname" /**/
1576#define OSVERS "$osvers" /**/
a845a0d4 1577
7e69463d
AC
1578/* CAT2:
1579 * This macro concatenates 2 tokens together.
a845a0d4 1580 */
7e69463d
AC
1581/* STRINGIFY:
1582 * This macro surrounds its token with double quotes.
a845a0d4 1583 */
7e69463d
AC
1584#if $cpp_stuff == 1
1585#define CAT2(a,b) a/**/b
1586#define STRINGIFY(a) "a"
1587#endif
1588#if $cpp_stuff == 42
1589#define PeRl_CaTiFy(a, b) a ## b
1590#define PeRl_StGiFy(a) #a
1591#define CAT2(a,b) PeRl_CaTiFy(a,b)
1592#define StGiFy(a) PeRl_StGiFy(a)
1593#define STRINGIFY(a) PeRl_StGiFy(a)
1594#endif
1595#if $cpp_stuff != 1 && $cpp_stuff != 42
1596#include "Bletch: How does this C preprocessor concatenate tokens?"
1597#endif
a845a0d4 1598
7e69463d
AC
1599/* CPPSTDIN:
1600 * This symbol contains the first part of the string which will invoke
1601 * the C preprocessor on the standard input and produce to standard
1602 * output. Typical value of "cc -E" or "/lib/cpp", but it can also
1603 * call a wrapper. See CPPRUN.
a845a0d4 1604 */
7e69463d
AC
1605/* CPPMINUS:
1606 * This symbol contains the second part of the string which will invoke
1607 * the C preprocessor on the standard input and produce to standard
1608 * output. This symbol will have the value "-" if CPPSTDIN needs a minus
1609 * to specify standard input, otherwise the value is "".
06501368 1610 */
7e69463d
AC
1611/* CPPRUN:
1612 * This symbol contains the string which will invoke a C preprocessor on
1613 * the standard input and produce to standard output. It needs to end
1614 * with CPPLAST, after all other preprocessor flags have been specified.
1615 * The main difference with CPPSTDIN is that this program will never be a
1616 * pointer to a shell wrapper, i.e. it will be empty if no preprocessor is
1617 * available directly to the user. Note that it may well be different from
1618 * the preprocessor used to compile the C program.
eaf812ae 1619 */
7e69463d
AC
1620/* CPPLAST:
1621 * This symbol is intended to be used along with CPPRUN in the same manner
1622 * symbol CPPMINUS is used with CPPSTDIN. It contains either "-" or "".
eaf812ae 1623 */
7e69463d
AC
1624#define CPPSTDIN "$cppstdin"
1625#define CPPMINUS "$cppminus"
1626#define CPPRUN "$cpprun"
1627#define CPPLAST "$cpplast"
eaf812ae 1628
7e69463d
AC
1629/* HAS_ACCESS:
1630 * This manifest constant lets the C program know that the access()
1631 * system call is available to check for accessibility using real UID/GID.
1632 * (always present on UNIX.)
eaf812ae 1633 */
7e69463d 1634#$d_access HAS_ACCESS /**/
eaf812ae 1635
7e69463d
AC
1636/* HASATTRIBUTE_FORMAT:
1637 * Can we handle GCC attribute for checking printf-style formats
eaf812ae 1638 */
7e69463d
AC
1639/* PRINTF_FORMAT_NULL_OK:
1640 * Allows __printf__ format to be null when checking printf-style
eaf812ae 1641 */
7e69463d
AC
1642/* HASATTRIBUTE_MALLOC:
1643 * Can we handle GCC attribute for malloc-style functions.
06501368 1644 */
7e69463d
AC
1645/* HASATTRIBUTE_NONNULL:
1646 * Can we handle GCC attribute for nonnull function parms.
a845a0d4 1647 */
7e69463d
AC
1648/* HASATTRIBUTE_NORETURN:
1649 * Can we handle GCC attribute for functions that do not return
a845a0d4 1650 */
7e69463d
AC
1651/* HASATTRIBUTE_PURE:
1652 * Can we handle GCC attribute for pure functions
06501368 1653 */
7e69463d
AC
1654/* HASATTRIBUTE_UNUSED:
1655 * Can we handle GCC attribute for unused variables and arguments
06501368 1656 */
7e69463d
AC
1657/* HASATTRIBUTE_DEPRECATED:
1658 * Can we handle GCC attribute for marking deprecated APIs
08c92000 1659 */
7e69463d
AC
1660/* HASATTRIBUTE_WARN_UNUSED_RESULT:
1661 * Can we handle GCC attribute for warning on unused results
06501368 1662 */
7e69463d
AC
1663#$d_attribute_deprecated HASATTRIBUTE_DEPRECATED /**/
1664#$d_attribute_format HASATTRIBUTE_FORMAT /**/
1665#$d_printf_format_null PRINTF_FORMAT_NULL_OK /**/
1666#$d_attribute_noreturn HASATTRIBUTE_NORETURN /**/
1667#$d_attribute_malloc HASATTRIBUTE_MALLOC /**/
1668#$d_attribute_nonnull HASATTRIBUTE_NONNULL /**/
1669#$d_attribute_pure HASATTRIBUTE_PURE /**/
1670#$d_attribute_unused HASATTRIBUTE_UNUSED /**/
1671#$d_attribute_warn_unused_result HASATTRIBUTE_WARN_UNUSED_RESULT /**/
06501368 1672
7e69463d
AC
1673/* HAS_BACKTRACE:
1674 * This symbol, if defined, indicates that the backtrace() routine is
1675 * available to get a stack trace. The <execinfo.h> header must be
1676 * included to use this routine.
a845a0d4 1677 */
7e69463d 1678#$d_backtrace HAS_BACKTRACE /**/
b8677e3b 1679
7e69463d
AC
1680/* HASCONST:
1681 * This symbol, if defined, indicates that this C compiler knows about
1682 * the const type. There is no need to actually test for that symbol
1683 * within your programs. The mere use of the "const" keyword will
1684 * trigger the necessary tests.
a845a0d4 1685 */
7e69463d
AC
1686#$d_const HASCONST /**/
1687#ifndef HASCONST
1688#define const
1689#endif
a845a0d4 1690
7e69463d
AC
1691/* HAS_CSH:
1692 * This symbol, if defined, indicates that the C-shell exists.
08c92000 1693 */
7e69463d
AC
1694/* CSH:
1695 * This symbol, if defined, contains the full pathname of csh.
f025e94b 1696 */
7e69463d
AC
1697#$d_csh HAS_CSH /**/
1698#ifdef HAS_CSH
1699#define CSH "$full_csh" /**/
8572b25d
BH
1700#endif
1701
7e69463d
AC
1702/* HAS_DLADDR:
1703 * This symbol, if defined, indicates that the dladdr() routine is
1704 * available to query dynamic linker information for an address.
1705 * The <dlfcn.h> header must be included to use this routine.
08c92000 1706 */
7e69463d 1707#$d_dladdr HAS_DLADDR /**/
08c92000 1708
7e69463d
AC
1709/* SETUID_SCRIPTS_ARE_SECURE_NOW:
1710 * This symbol, if defined, indicates that the bug that prevents
1711 * setuid scripts from being secure is not present in this kernel.
a845a0d4 1712 */
7e69463d
AC
1713/* DOSUID:
1714 * This symbol, if defined, indicates that the C program should
1715 * check the script that it is executing for setuid/setgid bits, and
1716 * attempt to emulate setuid/setgid on systems that have disabled
1717 * setuid #! scripts because the kernel can't do it securely.
1718 * It is up to the package designer to make sure that this emulation
1719 * is done securely. Among other things, it should do an fstat on
1720 * the script it just opened to make sure it really is a setuid/setgid
1721 * script, it should make sure the arguments passed correspond exactly
1722 * to the argument on the #! line, and it should not trust any
1723 * subprocesses to which it must pass the filename rather than the
1724 * file descriptor of the script to be executed.
db8b8c75 1725 */
7e69463d
AC
1726#$d_suidsafe SETUID_SCRIPTS_ARE_SECURE_NOW /**/
1727#$d_dosuid DOSUID /**/
1728
1729/* HAS_ENDGRENT:
1730 * This symbol, if defined, indicates that the getgrent routine is
1731 * available for finalizing sequential access of the group database.
dc91db6c 1732 */
7e69463d 1733#$d_endgrent HAS_ENDGRENT /**/
a845a0d4 1734
7e69463d
AC
1735/* HAS_ENDHOSTENT:
1736 * This symbol, if defined, indicates that the endhostent() routine is
1737 * available to close whatever was being used for host queries.
eaf812ae 1738 */
7e69463d
AC
1739#$d_endhent HAS_ENDHOSTENT /**/
1740
1741/* HAS_ENDNETENT:
1742 * This symbol, if defined, indicates that the endnetent() routine is
1743 * available to close whatever was being used for network queries.
06501368 1744 */
7e69463d 1745#$d_endnent HAS_ENDNETENT /**/
eaf812ae 1746
7e69463d
AC
1747/* HAS_ENDPROTOENT:
1748 * This symbol, if defined, indicates that the endprotoent() routine is
1749 * available to close whatever was being used for protocol queries.
a845a0d4 1750 */
7e69463d 1751#$d_endpent HAS_ENDPROTOENT /**/
06501368 1752
7e69463d
AC
1753/* HAS_ENDPWENT:
1754 * This symbol, if defined, indicates that the getgrent routine is
1755 * available for finalizing sequential access of the passwd database.
a845a0d4 1756 */
7e69463d 1757#$d_endpwent HAS_ENDPWENT /**/
06501368 1758
7e69463d
AC
1759/* HAS_ENDSERVENT:
1760 * This symbol, if defined, indicates that the endservent() routine is
1761 * available to close whatever was being used for service queries.
06501368 1762 */
7e69463d 1763#$d_endsent HAS_ENDSERVENT /**/
06501368 1764
7e69463d
AC
1765/* FLEXFILENAMES:
1766 * This symbol, if defined, indicates that the system supports filenames
1767 * longer than 14 characters.
06501368 1768 */
7e69463d
AC
1769#$d_flexfnam FLEXFILENAMES /**/
1770
1771/* HAS_GETGRENT:
1772 * This symbol, if defined, indicates that the getgrent routine is
1773 * available for sequential access of the group database.
06501368 1774 */
7e69463d 1775#$d_getgrent HAS_GETGRENT /**/
06501368 1776
7e69463d
AC
1777/* HAS_GETHOSTBYADDR:
1778 * This symbol, if defined, indicates that the gethostbyaddr() routine is
1779 * available to look up hosts by their IP addresses.
06501368 1780 */
7e69463d 1781#$d_gethbyaddr HAS_GETHOSTBYADDR /**/
06501368 1782
7e69463d
AC
1783/* HAS_GETHOSTBYNAME:
1784 * This symbol, if defined, indicates that the gethostbyname() routine is
1785 * available to look up host names in some data base or other.
06501368 1786 */
7e69463d 1787#$d_gethbyname HAS_GETHOSTBYNAME /**/
06501368 1788
7e69463d
AC
1789/* HAS_GETHOSTENT:
1790 * This symbol, if defined, indicates that the gethostent() routine is
1791 * available to look up host names in some data base or another.
08c92000 1792 */
7e69463d 1793#$d_gethent HAS_GETHOSTENT /**/
a845a0d4 1794
7e69463d
AC
1795/* HAS_GETHOSTNAME:
1796 * This symbol, if defined, indicates that the C program may use the
1797 * gethostname() routine to derive the host name. See also HAS_UNAME
1798 * and PHOSTNAME.
a845a0d4 1799 */
7e69463d
AC
1800/* HAS_UNAME:
1801 * This symbol, if defined, indicates that the C program may use the
1802 * uname() routine to derive the host name. See also HAS_GETHOSTNAME
1803 * and PHOSTNAME.
a845a0d4 1804 */
7e69463d
AC
1805/* PHOSTNAME:
1806 * This symbol, if defined, indicates the command to feed to the
1807 * popen() routine to derive the host name. See also HAS_GETHOSTNAME
1808 * and HAS_UNAME. Note that the command uses a fully qualified path,
1809 * so that it is safe even if used by a process with super-user
1810 * privileges.
eaf812ae 1811 */
7e69463d
AC
1812/* HAS_PHOSTNAME:
1813 * This symbol, if defined, indicates that the C program may use the
1814 * contents of PHOSTNAME as a command to feed to the popen() routine
1815 * to derive the host name.
eaf812ae 1816 */
7e69463d
AC
1817#$d_gethname HAS_GETHOSTNAME /**/
1818#$d_uname HAS_UNAME /**/
1819#$d_phostname HAS_PHOSTNAME /**/
1820#ifdef HAS_PHOSTNAME
1821#define PHOSTNAME "$aphostname" /* How to get the host name */
1822#endif
eaf812ae 1823
7e69463d
AC
1824/* HAS_GETNETBYADDR:
1825 * This symbol, if defined, indicates that the getnetbyaddr() routine is
1826 * available to look up networks by their IP addresses.
08c92000 1827 */
7e69463d 1828#$d_getnbyaddr HAS_GETNETBYADDR /**/
a845a0d4 1829
7e69463d
AC
1830/* HAS_GETNETBYNAME:
1831 * This symbol, if defined, indicates that the getnetbyname() routine is
1832 * available to look up networks by their names.
08c92000 1833 */
7e69463d 1834#$d_getnbyname HAS_GETNETBYNAME /**/
08c92000 1835
7e69463d
AC
1836/* HAS_GETNETENT:
1837 * This symbol, if defined, indicates that the getnetent() routine is
1838 * available to look up network names in some data base or another.
08c92000 1839 */
7e69463d 1840#$d_getnent HAS_GETNETENT /**/
b8677e3b 1841
7e69463d
AC
1842/* HAS_GETPROTOENT:
1843 * This symbol, if defined, indicates that the getprotoent() routine is
1844 * available to look up protocols in some data base or another.
b8677e3b 1845 */
7e69463d 1846#$d_getpent HAS_GETPROTOENT /**/
08c92000 1847
7e69463d
AC
1848/* HAS_GETPGRP:
1849 * This symbol, if defined, indicates that the getpgrp routine is
1850 * available to get the current process group.
06501368 1851 */
7e69463d
AC
1852/* USE_BSD_GETPGRP:
1853 * This symbol, if defined, indicates that getpgrp needs one
1854 * arguments whereas USG one needs none.
06501368 1855 */
7e69463d
AC
1856#$d_getpgrp HAS_GETPGRP /**/
1857#$d_bsdgetpgrp USE_BSD_GETPGRP /**/
06501368 1858
7e69463d
AC
1859/* HAS_GETPROTOBYNAME:
1860 * This symbol, if defined, indicates that the getprotobyname()
1861 * routine is available to look up protocols by their name.
08c92000 1862 */
7e69463d
AC
1863/* HAS_GETPROTOBYNUMBER:
1864 * This symbol, if defined, indicates that the getprotobynumber()
1865 * routine is available to look up protocols by their number.
08c92000 1866 */
7e69463d
AC
1867#$d_getpbyname HAS_GETPROTOBYNAME /**/
1868#$d_getpbynumber HAS_GETPROTOBYNUMBER /**/
08c92000 1869
7e69463d
AC
1870/* HAS_GETPWENT:
1871 * This symbol, if defined, indicates that the getpwent routine is
1872 * available for sequential access of the passwd database.
1873 * If this is not available, the older getpw() function may be available.
06501368 1874 */
7e69463d 1875#$d_getpwent HAS_GETPWENT /**/
06501368 1876
7e69463d
AC
1877/* HAS_GETSERVENT:
1878 * This symbol, if defined, indicates that the getservent() routine is
1879 * available to look up network services in some data base or another.
eaf812ae 1880 */
7e69463d 1881#$d_getsent HAS_GETSERVENT /**/
eaf812ae 1882
7e69463d
AC
1883/* HAS_GETSERVBYNAME:
1884 * This symbol, if defined, indicates that the getservbyname()
1885 * routine is available to look up services by their name.
eaf812ae 1886 */
7e69463d
AC
1887/* HAS_GETSERVBYPORT:
1888 * This symbol, if defined, indicates that the getservbyport()
1889 * routine is available to look up services by their port.
eaf812ae 1890 */
7e69463d
AC
1891#$d_getsbyname HAS_GETSERVBYNAME /**/
1892#$d_getsbyport HAS_GETSERVBYPORT /**/
eaf812ae 1893
7e69463d
AC
1894/* HAS_HTONL:
1895 * This symbol, if defined, indicates that the htonl() routine (and
1896 * friends htons() ntohl() ntohs()) are available to do network
1897 * order byte swapping.
06501368 1898 */
7e69463d
AC
1899/* HAS_HTONS:
1900 * This symbol, if defined, indicates that the htons() routine (and
1901 * friends htonl() ntohl() ntohs()) are available to do network
1902 * order byte swapping.
eaf812ae 1903 */
7e69463d
AC
1904/* HAS_NTOHL:
1905 * This symbol, if defined, indicates that the ntohl() routine (and
1906 * friends htonl() htons() ntohs()) are available to do network
1907 * order byte swapping.
eaf812ae 1908 */
7e69463d
AC
1909/* HAS_NTOHS:
1910 * This symbol, if defined, indicates that the ntohs() routine (and
1911 * friends htonl() htons() ntohl()) are available to do network
1912 * order byte swapping.
06501368 1913 */
7e69463d
AC
1914#$d_htonl HAS_HTONL /**/
1915#$d_htonl HAS_HTONS /**/
1916#$d_htonl HAS_NTOHL /**/
1917#$d_htonl HAS_NTOHS /**/
06501368 1918
7e69463d
AC
1919/* HAS_LONG_DOUBLE:
1920 * This symbol will be defined if the C compiler supports long
1921 * doubles.
06501368 1922 */
7e69463d
AC
1923/* LONG_DOUBLESIZE:
1924 * This symbol contains the size of a long double, so that the
1925 * C preprocessor can make decisions based on it. It is only
1926 * defined if the system supports long doubles. Note that this
1927 * is sizeof(long double), which may include unused bytes.
06501368 1928 */
7e69463d
AC
1929/* HAS_LDEXPL:
1930 * This symbol, if defined, indicates that the ldexpl routine is
1931 * available to shift a long double floating-point number
1932 * by an integral power of 2.
1933 */
1934/* LONG_DOUBLEKIND:
1935 * LONG_DOUBLEKIND will be one of
1936 * LONG_DOUBLE_IS_DOUBLE
1937 * LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN
1938 * LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN
1939 * LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN
1940 * LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN
1941 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_LE
1942 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_BE
1943 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_BE
1944 * LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_LE
1945 * LONG_DOUBLE_IS_UNKNOWN_FORMAT
1946 * It is only defined if the system supports long doubles.
1947 */
1948#$d_ldexpl HAS_LDEXPL /**/
1949#$d_longdbl HAS_LONG_DOUBLE /**/
1950#ifdef HAS_LONG_DOUBLE
1951#define LONG_DOUBLESIZE $longdblsize /**/
1952#define LONG_DOUBLEKIND $longdblkind /**/
1953#define LONG_DOUBLE_IS_DOUBLE 0
1954#define LONG_DOUBLE_IS_IEEE_754_128_BIT_LITTLE_ENDIAN 1
1955#define LONG_DOUBLE_IS_IEEE_754_128_BIT_BIG_ENDIAN 2
1956#define LONG_DOUBLE_IS_X86_80_BIT_LITTLE_ENDIAN 3
1957#define LONG_DOUBLE_IS_X86_80_BIT_BIG_ENDIAN 4
1958#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_LE 5
1959#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_BE 6
1960#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_BE 7
1961#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_LE 8
86ea01eb 1962#define LONG_DOUBLE_IS_VAX_H_FLOAT 9
7e69463d
AC
1963#define LONG_DOUBLE_IS_UNKNOWN_FORMAT -1
1964#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LITTLE_ENDIAN LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_LE_LE /* back-compat */
1965#define LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BIG_ENDIAN LONG_DOUBLE_IS_DOUBLEDOUBLE_128_BIT_BE_BE /* back-compat */
1966#endif
06501368 1967
7e69463d
AC
1968/* HAS_LONG_LONG:
1969 * This symbol will be defined if the C compiler supports long long.
eaf812ae 1970 */
7e69463d
AC
1971/* LONGLONGSIZE:
1972 * This symbol contains the size of a long long, so that the
1973 * C preprocessor can make decisions based on it. It is only
1974 * defined if the system supports long long.
eaf812ae 1975 */
7e69463d
AC
1976#$d_longlong HAS_LONG_LONG /**/
1977#ifdef HAS_LONG_LONG
1978#define LONGLONGSIZE $longlongsize /**/
1979#endif
1980
1981/* HAS_MEMCHR:
1982 * This symbol, if defined, indicates that the memchr routine is available
1983 * to locate characters within a C string.
1984 */
1985#$d_memchr HAS_MEMCHR /**/
1986
1987/* HAS_MKSTEMP:
1988 * This symbol, if defined, indicates that the mkstemp routine is
1989 * available to exclusively create and open a uniquely named
1990 * temporary file.
1991 */
1992#$d_mkstemp HAS_MKSTEMP /**/
1993
1994/* HAS_MMAP:
1995 * This symbol, if defined, indicates that the mmap system call is
1996 * available to map a file into memory.
1997 */
1998/* Mmap_t:
1999 * This symbol holds the return type of the mmap() system call
2000 * (and simultaneously the type of the first argument).
2001 * Usually set to 'void *' or 'caddr_t'.
2002 */
2003#$d_mmap HAS_MMAP /**/
2004#define Mmap_t $mmaptype /**/
2005
2006/* HAS_MSG:
2007 * This symbol, if defined, indicates that the entire msg*(2) library is
2008 * supported (IPC mechanism based on message queues).
2009 */
2010#$d_msg HAS_MSG /**/
2011
2012/* HAS_SEM:
2013 * This symbol, if defined, indicates that the entire sem*(2) library is
2014 * supported.
2015 */
2016#$d_sem HAS_SEM /**/
2017
2018/* HAS_SETGRENT:
2019 * This symbol, if defined, indicates that the setgrent routine is
2020 * available for initializing sequential access of the group database.
2021 */
2022#$d_setgrent HAS_SETGRENT /**/
2023
2024/* HAS_SETHOSTENT:
2025 * This symbol, if defined, indicates that the sethostent() routine is
2026 * available.
2027 */
2028#$d_sethent HAS_SETHOSTENT /**/
2029
2030/* HAS_SETNETENT:
2031 * This symbol, if defined, indicates that the setnetent() routine is
2032 * available.
2033 */
2034#$d_setnent HAS_SETNETENT /**/
2035
2036/* HAS_SETPROTOENT:
2037 * This symbol, if defined, indicates that the setprotoent() routine is
2038 * available.
2039 */
2040#$d_setpent HAS_SETPROTOENT /**/
2041
2042/* HAS_SETPGRP:
2043 * This symbol, if defined, indicates that the setpgrp routine is
2044 * available to set the current process group.
2045 */
2046/* USE_BSD_SETPGRP:
2047 * This symbol, if defined, indicates that setpgrp needs two
2048 * arguments whereas USG one needs none. See also HAS_SETPGID
2049 * for a POSIX interface.
2050 */
2051#$d_setpgrp HAS_SETPGRP /**/
2052#$d_bsdsetpgrp USE_BSD_SETPGRP /**/
eaf812ae 2053
06501368
MB
2054/* HAS_SETPWENT:
2055 * This symbol, if defined, indicates that the setpwent routine is
2056 * available for initializing sequential access of the passwd database.
2057 */
2058#$d_setpwent HAS_SETPWENT /**/
2059
06501368
MB
2060/* HAS_SETSERVENT:
2061 * This symbol, if defined, indicates that the setservent() routine is
2062 * available.
2063 */
2064#$d_setsent HAS_SETSERVENT /**/
2065
06501368
MB
2066/* HAS_SETVBUF:
2067 * This symbol, if defined, indicates that the setvbuf routine is
2068 * available to change buffering on an open stdio stream.
2069 * to a line-buffered mode.
2070 */
2071#$d_setvbuf HAS_SETVBUF /**/
2072
2073/* HAS_SHM:
2074 * This symbol, if defined, indicates that the entire shm*(2) library is
2075 * supported.
2076 */
2077#$d_shm HAS_SHM /**/
2078
2079/* Shmat_t:
2080 * This symbol holds the return type of the shmat() system call.
2081 * Usually set to 'void *' or 'char *'.
2082 */
2083/* HAS_SHMAT_PROTOTYPE:
2084 * This symbol, if defined, indicates that the sys/shm.h includes
2085 * a prototype for shmat(). Otherwise, it is up to the program to
2086 * guess one. Shmat_t shmat(int, Shmat_t, int) is a good guess,
2087 * but not always right so it should be emitted by the program only
2088 * when HAS_SHMAT_PROTOTYPE is not defined to avoid conflicting defs.
2089 */
2090#define Shmat_t $shmattype /**/
2091#$d_shmatprototype HAS_SHMAT_PROTOTYPE /**/
2092
06501368
MB
2093/* HAS_SOCKET:
2094 * This symbol, if defined, indicates that the BSD socket interface is
2095 * supported.
2096 */
2097/* HAS_SOCKETPAIR:
2098 * This symbol, if defined, indicates that the BSD socketpair() call is
2099 * supported.
2100 */
06501368
MB
2101/* HAS_SOCKADDR_SA_LEN:
2102 * This symbol, if defined, indicates that the struct sockaddr
2103 * structure has a member called sa_len, indicating the length of
2104 * the structure.
2105 */
18126d98
MB
2106/* HAS_SOCKADDR_IN6:
2107 * This symbol, if defined, indicates the availability of
2108 * struct sockaddr_in6;
2109 */
06501368
MB
2110/* HAS_SIN6_SCOPE_ID:
2111 * This symbol, if defined, indicates that the struct sockaddr_in6
2112 * structure has a member called sin6_scope_id.
2113 */
122b9bf4
MB
2114/* HAS_IP_MREQ:
2115 * This symbol, if defined, indicates the availability of
2116 * struct ip_mreq;
2117 */
3e06601f
MB
2118/* HAS_IP_MREQ_SOURCE:
2119 * This symbol, if defined, indicates the availability of
2120 * struct ip_mreq_source;
2121 */
18126d98
MB
2122/* HAS_IPV6_MREQ:
2123 * This symbol, if defined, indicates the availability of
2124 * struct ipv6_mreq;
2125 */
3e06601f
MB
2126/* HAS_IPV6_MREQ_SOURCE:
2127 * This symbol, if defined, indicates the availability of
2128 * struct ipv6_mreq_source;
2129 */
06501368
MB
2130#$d_socket HAS_SOCKET /**/
2131#$d_sockpair HAS_SOCKETPAIR /**/
2132#$d_sockaddr_sa_len HAS_SOCKADDR_SA_LEN /**/
18126d98 2133#$d_sockaddr_in6 HAS_SOCKADDR_IN6 /**/
06501368 2134#$d_sin6_scope_id HAS_SIN6_SCOPE_ID /**/
122b9bf4 2135#$d_ip_mreq HAS_IP_MREQ /**/
3e06601f 2136#$d_ip_mreq_source HAS_IP_MREQ_SOURCE /**/
18126d98 2137#$d_ipv6_mreq HAS_IPV6_MREQ /**/
3e06601f 2138#$d_ipv6_mreq_source HAS_IPV6_MREQ_SOURCE /**/
06501368 2139
06501368
MB
2140/* USE_STAT_BLOCKS:
2141 * This symbol is defined if this system has a stat structure declaring
2142 * st_blksize and st_blocks.
2143 */
2144#ifndef USE_STAT_BLOCKS
2145#$d_statblks USE_STAT_BLOCKS /**/
2146#endif
2147
06501368
MB
2148/* USE_STRUCT_COPY:
2149 * This symbol, if defined, indicates that this C compiler knows how
2150 * to copy structures. If undefined, you'll need to use a block copy
2151 * routine of some sort instead.
2152 */
2153#$d_strctcpy USE_STRUCT_COPY /**/
2154
2155/* HAS_STRERROR:
2156 * This symbol, if defined, indicates that the strerror routine is
2157 * available to translate error numbers to strings. See the writeup
2158 * of Strerror() in this file before you try to define your own.
2159 */
2160/* HAS_SYS_ERRLIST:
2161 * This symbol, if defined, indicates that the sys_errlist array is
2162 * available to translate error numbers to strings. The extern int
2163 * sys_nerr gives the size of that table.
2164 */
2165/* Strerror:
2166 * This preprocessor symbol is defined as a macro if strerror() is
2167 * not available to translate error numbers to strings but sys_errlist[]
2168 * array is there.
2169 */
2170#$d_strerror HAS_STRERROR /**/
2171#$d_syserrlst HAS_SYS_ERRLIST /**/
2172#define Strerror(e) $d_strerrm
2173
06501368
MB
2174/* HAS_STRTOUL:
2175 * This symbol, if defined, indicates that the strtoul routine is
2176 * available to provide conversion of strings to unsigned long.
2177 */
2178#$d_strtoul HAS_STRTOUL /**/
2179
06501368
MB
2180/* HAS_UNION_SEMUN:
2181 * This symbol, if defined, indicates that the union semun is
2182 * defined by including <sys/sem.h>. If not, the user code
2183 * probably needs to define it as:
2184 * union semun {
2185 * int val;
2186 * struct semid_ds *buf;
2187 * unsigned short *array;
2188 * }
2189 */
2190/* USE_SEMCTL_SEMUN:
2191 * This symbol, if defined, indicates that union semun is
2192 * used for semctl IPC_STAT.
2193 */
2194/* USE_SEMCTL_SEMID_DS:
2195 * This symbol, if defined, indicates that struct semid_ds * is
2196 * used for semctl IPC_STAT.
2197 */
2198#$d_union_semun HAS_UNION_SEMUN /**/
2199#$d_semctl_semun USE_SEMCTL_SEMUN /**/
2200#$d_semctl_semid_ds USE_SEMCTL_SEMID_DS /**/
2201
2202/* HAS_VFORK:
2203 * This symbol, if defined, indicates that vfork() exists.
2204 */
2205#$d_vfork HAS_VFORK /**/
2206
2207/* HAS_PSEUDOFORK:
2208 * This symbol, if defined, indicates that an emulation of the
2209 * fork routine is available.
2210 */
2211#$d_pseudofork HAS_PSEUDOFORK /**/
2212
2213/* Signal_t:
2214 * This symbol's value is either "void" or "int", corresponding to the
2215 * appropriate return type of a signal handler. Thus, you can declare
2216 * a signal handler using "Signal_t (*handler)()", and define the
2217 * handler using "Signal_t handler(sig)".
2218 */
2219#define Signal_t $signal_t /* Signal handler's return type */
2220
2221/* HASVOLATILE:
2222 * This symbol, if defined, indicates that this C compiler knows about
2223 * the volatile declaration.
2224 */
2225#$d_volatile HASVOLATILE /**/
2226#ifndef HASVOLATILE
2227#define volatile
2228#endif
2229
06501368
MB
2230/* I_DIRENT:
2231 * This symbol, if defined, indicates to the C program that it should
2232 * include <dirent.h>. Using this symbol also triggers the definition
2233 * of the Direntry_t define which ends up being 'struct dirent' or
2234 * 'struct direct' depending on the availability of <dirent.h>.
2235 */
2236/* DIRNAMLEN:
2237 * This symbol, if defined, indicates to the C program that the length
2238 * of directory entry names is provided by a d_namlen field. Otherwise
2239 * you need to do strlen() on the d_name field.
2240 */
2241/* Direntry_t:
2242 * This symbol is set to 'struct direct' or 'struct dirent' depending on
2243 * whether dirent is available or not. You should use this pseudo type to
2244 * portably declare your directory entries.
2245 */
2246#$i_dirent I_DIRENT /**/
2247#$d_dirnamlen DIRNAMLEN /**/
2248#define Direntry_t $direntrytype
2249
0e0c5f82
MB
2250/* I_EXECINFO:
2251 * This symbol, if defined, indicates to the C program that it should
2252 * include <execinfo.h> for backtrace() support.
2253 */
2254#$i_execinfo I_EXECINFO /**/
2255
06501368
MB
2256/* I_GRP:
2257 * This symbol, if defined, indicates to the C program that it should
2258 * include <grp.h>.
2259 */
2260/* GRPASSWD:
2261 * This symbol, if defined, indicates to the C program that struct group
2262 * in <grp.h> contains gr_passwd.
2263 */
2264#$i_grp I_GRP /**/
2265#$d_grpasswd GRPASSWD /**/
2266
06501368
MB
2267/* I_NDBM:
2268 * This symbol, if defined, indicates that <ndbm.h> exists and should
2269 * be included.
2270 */
2271/* I_GDBMNDBM:
2272 * This symbol, if defined, indicates that <gdbm/ndbm.h> exists and should
2273 * be included. This was the location of the ndbm.h compatibility file
2274 * in RedHat 7.1.
2275 */
2276/* I_GDBM_NDBM:
2277 * This symbol, if defined, indicates that <gdbm-ndbm.h> exists and should
2278 * be included. This is the location of the ndbm.h compatibility file
2279 * in Debian 4.0.
2280 */
2281/* NDBM_H_USES_PROTOTYPES:
2282 * This symbol, if defined, indicates that <ndbm.h> uses real ANSI C
2283 * prototypes instead of K&R style function declarations without any
2284 * parameter information. While ANSI C prototypes are supported in C++,
2285 * K&R style function declarations will yield errors.
2286 */
2287/* GDBMNDBM_H_USES_PROTOTYPES:
2288 * This symbol, if defined, indicates that <gdbm/ndbm.h> uses real ANSI C
2289 * prototypes instead of K&R style function declarations without any
2290 * parameter information. While ANSI C prototypes are supported in C++,
2291 * K&R style function declarations will yield errors.
2292 */
2293/* GDBM_NDBM_H_USES_PROTOTYPES:
2294 * This symbol, if defined, indicates that <gdbm-ndbm.h> uses real ANSI C
2295 * prototypes instead of K&R style function declarations without any
2296 * parameter information. While ANSI C prototypes are supported in C++,
2297 * K&R style function declarations will yield errors.
2298 */
2299#$i_ndbm I_NDBM /**/
2300#$i_gdbmndbm I_GDBMNDBM /**/
2301#$i_gdbm_ndbm I_GDBM_NDBM /**/
2302#$d_ndbm_h_uses_prototypes NDBM_H_USES_PROTOTYPES /**/
2303#$d_gdbmndbm_h_uses_prototypes GDBMNDBM_H_USES_PROTOTYPES /**/
2304#$d_gdbm_ndbm_h_uses_prototypes GDBM_NDBM_H_USES_PROTOTYPES /**/
2305
2306/* I_NETDB:
2307 * This symbol, if defined, indicates that <netdb.h> exists and
2308 * should be included.
2309 */
2310#$i_netdb I_NETDB /**/
2311
2312/* I_NET_ERRNO:
2313 * This symbol, if defined, indicates that <net/errno.h> exists and
2314 * should be included.
2315 */
2316#$i_neterrno I_NET_ERRNO /**/
2317
06501368
MB
2318/* I_PWD:
2319 * This symbol, if defined, indicates to the C program that it should
2320 * include <pwd.h>.
2321 */
2322/* PWQUOTA:
2323 * This symbol, if defined, indicates to the C program that struct passwd
2324 * contains pw_quota.
2325 */
2326/* PWAGE:
2327 * This symbol, if defined, indicates to the C program that struct passwd
2328 * contains pw_age.
2329 */
2330/* PWCHANGE:
2331 * This symbol, if defined, indicates to the C program that struct passwd
2332 * contains pw_change.
2333 */
2334/* PWCLASS:
2335 * This symbol, if defined, indicates to the C program that struct passwd
2336 * contains pw_class.
2337 */
2338/* PWEXPIRE:
2339 * This symbol, if defined, indicates to the C program that struct passwd
2340 * contains pw_expire.
2341 */
2342/* PWCOMMENT:
2343 * This symbol, if defined, indicates to the C program that struct passwd
2344 * contains pw_comment.
2345 */
2346/* PWGECOS:
2347 * This symbol, if defined, indicates to the C program that struct passwd
2348 * contains pw_gecos.
2349 */
2350/* PWPASSWD:
2351 * This symbol, if defined, indicates to the C program that struct passwd
2352 * contains pw_passwd.
2353 */
2354#$i_pwd I_PWD /**/
2355#$d_pwquota PWQUOTA /**/
2356#$d_pwage PWAGE /**/
2357#$d_pwchange PWCHANGE /**/
2358#$d_pwclass PWCLASS /**/
2359#$d_pwexpire PWEXPIRE /**/
2360#$d_pwcomment PWCOMMENT /**/
2361#$d_pwgecos PWGECOS /**/
2362#$d_pwpasswd PWPASSWD /**/
2363
06501368
MB
2364/* I_SYSUIO:
2365 * This symbol, if defined, indicates that <sys/uio.h> exists and
2366 * should be included.
2367 */
2368#$i_sysuio I_SYSUIO /**/
2369
0e0c5f82
MB
2370/* I_TERMIO:
2371 * This symbol, if defined, indicates that the program should include
2372 * <termio.h> rather than <sgtty.h>. There are also differences in
2373 * the ioctl() calls that depend on the value of this symbol.
2374 */
2375/* I_TERMIOS:
2376 * This symbol, if defined, indicates that the program should include
2377 * the POSIX termios.h rather than sgtty.h or termio.h.
2378 * There are also differences in the ioctl() calls that depend on the
2379 * value of this symbol.
2380 */
2381/* I_SGTTY:
2382 * This symbol, if defined, indicates that the program should include
2383 * <sgtty.h> rather than <termio.h>. There are also differences in
2384 * the ioctl() calls that depend on the value of this symbol.
2385 */
2386#$i_termio I_TERMIO /**/
2387#$i_termios I_TERMIOS /**/
2388#$i_sgtty I_SGTTY /**/
2389
06501368
MB
2390/* I_STDARG:
2391 * This symbol, if defined, indicates that <stdarg.h> exists and should
2392 * be included.
2393 */
2394/* I_VARARGS:
2395 * This symbol, if defined, indicates to the C program that it should
2396 * include <varargs.h>.
2397 */
2398#$i_stdarg I_STDARG /**/
2399#$i_varargs I_VARARGS /**/
2400
06501368
MB
2401/* Free_t:
2402 * This variable contains the return type of free(). It is usually
2403 * void, but occasionally int.
2404 */
2405/* Malloc_t:
2406 * This symbol is the type of pointer returned by malloc and realloc.
2407 */
2408#define Malloc_t $malloctype /**/
2409#define Free_t $freetype /**/
2410
2411/* PERL_MALLOC_WRAP:
2412 * This symbol, if defined, indicates that we'd like malloc wrap checks.
2413 */
2414#$usemallocwrap PERL_MALLOC_WRAP /**/
2415
2416/* MYMALLOC:
2417 * This symbol, if defined, indicates that we're using our own malloc.
2418 */
2419#$d_mymalloc MYMALLOC /**/
2420
06501368
MB
2421/* CAN_PROTOTYPE:
2422 * If defined, this macro indicates that the C compiler can handle
2423 * function prototypes.
2424 */
2425/* _:
2426 * This macro is used to declare function parameters for folks who want
2427 * to make declarations with prototypes using a different style than
2428 * the above macros. Use double parentheses. For example:
2429 *
2430 * int main _((int argc, char *argv[]));
2431 */
2432#$prototype CAN_PROTOTYPE /**/
2433#ifdef CAN_PROTOTYPE
2434#define _(args) args
2435#else
2436#define _(args) ()
2437#endif
2438
06501368
MB
2439/* SH_PATH:
2440 * This symbol contains the full pathname to the shell used on this
2441 * on this system to execute Bourne shell scripts. Usually, this will be
2442 * /bin/sh, though it's possible that some systems will have /bin/ksh,
2443 * /bin/pdksh, /bin/ash, /bin/bash, or even something such as
2444 * D:/bin/sh.exe.
2445 */
0b0a0724 2446#define SH_PATH "$targetsh" /**/
06501368
MB
2447
2448/* SIG_NAME:
2449 * This symbol contains a list of signal names in order of
2450 * signal number. This is intended
2451 * to be used as a static array initialization, like this:
2452 * char *sig_name[] = { SIG_NAME };
2453 * The signals in the list are separated with commas, and each signal
2454 * is surrounded by double quotes. There is no leading SIG in the signal
2455 * name, i.e. SIGQUIT is known as "QUIT".
2456 * Gaps in the signal numbers (up to NSIG) are filled in with NUMnn,
2457 * etc., where nn is the actual signal number (e.g. NUM37).
2458 * The signal number for sig_name[i] is stored in sig_num[i].
2459 * The last element is 0 to terminate the list with a NULL. This
2460 * corresponds to the 0 at the end of the sig_name_init list.
2461 * Note that this variable is initialized from the sig_name_init,
2462 * not from sig_name (which is unused).
2463 */
2464/* SIG_NUM:
2465 * This symbol contains a list of signal numbers, in the same order as the
2466 * SIG_NAME list. It is suitable for static array initialization, as in:
2467 * int sig_num[] = { SIG_NUM };
2468 * The signals in the list are separated with commas, and the indices
2469 * within that list and the SIG_NAME list match, so it's easy to compute
2470 * the signal name from a number or vice versa at the price of a small
2471 * dynamic linear lookup.
2472 * Duplicates are allowed, but are moved to the end of the list.
2473 * The signal number corresponding to sig_name[i] is sig_number[i].
2474 * if (i < NSIG) then sig_number[i] == i.
2475 * The last element is 0, corresponding to the 0 at the end of
2476 * the sig_name_init list.
2477 * Note that this variable is initialized from the sig_num_init,
2478 * not from sig_num (which is unused).
2479 */
2480/* SIG_SIZE:
2481 * This variable contains the number of elements of the SIG_NAME
2482 * and SIG_NUM arrays, excluding the final NULL entry.
2483 */
2484#define SIG_NAME $sig_name_init /**/
2485#define SIG_NUM $sig_num_init /**/
2486#define SIG_SIZE $sig_size /**/
2487
7e69463d
AC
2488/* USE_CROSS_COMPILE:
2489 * This symbol, if defined, indicates that Perl is being cross-compiled.
a33c94aa 2490 */
7e69463d
AC
2491/* PERL_TARGETARCH:
2492 * This symbol, if defined, indicates the target architecture
2493 * Perl has been cross-compiled to. Undefined if not a cross-compile.
10bc17b6 2494 */
7e69463d
AC
2495#ifndef USE_CROSS_COMPILE
2496#$usecrosscompile USE_CROSS_COMPILE /**/
2497#define PERL_TARGETARCH "$targetarch" /**/
2498#endif
b8677e3b 2499
7e69463d
AC
2500/* PERL_USE_DEVEL:
2501 * This symbol, if defined, indicates that Perl was configured with
2502 * -Dusedevel, to enable development features. This should not be
2503 * done for production builds.
10bc17b6 2504 */
7e69463d
AC
2505#$usedevel PERL_USE_DEVEL /**/
2506
2507/* HAS_ATOLF:
2508 * This symbol, if defined, indicates that the atolf routine is
2509 * available to convert strings into long doubles.
10bc17b6 2510 */
7e69463d 2511#$d_atolf HAS_ATOLF /**/
10bc17b6 2512
7e69463d
AC
2513/* HAS_ATOLL:
2514 * This symbol, if defined, indicates that the atoll routine is
2515 * available to convert strings into long longs.
06501368 2516 */
7e69463d 2517#$d_atoll HAS_ATOLL /**/
06501368 2518
7e69463d
AC
2519/* HAS__FWALK:
2520 * This symbol, if defined, indicates that the _fwalk system call is
2521 * available to apply a function to all the file handles.
06501368 2522 */
7e69463d 2523#$d__fwalk HAS__FWALK /**/
06501368 2524
7e69463d
AC
2525/* HAS_ACOSH:
2526 * This symbol, if defined, indicates that the acosh routine is
2527 * available to do the inverse hyperbolic cosine function.
06501368 2528 */
7e69463d 2529#$d_acosh HAS_ACOSH /**/
40613a90 2530
f40bbcbf
MB
2531/* HAS_AINTL:
2532 * This symbol, if defined, indicates that the aintl routine is
2533 * available. If copysignl is also present we can emulate modfl.
2534 */
2535#$d_aintl HAS_AINTL /**/
2536
427d28ce
JH
2537/* HAS_ASINH:
2538 * This symbol, if defined, indicates that the asinh routine is
2539 * available to do the inverse hyperbolic sine function.
2540 */
2541#$d_asinh HAS_ASINH /**/
2542
2543/* HAS_ATANH:
2544 * This symbol, if defined, indicates that the atanh routine is
2545 * available to do the inverse hyperbolic tangent function.
2546 */
2547#$d_atanh HAS_ATANH /**/
2548
ed140128
AD
2549/* HAS_BUILTIN_CHOOSE_EXPR:
2550 * Can we handle GCC builtin for compile-time ternary-like expressions
2551 */
2552/* HAS_BUILTIN_EXPECT:
2553 * Can we handle GCC builtin for telling that certain values are more
2554 * likely
2555 */
2556#$d_builtin_expect HAS_BUILTIN_EXPECT /**/
2557#$d_builtin_choose_expr HAS_BUILTIN_CHOOSE_EXPR /**/
2558
2559/* HAS_C99_VARIADIC_MACROS:
2560 * If defined, the compiler supports C99 variadic macros.
2561 */
2562#$d_c99_variadic_macros HAS_C99_VARIADIC_MACROS /**/
2563
2564/* HAS_CLASS:
2565 * This symbol, if defined, indicates that the class routine is
2566 * available to classify doubles. Available for example in AIX.
2567 * The returned values are defined in <float.h> and are:
2568 *
2569 * FP_PLUS_NORM Positive normalized, nonzero
2570 * FP_MINUS_NORM Negative normalized, nonzero
2571 * FP_PLUS_DENORM Positive denormalized, nonzero
2572 * FP_MINUS_DENORM Negative denormalized, nonzero
2573 * FP_PLUS_ZERO +0.0
2574 * FP_MINUS_ZERO -0.0
2575 * FP_PLUS_INF +INF
2576 * FP_MINUS_INF -INF
2577 * FP_NANS Signaling Not a Number (NaNS)
2578 * FP_NANQ Quiet Not a Number (NaNQ)
2579 */
2580#$d_class HAS_CLASS /**/
2581
2582/* HAS_CLEARENV:
2583 * This symbol, if defined, indicates that the clearenv () routine is
2584 * available for use.
2585 */
2586#$d_clearenv HAS_CLEARENV /**/
2587
2588/* HAS_STRUCT_CMSGHDR:
2589 * This symbol, if defined, indicates that the struct cmsghdr
2590 * is supported.
2591 */
2592#$d_cmsghdr_s HAS_STRUCT_CMSGHDR /**/
2593
f40bbcbf
MB
2594/* HAS_COPYSIGN:
2595 * This symbol, if defined, indicates that the copysign routine is
2596 * available to do the copysign function.
2597 */
2598#$d_copysign HAS_COPYSIGN /**/
2599
ed140128
AD
2600/* HAS_COPYSIGNL:
2601 * This symbol, if defined, indicates that the copysignl routine is
2602 * available. If aintl is also present we can emulate modfl.
2603 */
2604#$d_copysignl HAS_COPYSIGNL /**/
2605
2606/* USE_CPLUSPLUS:
2607 * This symbol, if defined, indicates that a C++ compiler was
2608 * used to compiled Perl and will be used to compile extensions.
2609 */
2610#$d_cplusplus USE_CPLUSPLUS /**/
2611
2612/* HAS_DBMINIT_PROTO:
2613 * This symbol, if defined, indicates that the system provides
2614 * a prototype for the dbminit() function. Otherwise, it is up
2615 * to the program to supply one. A good guess is
2616 * extern int dbminit(char *);
2617 */
2618#$d_dbminitproto HAS_DBMINIT_PROTO /**/
2619
2620/* HAS_DIR_DD_FD:
2621 * This symbol, if defined, indicates that the the DIR* dirstream
2622 * structure contains a member variable named dd_fd.
2623 */
2624#$d_dir_dd_fd HAS_DIR_DD_FD /**/
2625
2626/* HAS_DIRFD:
2627 * This manifest constant lets the C program know that dirfd
2628 * is available.
2629 */
2630#$d_dirfd HAS_DIRFD /**/
2631
2632/* DLSYM_NEEDS_UNDERSCORE:
2633 * This symbol, if defined, indicates that we need to prepend an
2634 * underscore to the symbol name before calling dlsym(). This only
2635 * makes sense if you *have* dlsym, which we will presume is the
2636 * case if you're using dl_dlopen.xs.
2637 */
2638#$d_dlsymun DLSYM_NEEDS_UNDERSCORE /**/
2639
f40bbcbf
MB
2640/* HAS_ERF:
2641 * This symbol, if defined, indicates that the erf routine is
2642 * available to do the error function.
2643 */
2644#$d_erf HAS_ERF /**/
2645
2646/* HAS_ERFC:
2647 * This symbol, if defined, indicates that the erfc routine is
2648 * available to do the complementary error function.
2649 */
2650#$d_erfc HAS_ERFC /**/
2651
2652/* HAS_EXP2:
2653 * This symbol, if defined, indicates that the exp2 routine is
2654 * available to do the 2**x function.
2655 */
2656#$d_exp2 HAS_EXP2 /**/
2657
2658/* HAS_EXPM1:
2659 * This symbol, if defined, indicates that the expm1 routine is
2660 * available to do the exp(x) - 1 when x is near 1 function.
2661 */
2662#$d_expm1 HAS_EXPM1 /**/
2663
ed140128
AD
2664/* HAS_FAST_STDIO:
2665 * This symbol, if defined, indicates that the "fast stdio"
2666 * is available to manipulate the stdio buffers directly.
2667 */
2668#$d_faststdio HAS_FAST_STDIO /**/
2669
2670/* HAS_FCHDIR:
2671 * This symbol, if defined, indicates that the fchdir routine is
2672 * available to change directory using a file descriptor.
2673 */
2674#$d_fchdir HAS_FCHDIR /**/
2675
2676/* FCNTL_CAN_LOCK:
2677 * This symbol, if defined, indicates that fcntl() can be used
2678 * for file locking. Normally on Unix systems this is defined.
2679 * It may be undefined on VMS.
2680 */
2681#$d_fcntl_can_lock FCNTL_CAN_LOCK /**/
2682
8b8c6ab7
AD
2683/* HAS_FDCLOSE:
2684 * This symbol, if defined, indicates that the fdclose routine is
2685 * available to free a FILE structure without closing the underlying
2686 * file descriptor. This function appeared in FreeBSD 10.2.
2687 */
2688#$d_fdclose HAS_FDCLOSE /**/
2689
f40bbcbf
MB
2690/* HAS_FDIM:
2691 * This symbol, if defined, indicates that the fdim routine is
2692 * available to do the positive difference function.
2693 */
2694#$d_fdim HAS_FDIM /**/
2695
d0166596
MB
2696/* HAS_FEGETROUND:
2697 * This symbol, if defined, indicates that the fegetround routine is
2698 * available to return the macro corresponding to the current rounding
2699 * mode.
2700 */
2701#$d_fegetround HAS_FEGETROUND /**/
2702
ed140128
AD
2703/* HAS_FINITE:
2704 * This symbol, if defined, indicates that the finite routine is
2705 * available to check whether a double is finite (non-infinity non-NaN).
2706 */
2707#$d_finite HAS_FINITE /**/
2708
2709/* HAS_FINITEL:
2710 * This symbol, if defined, indicates that the finitel routine is
2711 * available to check whether a long double is finite
2712 * (non-infinity non-NaN).
2713 */
2714#$d_finitel HAS_FINITEL /**/
2715
2716/* HAS_FLOCK_PROTO:
2717 * This symbol, if defined, indicates that the system provides
2718 * a prototype for the flock() function. Otherwise, it is up
2719 * to the program to supply one. A good guess is
2720 * extern int flock(int, int);
2721 */
2722#$d_flockproto HAS_FLOCK_PROTO /**/
2723
f40bbcbf
MB
2724/* HAS_FMA:
2725 * This symbol, if defined, indicates that the fma routine is
2726 * available to do the multiply-add function.
2727 */
2728#$d_fma HAS_FMA /**/
2729
2730/* HAS_FMAX:
2731 * This symbol, if defined, indicates that the fmax routine is
2732 * available to do the maximum function.
2733 */
2734#$d_fmax HAS_FMAX /**/
2735
2736/* HAS_FMIN:
2737 * This symbol, if defined, indicates that the fmin routine is
2738 * available to do the minimum function.
2739 */
2740#$d_fmin HAS_FMIN /**/
2741
ed140128
AD
2742/* HAS_FP_CLASS:
2743 * This symbol, if defined, indicates that the fp_class routine is
2744 * available to classify doubles. Available for example in Digital UNIX.
2745 * The returned values are defined in <math.h> and are:
2746 *
2747 * FP_SNAN Signaling NaN (Not-a-Number)
2748 * FP_QNAN Quiet NaN (Not-a-Number)
2749 * FP_POS_INF +infinity
2750 * FP_NEG_INF -infinity
2751 * FP_POS_NORM Positive normalized
2752 * FP_NEG_NORM Negative normalized
2753 * FP_POS_DENORM Positive denormalized
2754 * FP_NEG_DENORM Negative denormalized
2755 * FP_POS_ZERO +0.0 (positive zero)
2756 * FP_NEG_ZERO -0.0 (negative zero)
2757 */
2758#$d_fp_class HAS_FP_CLASS /**/
2759
b19ee02c
JH
2760/* HAS_FP_CLASSL:
2761 * This symbol, if defined, indicates that the fp_classl routine is
d0166596
MB
2762 * available to classify long doubles. Available for example in
2763 * Digital UNIX. See for possible values HAS_FP_CLASS.
b19ee02c
JH
2764 */
2765#$d_fp_classl HAS_FP_CLASSL /**/
2766
ed140128
AD
2767/* HAS_FPCLASS:
2768 * This symbol, if defined, indicates that the fpclass routine is
2769 * available to classify doubles. Available for example in Solaris/SVR4.
2770 * The returned values are defined in <ieeefp.h> and are:
2771 *
2772 * FP_SNAN signaling NaN
2773 * FP_QNAN quiet NaN
2774 * FP_NINF negative infinity
2775 * FP_PINF positive infinity
2776 * FP_NDENORM negative denormalized non-zero
2777 * FP_PDENORM positive denormalized non-zero
2778 * FP_NZERO negative zero
2779 * FP_PZERO positive zero
2780 * FP_NNORM negative normalized non-zero
2781 * FP_PNORM positive normalized non-zero
2782 */
2783#$d_fpclass HAS_FPCLASS /**/
2784
2785/* HAS_FPCLASSIFY:
2786 * This symbol, if defined, indicates that the fpclassify routine is
2787 * available to classify doubles. Available for example in HP-UX.
2788 * The returned values are defined in <math.h> and are
2789 *
2790 * FP_NORMAL Normalized
2791 * FP_ZERO Zero
2792 * FP_INFINITE Infinity
2793 * FP_SUBNORMAL Denormalized
2794 * FP_NAN NaN
2795 *
2796 */
d0166596
MB
2797/* HAS_FP_CLASSIFY:
2798 * This symbol, if defined, indicates that the fp_classify routine is
2799 * available to classify doubles. The values are defined in <math.h>
2800 *
2801 * FP_NORMAL Normalized
2802 * FP_ZERO Zero
2803 * FP_INFINITE Infinity
2804 * FP_SUBNORMAL Denormalized
2805 * FP_NAN NaN
2806 *
2807 */
2808#$d_fpclassify HAS_FPCLASSIFY /**/
2809#$d_fp_classify HAS_FP_CLASSIFY /**/
ed140128
AD
2810
2811/* HAS_FPCLASSL:
2812 * This symbol, if defined, indicates that the fpclassl routine is
2813 * available to classify long doubles. Available for example in IRIX.
2814 * The returned values are defined in <ieeefp.h> and are:
2815 *
2816 * FP_SNAN signaling NaN
2817 * FP_QNAN quiet NaN
2818 * FP_NINF negative infinity
2819 * FP_PINF positive infinity
2820 * FP_NDENORM negative denormalized non-zero
2821 * FP_PDENORM positive denormalized non-zero
2822 * FP_NZERO negative zero
2823 * FP_PZERO positive zero
2824 * FP_NNORM negative normalized non-zero
2825 * FP_PNORM positive normalized non-zero
2826 */
2827#$d_fpclassl HAS_FPCLASSL /**/
2828
4c1a9b0c
JH
2829/* HAS_FPGETROUND:
2830 * This symbol, if defined, indicates that the fpgetround routine is
2831 * available to get the floating point rounding mode.
2832 */
2833#$d_fpgetround HAS_FPGETROUND /**/
2834
ed140128
AD
2835/* HAS_FPOS64_T:
2836 * This symbol will be defined if the C compiler supports fpos64_t.
2837 */
2838#$d_fpos64_t HAS_FPOS64_T /**/
2839
2840/* HAS_FREXPL:
2841 * This symbol, if defined, indicates that the frexpl routine is
2842 * available to break a long double floating-point number into
2843 * a normalized fraction and an integral power of 2.
2844 */
2845#$d_frexpl HAS_FREXPL /**/
2846
ea442100
JH
2847/* HAS_STRUCT_FS_DATA:
2848 * This symbol, if defined, indicates that the struct fs_data
2849 * to do statfs() is supported.
2850 */
2851#$d_fs_data_s HAS_STRUCT_FS_DATA /**/
2852
ed140128
AD
2853/* HAS_FSEEKO:
2854 * This symbol, if defined, indicates that the fseeko routine is
2855 * available to fseek beyond 32 bits (useful for ILP32 hosts).
2856 */
2857#$d_fseeko HAS_FSEEKO /**/
2858
ea442100
JH
2859/* HAS_FSTATFS:
2860 * This symbol, if defined, indicates that the fstatfs routine is
2861 * available to stat filesystems by file descriptors.
2862 */
2863#$d_fstatfs HAS_FSTATFS /**/
2864
ed140128
AD
2865/* HAS_FSYNC:
2866 * This symbol, if defined, indicates that the fsync routine is
2867 * available to write a file's modified data and attributes to
2868 * permanent storage.
2869 */
2870#$d_fsync HAS_FSYNC /**/
2871
2872/* HAS_FTELLO:
2873 * This symbol, if defined, indicates that the ftello routine is
2874 * available to ftell beyond 32 bits (useful for ILP32 hosts).
2875 */
2876#$d_ftello HAS_FTELLO /**/
2877
2878/* HAS_FUTIMES:
2879 * This symbol, if defined, indicates that the futimes routine is
2880 * available to change file descriptor time stamps with struct timevals.
2881 */
2882#$d_futimes HAS_FUTIMES /**/
2883
5086dff9
MB
2884/* HAS_GETADDRINFO:
2885 * This symbol, if defined, indicates that the getaddrinfo() function
2886 * is available for use.
2887 */
2888#$d_getaddrinfo HAS_GETADDRINFO /**/
2889
ed140128
AD
2890/* HAS_GETCWD:
2891 * This symbol, if defined, indicates that the getcwd routine is
2892 * available to get the current working directory.
2893 */
2894#$d_getcwd HAS_GETCWD /**/
2895
2896/* HAS_GETESPWNAM:
2897 * This symbol, if defined, indicates that the getespwnam system call is
cd95ead5 2898 * available to retrieve enhanced (shadow) password entries by name.
ed140128
AD
2899 */
2900#$d_getespwnam HAS_GETESPWNAM /**/
2901
ea442100
JH
2902/* HAS_GETFSSTAT:
2903 * This symbol, if defined, indicates that the getfsstat routine is
2904 * available to stat filesystems in bulk.
2905 */
2906#$d_getfsstat HAS_GETFSSTAT /**/
2907
ed140128
AD
2908/* HAS_GETITIMER:
2909 * This symbol, if defined, indicates that the getitimer routine is
2910 * available to return interval timers.
2911 */
2912#$d_getitimer HAS_GETITIMER /**/
2913
ea442100
JH
2914/* HAS_GETMNT:
2915 * This symbol, if defined, indicates that the getmnt routine is
2916 * available to get filesystem mount info by filename.
2917 */
2918#$d_getmnt HAS_GETMNT /**/
2919
2920/* HAS_GETMNTENT:
2921 * This symbol, if defined, indicates that the getmntent routine is
2922 * available to iterate through mounted file systems to get their info.
2923 */
2924#$d_getmntent HAS_GETMNTENT /**/
2925
5086dff9
MB
2926/* HAS_GETNAMEINFO:
2927 * This symbol, if defined, indicates that the getnameinfo() function
2928 * is available for use.
2929 */
2930#$d_getnameinfo HAS_GETNAMEINFO /**/
2931
ed140128
AD
2932/* HAS_GETPRPWNAM:
2933 * This symbol, if defined, indicates that the getprpwnam system call is
2934 * available to retrieve protected (shadow) password entries by name.
2935 */
2936#$d_getprpwnam HAS_GETPRPWNAM /**/
2937
2938/* HAS_GETSPNAM:
2939 * This symbol, if defined, indicates that the getspnam system call is
2940 * available to retrieve SysV shadow password entries by name.
2941 */
2942#$d_getspnam HAS_GETSPNAM /**/
2943
ea442100
JH
2944/* HAS_HASMNTOPT:
2945 * This symbol, if defined, indicates that the hasmntopt routine is
2946 * available to query the mount options of file systems.
2947 */
2948#$d_hasmntopt HAS_HASMNTOPT /**/
2949
427d28ce
JH
2950/* HAS_HYPOT:
2951 * This symbol, if defined, indicates that the hypot routine is
2952 * available to do the hypotenuse function.
2953 */
2954#$d_hypot HAS_HYPOT /**/
2955
2956/* HAS_ILOGB:
2957 * This symbol, if defined, indicates that the ilogb routine is
f40bbcbf 2958 * available to get integer exponent of a floating-point value.
427d28ce
JH
2959 */
2960#$d_ilogb HAS_ILOGB /**/
2961
ed140128
AD
2962/* HAS_ILOGBL:
2963 * This symbol, if defined, indicates that the ilogbl routine is
2964 * available. If scalbnl is also present we can emulate frexpl.
2965 */
2966#$d_ilogbl HAS_ILOGBL /**/
2967
5086dff9
MB
2968/* HAS_INETNTOP:
2969 * This symbol, if defined, indicates that the inet_ntop() function
2970 * is available to parse IPv4 and IPv6 strings.
2971 */
2972#$d_inetntop HAS_INETNTOP /**/
2973
2974/* HAS_INETPTON:
2975 * This symbol, if defined, indicates that the inet_pton() function
2976 * is available to parse IPv4 and IPv6 strings.
2977 */
2978#$d_inetpton HAS_INETPTON /**/
2979
ed140128
AD
2980/* HAS_INT64_T:
2981 * This symbol will defined if the C compiler supports int64_t.
2982 * Usually the <inttypes.h> needs to be included, but sometimes
2983 * <sys/types.h> is enough.
2984 */
2985#$d_int64_t HAS_INT64_T /**/
2986
269a7913 2987/* HAS_ISBLANK:
1332606d 2988 * This manifest constant lets the C program know that isblank
269a7913
MB
2989 * is available.
2990 */
2991#$d_isblank HAS_ISBLANK /**/
2992
ed140128
AD
2993/* HAS_ISFINITE:
2994 * This symbol, if defined, indicates that the isfinite routine is
2995 * available to check whether a double is finite (non-infinity non-NaN).
2996 */
2997#$d_isfinite HAS_ISFINITE /**/
2998
fa484e60 2999/* HAS_ISFINITEL:
d0166596
MB
3000 * This symbol, if defined, indicates that the isfinitel routine is
3001 * available to check whether a long double is finite.
fa484e60
JH
3002 * (non-infinity non-NaN).
3003 */
3004#$d_isfinitel HAS_ISFINITEL /**/
3005
ed140128
AD
3006/* HAS_ISINF:
3007 * This symbol, if defined, indicates that the isinf routine is
3008 * available to check whether a double is an infinity.
3009 */
3010#$d_isinf HAS_ISINF /**/
3011
d0166596
MB
3012/* HAS_ISINFL:
3013 * This symbol, if defined, indicates that the isinfl routine is
fa484e60
JH
3014 * available to check whether a long double is an infinity.
3015 */
3016#$d_isinfl HAS_ISINFL /**/
3017
f40bbcbf
MB
3018/* HAS_ISLESS:
3019 * This symbol, if defined, indicates that the isless routine is
3020 * available to do the isless function.
3021 */
3022#$d_isless HAS_ISLESS /**/
3023
ed140128
AD
3024/* HAS_ISNAN:
3025 * This symbol, if defined, indicates that the isnan routine is
3026 * available to check whether a double is a NaN.
3027 */
3028#$d_isnan HAS_ISNAN /**/
3029
3030/* HAS_ISNANL:
3031 * This symbol, if defined, indicates that the isnanl routine is
3032 * available to check whether a long double is a NaN.
3033 */
3034#$d_isnanl HAS_ISNANL /**/
3035
427d28ce
JH
3036/* HAS_ISNORMAL:
3037 * This symbol, if defined, indicates that the isnormal routine is
3038 * available to check whether a double is normal (non-zero normalized).
3039 */
3040#$d_isnormal HAS_ISNORMAL /**/
3041
d0166596
MB
3042/* HAS_J0:
3043 * This symbol, if defined, indicates to the C program that the
3044 * j0() function is available for Bessel functions of the first
3045 * kind of the order zero, for doubles.
3046 */
3047/* HAS_J0L:
3048 * This symbol, if defined, indicates to the C program that the
3049 * j0l() function is available for Bessel functions of the first
3050 * kind of the order zero, for long doubles.
3051 */
3052#$d_j0 HAS_J0 /**/
3053#$d_j0l HAS_J0L /**/
3054
f40bbcbf
MB
3055/* HAS_LC_MONETARY_2008:
3056 * This symbol, if defined, indicates that the localeconv routine is
3057 * available and has the additional members added in POSIX 1003.1-2008.
3058 */
3059#$d_lc_monetary_2008 HAS_LC_MONETARY_2008 /**/
3060
ed140128
AD
3061/* HAS_LDBL_DIG:
3062 * This symbol, if defined, indicates that this system's <float.h>
3063 * or <limits.h> defines the symbol LDBL_DIG, which is the number
3064 * of significant digits in a long double precision number. Unlike
3065 * for DBL_DIG, there's no good guess for LDBL_DIG if it is undefined.
3066 */
06501368 3067#$d_ldbl_dig HAS_LDBL_DIG /* */
ed140128 3068
427d28ce
JH
3069/* HAS_LGAMMA:
3070 * This symbol, if defined, indicates that the lgamma routine is
3071 * available to do the log gamma function. See also HAS_TGAMMA and
3072 * HAS_LGAMMA_R.
3073 */
3074#$d_lgamma HAS_LGAMMA /**/
3075
3076/* HAS_LGAMMA_R:
3077 * This symbol, if defined, indicates that the lgamma_r routine is
3078 * available to do the log gamma function without using the global
3079 * signgam variable.
3080 */
3081#$d_lgamma_r HAS_LGAMMA_R /**/
3082
ed140128
AD
3083/* LIBM_LIB_VERSION:
3084 * This symbol, if defined, indicates that libm exports _LIB_VERSION
3085 * and that math.h defines the enum to manipulate it.
3086 */
3087#$d_libm_lib_version LIBM_LIB_VERSION /**/
3088
427d28ce
JH
3089/* HAS_LLRINT:
3090 * This symbol, if defined, indicates that the llrint routine is
2640dfa8
MB
3091 * available to return the long long value closest to a double
3092 * (according to the current rounding mode).
427d28ce
JH
3093 */
3094#$d_llrint HAS_LLRINT /**/
3095
bc580dd3
JH
3096/* HAS_LLRINTL:
3097 * This symbol, if defined, indicates that the llrintl routine is
2640dfa8
MB
3098 * available to return the long long value closest to a long double
3099 * (according to the current rounding mode).
bc580dd3
JH
3100 */
3101#$d_llrintl HAS_LLRINTL /**/
3102
427d28ce
JH
3103/* HAS_LLROUND:
3104 * This symbol, if defined, indicates that the llround routine is
3105 * available to return the nearest long long value.
3106 */
3107#$d_llround HAS_LLROUND /**/
3108
bc580dd3
JH
3109/* HAS_LLROUNDL:
3110 * This symbol, if defined, indicates that the llroundl routine is
68936db0
MB
3111 * available to return the nearest long long value away from zero of
3112 * the long double argument value.
bc580dd3
JH
3113 */
3114#$d_llroundl HAS_LLROUNDL /**/
3115
427d28ce 3116/* HAS_LOG1P:
f40bbcbf
MB
3117 * This symbol, if defined, indicates that the log1p routine is
3118 * available to do the logarithm of 1 plus argument function.
427d28ce
JH
3119 */
3120#$d_log1p HAS_LOG1P /**/
3121
3122/* HAS_LOG2:
f40bbcbf 3123 * This symbol, if defined, indicates that the log2 routine is
427d28ce
JH
3124 * available to do the log2 function.
3125 */
3126#$d_log2 HAS_LOG2 /**/
3127
3128/* HAS_LOGB:
f40bbcbf 3129 * This symbol, if defined, indicates that the logb routine is
427d28ce
JH
3130 * available to do the logb function.
3131 */
3132#$d_logb HAS_LOGB /**/
3133
3134/* HAS_LRINT:
3135 * This symbol, if defined, indicates that the lrint routine is
2640dfa8
MB
3136 * available to return the integral value closest to a double
3137 * (according to the current rounding mode).
427d28ce
JH
3138 */
3139#$d_lrint HAS_LRINT /**/
3140
bc580dd3
JH
3141/* HAS_LRINTL:
3142 * This symbol, if defined, indicates that the lrintl routine is
2640dfa8
MB
3143 * available to return the integral value closest to a long double
3144 * (according to the current rounding mode).
bc580dd3
JH
3145 */
3146#$d_lrintl HAS_LRINTL /**/
3147
427d28ce
JH
3148/* HAS_LROUND:
3149 * This symbol, if defined, indicates that the lround routine is
3150 * available to return the nearest integral value.
3151 */
3152#$d_lround HAS_LROUND /**/
3153
bc580dd3
JH
3154/* HAS_LROUNDL:
3155 * This symbol, if defined, indicates that the lroundl routine is
68936db0
MB
3156 * available to return the nearest integral value away from zero of
3157 * the long double argument value.
bc580dd3
JH
3158 */
3159#$d_lroundl HAS_LROUNDL /**/
3160
ed140128
AD
3161/* HAS_MADVISE:
3162 * This symbol, if defined, indicates that the madvise system call is
3163 * available to map a file into memory.
3164 */
3165#$d_madvise HAS_MADVISE /**/
3166
3167/* HAS_MALLOC_SIZE:
3168 * This symbol, if defined, indicates that the malloc_size
3169 * routine is available for use.
3170 */
3171#$d_malloc_size HAS_MALLOC_SIZE /**/
3172
3173/* HAS_MALLOC_GOOD_SIZE:
3174 * This symbol, if defined, indicates that the malloc_good_size
3175 * routine is available for use.
3176 */
3177#$d_malloc_good_size HAS_MALLOC_GOOD_SIZE /**/
3178
3879c54d
MB
3179/* HAS_MEMMEM:
3180 * This symbol, if defined, indicates that the memmem routine is
3181 * available to return a pointer to the start of the first occurance
3182 * of a substring in a memory area (or NULL if not found).
3183 */
3184#$d_memmem HAS_MEMMEM /**/
3185
ed140128
AD
3186/* HAS_MKDTEMP:
3187 * This symbol, if defined, indicates that the mkdtemp routine is
3188 * available to exclusively create a uniquely named temporary directory.
3189 */
3190#$d_mkdtemp HAS_MKDTEMP /**/
3191
3192/* HAS_MKSTEMPS:
3193 * This symbol, if defined, indicates that the mkstemps routine is
cd95ead5 3194 * available to exclusively create and open a uniquely named
ed140128
AD
3195 * (with a suffix) temporary file.
3196 */
3197#$d_mkstemps HAS_MKSTEMPS /**/
3198
3199/* HAS_MODFL:
3200 * This symbol, if defined, indicates that the modfl routine is
3201 * available to split a long double x into a fractional part f and
3202 * an integer part i such that |f| < 1.0 and (f + i) = x.
3203 */
3204/* HAS_MODFL_PROTO:
3205 * This symbol, if defined, indicates that the system provides
3206 * a prototype for the modfl() function. Otherwise, it is up
3207 * to the program to supply one.
3208 */
ed140128
AD
3209#$d_modfl HAS_MODFL /**/
3210#$d_modflproto HAS_MODFL_PROTO /**/
ed140128
AD
3211
3212/* HAS_MPROTECT:
3213 * This symbol, if defined, indicates that the mprotect system call is
3214 * available to modify the access protection of a memory mapped file.
3215 */
3216#$d_mprotect HAS_MPROTECT /**/
3217
3218/* HAS_STRUCT_MSGHDR:
3219 * This symbol, if defined, indicates that the struct msghdr
3220 * is supported.
3221 */
3222#$d_msghdr_s HAS_STRUCT_MSGHDR /**/
3223
f40bbcbf
MB
3224/* HAS_NAN:
3225 * This symbol, if defined, indicates that the nan routine is
3226 * available to generate NaN.
3227 */
3228#$d_nan HAS_NAN /**/
3229
3230/* HAS_NEARBYINT:
3231 * This symbol, if defined, indicates that the nearbyint routine is
3232 * available to return the integral value closest to (according to
3233 * the current rounding mode) to x.
3234 */
3235#$d_nearbyint HAS_NEARBYINT /**/
3236
ecb44b8e
MB
3237/* HAS_NEWLOCALE:
3238 * This symbol, if defined, indicates that the newlocale routine is
3239 * available to return a new locale object or modify an existing
3240 * locale object.
3241 */
3242/* HAS_FREELOCALE:
3243 * This symbol, if defined, indicates that the freelocale routine is
3244 * available to deallocates the resources associated with a locale object.
3245 */
3246/* HAS_USELOCALE:
3247 * This symbol, if defined, indicates that the uselocale routine is
3248 * available to set the current locale for the calling thread.
3249 */
bc900e45
AC
3250/* HAS_QUERYLOCALE:
3251 * This symbol, if defined, indicates that the querylocale routine is
3252 * available to return the name of the locale for a category mask.
3253 */
ecb44b8e
MB
3254#$d_newlocale HAS_NEWLOCALE /**/
3255#$d_freelocale HAS_FREELOCALE /**/
3256#$d_uselocale HAS_USELOCALE /**/
bc900e45 3257#$d_querylocale HAS_QUERYLOCALE /**/
ecb44b8e 3258
f40bbcbf
MB
3259/* HAS_NEXTAFTER:
3260 * This symbol, if defined, indicates that the nextafter routine is
3261 * available to return the next machine representable double from
3262 * x in direction y.
3263 */
3264#$d_nextafter HAS_NEXTAFTER /**/
3265
3266/* HAS_NEXTTOWARD:
3267 * This symbol, if defined, indicates that the nexttoward routine is
3268 * available to return the next machine representable long double from
3269 * x in direction y.
3270 */
3271#$d_nexttoward HAS_NEXTTOWARD /**/
3272
ed140128
AD
3273/* HAS_NL_LANGINFO:
3274 * This symbol, if defined, indicates that the nl_langinfo routine is
3275 * available to return local data. You will also need <langinfo.h>
3276 * and therefore I_LANGINFO.
3277 */
3278#$d_nl_langinfo HAS_NL_LANGINFO /**/
3279
3280/* HAS_OFF64_T:
3281 * This symbol will be defined if the C compiler supports off64_t.
3282 */
3283#$d_off64_t HAS_OFF64_T /**/
3284
c796e3db
MB
3285/* HAS_PRCTL:
3286 * This symbol, if defined, indicates that the prctl routine is
3287 * available to set process title.
b75ee85b
JH
3288 * Note that there are at least two prctl variants: Linux and Irix.
3289 * While they are somewhat similar, they are incompatible.
c796e3db
MB
3290 */
3291/* HAS_PRCTL_SET_NAME:
3292 * This symbol, if defined, indicates that the prctl routine is
3293 * available to set process title and supports PR_SET_NAME.
3294 */
3295#$d_prctl HAS_PRCTL /**/
3296#$d_prctl_set_name HAS_PRCTL_SET_NAME /**/
3297
ed140128
AD
3298/* HAS_PROCSELFEXE:
3299 * This symbol is defined if PROCSELFEXE_PATH is a symlink
3300 * to the absolute pathname of the executing program.
3301 */
3302/* PROCSELFEXE_PATH:
3303 * If HAS_PROCSELFEXE is defined this symbol is the filename
3304 * of the symbolic link pointing to the absolute pathname of
3305 * the executing program.
3306 */
3307#$d_procselfexe HAS_PROCSELFEXE /**/
3308#if defined(HAS_PROCSELFEXE) && !defined(PROCSELFEXE_PATH)
3309#define PROCSELFEXE_PATH $procselfexe /**/
3310#endif
3311
3312/* HAS_PTHREAD_ATTR_SETSCOPE:
3313 * This symbol, if defined, indicates that the pthread_attr_setscope
3314 * system call is available to set the contention scope attribute of
3315 * a thread attribute object.
3316 */
3317#$d_pthread_attr_setscope HAS_PTHREAD_ATTR_SETSCOPE /**/
3318
0e0c5f82
MB
3319/* HAS_PTRDIFF_T:
3320 * This symbol will be defined if the C compiler supports ptrdiff_t.
3321 */
3322#$d_ptrdiff_t HAS_PTRDIFF_T /**/
3323
ed140128
AD
3324/* HAS_READV:
3325 * This symbol, if defined, indicates that the readv routine is
3326 * available to do gather reads. You will also need <sys/uio.h>
3327 * and there I_SYSUIO.
3328 */
3329#$d_readv HAS_READV /**/
3330
3331/* HAS_RECVMSG:
3332 * This symbol, if defined, indicates that the recvmsg routine is
3333 * available to send structured socket messages.
3334 */
3335#$d_recvmsg HAS_RECVMSG /**/
3336
f40bbcbf
MB
3337/* HAS_REMAINDER:
3338 * This symbol, if defined, indicates that the remainder routine is
3339 * available to return the floating-point remainder.
3340 */
3341#$d_remainder HAS_REMAINDER /**/
3342
3343/* HAS_REMQUO:
3344 * This symbol, if defined, indicates that the remquo routine is
3345 * available to return the remainder and part of quotient.
3346 */
3347#$d_remquo HAS_REMQUO /**/
3348
3349/* HAS_RINT:
3350 * This symbol, if defined, indicates that the rint routine is
3351 * available to return the nearest integral value to x as double
3352 * using the current rounding mode.
3353 */
3354#$d_rint HAS_RINT /**/
3355
3356/* HAS_ROUND:
3357 * This symbol, if defined, indicates that the round routine is
3358 * available to round to nearest integer, away from zero.
3359 */
3360#$d_round HAS_ROUND /**/
3361
ed140128
AD
3362/* HAS_SBRK_PROTO:
3363 * This symbol, if defined, indicates that the system provides
3364 * a prototype for the sbrk() function. Otherwise, it is up
3365 * to the program to supply one. Good guesses are
3366 * extern void* sbrk(int);
3367 * extern void* sbrk(size_t);
3368 */
3369#$d_sbrkproto HAS_SBRK_PROTO /**/
3370
427d28ce 3371/* HAS_SCALBN:
f40bbcbf
MB
3372 * This symbol, if defined, indicates that the scalbn routine is
3373 * available to multiply floating-point number by integral power
3374 * of radix.
427d28ce
JH
3375 */
3376#$d_scalbn HAS_SCALBN /**/
3377
ed140128
AD
3378/* HAS_SCALBNL:
3379 * This symbol, if defined, indicates that the scalbnl routine is
3380 * available. If ilogbl is also present we can emulate frexpl.
3381 */
3382#$d_scalbnl HAS_SCALBNL /**/
3383
3384/* HAS_SENDMSG:
3385 * This symbol, if defined, indicates that the sendmsg routine is
3386 * available to send structured socket messages.
3387 */
3388#$d_sendmsg HAS_SENDMSG /**/
3389
3390/* HAS_SETITIMER:
3391 * This symbol, if defined, indicates that the setitimer routine is
3392 * available to set interval timers.
3393 */
3394#$d_setitimer HAS_SETITIMER /**/
3395
3396/* HAS_SETPROCTITLE:
3397 * This symbol, if defined, indicates that the setproctitle routine is
3398 * available to set process title.
3399 */
3400#$d_setproctitle HAS_SETPROCTITLE /**/
3401
ed140128
AD
3402/* HAS_SIGNBIT:
3403 * This symbol, if defined, indicates that the signbit routine is
3404 * available to check if the given number has the sign bit set.
3405 * This should include correct testing of -0.0. This will only be set
3406 * if the signbit() routine is safe to use with the NV type used internally
3407 * in perl. Users should call Perl_signbit(), which will be #defined to
3408 * the system's signbit() function or macro if this symbol is defined.
3409 */
3410#$d_signbit HAS_SIGNBIT /**/
3411
3412/* HAS_SIGPROCMASK:
3413 * This symbol, if defined, indicates that the sigprocmask
3414 * system call is available to examine or change the signal mask
3415 * of the calling process.
3416 */
3417#$d_sigprocmask HAS_SIGPROCMASK /**/
3418
3419/* USE_SITECUSTOMIZE:
3420 * This symbol, if defined, indicates that sitecustomize should
3421 * be used.
3422 */
3423#ifndef USE_SITECUSTOMIZE
3424#$usesitecustomize USE_SITECUSTOMIZE /**/
3425#endif
3426
3427/* HAS_SNPRINTF:
3428 * This symbol, if defined, indicates that the snprintf () library
3429 * function is available for use.
3430 */
3431/* HAS_VSNPRINTF:
3432 * This symbol, if defined, indicates that the vsnprintf () library
3433 * function is available for use.
3434 */
3435#$d_snprintf HAS_SNPRINTF /**/
3436#$d_vsnprintf HAS_VSNPRINTF /**/
3437
3438/* HAS_SOCKATMARK:
3439 * This symbol, if defined, indicates that the sockatmark routine is
3440 * available to test whether a socket is at the out-of-band mark.
3441 */
3442#$d_sockatmark HAS_SOCKATMARK /**/
3443
3444/* HAS_SOCKATMARK_PROTO:
3445 * This symbol, if defined, indicates that the system provides
3446 * a prototype for the sockatmark() function. Otherwise, it is up
3447 * to the program to supply one. A good guess is
3448 * extern int sockatmark(int);
3449 */
3450#$d_sockatmarkproto HAS_SOCKATMARK_PROTO /**/
3451
3452/* HAS_SOCKS5_INIT:
3453 * This symbol, if defined, indicates that the socks5_init routine is
3454 * available to initialize SOCKS 5.
3455 */
3456#$d_socks5_init HAS_SOCKS5_INIT /**/
3457
3458/* SPRINTF_RETURNS_STRLEN:
3459 * This variable defines whether sprintf returns the length of the string
3460 * (as per the ANSI spec). Some C libraries retain compatibility with
3461 * pre-ANSI C and return a pointer to the passed in buffer; for these
3462 * this variable will be undef.
3463 */
3464#$d_sprintf_returns_strlen SPRINTF_RETURNS_STRLEN /**/
3465
3466/* HAS_SQRTL:
3467 * This symbol, if defined, indicates that the sqrtl routine is
3468 * available to do long double square roots.
3469 */
3470#$d_sqrtl HAS_SQRTL /**/
3471
3472/* HAS_SETRESGID_PROTO:
3473 * This symbol, if defined, indicates that the system provides
3474 * a prototype for the setresgid() function. Otherwise, it is up
3475 * to the program to supply one. Good guesses are
3476 * extern int setresgid(uid_t ruid, uid_t euid, uid_t suid);
3477 */
3478#$d_sresgproto HAS_SETRESGID_PROTO /**/
3479
3480/* HAS_SETRESUID_PROTO:
3481 * This symbol, if defined, indicates that the system provides
3482 * a prototype for the setresuid() function. Otherwise, it is up
3483 * to the program to supply one. Good guesses are
3484 * extern int setresuid(uid_t ruid, uid_t euid, uid_t suid);
3485 */
3486#$d_sresuproto HAS_SETRESUID_PROTO /**/
3487
ea442100
JH
3488/* HAS_STRUCT_STATFS_F_FLAGS:
3489 * This symbol, if defined, indicates that the struct statfs
3490 * does have the f_flags member containing the mount flags of
3491 * the filesystem containing the file.
3492 * This kind of struct statfs is coming from <sys/mount.h> (BSD 4.3),
3493 * not from <sys/statfs.h> (SYSV). Older BSDs (like Ultrix) do not
3494 * have statfs() and struct statfs, they have ustat() and getmnt()
3495 * with struct ustat and struct fs_data.
3496 */
3497#$d_statfs_f_flags HAS_STRUCT_STATFS_F_FLAGS /**/
3498
3499/* HAS_STRUCT_STATFS:
3500 * This symbol, if defined, indicates that the struct statfs
3501 * to do statfs() is supported.
3502 */
3503#$d_statfs_s HAS_STRUCT_STATFS /**/
3504
3505/* HAS_FSTATVFS:
3506 * This symbol, if defined, indicates that the fstatvfs routine is
3507 * available to stat filesystems by file descriptors.
3508 */
3509#$d_fstatvfs HAS_FSTATVFS /**/
3510
ef55c673
AC
3511/* HAS_STRERROR_L:
3512 * This symbol, if defined, indicates that the strerror_l routine is
3513 * available to return the error message for a given errno value in
3514 * a particular locale (identified by a locale_t object).
3515 */
3516#$d_strerror_l HAS_STRERROR_L /**/
3517
ed140128
AD
3518/* HAS_STRFTIME:
3519 * This symbol, if defined, indicates that the strftime routine is
3520 * available to do time formatting.
3521 */
3522#$d_strftime HAS_STRFTIME /**/
3523
3524/* HAS_STRLCAT:
3525 * This symbol, if defined, indicates that the strlcat () routine is
3526 * available to do string concatenation.
3527 */
3528#$d_strlcat HAS_STRLCAT /**/
3529
3530/* HAS_STRLCPY:
3531 * This symbol, if defined, indicates that the strlcpy () routine is
3532 * available to do string copying.
3533 */
3534#$d_strlcpy HAS_STRLCPY /**/
3535
3536/* HAS_STRTOLD:
3537 * This symbol, if defined, indicates that the strtold routine is
3538 * available to convert strings to long doubles.
3539 */
3540#$d_strtold HAS_STRTOLD /**/
3541
3542/* HAS_STRTOLL:
3543 * This symbol, if defined, indicates that the strtoll routine is
3544 * available to convert strings to long longs.
3545 */
3546#$d_strtoll HAS_STRTOLL /**/
3547
3548/* HAS_STRTOQ:
3549 * This symbol, if defined, indicates that the strtoq routine is
3550 * available to convert strings to long longs (quads).
3551 */
3552#$d_strtoq HAS_STRTOQ /**/
3553
3554/* HAS_STRTOULL:
3555 * This symbol, if defined, indicates that the strtoull routine is
3556 * available to convert strings to unsigned long longs.
3557 */
3558#$d_strtoull HAS_STRTOULL /**/
3559
3560/* HAS_STRTOUQ:
3561 * This symbol, if defined, indicates that the strtouq routine is
3562 * available to convert strings to unsigned long longs (quads).
3563 */
3564#$d_strtouq HAS_STRTOUQ /**/
3565
3566/* HAS_SYSCALL_PROTO:
3567 * This symbol, if defined, indicates that the system provides
3568 * a prototype for the syscall() function. Otherwise, it is up
3569 * to the program to supply one. Good guesses are
3570 * extern int syscall(int, ...);
3571 * extern int syscall(long, ...);
3572 */
3573#$d_syscallproto HAS_SYSCALL_PROTO /**/
3574
3575/* HAS_TELLDIR_PROTO:
3576 * This symbol, if defined, indicates that the system provides
3577 * a prototype for the telldir() function. Otherwise, it is up
3578 * to the program to supply one. A good guess is
3579 * extern long telldir(DIR*);
3580 */
3581#$d_telldirproto HAS_TELLDIR_PROTO /**/
3582
f40bbcbf
MB
3583/* HAS_TGAMMA:
3584 * This symbol, if defined, indicates that the tgamma routine is
3585 * available to do the gamma function. See also HAS_LGAMMA.
3586 */
3587#$d_tgamma HAS_TGAMMA /**/
3588
96938616
MB
3589/* HAS_CTIME64:
3590 * This symbol, if defined, indicates that the ctime64 () routine is
3591 * available to do the 64bit variant of ctime ()
3592 */
3593/* HAS_LOCALTIME64:
3594 * This symbol, if defined, indicates that the localtime64 () routine is
3595 * available to do the 64bit variant of localtime ()
3596 */
3597/* HAS_GMTIME64:
3598 * This symbol, if defined, indicates that the gmtime64 () routine is
3599 * available to do the 64bit variant of gmtime ()
3600 */
3601/* HAS_MKTIME64:
3602 * This symbol, if defined, indicates that the mktime64 () routine is
3603 * available to do the 64bit variant of mktime ()
3604 */
3605/* HAS_DIFFTIME64:
3606 * This symbol, if defined, indicates that the difftime64 () routine is
3607 * available to do the 64bit variant of difftime ()
3608 */
3609/* HAS_ASCTIME64:
3610 * This symbol, if defined, indicates that the asctime64 () routine is
3611 * available to do the 64bit variant of asctime ()
3612 */
3613#$d_ctime64 HAS_CTIME64 /**/
3614#$d_localtime64 HAS_LOCALTIME64 /**/
3615#$d_gmtime64 HAS_GMTIME64 /**/
3616#$d_mktime64 HAS_MKTIME64 /**/
3617#$d_difftime64 HAS_DIFFTIME64 /**/
3618#$d_asctime64 HAS_ASCTIME64 /**/
3619
cbb9e8a7
MB
3620/* HAS_TIMEGM:
3621 * This symbol, if defined, indicates that the timegm routine is
3622 * available to do the opposite of gmtime ()
3623 */
3624#$d_timegm HAS_TIMEGM /**/
3625
427d28ce 3626/* HAS_TRUNC:
f40bbcbf
MB
3627 * This symbol, if defined, indicates that the trunc routine is
3628 * available to round doubles towards zero.
427d28ce
JH
3629 */
3630#$d_trunc HAS_TRUNC /**/
3631
d6f85a58
MB
3632/* HAS_TRUNCL:
3633 * This symbol, if defined, indicates that the truncl routine is
3634 * available. If copysignl is also present we can emulate modfl.
3635 */
3636#$d_truncl HAS_TRUNCL /**/
3637
ed140128
AD
3638/* U32_ALIGNMENT_REQUIRED:
3639 * This symbol, if defined, indicates that you must access
3640 * character data through U32-aligned pointers.
3641 */
3642#ifndef U32_ALIGNMENT_REQUIRED
3643#$d_u32align U32_ALIGNMENT_REQUIRED /**/
3644#endif
3645
3646/* HAS_UALARM:
3647 * This symbol, if defined, indicates that the ualarm routine is
3648 * available to do alarms with microsecond granularity.
3649 */
3650#$d_ualarm HAS_UALARM /**/
3651
3652/* HAS_UNORDERED:
3653 * This symbol, if defined, indicates that the unordered routine is
3654 * available to check whether two doubles are unordered
3655 * (effectively: whether either of them is NaN)
3656 */
3657#$d_unordered HAS_UNORDERED /**/
3658
3659/* HAS_UNSETENV:
3660 * This symbol, if defined, indicates that the unsetenv () routine is
3661 * available for use.
3662 */
3663#$d_unsetenv HAS_UNSETENV /**/
3664
3665/* HAS_USLEEP_PROTO:
3666 * This symbol, if defined, indicates that the system provides
3667 * a prototype for the usleep() function. Otherwise, it is up
3668 * to the program to supply one. A good guess is
3669 * extern int usleep(useconds_t);
3670 */
3671#$d_usleepproto HAS_USLEEP_PROTO /**/
3672
ea442100
JH
3673/* HAS_USTAT:
3674 * This symbol, if defined, indicates that the ustat system call is
3675 * available to query file system statistics by dev_t.
3676 */
3677#$d_ustat HAS_USTAT /**/
3678
9cdcdad1
MB
3679/* HAS_WCSCMP:
3680 * This symbol, if defined, indicates that the wcscmp routine is
3681 * available to compare two wide character strings.
3682 */
3683#$d_wcscmp HAS_WCSCMP /**/
3684
3685/* HAS_WCSXFRM:
3686 * This symbol, if defined, indicates that the wcsxfrm routine is
3687 * available to tranform a wide character string for wcscmp().
3688 */
3689#$d_wcsxfrm HAS_WCSXFRM /**/
3690
ed140128
AD
3691/* HAS_WRITEV:
3692 * This symbol, if defined, indicates that the writev routine is
3693 * available to do scatter writes.
3694 */
3695#$d_writev HAS_WRITEV /**/
3696
3697/* USE_DYNAMIC_LOADING:
3698 * This symbol, if defined, indicates that dynamic loading of
3699 * some sort is available.
3700 */
3701#$usedl USE_DYNAMIC_LOADING /**/
3702
3703/* FFLUSH_NULL:
a05353bf
MB
3704 * This symbol, if defined, tells that fflush(NULL) correctly
3705 * flushes all pending stdio output without side effects. In
3706 * particular, on some platforms calling fflush(NULL) *still*
3707 * corrupts STDIN if it is a pipe.
ed140128
AD
3708 */
3709/* FFLUSH_ALL:
3710 * This symbol, if defined, tells that to flush
3711 * all pending stdio output one must loop through all
3712 * the stdio file handles stored in an array and fflush them.
3713 * Note that if fflushNULL is defined, fflushall will not
3714 * even be probed for and will be left undefined.
3715 */
3716#$fflushNULL FFLUSH_NULL /**/
3717#$fflushall FFLUSH_ALL /**/
3718
c0bacbef
MB
3719/* I_ASSERT:
3720 * This symbol, if defined, indicates that <assert.h> exists and
3721 * could be included by the C program to get the assert() macro.
3722 */
3723#$i_assert I_ASSERT /**/
3724
470dd224
JH
3725/* I_BFD:
3726 * This symbol, if defined, indicates that <bfd.h> exists and
f6a82ade 3727 * can be included.
470dd224
JH
3728 */
3729#$i_bfd I_BFD /**/
3730
ed140128
AD
3731/* I_CRYPT:
3732 * This symbol, if defined, indicates that <crypt.h> exists and
3733 * should be included.
3734 */
3735#$i_crypt I_CRYPT /**/
3736
3737/* DB_Prefix_t:
3738 * This symbol contains the type of the prefix structure element
3739 * in the <db.h> header file. In older versions of DB, it was
3740 * int, while in newer ones it is u_int32_t.
3741 */
3742/* DB_Hash_t:
3743 * This symbol contains the type of the prefix structure element
3744 * in the <db.h> header file. In older versions of DB, it was
3745 * int, while in newer ones it is size_t.
3746 */
3747/* DB_VERSION_MAJOR_CFG:
3748 * This symbol, if defined, defines the major version number of
3749 * Berkeley DB found in the <db.h> header when Perl was configured.
3750 */
3751/* DB_VERSION_MINOR_CFG:
3752 * This symbol, if defined, defines the minor version number of
3753 * Berkeley DB found in the <db.h> header when Perl was configured.
3754 * For DB version 1 this is always 0.
3755 */
3756/* DB_VERSION_PATCH_CFG:
3757 * This symbol, if defined, defines the patch version number of
3758 * Berkeley DB found in the <db.h> header when Perl was configured.
3759 * For DB version 1 this is always 0.
3760 */
3761#define DB_Hash_t $db_hashtype /**/
3762#define DB_Prefix_t $db_prefixtype /**/
3763#define DB_VERSION_MAJOR_CFG $db_version_major /**/
3764#define DB_VERSION_MINOR_CFG $db_version_minor /**/
3765#define DB_VERSION_PATCH_CFG $db_version_patch /**/
3766
d0166596
MB
3767/* I_FENV:
3768 * This symbol, if defined, indicates to the C program that it should
3769 * include <fenv.h> to get the floating point environment definitions.
3770 */
3771#$i_fenv I_FENV /**/
3772
ed140128
AD
3773/* I_FP:
3774 * This symbol, if defined, indicates that <fp.h> exists and
3775 * should be included.
3776 */
3777#$i_fp I_FP /**/
3778
3779/* I_FP_CLASS:
3780 * This symbol, if defined, indicates that <fp_class.h> exists and
3781 * should be included.
3782 */
3783#$i_fp_class I_FP_CLASS /**/
3784
3785/* I_IEEEFP:
3786 * This symbol, if defined, indicates that <ieeefp.h> exists and
3787 * should be included.
3788 */
3789#$i_ieeefp I_IEEEFP /**/
3790
3791/* I_INTTYPES:
3792 * This symbol, if defined, indicates to the C program that it should
3793 * include <inttypes.h>.
3794 */
3795#$i_inttypes I_INTTYPES /**/
3796
3797/* I_LANGINFO:
3798 * This symbol, if defined, indicates that <langinfo.h> exists and
3799 * should be included.
3800 */
3801#$i_langinfo I_LANGINFO /**/
3802