home *** CD-ROM | disk | FTP | other *** search
/ Resource Library: Graphics / graphics-16000.iso / msdos / raytrace / rayshade / etc / rsconver / config.h < prev    next >
Text File  |  1992-04-30  |  6KB  |  193 lines

  1. /* config.h
  2.  * This file was produced by running the config.h.SH script, which
  3.  * gets its values from config.sh, which is generally produced by
  4.  * running Configure.
  5.  *
  6.  * Feel free to modify any of this as the need arises.  Note, however,
  7.  * that running config.h.SH again will wipe out any changes you've made.
  8.  * For a more permanent change edit config.sh and rerun config.h.SH.
  9.  */
  10.  
  11.  
  12. /* EUNICE:
  13.  *    This symbol, if defined, indicates that the program is being compiled
  14.  *    under the EUNICE package under VMS.  The program will need to handle
  15.  *    things like files that don't go away the first time you unlink them,
  16.  *    due to version numbering.  It will also need to compensate for lack
  17.  *    of a respectable link() command.
  18.  */
  19. /* VMS:
  20.  *    This symbol, if defined, indicates that the program is running under
  21.  *    VMS.  It is currently only set in conjunction with the EUNICE symbol.
  22.  */
  23. /* XENIX:
  24.  *    This symbol, if defined, indicates thet the program is running under
  25.  *    Xenix (at least 3.0 ?).
  26.  */
  27. /* BSD:
  28.  *    This symbol, if defined, indicates that the program is running under
  29.  *    a BSD system.
  30.  */
  31. /*#undef EUNICE        */
  32. /*#undef VMS        */
  33. /*#undef XENIX        */
  34. #define BSD        /**/
  35.  
  36. /* CPPSTDIN:
  37.  *    This symbol contains the first part of the string which will invoke
  38.  *    the C preprocessor on the standard input and produce to standard
  39.  *    output.     Typical value of "cc -E" or "/lib/cpp".
  40.  */
  41. /* CPPMINUS:
  42.  *    This symbol contains the second part of the string which will invoke
  43.  *    the C preprocessor on the standard input and produce to standard
  44.  *    output.  This symbol will have the value "-" if CPPSTDIN needs a minus
  45.  *    to specify standard input, otherwise the value is "".
  46.  */
  47. #define CPPSTDIN "/usr/lib/cpp"
  48. #define CPPMINUS ""
  49.  
  50. /* bzero:
  51.  *    This symbol is maped to memset if the  bzero() routine is not
  52.  *    available to set memory to 0.
  53.  */
  54. /*#undef    bzero(s,l)    memset((s),0,(l)) */
  55. #define bzero(s,l)    memset((s),0,(l))
  56.  
  57. /* CBRT:
  58.  *    This symbol, if defined, indicates that the cbrt() (cube root)
  59.  *    function is available.
  60.  */
  61. /*#define    CBRT        */
  62.  
  63. /* index:
  64.  *    This preprocessor symbol is defined, along with rindex, if the system
  65.  *    uses the strchr and strrchr routines instead.
  66.  */
  67. /* rindex:
  68.  *    This preprocessor symbol is defined, along with index, if the system
  69.  *    uses the strchr and strrchr routines instead.
  70.  */
  71. #define    index strchr    /* cultural */
  72. #define    rindex strrchr    /*  differences? */
  73.  
  74. /* MEMSET:
  75.  *    This symbol, if defined, indicates that the memset routine is available
  76.  *    to set blocks of memory. You should always use bzero() instead of
  77.  *    memset() because bzero is remaped to memset if necessary. This means
  78.  *    that a memset() routine must be provided in case MEMSET is not defined
  79.  *    and no bzero() is found.
  80.  */
  81. #define    MEMSET        /**/
  82.  
  83. /* POPEN:
  84.  *    This symbol, if defined, indicates that the popen routine is
  85.  *    available to open a pipe from a process.
  86.  */
  87. /*#define POPEN        */
  88.  
  89. /* RUSAGE:
  90.  *    This symbol, if defined, indicates that the getrusage() routine exists.
  91.  *    Inclusion of <sys/resource.h> and <sys/time.h> may be necessary.
  92.  */
  93. /*#define    RUSAGE        */
  94.  
  95. /* TIMES:
  96.  *    This symbol, if defined, indicates that the times() routine exists.
  97.  *    Note that this became obsolete on some systems (SUNOS), which now
  98.  * use getrusage().
  99.  */
  100. /* CLOCKTYPE:
  101.  *    This symbol holds the type returned by times(). It can be long,
  102.  *    or clock_t on BSD sites (in which case <sys/types.h> should be
  103.  *    included). Moreover, the Clock_t symbol is defined in common.h
  104.  *    and should be used for easy clean reference.
  105.  */
  106. #define TIMES        /**/
  107. #define CLOCKTYPE long        /**/
  108.  
  109. /* I_STRING:
  110.  *    This symbol, if defined, indicates to the C program that it should
  111.  *    include <string.h> (USG systems) instead of <strings.h> (BSD systems).
  112.  */
  113. #define I_STRING        /**/
  114.  
  115. /* I_SYSRESOURCE:
  116.  *    This symbol, if defined, indicates to the C program that it should
  117.  *    include <sys/resource.h>.
  118.  */
  119. #define    I_SYSRESOURCE        /**/
  120.  
  121. /* I_SYSTYPES:
  122.  *    This symbol, if defined, indicates to the C program that it should
  123.  *    include <sys/types.h>.
  124.  */
  125. #define    I_SYSTYPES        /**/
  126.  
  127. /* I_TIME:
  128.  *    This symbol, if defined, indicates to the C program that it should
  129.  *    include <time.h>.
  130.  */
  131. /* I_SYSTIME:
  132.  *    This symbol, if defined, indicates to the C program that it should
  133.  *    include <sys/time.h>.
  134.  */
  135. /* I_SYSTIMEKERNEL:
  136.  *    This symbol, if defined, indicates to the C program that it should
  137.  *    include <sys/time.h> with KERNEL defined.
  138.  */
  139. /*#undef I_TIME            */
  140. #define I_SYSTIME        /**/
  141. /*#undef I_SYSTIMEKERNEL    */
  142.  
  143. /* nrand:
  144.  *    This macro is to be used to generate uniformly distributed
  145.  *    random numbers over the range [0., 1.].
  146.  */
  147. /* seednrand:
  148.  *    This symbol defines the macro to be used in seeding the
  149.  *    random number generator (see nrand).
  150.  */
  151. #define nrand()        ((double)rand()/(double)RAND_MAX)
  152. #define seednrand(x)        srand(x*RAND_MAX)
  153. /*#define nrand()        drand48()        */
  154. /*#define seednrand(x)    srand48(x)            */
  155.  
  156. /* VOIDFLAGS:
  157.  *    This symbol indicates how much support of the void type is given by this
  158.  *    compiler.  What various bits mean:
  159.  *
  160.  *        1 = supports declaration of void
  161.  *        2 = supports arrays of pointers to functions returning void
  162.  *        4 = supports comparisons between pointers to void functions and
  163.  *            addresses of void functions
  164.  *        8 = suports declaration of generic void pointers
  165.  *
  166.  *    The package designer should define VOIDUSED to indicate the requirements
  167.  *    of the package.  This can be done either by #defining VOIDUSED before
  168.  *    including config.h, or by defining defvoidused in Myinit.U.  If the
  169.  *    latter approach is taken, only those flags will be tested.  If the
  170.  *    level of void support necessary is not present, defines void to int.
  171.  */
  172. #ifndef VOIDUSED
  173. #define VOIDUSED 11
  174. #endif
  175. #define VOIDFLAGS 11
  176. #if (VOIDFLAGS & VOIDUSED) != VOIDUSED
  177. #define void int        /* is void to be avoided? */
  178. #define M_VOID        /* Xenix strikes again */
  179. #endif
  180.  
  181. /* URT:
  182.  *     This symbol, if defined, indicates that the Utah Raster
  183.  *    Toolkit is being used.
  184.  */
  185. /*#define       URT          */
  186.  
  187. /* I_VARARGS:
  188.  *    This symbol, if defined, indicates to the C program that it should
  189.  *    include <stdlib.h>.
  190.  */
  191. #define I_STDLIB        /**/
  192.  
  193.