8ddbfc62 |
1 | /* -*-c-*- |
2 | * |
c1d1774a |
3 | * $Id: acconfig.h,v 1.3 1997/08/07 09:33:05 mdw Exp $ |
8ddbfc62 |
4 | * |
5 | * Default settings for `become' config.h |
6 | * |
7 | * (c) 1997 Mark Wooding |
8 | */ |
9 | |
10 | /*----- Licensing notice --------------------------------------------------* |
11 | * |
12 | * This file is part of `become' |
13 | * |
14 | * `Become' is free software; you can redistribute it and/or modify |
15 | * it under the terms of the GNU General Public License as published by |
16 | * the Free Software Foundation; either version 2 of the License, or |
17 | * (at your option) any later version. |
18 | * |
19 | * `Become' is distributed in the hope that it will be useful, |
20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
22 | * GNU General Public License for more details. |
23 | * |
24 | * You should have received a copy of the GNU General Public License |
25 | * along with `become'; if not, write to the Free Software Foundation, |
26 | * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
27 | */ |
28 | |
29 | /*----- Revision history --------------------------------------------------* |
30 | * |
31 | * $Log: acconfig.h,v $ |
c1d1774a |
32 | * Revision 1.3 1997/08/07 09:33:05 mdw |
33 | * Added `ElectricFence' support. Other minor cosmetic things. |
34 | * |
03f996bd |
35 | * Revision 1.2 1997/08/04 10:24:19 mdw |
8ddbfc62 |
36 | * Sources placed under CVS control. |
37 | * |
38 | * Revision 1.1 1997/07/21 13:47:52 mdw |
39 | * Initial revision |
40 | * |
41 | */ |
42 | |
43 | #ifndef CONFIG_H |
44 | #define CONFIG_H |
45 | |
46 | /*----- Variables set up by the configuration script ----------------------*/ |
47 | @TOP@ |
48 | |
49 | /* My version number. */ |
c1d1774a |
50 | #define VERSION "1.2-pre" |
8ddbfc62 |
51 | |
52 | /* The `etcdir' contains configuration and state information. */ |
c1d1774a |
53 | #define ETCDIR "/etc/become" |
8ddbfc62 |
54 | |
55 | /* Define to be the size of an int. */ |
56 | #define SIZEOF_INT 4 |
57 | |
58 | /* This is replaced by `/' by `configure' -- leave alone for DOSness. */ |
59 | #define PATHSEP '\\' |
60 | |
c1d1774a |
61 | /* Define if we're linking with Electric Fence for debugging. */ |
62 | #undef HAVE_EFENCE |
63 | |
8ddbfc62 |
64 | /* Debugging options. */ |
65 | #undef TRACING |
66 | |
67 | #ifndef TEST_RIG |
68 | #undef NDEBUG |
69 | #endif |
70 | |
71 | /* Define if we have YP support. */ |
72 | #undef HAVE_YP |
73 | |
74 | /* Define to `int' if nothing defines. */ |
75 | #undef ssize_t |
76 | |
77 | @BOTTOM@ |
78 | |
79 | /*----- Some light processing on the configuration varaibles --------------*/ |
80 | |
81 | /* --- Important filenames based on the @ETCDIR@ --- */ |
82 | |
83 | #define file_KEY ETCDIR "/become.key" |
84 | #define file_PID ETCDIR "/become.pid" |
85 | #define file_RANDSEED ETCDIR "/become.random" |
86 | #define file_RULES ETCDIR "/become.conf" |
87 | #define file_SERVER ETCDIR "/become.server" |
88 | |
89 | /* --- Find a suitable 32-bit type --- */ |
90 | |
91 | #if SIZEOF_INT < 4 |
92 | typedef unsigned long uint_32; |
93 | #else |
94 | typedef unsigned int uint_32; |
95 | #endif |
96 | |
97 | /* --- Debugging macros --- */ |
98 | |
99 | #ifdef NDEBUG |
100 | # define D(x) /* empty */ |
101 | #else |
102 | # define D(x) x |
103 | #endif |
104 | |
105 | /*----- That's all, folks -------------------------------------------------*/ |
106 | |
107 | #endif |