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