home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / news / nn.tar / nn-6.5.1 / conf / s-ix386.h < prev    next >
C/C++ Source or Header  |  1995-04-29  |  2KB  |  75 lines

  1. /*
  2.  *    For ISC 386/ix 2.0.x (also Dell UNIX 1.x).
  3.  *    With tweaks for Host Based TCP/IP (1.1, 1.2)
  4.  *    From: Jeremy Chatfield (jdc@dell.dell.com) May 27, 90.
  5.  */
  6.  
  7. /*
  8.  *    Define if your system has a 4.3BSD like syslog library.
  9.  *
  10.  *    Host Based TCP/IP includes syslog (check /etc/syslog.conf for
  11.  *    message routings). jdc.
  12.  */
  13.  
  14. #define HAVE_SYSLOG
  15.  
  16. /*
  17.  *    ISC 386/ix is extraordinarily like System 5 :-) jdc.
  18.  */
  19.  
  20. #include "s-sys5.h"
  21.  
  22. /*
  23.  *    If we have defined RESIZING in config.h, make sure that we
  24.  *    use the SV resizing (to include ptem.h, etc). jdc.
  25.  */
  26.  
  27. #define SYSV_RESIZING
  28.  
  29. /*
  30.  *    Define AVOID_SHELL_EXEC if the system gets confused by
  31.  *        #!/bin/sh
  32.  *    lines in shell scripts, e.g. only reads #! and thinks it
  33.  *    is a csh script.
  34.  *
  35.  *    I've seen some funnies , but it may be just be me... jdc.
  36.  */
  37.  
  38. #define AVOID_SHELL_EXEC
  39.  
  40. /*
  41.  *    Uses malloc.h
  42.  *    Values tuned slightly for ix386
  43.  */
  44.  
  45. #define USE_MALLOC_H
  46. #define MALLOC_MAXFAST        (4 * sizeof(double))
  47. #define MALLOC_FASTBLOCKS    128
  48. #define MALLOC_GRAIN        sizeof(double)
  49.  
  50. /*
  51.  *    If your system requires other libraries when linking nn
  52.  *    specify them here:
  53.  *
  54.  *    -lmalloc    Adds better malloc
  55.  *    -linet        Essential for HB TCP/IP use (NNTP requires use)
  56.  *    -lc_s        Standard C shared library.  (Useful, not essential)
  57.  */
  58.  
  59. #if defined(NNTP) || defined (HAVE_SYSLOG)
  60. #define EXTRA_LIB    -linet -lmalloc -lc_s
  61. #else
  62. #define EXTRA_LIB    -lmalloc -lc_s
  63. #endif
  64.  
  65. /*
  66.  *    There is a rename() function in -linet, but it is broken.
  67.  *
  68.  *    If you don't have nn 6.4 patch level 4 or higher, NO_RENAME is not
  69.  *    recognized.  Instead, you will need to fix nntp.c, around line 722:
  70.  *    Change "if (rename..."     to "if (unlink(news_active), rename..."
  71.  *    But save a copy of the original nntp.c to be able to apply patch 4.
  72.  */
  73.  
  74. #define NO_RENAME
  75.