8ddbfc62 |
1 | /* -*-c-*- |
2 | * |
f60a3434 |
3 | * $Id: acconfig.h,v 1.10 2003/10/12 00:14:44 mdw Exp $ |
8ddbfc62 |
4 | * |
5 | * Default settings for `become' config.h |
6 | * |
c758e654 |
7 | * (c) 1998 Mark Wooding |
8ddbfc62 |
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 $ |
f60a3434 |
32 | * Revision 1.10 2003/10/12 00:14:44 mdw |
33 | * Major overhaul. Now uses DSA signatures rather than the bogus symmetric |
34 | * encrypt-and-hope thing. Integrated with mLib and Catacomb. |
35 | * |
b6ea915c |
36 | * Revision 1.9 1999/05/04 16:25:42 mdw |
37 | * Fixes for new version of automake. |
38 | * |
39 | * Revision 1.8 1998/04/23 13:08:42 mdw |
66872778 |
40 | * Fix formatting. Add new option to disable networking. |
41 | * |
c758e654 |
42 | * Revision 1.7 1998/01/12 16:45:20 mdw |
43 | * Fix copyright date. |
44 | * |
45 | * Revision 1.6 1997/09/17 10:02:07 mdw |
ecc52b4c |
46 | * Remove `@ signs -- autoconf mangles them too badly. |
47 | * |
48 | * Revision 1.5 1997/09/08 13:41:36 mdw |
8bb92a83 |
49 | * Remove redundant entry for `HAVE_LIBEFENCE'. |
50 | * |
51 | * Revision 1.4 1997/09/05 11:45:17 mdw |
387501ae |
52 | * Add support for different login styles, and environment variable |
53 | * manipulation in a safe and useful way. |
54 | * |
c1d1774a |
55 | * Revision 1.3 1997/08/07 09:33:05 mdw |
56 | * Added `ElectricFence' support. Other minor cosmetic things. |
57 | * |
03f996bd |
58 | * Revision 1.2 1997/08/04 10:24:19 mdw |
8ddbfc62 |
59 | * Sources placed under CVS control. |
60 | * |
61 | * Revision 1.1 1997/07/21 13:47:52 mdw |
62 | * Initial revision |
63 | * |
64 | */ |
65 | |
66 | #ifndef CONFIG_H |
67 | #define CONFIG_H |
68 | |
69 | /*----- Variables set up by the configuration script ----------------------*/ |
70 | @TOP@ |
71 | |
b6ea915c |
72 | /* My package name. */ |
73 | #define PACKAGE "become" |
74 | |
8ddbfc62 |
75 | /* My version number. */ |
c1d1774a |
76 | #define VERSION "1.2-pre" |
8ddbfc62 |
77 | |
78 | /* The `etcdir' contains configuration and state information. */ |
c1d1774a |
79 | #define ETCDIR "/etc/become" |
8ddbfc62 |
80 | |
66872778 |
81 | /* Default login style can be `l_preserve', `l_setuser' or `l_login'. */ |
387501ae |
82 | #define DEFAULT_LOGIN_STYLE l_preserve |
83 | |
8ddbfc62 |
84 | /* This is replaced by `/' by `configure' -- leave alone for DOSness. */ |
85 | #define PATHSEP '\\' |
86 | |
66872778 |
87 | /* Define to turn off networking support. */ |
88 | #undef NONETWORK |
89 | |
8ddbfc62 |
90 | /* Debugging options. */ |
f60a3434 |
91 | #undef NTRACE |
8ddbfc62 |
92 | |
93 | #ifndef TEST_RIG |
94 | #undef NDEBUG |
95 | #endif |
96 | |
97 | /* Define if we have YP support. */ |
98 | #undef HAVE_YP |
99 | |
100 | /* Define to `int' if nothing defines. */ |
101 | #undef ssize_t |
102 | |
103 | @BOTTOM@ |
104 | |
f60a3434 |
105 | /*----- Some light processing on the configuration variables --------------*/ |
8ddbfc62 |
106 | |
107 | /* --- Important filenames based on the @ETCDIR@ --- */ |
108 | |
109 | #define file_KEY ETCDIR "/become.key" |
f60a3434 |
110 | #define file_PUBKEY ETCDIR "/become.pubkey" |
8ddbfc62 |
111 | #define file_PID ETCDIR "/become.pid" |
8ddbfc62 |
112 | #define file_RULES ETCDIR "/become.conf" |
113 | #define file_SERVER ETCDIR "/become.server" |
114 | |
8ddbfc62 |
115 | /* --- Debugging macros --- */ |
116 | |
117 | #ifdef NDEBUG |
118 | # define D(x) /* empty */ |
119 | #else |
120 | # define D(x) x |
121 | #endif |
122 | |
123 | /*----- That's all, folks -------------------------------------------------*/ |
124 | |
125 | #endif |