1 /*	$NetBSD: config_zkt.h,v 1.1.1.1 2015/07/08 15:37:48 christos Exp $	*/
2 
3 /*****************************************************************
4 **
5 **	@(#) config_zkt.h -- config options for ZKT
6 **
7 **	Copyright (c) Aug 2005, Holger Zuleger HZnet. All rights reserved.
8 **
9 **	This software is open source.
10 **
11 **	Redistribution and use in source and binary forms, with or without
12 **	modification, are permitted provided that the following conditions
13 **	are met:
14 **
15 **	Redistributions of source code must retain the above copyright notice,
16 **	this list of conditions and the following disclaimer.
17 **
18 **	Redistributions in binary form must reproduce the above copyright notice,
19 **	this list of conditions and the following disclaimer in the documentation
20 **	and/or other materials provided with the distribution.
21 **
22 **	Neither the name of Holger Zuleger HZnet nor the names of its contributors may
23 **	be used to endorse or promote products derived from this software without
24 **	specific prior written permission.
25 **
26 **	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
27 **	"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
28 **	TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
29 **	PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE
30 **	LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
31 **	CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
32 **	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
33 **	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
34 **	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
35 **	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
36 **	POSSIBILITY OF SUCH DAMAGE.
37 **
38 *****************************************************************/
39 #ifndef CONFIG_ZKT_H
40 # define CONFIG_ZKT_H
41 
42 /* don't change anything below this */
43 /* the values here are determined or settable via the ./configure script */
44 
45 #ifndef HAS_UTYPES
46 # define	HAS_UTYPES	1
47 #endif
48 
49 /* # define	HAVE_TIMEGM		1	*/
50 /* # define	HAVE_GETOPT_LONG	1	*/
51 /* # define	HAVE_STRFTIME		1	*/
52 
53 #ifndef COLOR_MODE
54 # define	COLOR_MODE	1
55 #endif
56 
57 #ifndef TTL_IN_KEYFILE_ALLOWED
58 # define	TTL_IN_KEYFILE_ALLOWED	1
59 #endif
60 
61 #ifndef PRINT_TIMEZONE
62 # define	PRINT_TIMEZONE	0
63 #endif
64 
65 #ifndef PRINT_AGE_WITH_YEAR
66 # define	PRINT_AGE_WITH_YEAR	0
67 #endif
68 
69 #ifndef LOG_WITH_PROGNAME
70 # define	LOG_WITH_PROGNAME	0
71 #endif
72 
73 #ifndef LOG_WITH_TIMESTAMP
74 # define	LOG_WITH_TIMESTAMP	1
75 #endif
76 
77 #ifndef LOG_WITH_LEVEL
78 # define	LOG_WITH_LEVEL		1
79 #endif
80 
81 #ifndef ALWAYS_CHECK_KEYSETFILES
82 # define	ALWAYS_CHECK_KEYSETFILES	1
83 #endif
84 
85 #ifndef ALLOW_ALWAYS_PREPUBLISH_ZSK
86 # define	ALLOW_ALWAYS_PREPUBLISH_ZSK	1
87 #endif
88 
89 #ifndef CONFIG_PATH
90 # define	CONFIG_PATH	"/var/named/"
91 #endif
92 
93 /* tree usage is setable by configure script parameter */
94 #ifndef USE_TREE
95 # define	USE_TREE	1
96 #endif
97 
98 /* BIND version and utility path *must* be set by ./configure script */
99 #ifndef BIND_UTIL_PATH
100 # error ("BIND_UTIL_PATH not set. Please run configure with --enable-bind_util_path=");
101 #endif
102 #ifndef BIND_VERSION
103 # define	BIND_VERSION	980
104 #endif
105 
106 #ifndef ZKT_VERSION
107 # if defined(USE_TREE) && USE_TREE
108 #  define	ZKT_VERSION	"vT1.1.0 (c) Feb 2005 - Jan 2012 Holger Zuleger hznet.de"
109 # else
110 #  define	ZKT_VERSION	"v1.1.0 (c) Feb 2005 - Jan 2012 Holger Zuleger hznet.de"
111 # endif
112 #endif
113 
114 
115 #if !defined(HAS_UTYPES) || !HAS_UTYPES
116 typedef	unsigned long	ulong;
117 typedef	unsigned int	uint;
118 typedef	unsigned short	ushort;
119 typedef	unsigned char	uchar;
120 #endif
121 
122 #endif
123