home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume27 / mthreads / part01 / config.h.SH < prev    next >
Encoding:
Text File  |  1993-11-20  |  6.6 KB  |  240 lines

  1. case $CONFIG in
  2. '') . ./config.sh ;;
  3. esac
  4. case "$0" in
  5. */*) cd `expr X$0 : 'X\(.*\)/'` ;;
  6. esac
  7. echo "Extracting config.h (with variable substitutions)"
  8. sed <<!GROK!THIS! >config.h -e 's!^#undef!/\*#define!'
  9. /*
  10.  * This file was produced by running the config.h.SH script, which
  11.  * gets its values from config.sh, which is generally produced by
  12.  * running Configure.
  13.  *
  14.  * Feel free to modify any of this as the need arises.  Note, however,
  15.  * that running config.h.SH again will wipe out any changes you've made.
  16.  * For a more permanent change edit config.sh and rerun config.h.SH.
  17.  *
  18.  * \$Id: Config_h.U,v 3.0.1.2 1993/08/24 12:13:20 ram Exp $
  19.  */
  20.  
  21. /* Configuration time: $cf_time
  22.  * Configured by: $cf_by
  23.  * Target system: $myuname
  24.  */
  25.  
  26. #ifndef _config_h_
  27. #define _config_h_
  28.  
  29. /* EUNICE:
  30.  *    This symbol, if defined, indicates that the program is being compiled
  31.  *    under the EUNICE package under VMS.  The program will need to handle
  32.  *    things like files that don't go away the first time you unlink them,
  33.  *    due to version numbering.  It will also need to compensate for lack
  34.  *    of a respectable link() command.
  35.  */
  36. #$d_eunice EUNICE        /**/
  37.  
  38. /* HAS_CHSIZE:
  39.  *    This symbol, if defined, indicates that the chsize routine is available
  40.  *    to truncate files.  You might need a -lx to get this routine.
  41.  */
  42. #$d_chsize    HAS_CHSIZE        /**/
  43.  
  44. /* HAS_FTRUNCATE:
  45.  *    This symbol, if defined, indicates that the ftruncate() subroutine
  46.  *    exists.
  47.  */
  48. #$d_ftrncate HAS_FTRUNCATE    /**/
  49.  
  50. /* HAS_MEMCMP:
  51.  *    This symbol, if defined, indicates that the memcmp routine is available
  52.  *    to compare blocks of memory.
  53.  */
  54. #$d_memcmp HAS_MEMCMP    /**/
  55.  
  56. /* HAS_MEMCPY:
  57.  *    This symbol, if defined, indicates that the memcpy routine is available
  58.  *    to copy blocks of memory.
  59.  */
  60. #$d_memcpy HAS_MEMCPY    /**/
  61.  
  62. /* HAS_MEMSET:
  63.  *    This symbol, if defined, indicates that the memset routine is available
  64.  *    to set blocks of memory.
  65.  */
  66. #$d_memset HAS_MEMSET    /**/
  67.  
  68. /* NORMSIG:
  69.  *    This symbol, if defined, indicates that normal signal handling routines
  70.  *    should be used, as opposed to the ones in 4.1bsd (sigset, etc.).
  71.  */
  72. #$d_normsig NORMSIG        /**/
  73.  
  74. /* HAS_RENAME:
  75.  *    This symbol, if defined, indicates that the rename routine is available
  76.  *    to rename files.  Otherwise you should do the unlink(), link(), unlink()
  77.  *    trick.
  78.  */
  79. #$d_rename HAS_RENAME    /**/
  80.  
  81. /* HAS_SIGHOLD:
  82.  *    This symbol, if defined, indicates that the sighold routine is
  83.  *    available to hold signals.
  84.  */
  85. #$d_sighold HAS_SIGHOLD    /**/
  86.  
  87. /* HAS_STRCHR:
  88.  *    This symbol is defined to indicate that the strchr()/strrchr()
  89.  *    functions are available for string searching. If not, try the
  90.  *    index()/rindex() pair.
  91.  */
  92. #$d_strchr HAS_STRCHR    /**/
  93.  
  94. /* HAS_USLEEP:
  95.  *    This symbol, if defined, indicates that the usleep routine is
  96.  *    available to let the process sleep on a sub-second accuracy.
  97.  */
  98. #$d_usleep HAS_USLEEP        /**/
  99.  
  100. /* HAS_VFORK:
  101.  *    This symbol, if defined, indicates that vfork() exists.
  102.  */
  103. #$d_vfork HAS_VFORK    /**/
  104.  
  105. /* Signal_t:
  106.  *    This symbol's value is either "void" or "int", corresponding to the
  107.  *    appropriate return type of a signal handler.  Thus, you can declare
  108.  *    a signal handler using "Signal_t (*handler)()", and define the
  109.  *    handler using "Signal_t handler(sig)".
  110.  */
  111. #define Signal_t $signal_t    /* Signal handler's return type */
  112.  
  113. /* I_DIRENT:
  114.  *    This symbol, if defined, indicates to the C program that it should
  115.  *    include <dirent.h>.
  116.  */
  117. #$i_dirent I_DIRENT        /**/
  118.  
  119. /* I_STDLIB:
  120.  *    This symbol, if defined, indicates that <stdlib.h> exists and should
  121.  *    be included.
  122.  */
  123. #$i_stdlib I_STDLIB        /**/
  124.  
  125. /* I_STRING:
  126.  *    This symbol, if defined, indicates to the C program that it should
  127.  *    include <string.h> (USG systems) instead of <strings.h> (BSD systems).
  128.  */
  129. #$i_string I_STRING        /**/
  130.  
  131. /* I_SYS_DIR:
  132.  *    This symbol, if defined, indicates to the C program that it should
  133.  *    include <sys/dir.h>.
  134.  */
  135. #$i_sysdir I_SYS_DIR        /**/
  136.  
  137. /* I_SYS_NDIR:
  138.  *    This symbol, if defined, indicates to the C program that it should
  139.  *    include <sys/ndir.h>.
  140.  */
  141. #$i_sysndir I_SYS_NDIR    /**/
  142.  
  143. /* I_UNISTD:
  144.  *    This symbol, if defined, indicates to the C program that it should
  145.  *    include <unistd.h>.
  146.  */
  147. #$i_unistd I_UNISTD        /**/
  148.  
  149. /* I_VFORK:
  150.  *    This symbol, if defined, indicates to the C program that it should
  151.  *    include vfork.h.
  152.  */
  153. #$i_vfork I_VFORK    /**/
  154.  
  155. /* ACTIVE:
  156.  *    The name of the active file for the news system.  This file contains
  157.  *    the list of active newsgroups.  The name may have ~ on the front.
  158.  */
  159. /* ACTIVE_TIMES:
  160.  *    The name of the active.times file for the news system.
  161.  */
  162. #define ACTIVE "$active"        /**/
  163. #$d_acttimes ACTIVE_TIMES "$acttimes"        /**/
  164.  
  165. /* USE_NNTP:
  166.  *    This symbol, if defined, indicates that NNTP should be used.
  167.  */
  168. /* SERVER_NAME:
  169.  *    When using NNTP, this symbol indicates the server name or a
  170.  *    file to open to read the server name.
  171.  */
  172. #$d_nntp    USE_NNTP    /**/
  173. #define SERVER_NAME "$servername"      /**/
  174.  
  175. /* void:
  176.  *    This symbol is used for void functions.  On implementations which
  177.  *    support void appropriately, its value is "void".  Otherwise, its
  178.  *    value should be set to "int".
  179.  */
  180. #$d_novoid void int    /**/
  181.  
  182. /* USE_SYSLOG:
  183.  *    This symbol, if defined, indicates that syslog should be used.
  184.  */
  185. /* SYSLOG_PRIORITY:
  186.  *    This symbol defines the syslog priority when using syslog.
  187.  */
  188. #$d_syslog USE_SYSLOG    /**/
  189. #$d_syslog SYSLOG_PRIORITY $syslog    /**/
  190.  
  191. /* EMULATE_NDIR:
  192.  *    This symbol, if defined, indicates that the program should compile
  193.  *    the ndir.c code provided with the package.
  194.  */
  195. /* I_NDIR:
  196.  *    This symbol, if defined, indicates that the program should include the
  197.  *    system's version of ndir.h, rather than the one with this package.
  198.  */
  199. #$d_usendir    EMULATE_NDIR        /**/
  200. #$d_libndir    I_NDIR        /**/
  201.  
  202. /* I_TIME:
  203.  *    This symbol, if defined, indicates to the C program that it should
  204.  *    include <time.h>.
  205.  */
  206. /* I_SYS_TIME:
  207.  *    This symbol, if defined, indicates to the C program that it should
  208.  *    include <sys/time.h>.
  209.  */
  210. #$i_time I_TIME        /**/
  211. #$i_systime I_SYS_TIME        /**/
  212.  
  213. /* NEWSLIB:
  214.  *    This symbol contains the name of the directory serving as the news
  215.  *    library.  The program must be prepared to do ~ expansion on it.
  216.  */
  217. #define NEWSLIB "$newslib"        /**/
  218.  
  219. /* NEWSSPOOL:
  220.  *    This symbol contains the directory name where news articles are
  221.  *    spooled.  The program must be prepared to do ~ expansion on it.
  222.  */
  223. #define NEWSSPOOL "$newsspool"        /**/
  224.  
  225. /* PRIVLIB:
  226.  *    This symbol contains the name of the private library for this package.
  227.  *    The library is private in the sense that it needn't be in anyone's
  228.  *    execution path, but it should be accessible by the world.  The program
  229.  *    should be prepared to do ~ expansion.
  230.  */
  231. #define PRIVLIB "$privlib"        /**/
  232.  
  233. /* THREAD_DIR:
  234.  *    This symbol indicates where the thread files go.
  235.  */
  236. #define THREAD_DIR    "$threaddir"        /**/
  237.  
  238. #endif
  239. !GROK!THIS!
  240.