]> andersk Git - openssh.git/blame - acconfig.h
- Merged more OpenBSD changes:
[openssh.git] / acconfig.h
CommitLineData
5881cd60 1/* config.h.in. Generated by hand, don't use autoheader. */
2
d4f11b59 3/* SSL directory. */
4#undef ssldir
5
f601d847 6/* Location of lastlog file */
7#undef LASTLOG_LOCATION
8
2b942fe0 9/* If lastlog is a directory */
10#undef LASTLOG_IS_DIR
11
f601d847 12/* Location of random number pool */
4cca272e 13#undef RANDOM_POOL
14
15/* Are we using the Entropy gathering daemon */
16#undef HAVE_EGD
17
5881cd60 18/* Define if your ssl headers are included with #include <ssl/header.h> */
19#undef HAVE_SSL
20
21/* Define if your ssl headers are included with #include <openssl/header.h> */
22#undef HAVE_OPENSSL
4cca272e 23
24/* Define is utmp.h has a ut_host field */
25#undef HAVE_HOST_IN_UTMP
26
27/* Define is libutil has login() function */
28#undef HAVE_LIBUTIL_LOGIN
6a17f9c2 29
f601d847 30/* Define if you want external askpass support */
dad9a31e 31#undef USE_EXTERNAL_ASKPASS
045672f9 32
f601d847 33/* Define if libc defines __progname */
34#undef HAVE___PROGNAME
35
91b8065d 36/* Define if you want Kerberos 4 support */
37#undef KRB4
38
39/* Define if you want AFS support */
40#undef AFS
41
42/* Define if you want S/Key support */
43#undef SKEY
44
45/* Define if you want TCP Wrappers support */
46#undef LIBWRAP
47
beb43d31 48/* Define if your libraries define login() */
49#undef HAVE_LOGIN
50
51/* Define if your libraries define daemon() */
52#undef HAVE_DAEMON
53
caf3bc51 54/* Define if you want to allow MD5 passwords */
55#undef HAVE_MD5_PASSWORDS
56
96ad4350 57/* Define if you have an old version of PAM which takes only one argument */
58/* to pam_strerror */
59#undef HAVE_OLD_PAM
60
2b942fe0 61/* Data types */
62#undef HAVE_QUAD_T
63#undef HAVE_INTXX_T
64#undef HAVE_U_INTXX_T
65#undef HAVE_UINTXX_T
66
a408af76 67/* Define if you have /dev/ptmx */
68#undef HAVE_DEV_PTMX
69
70/* Define if you have /dev/ptc */
71#undef HAVE_DEV_PTS_AND_PTC
72
dcf3fbb2 73@BOTTOM@
74
045672f9 75/* ******************* Shouldn't need to edit below this line ************** */
6a17f9c2 76
8b241e50 77#include <sys/types.h> /* For u_intXX_t */
78#include <sys/socket.h> /* For SHUT_XXXX */
2b942fe0 79
80#ifdef HAVE_PATHS_H
81# include <paths.h> /* For _PATH_XXX */
82#endif
793edc37 83
8b241e50 84#ifdef HAVE_UTMP_H
85# include <utmp.h> /* For _PATH_XXX */
86#endif
87
b09a984b 88#ifdef HAVE_SYS_TIME_H
89# include <sys/time.h> /* For timersub */
90#endif
91
8b241e50 92#ifdef HAVE_MAILLOCK_H
93#include <maillock.h>
94#endif
95
6a17f9c2 96#ifndef SHUT_RDWR
97enum
98{
99 SHUT_RD = 0, /* No more receptions. */
100#define SHUT_RD SHUT_RD
101 SHUT_WR, /* No more transmissions. */
102#define SHUT_WR SHUT_WR
103 SHUT_RDWR /* No more receptions or transmissions. */
104#define SHUT_RDWR SHUT_RDWR
105};
106#endif
92da7197 107
2b942fe0 108/* If sys/types.h does not supply intXX_t, supply them ourselves */
109/* (or die trying) */
110#ifndef HAVE_INTXX_T
111# if (SIZEOF_SHORT_INT == 2)
112# define int16_t short int
113# else
114# error "16 bit int type not found."
115# endif
116# if (SIZEOF_INT == 4)
117# define int32_t int
118# else
119# error "32 bit int type not found."
120# endif
121# if (SIZEOF_LONG_INT == 8)
122# define int64_t long int
123# else
124# if (SIZEOF_LONG_LONG_INT == 8)
125# define int64_t long long int
126# else
127# error "64 bit int type not found."
128# endif
129# endif
92da7197 130#endif
131
2b942fe0 132/* If sys/types.h does not supply u_intXX_t, supply them ourselves */
133#ifndef HAVE_U_INTXX_T
134# ifdef HAVE_UINTXX_T
135# define u_int16_t uint16_t
136# define u_int32_t uint32_t
137# define u_int64_t uint64_t
138# else
139# if (SIZEOF_SHORT_INT == 2)
140# define u_int16_t unsigned short int
141# else
142# error "16 bit int type not found."
143# endif
144# if (SIZEOF_INT == 4)
145# define u_int32_t unsigned int
146# else
147# error "32 bit int type not found."
148# endif
149# if (SIZEOF_LONG_INT == 8)
150# define u_int64_t unsigned long int
151# else
152# if (SIZEOF_LONG_LONG_INT == 8)
153# define u_int64_t unsigned long long int
154# else
155# error "64 bit int type not found."
156# endif
157# endif
158# endif
92da7197 159#endif
f601d847 160
2b942fe0 161/* If quad_t is not supplied, then supply it now. We can rely on int64_t */
162/* being defined by the above */
163#ifndef HAVE_QUAD_T
164# define quad_t int64_t
793edc37 165#endif
166
f601d847 167#ifndef _PATH_LASTLOG
168# ifdef LASTLOG_LOCATION
169# define _PATH_LASTLOG LASTLOG_LOCATION
170# endif
171#endif
172
173#ifndef _PATH_UTMP
174# ifdef UTMP_FILE
175# define _PATH_UTMP UTMP_FILE
cf8dd513 176# else
177# define _PATH_UTMP "/var/adm/utmp"
f601d847 178# endif
179#endif
180
181#ifndef _PATH_WTMP
182# ifdef WTMP_FILE
183# define _PATH_WTMP WTMP_FILE
cf8dd513 184# else
185# define _PATH_WTMP "/var/adm/wtmp"
f601d847 186# endif
187#endif
188
189#ifndef _PATH_BSHELL
190# define _PATH_BSHELL "/bin/sh"
191#endif
192
193#ifndef _PATH_STDPATH
194# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
195#endif
196
8b241e50 197#ifndef _PATH_DEVNULL
198# define _PATH_DEVNULL "/dev/null"
199#endif
200
f601d847 201#ifndef _PATH_MAILDIR
202# ifdef MAILDIR
203# define _PATH_MAILDIR MAILDIR
204# endif
205#endif
793edc37 206
207#ifndef MAX
208# define MAX(a,b) (((a)>(b))?(a):(b))
209# define MIN(a,b) (((a)<(b))?(a):(b))
210#endif
b09a984b 211
212#ifndef timersub
213#define timersub(a, b, result) \
214 do { \
215 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
216 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
217 if ((result)->tv_usec < 0) { \
218 --(result)->tv_sec; \
219 (result)->tv_usec += 1000000; \
220 } \
221 } while (0)
222
223#endif
96ad4350 224
225#ifdef HAVE_OLD_PAM
226# define PAM_STRERROR(a,b) pam_strerror((b))
227#else
228# define PAM_STRERROR(a,b) pam_strerror((a),(b))
229#endif
dad3b556 230
231#ifndef __P
232# define __P(x) x
233#endif
This page took 2.137286 seconds and 5 git commands to generate.