| 1 | case $CONFIG in |
|---|
| 2 | '') |
|---|
| 3 | if test -f config.sh; then TOP=.; |
|---|
| 4 | elif test -f ../config.sh; then TOP=..; |
|---|
| 5 | elif test -f ../../config.sh; then TOP=../..; |
|---|
| 6 | elif test -f ../../../config.sh; then TOP=../../..; |
|---|
| 7 | elif test -f ../../../../config.sh; then TOP=../../../..; |
|---|
| 8 | else |
|---|
| 9 | echo "Can't find config.sh."; exit 1 |
|---|
| 10 | fi |
|---|
| 11 | . $TOP/config.sh |
|---|
| 12 | ;; |
|---|
| 13 | esac |
|---|
| 14 | case "$0" in |
|---|
| 15 | */*) cd `expr X$0 : 'X\(.*\)/'` ;; |
|---|
| 16 | esac |
|---|
| 17 | echo "Extracting config.h (with variable substitutions)" |
|---|
| 18 | sed <<!GROK!THIS! >config.h -e 's!^ |
|---|
| 19 | /* |
|---|
| 20 | * This file was produced by running the config_h.SH script, which |
|---|
| 21 | * gets its values from config.sh, which is generally produced by |
|---|
| 22 | * running Configure. |
|---|
| 23 | * |
|---|
| 24 | * Feel free to modify any of this as the need arises. Note, however, |
|---|
| 25 | * that running config_h.SH again will wipe out any changes you've made. |
|---|
| 26 | * For a more permanent change edit config.sh and rerun config_h.SH. |
|---|
| 27 | * |
|---|
| 28 | * \$Id: Config_h.U,v 3.0.1.5 1997/02/28 14:57:43 ram Exp $ |
|---|
| 29 | */ |
|---|
| 30 | |
|---|
| 31 | /* |
|---|
| 32 | * Package name : $package |
|---|
| 33 | * Source directory : $src |
|---|
| 34 | * Configuration time: $cf_time |
|---|
| 35 | * Configured by : $cf_by |
|---|
| 36 | * Target system : $myuname |
|---|
| 37 | */ |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | /* getdtablesize: |
|---|
| 43 | * This catches use of the getdtablesize() subroutine, and remaps it |
|---|
| 44 | * to either ulimit(4,0) or NOFILE, if getdtablesize() isn't available. |
|---|
| 45 | */ |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | /* HAS_BCOPY: |
|---|
| 49 | * This symbol is defined if the bcopy() routine is available to |
|---|
| 50 | * copy blocks of memory. |
|---|
| 51 | */ |
|---|
| 52 | |
|---|
| 53 | |
|---|
| 54 | /* HAS_BZERO: |
|---|
| 55 | * This symbol is defined if the bzero() routine is available to |
|---|
| 56 | * set a memory block to 0. |
|---|
| 57 | */ |
|---|
| 58 | |
|---|
| 59 | |
|---|
| 60 | /* HASCONST: |
|---|
| 61 | * This symbol, if defined, indicates that this C compiler knows about |
|---|
| 62 | * the const type. There is no need to actually test for that symbol |
|---|
| 63 | * within your programs. The mere use of the "const" keyword will |
|---|
| 64 | * trigger the necessary tests. |
|---|
| 65 | */ |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | |
|---|
| 69 | |
|---|
| 70 | |
|---|
| 71 | /* HAS_GETPRIORITY: |
|---|
| 72 | * This symbol, if defined, indicates that the getpriority routine is |
|---|
| 73 | * available to get a process's priority. |
|---|
| 74 | */ |
|---|
| 75 | |
|---|
| 76 | |
|---|
| 77 | /* INTERNET: |
|---|
| 78 | * This symbol, if defined, indicates that there is a mailer available |
|---|
| 79 | * which supports internet-style addresses (user@site.domain). |
|---|
| 80 | */ |
|---|
| 81 | |
|---|
| 82 | |
|---|
| 83 | /* HAS_ITIMER: |
|---|
| 84 | * This symbol, if defined, indicates that the setitimer() routine exists. |
|---|
| 85 | */ |
|---|
| 86 | |
|---|
| 87 | |
|---|
| 88 | /* HAS_MEMSET: |
|---|
| 89 | * This symbol, if defined, indicates that the memset routine is available |
|---|
| 90 | * to set blocks of memory. |
|---|
| 91 | */ |
|---|
| 92 | |
|---|
| 93 | |
|---|
| 94 | /* HAS_RENAME: |
|---|
| 95 | * This symbol, if defined, indicates that the rename routine is available |
|---|
| 96 | * to rename files. Otherwise you should do the unlink(), link(), unlink() |
|---|
| 97 | * trick. |
|---|
| 98 | */ |
|---|
| 99 | |
|---|
| 100 | |
|---|
| 101 | /* HAS_GETRUSAGE: |
|---|
| 102 | * This symbol, if defined, indicates that the getrusage() routine is |
|---|
| 103 | * available to get process statistics with a sub-second accuracy. |
|---|
| 104 | * Inclusion of <sys/resource.h> and <sys/time.h> may be necessary. |
|---|
| 105 | */ |
|---|
| 106 | |
|---|
| 107 | |
|---|
| 108 | /* HAS_SELECT: |
|---|
| 109 | * This symbol, if defined, indicates that the select routine is |
|---|
| 110 | * available to select active file descriptors. If the timeout field |
|---|
| 111 | * is used, <sys/time.h> may need to be included. |
|---|
| 112 | */ |
|---|
| 113 | |
|---|
| 114 | |
|---|
| 115 | /* HAS_SETLOCALE: |
|---|
| 116 | * This symbol, if defined, indicates that the setlocale routine is |
|---|
| 117 | * available to handle locale-specific ctype implementations. |
|---|
| 118 | */ |
|---|
| 119 | |
|---|
| 120 | |
|---|
| 121 | /* HAS_SETPGID: |
|---|
| 122 | * This symbol, if defined, indicates that the setpgid(pid, gpid) |
|---|
| 123 | * routine is available to set process group ID. |
|---|
| 124 | */ |
|---|
| 125 | |
|---|
| 126 | |
|---|
| 127 | /* HAS_SETPGRP: |
|---|
| 128 | * This symbol, if defined, indicates that the setpgrp routine is |
|---|
| 129 | * available to set the current process group. |
|---|
| 130 | */ |
|---|
| 131 | /* USE_BSD_SETPGRP: |
|---|
| 132 | * This symbol, if defined, indicates that setpgrp needs two |
|---|
| 133 | * arguments whereas USG one needs none. See also HAS_SETPGID |
|---|
| 134 | * for a POSIX interface. |
|---|
| 135 | */ |
|---|
| 136 | |
|---|
| 137 | |
|---|
| 138 | |
|---|
| 139 | /* HAS_SETPRIORITY: |
|---|
| 140 | * This symbol, if defined, indicates that the setpriority routine is |
|---|
| 141 | * available to set a process's priority. |
|---|
| 142 | */ |
|---|
| 143 | |
|---|
| 144 | |
|---|
| 145 | /* HAS_SIGACTION: |
|---|
| 146 | * This symbol, if defined, indicates that Vr4's sigaction() routine |
|---|
| 147 | * is available. |
|---|
| 148 | */ |
|---|
| 149 | |
|---|
| 150 | |
|---|
| 151 | /* HAS_SOCKET: |
|---|
| 152 | * This symbol, if defined, indicates that the BSD socket interface is |
|---|
| 153 | * supported. |
|---|
| 154 | */ |
|---|
| 155 | /* HAS_SOCKETPAIR: |
|---|
| 156 | * This symbol, if defined, indicates that the BSD socketpair() call is |
|---|
| 157 | * supported. |
|---|
| 158 | */ |
|---|
| 159 | |
|---|
| 160 | |
|---|
| 161 | |
|---|
| 162 | /* HAS_STRCASECMP: |
|---|
| 163 | * This symbol, if defined, indicates that the strcasecmp() routine is |
|---|
| 164 | * available for case-insensitive string compares. |
|---|
| 165 | */ |
|---|
| 166 | |
|---|
| 167 | |
|---|
| 168 | /* HAS_STRDUP: |
|---|
| 169 | * This symbol, if defined, indicates that the strdup routine is |
|---|
| 170 | * available to duplicate strings in memory. Otherwise, roll up |
|---|
| 171 | * your own... |
|---|
| 172 | */ |
|---|
| 173 | |
|---|
| 174 | |
|---|
| 175 | /* HAS_SYSCONF: |
|---|
| 176 | * This symbol, if defined, indicates that sysconf() is available |
|---|
| 177 | * to determine system related limits and options. |
|---|
| 178 | */ |
|---|
| 179 | |
|---|
| 180 | |
|---|
| 181 | /* VOIDSIG: |
|---|
| 182 | * This symbol is defined if this system declares "void (*signal(...))()" in |
|---|
| 183 | * signal.h. The old way was to declare it as "int (*signal(...))()". It |
|---|
| 184 | * is up to the package author to declare things correctly based on the |
|---|
| 185 | * symbol. |
|---|
| 186 | */ |
|---|
| 187 | /* Signal_t: |
|---|
| 188 | * This symbol's value is either "void" or "int", corresponding to the |
|---|
| 189 | * appropriate return type of a signal handler. Thus, you can declare |
|---|
| 190 | * a signal handler using "Signal_t (*handler)()", and define the |
|---|
| 191 | * handler using "Signal_t handler(sig)". |
|---|
| 192 | */ |
|---|
| 193 | |
|---|
| 194 | |
|---|
| 195 | |
|---|
| 196 | /* HASVOLATILE: |
|---|
| 197 | * This symbol, if defined, indicates that this C compiler knows about |
|---|
| 198 | * the volatile declaration. |
|---|
| 199 | */ |
|---|
| 200 | |
|---|
| 201 | |
|---|
| 202 | |
|---|
| 203 | |
|---|
| 204 | |
|---|
| 205 | /* HAS_WAITPID: |
|---|
| 206 | * This symbol, if defined, indicates that the waitpid routine is |
|---|
| 207 | * available to wait for child process. |
|---|
| 208 | */ |
|---|
| 209 | |
|---|
| 210 | |
|---|
| 211 | /* I_ARPA_INET: |
|---|
| 212 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 213 | * include <arpa/inet.h> to get inet_addr and friends declarations. |
|---|
| 214 | */ |
|---|
| 215 | |
|---|
| 216 | |
|---|
| 217 | /* I_FCNTL: |
|---|
| 218 | * This manifest constant tells the C program to include <fcntl.h>. |
|---|
| 219 | */ |
|---|
| 220 | |
|---|
| 221 | |
|---|
| 222 | /* I_LIMITS: |
|---|
| 223 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 224 | * include <limits.h> to get definition of symbols like WORD_BIT or |
|---|
| 225 | * LONG_MAX, i.e. machine dependant limitations. |
|---|
| 226 | */ |
|---|
| 227 | |
|---|
| 228 | |
|---|
| 229 | /* I_LOCALE: |
|---|
| 230 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 231 | * include <locale.h>. |
|---|
| 232 | */ |
|---|
| 233 | |
|---|
| 234 | |
|---|
| 235 | /* I_MALLOC: |
|---|
| 236 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 237 | * include <malloc.h>. |
|---|
| 238 | */ |
|---|
| 239 | |
|---|
| 240 | |
|---|
| 241 | /* I_NETINET_IN: |
|---|
| 242 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 243 | * include <netinet/in.h>. Otherwise, you may try <sys/in.h>. |
|---|
| 244 | */ |
|---|
| 245 | /* I_SYS_IN: |
|---|
| 246 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 247 | * include <sys/in.h> instead of <netinet/in.h>. |
|---|
| 248 | */ |
|---|
| 249 | |
|---|
| 250 | |
|---|
| 251 | |
|---|
| 252 | /* I_STDDEF: |
|---|
| 253 | * This symbol, if defined, indicates that <stddef.h> exists and should |
|---|
| 254 | * be included. |
|---|
| 255 | */ |
|---|
| 256 | |
|---|
| 257 | |
|---|
| 258 | /* I_STDLIB: |
|---|
| 259 | * This symbol, if defined, indicates that <stdlib.h> exists and should |
|---|
| 260 | * be included. |
|---|
| 261 | */ |
|---|
| 262 | |
|---|
| 263 | |
|---|
| 264 | /* I_STRING: |
|---|
| 265 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 266 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). |
|---|
| 267 | */ |
|---|
| 268 | |
|---|
| 269 | |
|---|
| 270 | /* I_SYS_FILE: |
|---|
| 271 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 272 | * include <sys/file.h> to get definition of R_OK and friends. |
|---|
| 273 | */ |
|---|
| 274 | |
|---|
| 275 | |
|---|
| 276 | /* I_SYS_MMAN: |
|---|
| 277 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 278 | * include <sys/mman.h>. |
|---|
| 279 | */ |
|---|
| 280 | |
|---|
| 281 | |
|---|
| 282 | /* I_SYS_PARAM: |
|---|
| 283 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 284 | * include <sys/param.h>. |
|---|
| 285 | */ |
|---|
| 286 | |
|---|
| 287 | |
|---|
| 288 | /* I_SYS_RESOURCE: |
|---|
| 289 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 290 | * include <sys/resource.h>. |
|---|
| 291 | */ |
|---|
| 292 | |
|---|
| 293 | |
|---|
| 294 | /* I_SYS_SELECT: |
|---|
| 295 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 296 | * include <sys/select.h> in order to get definition of struct timeval. |
|---|
| 297 | */ |
|---|
| 298 | |
|---|
| 299 | |
|---|
| 300 | /* I_SYS_SOCKET: |
|---|
| 301 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 302 | * include <sys/socket.h> before performing socket calls. |
|---|
| 303 | */ |
|---|
| 304 | |
|---|
| 305 | |
|---|
| 306 | /* I_SYS_STAT: |
|---|
| 307 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 308 | * include <sys/stat.h>. |
|---|
| 309 | */ |
|---|
| 310 | |
|---|
| 311 | |
|---|
| 312 | /* I_SYS_TYPES: |
|---|
| 313 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 314 | * include <sys/types.h>. |
|---|
| 315 | */ |
|---|
| 316 | |
|---|
| 317 | |
|---|
| 318 | /* I_SYS_WAIT: |
|---|
| 319 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 320 | * include <sys/wait.h>. |
|---|
| 321 | */ |
|---|
| 322 | |
|---|
| 323 | |
|---|
| 324 | /* I_TIME: |
|---|
| 325 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 326 | * include <time.h>. |
|---|
| 327 | */ |
|---|
| 328 | /* I_SYS_TIME: |
|---|
| 329 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 330 | * include <sys/time.h>. |
|---|
| 331 | */ |
|---|
| 332 | |
|---|
| 333 | |
|---|
| 334 | |
|---|
| 335 | /* I_UNISTD: |
|---|
| 336 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 337 | * include <unistd.h>. |
|---|
| 338 | */ |
|---|
| 339 | |
|---|
| 340 | |
|---|
| 341 | /* I_VALUES: |
|---|
| 342 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 343 | * include <values.h> to get definition of symbols like MINFLOAT or |
|---|
| 344 | * MAXLONG, i.e. machine dependant limitations. Probably, you |
|---|
| 345 | * should use <limits.h> instead, if it is available. |
|---|
| 346 | */ |
|---|
| 347 | |
|---|
| 348 | |
|---|
| 349 | /* Free_t: |
|---|
| 350 | * This variable contains the return type of free(). It is usually |
|---|
| 351 | * void, but occasionally int. |
|---|
| 352 | */ |
|---|
| 353 | /* Malloc_t: |
|---|
| 354 | * This symbol is the type of pointer returned by malloc and realloc. |
|---|
| 355 | */ |
|---|
| 356 | |
|---|
| 357 | |
|---|
| 358 | |
|---|
| 359 | /* MYHOSTNAME: |
|---|
| 360 | * This symbol contains name of the host the program is going to run on. |
|---|
| 361 | * The domain is not kept with hostname, but must be gotten from MYDOMAIN. |
|---|
| 362 | * The dot comes with MYDOMAIN, and need not be supplied by the program. |
|---|
| 363 | * If gethostname() or uname() exist, MYHOSTNAME may be ignored. If MYDOMAIN |
|---|
| 364 | * is not used, MYHOSTNAME will hold the name derived from PHOSTNAME. |
|---|
| 365 | */ |
|---|
| 366 | |
|---|
| 367 | |
|---|
| 368 | /* Pid_t: |
|---|
| 369 | * This symbol holds the type used to declare process ids in the kernel. |
|---|
| 370 | * It can be int, uint, pid_t, etc... It may be necessary to include |
|---|
| 371 | * <sys/types.h> to get any typedef'ed information. |
|---|
| 372 | */ |
|---|
| 373 | |
|---|
| 374 | |
|---|
| 375 | /* CAN_PROTOTYPE: |
|---|
| 376 | * If defined, this macro indicates that the C compiler can handle |
|---|
| 377 | * function prototypes. |
|---|
| 378 | */ |
|---|
| 379 | /* _: |
|---|
| 380 | * This macro is used to declare function parameters for folks who want |
|---|
| 381 | * to make declarations with prototypes using a different style than |
|---|
| 382 | * the above macros. Use double parentheses. For example: |
|---|
| 383 | * |
|---|
| 384 | * int main _((int argc, char *argv[])); |
|---|
| 385 | */ |
|---|
| 386 | |
|---|
| 387 | |
|---|
| 388 | |
|---|
| 389 | |
|---|
| 390 | |
|---|
| 391 | |
|---|
| 392 | |
|---|
| 393 | /* Size_t: |
|---|
| 394 | * This symbol holds the type used to declare length parameters |
|---|
| 395 | * for string functions. It is usually size_t, but may be |
|---|
| 396 | * unsigned long, int, etc. It may be necessary to include |
|---|
| 397 | * <sys/types.h> to get any typedef'ed information. |
|---|
| 398 | */ |
|---|
| 399 | |
|---|
| 400 | |
|---|
| 401 | /* VOIDFLAGS: |
|---|
| 402 | * This symbol indicates how much support of the void type is given by this |
|---|
| 403 | * compiler. What various bits mean: |
|---|
| 404 | * |
|---|
| 405 | * 1 = supports declaration of void |
|---|
| 406 | * 2 = supports arrays of pointers to functions returning void |
|---|
| 407 | * 4 = supports comparisons between pointers to void functions and |
|---|
| 408 | * addresses of void functions |
|---|
| 409 | * 8 = suports declaration of generic void pointers |
|---|
| 410 | * |
|---|
| 411 | * The package designer should define VOIDUSED to indicate the requirements |
|---|
| 412 | * of the package. This can be done either by |
|---|
| 413 | * including config.h, or by defining defvoidused in Myinit.U. If the |
|---|
| 414 | * latter approach is taken, only those flags will be tested. If the |
|---|
| 415 | * level of void support necessary is not present, defines void to int. |
|---|
| 416 | */ |
|---|
| 417 | |
|---|
| 418 | |
|---|
| 419 | |
|---|
| 420 | |
|---|
| 421 | |
|---|
| 422 | |
|---|
| 423 | |
|---|
| 424 | |
|---|
| 425 | |
|---|
| 426 | /* WIN32_CDECL: |
|---|
| 427 | * Defined as __cdecl if the compiler can handle that keyword to specify |
|---|
| 428 | * C-style argument passing conventions. This allows MS VC++ |
|---|
| 429 | * on Win32 to use the __fastcall convention for everything else |
|---|
| 430 | * and get a performance boost. Any compiler with a brain (read: |
|---|
| 431 | * not MS VC) handles this optimization automatically without such a |
|---|
| 432 | * kludge. On these systems, this is defined as nothing. |
|---|
| 433 | */ |
|---|
| 434 | |
|---|
| 435 | |
|---|
| 436 | /* CAN_TAKE_ARGS_IN_FP: |
|---|
| 437 | * Defined if the compiler prefers that function pointer parameters |
|---|
| 438 | * in prototypes include the function's arguments, rather than |
|---|
| 439 | * nothing (that is, int (*fun)(int) rather than int(*fun)(). |
|---|
| 440 | */ |
|---|
| 441 | |
|---|
| 442 | |
|---|
| 443 | /* HAS_ASSERT: |
|---|
| 444 | * If defined, this system has the assert() macro. |
|---|
| 445 | */ |
|---|
| 446 | |
|---|
| 447 | |
|---|
| 448 | /* HASATTRIBUTE: |
|---|
| 449 | * This symbol indicates the C compiler can check for function attributes, |
|---|
| 450 | * such as printf formats. This is normally only supported by GNU cc. |
|---|
| 451 | */ |
|---|
| 452 | |
|---|
| 453 | |
|---|
| 454 | |
|---|
| 455 | |
|---|
| 456 | |
|---|
| 457 | /* HAS_BINDTEXTDOMAIN: |
|---|
| 458 | * Defined if bindtextdomain is available(). |
|---|
| 459 | */ |
|---|
| 460 | |
|---|
| 461 | |
|---|
| 462 | /* HAS_CRYPT: |
|---|
| 463 | * This symbol, if defined, indicates that the crypt routine is available |
|---|
| 464 | * to encrypt passwords and the like. |
|---|
| 465 | */ |
|---|
| 466 | /* I_CRYPT: |
|---|
| 467 | * This symbol, if defined, indicates that <crypt.h> can be included. |
|---|
| 468 | */ |
|---|
| 469 | |
|---|
| 470 | |
|---|
| 471 | |
|---|
| 472 | |
|---|
| 473 | /* FORCE_IPV4: |
|---|
| 474 | * If defined, this system will not use IPv6. Necessary for Openbsd. |
|---|
| 475 | */ |
|---|
| 476 | |
|---|
| 477 | |
|---|
| 478 | /* HAS_FPSETROUND: |
|---|
| 479 | * This symbol, if defined, indicates that the crypt routine is available |
|---|
| 480 | * to encrypt passwords and the like. |
|---|
| 481 | */ |
|---|
| 482 | /* I_FLOATINGPOINT: |
|---|
| 483 | * This symbol, if defined, indicates that <crypt.h> can be included. |
|---|
| 484 | */ |
|---|
| 485 | |
|---|
| 486 | |
|---|
| 487 | |
|---|
| 488 | |
|---|
| 489 | |
|---|
| 490 | |
|---|
| 491 | /* HAS_GAI_STRERROR: |
|---|
| 492 | * This symbol, if defined, indicates that getaddrinfo()'s error cores |
|---|
| 493 | * can be converted to strings for printing. |
|---|
| 494 | */ |
|---|
| 495 | |
|---|
| 496 | |
|---|
| 497 | /* HAS_GETADDRINFO: |
|---|
| 498 | * This symbol, if defined, indicates that the getaddrinfo() routine is |
|---|
| 499 | * available to lookup internet addresses in some data base or other. |
|---|
| 500 | */ |
|---|
| 501 | |
|---|
| 502 | |
|---|
| 503 | /* HAS_GETDATE: |
|---|
| 504 | * This symbol, if defined, indicates that the getdate() routine is |
|---|
| 505 | * available to convert date strings into struct tm's. |
|---|
| 506 | */ |
|---|
| 507 | |
|---|
| 508 | |
|---|
| 509 | /* HAS_GETHOSTBYNAME2: |
|---|
| 510 | * This symbol, if defined, indicates that the gethostbyname2() |
|---|
| 511 | * function is available to resolve hostnames. |
|---|
| 512 | */ |
|---|
| 513 | |
|---|
| 514 | |
|---|
| 515 | /* HAS_GETNAMEINFO: |
|---|
| 516 | * This symbol, if defined, indicates that the getnameinfo() routine is |
|---|
| 517 | * available to lookup host names in some data base or other. |
|---|
| 518 | */ |
|---|
| 519 | |
|---|
| 520 | |
|---|
| 521 | /* HAS_GETPAGESIZE: |
|---|
| 522 | * This symbol, if defined, indicates that the getpagesize system call |
|---|
| 523 | * is available to get system page size, which is the granularity of |
|---|
| 524 | * many memory management calls. |
|---|
| 525 | */ |
|---|
| 526 | /* PAGESIZE_VALUE: |
|---|
| 527 | * This symbol holds the size in bytes of a system page (obtained via |
|---|
| 528 | * the getpagesize() system call at configuration time or asked to the |
|---|
| 529 | * user if the system call is not available). |
|---|
| 530 | */ |
|---|
| 531 | |
|---|
| 532 | |
|---|
| 533 | |
|---|
| 534 | /* HAS_GETTEXT: |
|---|
| 535 | * Defined if gettext is available(). |
|---|
| 536 | */ |
|---|
| 537 | |
|---|
| 538 | |
|---|
| 539 | /* HAS_HUGE_VAL: |
|---|
| 540 | * If defined, this system has the HUGE_VAL constant. We like this, |
|---|
| 541 | * and don't bother defining the other floats below if we find it. |
|---|
| 542 | */ |
|---|
| 543 | /* HAS_HUGE: |
|---|
| 544 | * If defined, this system has the HUGE constant. We like this, and |
|---|
| 545 | * don't bother defining the other floats below if we find it. |
|---|
| 546 | */ |
|---|
| 547 | /* HAS_INT_MAX: |
|---|
| 548 | * If defined, this system has the INT_MAX constant. |
|---|
| 549 | */ |
|---|
| 550 | /* HAS_MAXINT: |
|---|
| 551 | * If defined, this system has the MAXINT constant. |
|---|
| 552 | */ |
|---|
| 553 | /* HAS_MAXDOUBLE: |
|---|
| 554 | * If defined, this system has the MAXDOUBLE constant. |
|---|
| 555 | */ |
|---|
| 556 | |
|---|
| 557 | |
|---|
| 558 | |
|---|
| 559 | |
|---|
| 560 | |
|---|
| 561 | |
|---|
| 562 | |
|---|
| 563 | |
|---|
| 564 | |
|---|
| 565 | |
|---|
| 566 | /* HAS_IEEE_MATH: |
|---|
| 567 | * Defined if the machine supports IEEE math - that is, can safely |
|---|
| 568 | * return NaN or Inf rather than crash on bad math. |
|---|
| 569 | */ |
|---|
| 570 | |
|---|
| 571 | |
|---|
| 572 | /* HAS_INET_PTON: |
|---|
| 573 | * This symbol, if defined, indicates that the inet_pton() and |
|---|
| 574 | * inet_ntop() routines are available to convert IP addresses.. |
|---|
| 575 | */ |
|---|
| 576 | |
|---|
| 577 | |
|---|
| 578 | /* HAS_IPV6: |
|---|
| 579 | * If defined, this system has the sockaddr_in6 struct and AF_INET6. |
|---|
| 580 | * We can't rely on just AF_INET6 being defined. |
|---|
| 581 | */ |
|---|
| 582 | |
|---|
| 583 | |
|---|
| 584 | /* SIGNALS_KEPT: |
|---|
| 585 | * This symbol is defined if signal handlers needn't be reinstated after |
|---|
| 586 | * receipt of a signal. |
|---|
| 587 | */ |
|---|
| 588 | |
|---|
| 589 | |
|---|
| 590 | /* HAS_MEMCPY: |
|---|
| 591 | * This symbol, if defined, indicates that the memcpy routine is available |
|---|
| 592 | * to copy blocks of memory. If not, it will be mapped to bcopy |
|---|
| 593 | * in confmagic.h |
|---|
| 594 | */ |
|---|
| 595 | /* HAS_MEMMOVE: |
|---|
| 596 | * This symbol, if defined, indicates that the memmove routine is available |
|---|
| 597 | * to copy blocks of memory. If not, it will be mapped to bcopy |
|---|
| 598 | */ |
|---|
| 599 | |
|---|
| 600 | |
|---|
| 601 | |
|---|
| 602 | |
|---|
| 603 | /* CAN_NEWSTYLE: |
|---|
| 604 | * Defined if new-style function definitions are allowable. |
|---|
| 605 | * If they are, we can avoid some warnings that you get if |
|---|
| 606 | * you declare char arguments in a prototype and use old-style |
|---|
| 607 | * function definitions, which implicitly promote them to ints. |
|---|
| 608 | */ |
|---|
| 609 | |
|---|
| 610 | |
|---|
| 611 | /* HAS_RANDOM: |
|---|
| 612 | * Have we got random(), our first choice for number generation? |
|---|
| 613 | */ |
|---|
| 614 | /* HAS_LRAND48: |
|---|
| 615 | * Have we got lrand48(), our second choice? |
|---|
| 616 | */ |
|---|
| 617 | /* HAS_RAND: |
|---|
| 618 | * Have we got rand(), our last choice? |
|---|
| 619 | */ |
|---|
| 620 | |
|---|
| 621 | |
|---|
| 622 | |
|---|
| 623 | |
|---|
| 624 | /* HAS_GETRLIMIT: |
|---|
| 625 | * This symbol, if defined, indicates that the getrlimit() routine is |
|---|
| 626 | * available to get resource limits. Probably means setrlimit too. |
|---|
| 627 | * Inclusion of <sys/resource.h> and <sys/time.h> may be necessary. |
|---|
| 628 | */ |
|---|
| 629 | |
|---|
| 630 | |
|---|
| 631 | /* SENDMAIL: |
|---|
| 632 | * This symbol contains the full pathname to sendmail. |
|---|
| 633 | */ |
|---|
| 634 | /* HAS_SENDMAIL: |
|---|
| 635 | * If defined, we have sendmail. |
|---|
| 636 | */ |
|---|
| 637 | |
|---|
| 638 | |
|---|
| 639 | |
|---|
| 640 | /* HAS_SIGCHLD: |
|---|
| 641 | * If defined, this system has the SIGCHLD constant. |
|---|
| 642 | */ |
|---|
| 643 | /* HAS_SIGCLD: |
|---|
| 644 | * If defined, this system has the SIGCLD constant (SysVish SIGCHLD). |
|---|
| 645 | */ |
|---|
| 646 | |
|---|
| 647 | |
|---|
| 648 | |
|---|
| 649 | |
|---|
| 650 | /* CAN_PROTOTYPE_SIGNAL: |
|---|
| 651 | * This symbol is defined if we can safely prototype our rewritten |
|---|
| 652 | * signal() function as: |
|---|
| 653 | * Signal_t(*Sigfunc) _((int)); |
|---|
| 654 | * extern Sigfunc signal _((int signo, Sigfunc func)); |
|---|
| 655 | */ |
|---|
| 656 | |
|---|
| 657 | |
|---|
| 658 | /* HAS_SIGPROCMASK: |
|---|
| 659 | * This symbol, if defined, indicates that POSIX's sigprocmask() routine |
|---|
| 660 | * is available. |
|---|
| 661 | */ |
|---|
| 662 | |
|---|
| 663 | |
|---|
| 664 | /* HAS_SNPRINTF: |
|---|
| 665 | * This symbol, if defined, indicates that the snprintf routine is |
|---|
| 666 | * available. If not, we use sprintf, which is less safe. |
|---|
| 667 | */ |
|---|
| 668 | |
|---|
| 669 | |
|---|
| 670 | /* HAS_SOCKLEN_T: |
|---|
| 671 | * If defined, this system has the socklen_t type. |
|---|
| 672 | */ |
|---|
| 673 | |
|---|
| 674 | |
|---|
| 675 | /* HAS_STRCHR: |
|---|
| 676 | * This symbol is defined to indicate that the strchr()/strrchr() |
|---|
| 677 | * functions are available for string searching. If not, try the |
|---|
| 678 | * index()/rindex() pair. |
|---|
| 679 | */ |
|---|
| 680 | /* HAS_INDEX: |
|---|
| 681 | * This symbol is defined to indicate that the index()/rindex() |
|---|
| 682 | * functions are available for string searching. |
|---|
| 683 | */ |
|---|
| 684 | |
|---|
| 685 | |
|---|
| 686 | |
|---|
| 687 | /* HAS_STRCOLL: |
|---|
| 688 | * This symbol, if defined, indicates that the strcoll routine is |
|---|
| 689 | * available to compare strings using collating information. |
|---|
| 690 | */ |
|---|
| 691 | |
|---|
| 692 | |
|---|
| 693 | /* HAS_STRXFRM: |
|---|
| 694 | * This symbol, if defined, indicates that the strxfrm routine is |
|---|
| 695 | * available to transform strings using collating information. |
|---|
| 696 | */ |
|---|
| 697 | |
|---|
| 698 | |
|---|
| 699 | /* HAS_TCL: |
|---|
| 700 | * This symbol, if defined, indicates that the tcl library is available |
|---|
| 701 | */ |
|---|
| 702 | /* I_TCL: |
|---|
| 703 | * This symbol, if defined, indicates that <tcl.h> can be included. |
|---|
| 704 | */ |
|---|
| 705 | /* HAS_TCL: |
|---|
| 706 | * This symbol, if defined, means we have the tcl library |
|---|
| 707 | */ |
|---|
| 708 | |
|---|
| 709 | |
|---|
| 710 | /* I_TCL: |
|---|
| 711 | * This symbol, if defined, means we have the <tcl.h> include file |
|---|
| 712 | */ |
|---|
| 713 | |
|---|
| 714 | |
|---|
| 715 | /* HAS_TEXTDOMAIN: |
|---|
| 716 | * Defined if textdomain is available(). |
|---|
| 717 | */ |
|---|
| 718 | |
|---|
| 719 | |
|---|
| 720 | /* HAS_TIMELOCAL: |
|---|
| 721 | * This symbol, if defined, indicates that the timelocal() routine is |
|---|
| 722 | * available. |
|---|
| 723 | */ |
|---|
| 724 | |
|---|
| 725 | |
|---|
| 726 | /* HAS_SAFE_TOUPPER: |
|---|
| 727 | * Defined if toupper() can operate safely on any ascii character. |
|---|
| 728 | * Some systems only allow toupper() on lower-case ascii chars. |
|---|
| 729 | */ |
|---|
| 730 | |
|---|
| 731 | |
|---|
| 732 | /* HAS_UINT32_T: |
|---|
| 733 | * If defined, this system has the uint32_t type. |
|---|
| 734 | */ |
|---|
| 735 | |
|---|
| 736 | |
|---|
| 737 | /* UPTIME_PATH: |
|---|
| 738 | * This symbol gives the full path to the uptime(1) program if |
|---|
| 739 | * it exists on the system. If not, this symbol is undefined. |
|---|
| 740 | */ |
|---|
| 741 | /* HAS_UPTIME: |
|---|
| 742 | * This symbol is defined if uptime(1) is available. |
|---|
| 743 | */ |
|---|
| 744 | |
|---|
| 745 | |
|---|
| 746 | |
|---|
| 747 | /* HAS_DEV_URANDOM: |
|---|
| 748 | * This symbol is defined if /dev/urandom is available. |
|---|
| 749 | */ |
|---|
| 750 | |
|---|
| 751 | |
|---|
| 752 | /* UNION_WAIT: |
|---|
| 753 | * This symbol if defined indicates to the C program that the argument |
|---|
| 754 | * for the wait() system call should be declared as 'union wait status' |
|---|
| 755 | * instead of 'int status'. You probably need to include <sys/wait.h> |
|---|
| 756 | * in the former case (see I_SYSWAIT). |
|---|
| 757 | */ |
|---|
| 758 | |
|---|
| 759 | |
|---|
| 760 | /* HAS_VSNPRINTF: |
|---|
| 761 | * This symbol, if defined, indicates that the vsnprintf routine is |
|---|
| 762 | * available to printf with a pointer to an argument list. If not, you |
|---|
| 763 | * may need to write your own, probably in terms of _doprnt(). |
|---|
| 764 | */ |
|---|
| 765 | |
|---|
| 766 | |
|---|
| 767 | /* I_ARPA_NAMESER: |
|---|
| 768 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 769 | * include <arpa/nameser.h> to get nameser_addr and friends declarations. |
|---|
| 770 | */ |
|---|
| 771 | |
|---|
| 772 | |
|---|
| 773 | /* I_ERRNO: |
|---|
| 774 | * This symbol, if defined, indicates to the C program that it can |
|---|
| 775 | * include <errno.h>. |
|---|
| 776 | */ |
|---|
| 777 | /* I_SYS_ERRNO: |
|---|
| 778 | * This symbol, if defined, indicates to the C program that it can |
|---|
| 779 | * include <sys/errno.h>. |
|---|
| 780 | */ |
|---|
| 781 | |
|---|
| 782 | |
|---|
| 783 | |
|---|
| 784 | |
|---|
| 785 | /* I_LIBINTL: |
|---|
| 786 | * This symbol, if defined, indicates to the C program that it can |
|---|
| 787 | * include <libintl.h>. |
|---|
| 788 | */ |
|---|
| 789 | |
|---|
| 790 | |
|---|
| 791 | /* I_MEMORY: |
|---|
| 792 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 793 | * include <memory.h>. |
|---|
| 794 | */ |
|---|
| 795 | |
|---|
| 796 | |
|---|
| 797 | /* I_NETDB: |
|---|
| 798 | * This symbol, if defined, indicates to the C program that it can |
|---|
| 799 | * include <errno.h>. |
|---|
| 800 | */ |
|---|
| 801 | |
|---|
| 802 | |
|---|
| 803 | /* I_NETINET_TCP: |
|---|
| 804 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 805 | * include <netinet/tcp.h>. |
|---|
| 806 | */ |
|---|
| 807 | |
|---|
| 808 | |
|---|
| 809 | /* I_SETJMP: |
|---|
| 810 | * This symbol, if defined, indicates to the C program that it can |
|---|
| 811 | * include <setjmp.h> and have things work right. |
|---|
| 812 | */ |
|---|
| 813 | |
|---|
| 814 | |
|---|
| 815 | /* I_STDINT: |
|---|
| 816 | * This symbol, if defined, indicates that the program should include |
|---|
| 817 | * <stdint.h>. |
|---|
| 818 | */ |
|---|
| 819 | |
|---|
| 820 | |
|---|
| 821 | /* USE_TIOCNOTTY: |
|---|
| 822 | * This symbol, if defined indicate to the C program that the ioctl() |
|---|
| 823 | * call with TIOCNOTTY should be used to void tty association. |
|---|
| 824 | * Otherwise (on USG probably), it is enough to close the standard file |
|---|
| 825 | * decriptors and do a setpgrp(). |
|---|
| 826 | */ |
|---|
| 827 | |
|---|
| 828 | |
|---|
| 829 | /* I_SYS_PAGE: |
|---|
| 830 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 831 | * include <sys/page.h>. |
|---|
| 832 | */ |
|---|
| 833 | |
|---|
| 834 | |
|---|
| 835 | /* I_SYS_VLIMIT: |
|---|
| 836 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 837 | * include <sys/vlimit.h>. |
|---|
| 838 | */ |
|---|
| 839 | |
|---|
| 840 | |
|---|
| 841 | /* I_STDARG: |
|---|
| 842 | * This symbol, if defined, indicates that <stdarg.h> exists and should |
|---|
| 843 | * be included. |
|---|
| 844 | */ |
|---|
| 845 | |
|---|
| 846 | |
|---|
| 847 | /* HAS_MYSQL: |
|---|
| 848 | * Defined if mysql client libraries are available. |
|---|
| 849 | */ |
|---|
| 850 | |
|---|
| 851 | |
|---|
| 852 | /* HAS_OPENSSL: |
|---|
| 853 | * Defined if openssl 0.9.6+ is available. |
|---|
| 854 | */ |
|---|
| 855 | |
|---|
| 856 | |
|---|
| 857 | /* CAN_KEEPALIVE: |
|---|
| 858 | * This symbol if defined indicates to the C program that the SO_KEEPALIVE |
|---|
| 859 | * option of setsockopt() will work as advertised in the manual. |
|---|
| 860 | */ |
|---|
| 861 | /* CAN_KEEPIDLE: |
|---|
| 862 | * This symbol if defined indicates to the C program that the TCP_KEEPIDLE |
|---|
| 863 | * option of setsockopt() will work as advertised in the manual. |
|---|
| 864 | */ |
|---|
| 865 | |
|---|
| 866 | |
|---|
| 867 | |
|---|
| 868 | |
|---|
| 869 | |
|---|
| 870 | !GROK!THIS! |
|---|