home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / pdksh-4.9-src.tgz / tar.out / contrib / pdksh / sh / config.h.in < prev    next >
Text File  |  1996-09-28  |  2KB  |  68 lines

  1. /*
  2.  * Configuration file for the PD ksh
  3.  *
  4.  * RCSid: $Id: config.h,v 1.7 93/05/05 21:16:20 sjg Exp $
  5.  */
  6.  
  7. #ifndef    _CONFIG_H
  8. #define    _CONFIG_H
  9.  
  10. /*
  11.  * Builtin edit modes
  12.  */
  13.  
  14. #define    EMACS                /* EMACS-like mode */
  15. #define    VI                /* vi-like mode */
  16. #define    JOBS                /* job control */
  17.  
  18. #ifndef SIGINT
  19. #include <signal.h>
  20. #endif
  21.  
  22. /*
  23.  * leave USE_SIGACT defined.
  24.  * if you don't have sigaction(2) and the
  25.  * implementation in sigact.c doesn't work for your system,
  26.  * fix it.
  27.  * 
  28.  * Of course if your system has a real sigaction() 
  29.  * implementation that is faulty! undef JOBS and add USE_SIGNAL
  30.  * or whatever does work.  You may find it necessary to undef
  31.  * USE_SIGACT, if so please report it.
  32.  */
  33. #define USE_SIGACT            /* POSIX signal handling */
  34. /* 
  35.  * These control how sigact.c implements sigaction()
  36.  * If you don't define any of them it will try and work it out 
  37.  * for itself.  The are listed in order of preference (usefulness).
  38.  */
  39. /* #define USE_SIGMASK            /* BSD4.2 ? signal handling */
  40. /* #define USE_SIGSET            /* BSD4.1 ? signal handling */
  41. /* #define USE_SIGNAL            /* plain old signal(2) */
  42.  
  43. #if defined(JOBS) && (!defined(SIGCONT) || (defined(_SYSV) && defined(USE_SIGNAL)))
  44. #undef JOBS
  45. #endif
  46.  
  47. /* #define    FASCIST            /* Fascist getopts */
  48. /* #define    SHARPBANG        /* Hack to handle #! */
  49. /* #define    SILLY            /* Game of life in EMACS mode */
  50. /* #define    SWTCH            /* Handle SWTCH for shl(1) */
  51.  
  52.  
  53. /*
  54.  * ALTERNATIONS is csh not ksh, but it is such a nice feature...
  55.  */
  56. #define ALTERNATIONS            /* csh {a,b,c} arg expansion */
  57.  
  58. /* #define COMPLEX_HISTORY            /* Peter Collinson's history */
  59. /*
  60.  * if you don't have mmap() you can't use Peter Collinson's history
  61.  * mechanism.  If that is the case, then define EASY_HISTORY
  62.  */
  63. #if !defined(COMPLEX_HISTORY) || defined(NO_MMAP)
  64. # define EASY_HISTORY            /* sjg's trivial history file */
  65. #endif
  66.   
  67. #endif    /* _CONFIG_H */
  68.