home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / tcsh / Source / config / config.sequent < prev    next >
Encoding:
Text File  |  1994-02-21  |  4.2 KB  |  180 lines

  1. /*
  2.  * config.h -- configure various defines for tcsh
  3.  *
  4.  * All source files should #include this FIRST.
  5.  *
  6.  * Edit this to match your system type.
  7.  */
  8.  
  9. /****************** System dependant compilation flags ****************/
  10. /*
  11.  * POSIX    This system supports IEEE Std 1003.1-1988 (POSIX).
  12.  */
  13. #ifdef _SEQUENT_
  14. # define POSIX
  15. #else /* _SEQUENT_ */
  16. # undef POSIX
  17. #endif /* _SEQUENT_ */
  18.  
  19. /*
  20.  * POSIXJOBS    This system supports the optional IEEE Std 1003.1-1988 (POSIX)
  21.  *        job control facilities.
  22.  */
  23. #ifdef _SEQUENT_
  24. # define POSIXJOBS
  25. #else /* _SEQUENT_ */
  26. # undef POSIXJOBS
  27. #endif /* _SEQUENT_ */
  28.  
  29. /*
  30.  * POSIXSIGS    Use the POSIX signal facilities to emulate BSD signals.
  31.  */
  32. #ifdef _SEQUENT_
  33. # define POSIXSIGS
  34. #else /* _SEQUENT_ */
  35. # undef POSIXSIGS
  36. #endif /* _SEQUENT_ */
  37.  
  38. /*
  39.  * VFORK    This machine has a vfork().  
  40.  *        It used to be that for job control to work, this define
  41.  *        was mandatory. This is not the case any more.
  42.  *        If you think you still need it, but you don't have vfork, 
  43.  *        define this anyway and then do #define vfork fork.  
  44.  *        I do this anyway on a Sun because of yellow pages brain damage,
  45.  *        [should not be needed under 4.1]
  46.  *        and on the iris4d cause    SGI's fork is sufficiently "virtual" 
  47.  *        that vfork isn't necessary.  (Besides, SGI's vfork is weird).
  48.  *        Note that some machines eg. rs6000 have a vfork, but not
  49.  *        with the berkeley semantics, so we cannot use it there either.
  50.  */
  51. #define VFORK
  52.  
  53. /*
  54.  * BSDJOBS    You have BSD-style job control (both process groups and
  55.  *        a tty that deals correctly
  56.  */
  57. #define BSDJOBS
  58.  
  59. /*
  60.  * BSDSIGS    You have 4.2-style signals, rather than USG style.
  61.  *        Note: POSIX systems should not define this unless they
  62.  *        have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
  63.  */
  64. #define BSDSIGS
  65.  
  66. /*
  67.  * BSDTIMES    You have BSD-style process time stuff (like rusage)
  68.  *        This may or may not be true.  For example, Apple Unix
  69.  *        (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
  70.  */
  71. #ifdef _SEQUENT_
  72. # undef BSDTIMES
  73. #else /* _SEQUENT_ */
  74. # define BSDTIMES
  75. #endif /* _SEQUENT_ */
  76.  
  77. /*
  78.  * BSDLIMIT    You have BSD-style resource limit stuff (getrlimit/setrlimit)
  79.  */
  80. #ifdef _SEQUENT_
  81. # undef BSDLIMIT
  82. #else /* _SEQUENT_ */
  83. # define BSDLIMIT
  84. #endif /* _SEQUENT_ */
  85.  
  86. /*
  87.  * BSDNICE    Your system uses setpriority() instead of nice, to
  88.  *        change a processes scheduling priority
  89.  */
  90. #ifdef _SEQUENT_
  91. # undef BSDNICE
  92. #else /* _SEQUENT_ */
  93. # define BSDNICE
  94. #endif /* _SEQUENT_ */
  95.  
  96. /*
  97.  * TERMIO    You have struct termio instead of struct sgttyb.
  98.  *         This is usually the case for SYSV systems, where
  99.  *        BSD uses sgttyb. POSIX systems should define this
  100.  *        anyway, even though they use struct termios.
  101.  */
  102. #ifdef _SEQUENT_
  103. # define TERMIO
  104. #else /* _SEQUENT_ */
  105. # undef TERMIO
  106. #endif /* _SEQUENT_ */
  107.  
  108. /*
  109.  * SYSVREL    Your machine is SYSV based (HPUX, A/UX)
  110.  *        NOTE: don't do this if you are on a Pyramid -- tcsh is
  111.  *        built in a BSD universe.
  112.  *        Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
  113.  *        you are running. Or set it to 0 if you are not SYSV based
  114.  */
  115. #ifdef _SEQUENT_
  116. # define SYSVREL    4
  117. #else /* _SEQUENT_ */
  118. # define SYSVREL    0
  119. #endif /* _SEQUENT_ */
  120.  
  121. /*
  122.  * YPBUGS    Work around Sun YP bugs that cause expansion of ~username
  123.  *        to send command output to /dev/null
  124.  *        This is fixed in sunos 4.1, broken in 4.0..
  125.  */
  126. #ifdef _SEQUENT_
  127. # undef YPBUGS
  128. #else /* _SEQUENT_ */
  129. # define YPBUGS
  130. #endif /* _SEQUENT_ */
  131.   
  132. /*
  133.  * SIGVOID    Define this if your signal handlers return void.  On older
  134.  *        systems, signal returns int, but on newer ones, it returns void.
  135.  */
  136. #ifdef _SEQUENT_
  137. # define SIGVOID 
  138. #else /* _SEQUENT_ */
  139. # undef SIGVOID 
  140. #endif /* _SEQUENT_ */
  141.  
  142. /*
  143.  * HAVEDUP2    Define this if your system supports dup2().
  144.  */
  145. #define HAVEDUP2
  146.  
  147. /*
  148.  * UTHOST    Does the utmp file have a host field?
  149.  */
  150. #define UTHOST
  151.  
  152. /*
  153.  * DIRENT    Your system has <dirent.h> instead of <sys/dir.h>
  154.  */
  155. #ifdef _SEQUENT_
  156. #define DIRENT
  157. #else /* _SEQUENT_ */
  158. #undef DIRENT
  159. #endif /* _SEQUENT_ */
  160.  
  161. /*
  162.  * BSD    Your system has <strings.h> instead of <string.h>
  163.  */
  164. #ifdef _SEQUENT_
  165. #undef BSD
  166. #else /* _SEQUENT_ */
  167. #define BSD
  168. #endif /* _SEQUENT_ */
  169.  
  170. /****************** local defines *********************/
  171. /****************** configurable hacks ****************/
  172. /* have been moved to config_f.h */
  173. #include "config_f.h"
  174.  
  175. #ifdef _SEQUENT_
  176. #define NAMEI_BUG
  177. #else /* _SEQUENT_ */
  178. #undef NLS
  179. #endif /* _SEQUENT_ */
  180.