| 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.3 1995/01/30 14:25:39 ram Exp $ |
|---|
| 29 | */ |
|---|
| 30 | |
|---|
| 31 | /* Configuration time: $cf_time |
|---|
| 32 | * Configured by: $cf_by |
|---|
| 33 | * Target system: $myuname |
|---|
| 34 | */ |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | /* getdtablesize: |
|---|
| 40 | * This catches use of the getdtablesize() subroutine, and remaps it |
|---|
| 41 | * to either ulimit(4,0) or NOFILE, if getdtablesize() isn't available. |
|---|
| 42 | */ |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | /* HAS_BCOPY: |
|---|
| 46 | * This symbol is defined if the bcopy() routine is available to |
|---|
| 47 | * copy blocks of memory. |
|---|
| 48 | */ |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | /* HAS_BZERO: |
|---|
| 52 | * This symbol is defined if the bzero() routine is available to |
|---|
| 53 | * set a memory block to 0. |
|---|
| 54 | */ |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | /* HASCONST: |
|---|
| 58 | * This symbol, if defined, indicates that this C compiler knows about |
|---|
| 59 | * the const type. There is no need to actually test for that symbol |
|---|
| 60 | * within your programs. The mere use of the "const" keyword will |
|---|
| 61 | * trigger the necessary tests. |
|---|
| 62 | */ |
|---|
| 63 | |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | /* HAS_MEMSET: |
|---|
| 69 | * This symbol, if defined, indicates that the memset routine is available |
|---|
| 70 | * to set blocks of memory. |
|---|
| 71 | */ |
|---|
| 72 | |
|---|
| 73 | |
|---|
| 74 | /* HAS_GETRUSAGE: |
|---|
| 75 | * This symbol, if defined, indicates that the getrusage() routine is |
|---|
| 76 | * available to get process statistics with a sub-second accuracy. |
|---|
| 77 | * Inclusion of <sys/resource.h> and <sys/time.h> may be necessary. |
|---|
| 78 | */ |
|---|
| 79 | |
|---|
| 80 | |
|---|
| 81 | /* HAS_SIGACTION: |
|---|
| 82 | * This symbol, if defined, indicates that Vr4's sigaction() routine |
|---|
| 83 | * is available. |
|---|
| 84 | */ |
|---|
| 85 | |
|---|
| 86 | |
|---|
| 87 | /* HAS_STRCASECMP: |
|---|
| 88 | * This symbol, if defined, indicates that the strcasecmp() routine is |
|---|
| 89 | * available for case-insensitive string compares. |
|---|
| 90 | */ |
|---|
| 91 | |
|---|
| 92 | |
|---|
| 93 | /* HAS_STRDUP: |
|---|
| 94 | * This symbol, if defined, indicates that the strdup routine is |
|---|
| 95 | * available to duplicate strings in memory. Otherwise, roll up |
|---|
| 96 | * your own... |
|---|
| 97 | */ |
|---|
| 98 | |
|---|
| 99 | |
|---|
| 100 | /* HAS_SYSCONF: |
|---|
| 101 | * This symbol, if defined, indicates that sysconf() is available |
|---|
| 102 | * to determine system related limits and options. |
|---|
| 103 | */ |
|---|
| 104 | |
|---|
| 105 | |
|---|
| 106 | /* UNION_WAIT: |
|---|
| 107 | * This symbol if defined indicates to the C program that the argument |
|---|
| 108 | * for the wait() system call should be declared as 'union wait status' |
|---|
| 109 | * instead of 'int status'. You probably need to include <sys/wait.h> |
|---|
| 110 | * in the former case (see I_SYSWAIT). |
|---|
| 111 | */ |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | /* VOIDSIG: |
|---|
| 115 | * This symbol is defined if this system declares "void (*signal(...))()" in |
|---|
| 116 | * signal.h. The old way was to declare it as "int (*signal(...))()". It |
|---|
| 117 | * is up to the package author to declare things correctly based on the |
|---|
| 118 | * symbol. |
|---|
| 119 | */ |
|---|
| 120 | /* Signal_t: |
|---|
| 121 | * This symbol's value is either "void" or "int", corresponding to the |
|---|
| 122 | * appropriate return type of a signal handler. Thus, you can declare |
|---|
| 123 | * a signal handler using "Signal_t (*handler)()", and define the |
|---|
| 124 | * handler using "Signal_t handler(sig)". |
|---|
| 125 | */ |
|---|
| 126 | |
|---|
| 127 | |
|---|
| 128 | |
|---|
| 129 | /* HASVOLATILE: |
|---|
| 130 | * This symbol, if defined, indicates that this C compiler knows about |
|---|
| 131 | * the volatile declaration. |
|---|
| 132 | */ |
|---|
| 133 | |
|---|
| 134 | |
|---|
| 135 | |
|---|
| 136 | |
|---|
| 137 | |
|---|
| 138 | /* HAS_WAITPID: |
|---|
| 139 | * This symbol, if defined, indicates that the waitpid routine is |
|---|
| 140 | * available to wait for child process. |
|---|
| 141 | */ |
|---|
| 142 | |
|---|
| 143 | |
|---|
| 144 | /* I_LIMITS: |
|---|
| 145 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 146 | * include <limits.h> to get definition of symbols like WORD_BIT or |
|---|
| 147 | * LONG_MAX, i.e. machine dependant limitations. |
|---|
| 148 | */ |
|---|
| 149 | |
|---|
| 150 | |
|---|
| 151 | /* I_MEMORY: |
|---|
| 152 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 153 | * include <memory.h>. |
|---|
| 154 | */ |
|---|
| 155 | |
|---|
| 156 | |
|---|
| 157 | /* I_STDLIB: |
|---|
| 158 | * This symbol, if defined, indicates that <stdlib.h> exists and should |
|---|
| 159 | * be included. |
|---|
| 160 | */ |
|---|
| 161 | |
|---|
| 162 | |
|---|
| 163 | /* I_STRING: |
|---|
| 164 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 165 | * include <string.h> (USG systems) instead of <strings.h> (BSD systems). |
|---|
| 166 | */ |
|---|
| 167 | |
|---|
| 168 | |
|---|
| 169 | /* I_SYS_RESOURCE: |
|---|
| 170 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 171 | * include <sys/resource.h>. |
|---|
| 172 | */ |
|---|
| 173 | |
|---|
| 174 | |
|---|
| 175 | /* I_SYS_SELECT: |
|---|
| 176 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 177 | * include <sys/select.h> in order to get definition of struct timeval. |
|---|
| 178 | */ |
|---|
| 179 | |
|---|
| 180 | |
|---|
| 181 | /* I_SYS_TYPES: |
|---|
| 182 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 183 | * include <sys/types.h>. |
|---|
| 184 | */ |
|---|
| 185 | |
|---|
| 186 | |
|---|
| 187 | /* I_SYS_WAIT: |
|---|
| 188 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 189 | * include <sys/wait.h>. |
|---|
| 190 | */ |
|---|
| 191 | |
|---|
| 192 | |
|---|
| 193 | /* I_SYS_TIME: |
|---|
| 194 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 195 | * include <sys/time.h>. |
|---|
| 196 | */ |
|---|
| 197 | |
|---|
| 198 | |
|---|
| 199 | /* I_UNISTD: |
|---|
| 200 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 201 | * include <unistd.h>. |
|---|
| 202 | */ |
|---|
| 203 | |
|---|
| 204 | |
|---|
| 205 | /* I_STDARG: |
|---|
| 206 | * This symbol, if defined, indicates that <stdarg.h> exists and should |
|---|
| 207 | * be included. |
|---|
| 208 | */ |
|---|
| 209 | |
|---|
| 210 | |
|---|
| 211 | /* Malloc_t: |
|---|
| 212 | * This symbol is the type of pointer returned by malloc and realloc. |
|---|
| 213 | */ |
|---|
| 214 | |
|---|
| 215 | |
|---|
| 216 | /* CAN_PROTOTYPE: |
|---|
| 217 | * If defined, this macro indicates that the C compiler can handle |
|---|
| 218 | * function prototypes. |
|---|
| 219 | */ |
|---|
| 220 | /* _: |
|---|
| 221 | * This macro is used to declare function parameters for folks who want |
|---|
| 222 | * to make declarations with prototypes using a different style than |
|---|
| 223 | * the above macros. Use double parentheses. For example: |
|---|
| 224 | * |
|---|
| 225 | * int main _((int argc, char *argv[])); |
|---|
| 226 | */ |
|---|
| 227 | |
|---|
| 228 | |
|---|
| 229 | |
|---|
| 230 | |
|---|
| 231 | |
|---|
| 232 | |
|---|
| 233 | |
|---|
| 234 | /* Size_t: |
|---|
| 235 | * This symbol holds the type used to declare length parameters |
|---|
| 236 | * for string functions. It is usually size_t, but may be |
|---|
| 237 | * unsigned long, int, etc. It may be necessary to include |
|---|
| 238 | * <sys/types.h> to get any typedef'ed information. |
|---|
| 239 | */ |
|---|
| 240 | |
|---|
| 241 | |
|---|
| 242 | /* VOIDFLAGS: |
|---|
| 243 | * This symbol indicates how much support of the void type is given by this |
|---|
| 244 | * compiler. What various bits mean: |
|---|
| 245 | * |
|---|
| 246 | * 1 = supports declaration of void |
|---|
| 247 | * 2 = supports arrays of pointers to functions returning void |
|---|
| 248 | * 4 = supports comparisons between pointers to void functions and |
|---|
| 249 | * addresses of void functions |
|---|
| 250 | * 8 = suports declaration of generic void pointers |
|---|
| 251 | * |
|---|
| 252 | * The package designer should define VOIDUSED to indicate the requirements |
|---|
| 253 | * of the package. This can be done either by |
|---|
| 254 | * including config.h, or by defining defvoidused in Myinit.U. If the |
|---|
| 255 | * latter approach is taken, only those flags will be tested. If the |
|---|
| 256 | * level of void support necessary is not present, defines void to int. |
|---|
| 257 | */ |
|---|
| 258 | |
|---|
| 259 | |
|---|
| 260 | |
|---|
| 261 | |
|---|
| 262 | |
|---|
| 263 | |
|---|
| 264 | |
|---|
| 265 | |
|---|
| 266 | |
|---|
| 267 | /* HAS_CRYPT: |
|---|
| 268 | * This symbol, if defined, indicates that the crypt routine is available |
|---|
| 269 | * to encrypt passwords and the like. |
|---|
| 270 | */ |
|---|
| 271 | |
|---|
| 272 | |
|---|
| 273 | /* HAS_IEEE_MATH: |
|---|
| 274 | * Defined if the machine supports IEEE math - that is, can safely |
|---|
| 275 | * return NaN or Inf rather than crash on bad math. |
|---|
| 276 | */ |
|---|
| 277 | |
|---|
| 278 | |
|---|
| 279 | /* SIGNALS_KEPT: |
|---|
| 280 | * This symbol is defined if signal handlers needn't be reinstated after |
|---|
| 281 | * receipt of a signal. |
|---|
| 282 | */ |
|---|
| 283 | |
|---|
| 284 | |
|---|
| 285 | /* HAS_MEMCPY: |
|---|
| 286 | * This symbol, if defined, indicates that the memcpy routine is available |
|---|
| 287 | * to copy blocks of memory. If not, it will be mapped to bcopy |
|---|
| 288 | * in confmagic.h |
|---|
| 289 | */ |
|---|
| 290 | |
|---|
| 291 | |
|---|
| 292 | /* CAN_NEWSTYLE: |
|---|
| 293 | * Defined if new-style functions definitions are allowable. |
|---|
| 294 | * If they are, we can avoid some warnings that you get if |
|---|
| 295 | * you declare char arguments in a prototype and use old-style |
|---|
| 296 | * function definitions, which implicitly promote them to ints. |
|---|
| 297 | */ |
|---|
| 298 | |
|---|
| 299 | |
|---|
| 300 | /* HAS_RANDOM: |
|---|
| 301 | * Have we got random(), our first choice for number generation. |
|---|
| 302 | */ |
|---|
| 303 | /* HAS_LRAND48: |
|---|
| 304 | * Have we got lrand48(), our second choice. |
|---|
| 305 | */ |
|---|
| 306 | /* HAS_RAND: |
|---|
| 307 | * Have we got rand(), our last choice. |
|---|
| 308 | */ |
|---|
| 309 | |
|---|
| 310 | |
|---|
| 311 | |
|---|
| 312 | |
|---|
| 313 | /* HAS_GETRLIMIT: |
|---|
| 314 | * This symbol, if defined, indicates that the getrlimit() routine is |
|---|
| 315 | * available to get resource limits. Probably means setrlimit too. |
|---|
| 316 | * Inclusion of <sys/resource.h> and <sys/time.h> may be necessary. |
|---|
| 317 | */ |
|---|
| 318 | |
|---|
| 319 | |
|---|
| 320 | /* HAS_STRCHR: |
|---|
| 321 | * This symbol is defined to indicate that the strchr()/strrchr() |
|---|
| 322 | * functions are available for string searching. If not, try the |
|---|
| 323 | * index()/rindex() pair. |
|---|
| 324 | */ |
|---|
| 325 | /* HAS_INDEX: |
|---|
| 326 | * This symbol is defined to indicate that the index()/rindex() |
|---|
| 327 | * functions are available for string searching. |
|---|
| 328 | */ |
|---|
| 329 | |
|---|
| 330 | |
|---|
| 331 | |
|---|
| 332 | /* HAS_TIMELOCAL: |
|---|
| 333 | * This symbol, if defined, indicates that the timelocal() routine is |
|---|
| 334 | * available. |
|---|
| 335 | */ |
|---|
| 336 | |
|---|
| 337 | |
|---|
| 338 | /* HAS_SAFE_TOUPPER: |
|---|
| 339 | * Defined if toupper() can operate safely on any ascii character. |
|---|
| 340 | * Some systems only allow toupper() on lower-case ascii chars. |
|---|
| 341 | */ |
|---|
| 342 | |
|---|
| 343 | |
|---|
| 344 | /* UPTIME_PATH: |
|---|
| 345 | * This symbol gives the full path to the uptime(1) program if |
|---|
| 346 | * it exists on the system. If not, this symbol is undefined. |
|---|
| 347 | */ |
|---|
| 348 | /* HAS_UPTIME: |
|---|
| 349 | * This symbol is defined if uptime(1) is available. |
|---|
| 350 | */ |
|---|
| 351 | |
|---|
| 352 | |
|---|
| 353 | |
|---|
| 354 | /* Free_t: |
|---|
| 355 | * This symbol is the type returned by free. |
|---|
| 356 | */ |
|---|
| 357 | /* INT_FREE: |
|---|
| 358 | * This symbol is defined if free(3) should return an int instead |
|---|
| 359 | * of void (like Sun's cc). |
|---|
| 360 | */ |
|---|
| 361 | |
|---|
| 362 | |
|---|
| 363 | |
|---|
| 364 | /* I_SYS_VLIMIT: |
|---|
| 365 | * This symbol, if defined, indicates to the C program that it should |
|---|
| 366 | * include <sys/vlimit.h>. |
|---|
| 367 | */ |
|---|
| 368 | |
|---|
| 369 | |
|---|
| 370 | |
|---|
| 371 | !GROK!THIS! |
|---|