home *** CD-ROM | disk | FTP | other *** search
/ PC-Online 1996 May / PCOnline_05_1996.bin / linux / source / n / bind / bind-4.001 / bind-4~ / bind-4.9.3-BETA9 / conf / options.h < prev    next >
C/C++ Source or Header  |  1994-07-22  |  8KB  |  161 lines

  1. /* options.h - specify the conditionally-compiled features
  2.  * vix 28mar92 [moved out of the Makefile because they were getting too big]
  3.  *
  4.  * $Id: options.h,v 4.9.1.16 1994/07/22 08:42:30 vixie Exp $
  5.  */
  6.  
  7. /*
  8.  * ++Copyright++
  9.  * -
  10.  * Copyright (c) 
  11.  *    The Regents of the University of California.  All rights reserved.
  12.  * 
  13.  * Redistribution and use in source and binary forms, with or without
  14.  * modification, are permitted provided that the following conditions
  15.  * are met:
  16.  * 1. Redistributions of source code must retain the above copyright
  17.  *    notice, this list of conditions and the following disclaimer.
  18.  * 2. Redistributions in binary form must reproduce the above copyright
  19.  *    notice, this list of conditions and the following disclaimer in the
  20.  *    documentation and/or other materials provided with the distribution.
  21.  * 3. All advertising materials mentioning features or use of this software
  22.  *    must display the following acknowledgement:
  23.  *     This product includes software developed by the University of
  24.  *     California, Berkeley and its contributors.
  25.  * 4. Neither the name of the University nor the names of its contributors
  26.  *    may be used to endorse or promote products derived from this software
  27.  *    without specific prior written permission.
  28.  * 
  29.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  30.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  31.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  32.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  33.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  34.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  35.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  36.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  37.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  38.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  39.  * SUCH DAMAGE.
  40.  * -
  41.  * Portions Copyright (c) 1993 by Digital Equipment Corporation.
  42.  * 
  43.  * Permission to use, copy, modify, and distribute this software for any
  44.  * purpose with or without fee is hereby granted, provided that the above
  45.  * copyright notice and this permission notice appear in all copies, and that
  46.  * the name of Digital Equipment Corporation not be used in advertising or
  47.  * publicity pertaining to distribution of the document or software without
  48.  * specific, written prior permission.
  49.  * 
  50.  * THE SOFTWARE IS PROVIDED "AS IS" AND DIGITAL EQUIPMENT CORP. DISCLAIMS ALL
  51.  * WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES
  52.  * OF MERCHANTABILITY AND FITNESS.   IN NO EVENT SHALL DIGITAL EQUIPMENT
  53.  * CORPORATION BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
  54.  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
  55.  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
  56.  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  57.  * SOFTWARE.
  58.  * -
  59.  * --Copyright--
  60.  */
  61.  
  62. /* Key:
  63.  *    ucb = U C Berkeley 4.8.3 release
  64.  *    vix = Paul Vixie of Digital
  65.  *    del = Don Lewis of Harris
  66.  *    mcsun = Piet Beertema of EUNet
  67.  *    asp = Andrew Partan of UUNet
  68.  *    pma = Paul Albitz of Hewlett Packard
  69.  *    bb = Bryan Beecher of UMich
  70.  *    mpa = Mark Andrews of CSIRO - DMS
  71.  *    rossc = Ross Cartlidge of The Univeritsy of Sydney
  72.  *    mtr = Marshall Rose of TPC.INT
  73.  */
  74.  
  75. #define DEBUG        /* enable -d flag and SIGUSR[12] support (ucb) */
  76. /*#define ALLOW_T_UNSPEC /* enable the "unspec" RR type for old athena (ucb) */
  77. #define INVQ        /* enable inverse queries (nslookup) (ucb/vix) */
  78. /*#define DSTORAGE    /* debug malloc overruns using storage.o (ucb/vix) */
  79. /*#define DMALLOC    /* trace malloc orphans using dmalloc.o (vix) */
  80. #define XFRNETS      /* enable "xfrnets" command in named.boot (vix) */
  81. #define PID_FIX       /* be careful about overwriting named.pid file (del) */
  82. #define FWD_LOOP    /* try to break out of forwarding loops (del) */
  83. #define NO_GLUE      /* don't accept or send out-of-zone glue (del) */
  84. #define    BOGUSNS      /* detect bogus nameservers (mcsun) */
  85. #define QRYLOG      /* enable SIGWINCH for query logging (bb) */
  86. /*#define YPKLUDGE      /* deal effectively with broken "ypserv -i" (mcsun) */
  87. #define TRACEROOT      /* trace bogus root servers and ignore them (pma,bb) */
  88. /*#define LOCALDOM    /* permit "domain" directive in named.boot (ucb) */
  89. #define FORCED_RELOAD    /* refresh secondary zones on SIGHUP (pma) */
  90. #define SLAVE_FORWARD    /* use sensible timeouts on slave forwarders (pma) */
  91. #define WANT_PIDFILE    /* if you want the named.pid file (ucb/arc) */
  92. #define DOTTED_SERIAL    /* if you want to be able to specify dotted serial#s */
  93. /*#define SENSIBLE_DOTS    /* if you want dotted serial#s to make numeric sense */
  94. #define NCACHE        /* negative caching (anant@isi.edu) */
  95. #define VALIDATE    /* validation procedure (anant@isi.edu) */
  96. /*#define SHORT_FNAMES    /* file names used in named-xfer need to be short */
  97. #define RESOLVSORT    /* allow sorting of addresses in gethostbyname (mpa) */
  98. #define STUBS        /* allow transfers of NS only for a zone (mpa) (EXP) */
  99. /*#define SUNSECURITY    /* obscure fix for sunos (see below) */
  100. #define    LOGFAC LOG_DAEMON /* what syslog facility should named use? */
  101. /*#define SECURE_ZONES    /* if you want to inhibit world access to zone(s) */
  102. #define ROUND_ROBIN    /* rotate databuf list after each access (mtr) */
  103. #define ADDAUTH     /* return NS and glue w/ authorative answers (mpa) */
  104. #define RFC1535        /* use RFC 1535 default for "search" list (vix) */
  105. #define GEN_AXFR    /* distinct zones within each class */
  106. #define DATUMREFCNT    /* use reference counts on datums (mpa) */
  107. #define LAME_DELEGATION    /* lame delegations (original-del,reworked-bb&del)*/
  108. #define LAME_LOGGING LOG_WARNING /* log lame delegations, set log level */
  109. #define GETSER_LOGGING LOG_INFO /* log errors/timeouts getting serial number */
  110. /*#define RETURNSOA    /* good code that the world isn't ready for yet */
  111. #define CLEANCACHE    /* useful and necessary in the face of NCACHE */
  112. #define STATS        /* keep nameserver statistics; uses more memory */
  113. /*#define RENICE      /* named-xfer should run at normal priority */
  114.  
  115. /*--------------------------------------------*
  116.  * no user-servicable parts beyond this point *
  117.  *--------------------------------------------*/
  118.  
  119. /* if DSTORAGE is defined, we need to disable DMALLOC and remap
  120.  * malloc and free to storage.o's exported names.  storage.o also
  121.  * includes a calloc and a realloc, but once we drag in its malloc
  122.  * and free we'll get the others automatically and so will never
  123.  * pull in those routines from libc.a.
  124.  */
  125. #ifdef DSTORAGE
  126. # ifdef DMALLOC
  127. #  undef DMALLOC
  128. # endif /*DMALLOC*/
  129. # define malloc    rt_malloc
  130. # define free rt_free
  131. #endif /*DSTORAGE*/
  132.  
  133. /* if DMALLOC is defined, grab the header file which will remap
  134.  * all the malloc-style names to those exported by dmalloc.o.  note
  135.  * that DMALLOC also changes the function signatures of several
  136.  * functions in private named source modules, and that this file
  137.  * (options.h) must be included before any other private *.h files
  138.  * since those *.h files have some conditional remapping to do.
  139.  */
  140. #ifdef DMALLOC
  141. # include "dmalloc.h"
  142. #endif
  143.  
  144. /* systems with killall(1M) don't need this
  145.  */
  146. #ifdef __sgi
  147. # ifdef WANT_PIDFILE
  148. #  undef WANT_PIDFILE
  149. # endif
  150. #endif
  151.  
  152. #if defined(SUNOS4) || (defined(sun) && defined(SYSV))
  153. # ifndef SUNSECURITY
  154. #  define SUNSECURITY    /* mandatory on suns and rlogin etc. depend on this */
  155. # endif
  156. #endif
  157.  
  158. #ifdef LAME_LOGGING
  159. # define LAME_DELEGATION
  160. #endif
  161.