home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Unix / Shells / tcsh / Source / config / config.mac2 < prev    next >
Encoding:
Text File  |  1994-02-21  |  3.4 KB  |  140 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.  * For A/UX < 2.00 you can undefine POSIX and POSIXJOBS, delete
  12.  * -ZP in CFLAGS and -lposix  in LIBES
  13.  */
  14. /*
  15.  * POSIX    This system supports IEEE Std 1003.1-1988 (POSIX).
  16.  */
  17. #define POSIX
  18. #define _POSIX_SOURCE
  19.  
  20. /*
  21.  * POSIXJOBS    This system supports the optional IEEE Std 1003.1-1988 (POSIX)
  22.  *        job control facilities.
  23.  */
  24. #define POSIXJOBS
  25.  
  26. /*
  27.  * POSIXSIGS    Use the POSIX signal facilities to emulate BSD signals.
  28.  */
  29. #undef POSIXSIGS
  30.  
  31. /*
  32.  * VFORK    This machine has a vfork().  
  33.  *        It used to be that for job control to work, this define
  34.  *        was mandatory. This is not the case any more.
  35.  *        If you think you still need it, but you don't have vfork, 
  36.  *        define this anyway and then do #define vfork fork.  
  37.  *        I do this anyway on a Sun because of yellow pages brain damage,
  38.  *        [should not be needed under 4.1]
  39.  *        and on the iris4d cause    SGI's fork is sufficiently "virtual" 
  40.  *        that vfork isn't necessary.  (Besides, SGI's vfork is weird).
  41.  *        Note that some machines eg. rs6000 have a vfork, but not
  42.  *        with the berkeley semantics, so we cannot use it there either.
  43.  */
  44. #undef VFORK
  45.  
  46. /*
  47.  * BSDJOBS    You have BSD-style job control (both process groups and
  48.  *        a tty that deals correctly
  49.  */
  50. #define BSDJOBS
  51.  
  52. /*
  53.  * BSDSIGS    You have 4.2-style signals, rather than USG style.
  54.  *        Note: POSIX systems should not define this unless they
  55.  *        have sigvec() and friends (ie: 4.3BSD-RENO, HP-UX).
  56.  */
  57. #define BSDSIGS
  58.  
  59. /*
  60.  * BSDTIMES    You have BSD-style process time stuff (like rusage)
  61.  *        This may or may not be true.  For example, Apple Unix
  62.  *        (OREO) has BSDJOBS and BSDSIGS but not BSDTIMES.
  63.  */
  64. #undef BSDTIMES
  65.  
  66. /*
  67.  * BSDLIMIT    You have BSD-style resource limit stuff (getrlimit/setrlimit)
  68.  */
  69. #undef BSDLIMIT
  70.  
  71. /*
  72.  * BSDNICE    Your system uses setpriority() instead of nice, to
  73.  *        change a processes scheduling priority
  74.  */
  75. #undef BSDNICE
  76.  
  77. /*
  78.  * TERMIO    You have struct termio instead of struct sgttyb.
  79.  *         This is usually the case for SYSV systems, where
  80.  *        BSD uses sgttyb. POSIX systems should define this
  81.  *        anyway, even though they use struct termios.
  82.  */
  83. #define TERMIO
  84.  
  85. /*
  86.  * SYSVREL    Your machine is SYSV based (HPUX, A/UX)
  87.  *        NOTE: don't do this if you are on a Pyramid -- tcsh is
  88.  *        built in a BSD universe.
  89.  *        Set SYSVREL to 1, 2, 3, or 4, depending the version of System V
  90.  *        you are running. Or set it to 0 if you are not SYSV based
  91.  */
  92. #define SYSVREL    2
  93.  
  94. /*
  95.  * YPBUGS    Work around Sun YP bugs that cause expansion of ~username
  96.  *        to send command output to /dev/null
  97.  */
  98. #undef YPBUGS
  99.  
  100. /*
  101.  * SIGVOID    Define this if your signal handlers return void.  On older
  102.  *        systems, signal returns int, but on newer ones, it returns void.
  103.  */
  104. #define SIGVOID 
  105.  
  106. /*
  107.  * HAVEDUP2    Define this if your system supports dup2().
  108.  */
  109. #define HAVEDUP2
  110.  
  111. /*
  112.  * UTHOST    Does the utmp file have a host field?
  113.  */
  114. #define UTHOST
  115.  
  116. /*
  117.  * DIRENT    Your system has <dirent.h> instead of <sys/dir.h>
  118.  */
  119. #define DIRENT
  120. /***************** local defines *********************/
  121. /*
  122.  * OREO        You are running Apple Unix.
  123.  */
  124. #define OREO
  125.  
  126. #ifndef _BSD_SOURCE
  127. # define _BSD_SOURCE
  128. #endif /* _BSD_SOURCE */
  129. #ifndef _SYSV_SOURCE
  130. # define _SYSV_SOURCE
  131. #endif /* _SYSV_SOURCE */
  132.  
  133. #define NOSTRCOLL
  134.  
  135. /****************** configurable hacks ****************/
  136. /* have been moved to config_f.h */
  137. #include "config_f.h"
  138.  
  139. #undef NLS
  140.