]> andersk Git - openssh.git/blame - acconfig.h
- Merged OpenBSD CVS 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
dcf3fbb2 67@BOTTOM@
68
045672f9 69/* ******************* Shouldn't need to edit below this line ************** */
6a17f9c2 70
8b241e50 71#include <sys/types.h> /* For u_intXX_t */
72#include <sys/socket.h> /* For SHUT_XXXX */
2b942fe0 73
74#ifdef HAVE_PATHS_H
75# include <paths.h> /* For _PATH_XXX */
76#endif
793edc37 77
8b241e50 78#ifdef HAVE_UTMP_H
79# include <utmp.h> /* For _PATH_XXX */
80#endif
81
b09a984b 82#ifdef HAVE_SYS_TIME_H
83# include <sys/time.h> /* For timersub */
84#endif
85
8b241e50 86#ifdef HAVE_MAILLOCK_H
87#include <maillock.h>
88#endif
89
6a17f9c2 90#ifndef SHUT_RDWR
91enum
92{
93 SHUT_RD = 0, /* No more receptions. */
94#define SHUT_RD SHUT_RD
95 SHUT_WR, /* No more transmissions. */
96#define SHUT_WR SHUT_WR
97 SHUT_RDWR /* No more receptions or transmissions. */
98#define SHUT_RDWR SHUT_RDWR
99};
100#endif
92da7197 101
2b942fe0 102/* If sys/types.h does not supply intXX_t, supply them ourselves */
103/* (or die trying) */
104#ifndef HAVE_INTXX_T
105# if (SIZEOF_SHORT_INT == 2)
106# define int16_t short int
107# else
108# error "16 bit int type not found."
109# endif
110# if (SIZEOF_INT == 4)
111# define int32_t int
112# else
113# error "32 bit int type not found."
114# endif
115# if (SIZEOF_LONG_INT == 8)
116# define int64_t long int
117# else
118# if (SIZEOF_LONG_LONG_INT == 8)
119# define int64_t long long int
120# else
121# error "64 bit int type not found."
122# endif
123# endif
92da7197 124#endif
125
2b942fe0 126/* If sys/types.h does not supply u_intXX_t, supply them ourselves */
127#ifndef HAVE_U_INTXX_T
128# ifdef HAVE_UINTXX_T
129# define u_int16_t uint16_t
130# define u_int32_t uint32_t
131# define u_int64_t uint64_t
132# else
133# if (SIZEOF_SHORT_INT == 2)
134# define u_int16_t unsigned short int
135# else
136# error "16 bit int type not found."
137# endif
138# if (SIZEOF_INT == 4)
139# define u_int32_t unsigned int
140# else
141# error "32 bit int type not found."
142# endif
143# if (SIZEOF_LONG_INT == 8)
144# define u_int64_t unsigned long int
145# else
146# if (SIZEOF_LONG_LONG_INT == 8)
147# define u_int64_t unsigned long long int
148# else
149# error "64 bit int type not found."
150# endif
151# endif
152# endif
92da7197 153#endif
f601d847 154
2b942fe0 155/* If quad_t is not supplied, then supply it now. We can rely on int64_t */
156/* being defined by the above */
157#ifndef HAVE_QUAD_T
158# define quad_t int64_t
793edc37 159#endif
160
f601d847 161#ifndef _PATH_LASTLOG
162# ifdef LASTLOG_LOCATION
163# define _PATH_LASTLOG LASTLOG_LOCATION
164# endif
165#endif
166
167#ifndef _PATH_UTMP
168# ifdef UTMP_FILE
169# define _PATH_UTMP UTMP_FILE
cf8dd513 170# else
171# define _PATH_UTMP "/var/adm/utmp"
f601d847 172# endif
173#endif
174
175#ifndef _PATH_WTMP
176# ifdef WTMP_FILE
177# define _PATH_WTMP WTMP_FILE
cf8dd513 178# else
179# define _PATH_WTMP "/var/adm/wtmp"
f601d847 180# endif
181#endif
182
183#ifndef _PATH_BSHELL
184# define _PATH_BSHELL "/bin/sh"
185#endif
186
187#ifndef _PATH_STDPATH
188# define _PATH_STDPATH "/usr/bin:/bin:/usr/sbin:/sbin:"
189#endif
190
8b241e50 191#ifndef _PATH_DEVNULL
192# define _PATH_DEVNULL "/dev/null"
193#endif
194
f601d847 195#ifndef _PATH_MAILDIR
196# ifdef MAILDIR
197# define _PATH_MAILDIR MAILDIR
198# endif
199#endif
793edc37 200
201#ifndef MAX
202# define MAX(a,b) (((a)>(b))?(a):(b))
203# define MIN(a,b) (((a)<(b))?(a):(b))
204#endif
b09a984b 205
206#ifndef timersub
207#define timersub(a, b, result) \
208 do { \
209 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
210 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
211 if ((result)->tv_usec < 0) { \
212 --(result)->tv_sec; \
213 (result)->tv_usec += 1000000; \
214 } \
215 } while (0)
216
217#endif
96ad4350 218
219#ifdef HAVE_OLD_PAM
220# define PAM_STRERROR(a,b) pam_strerror((b))
221#else
222# define PAM_STRERROR(a,b) pam_strerror((a),(b))
223#endif
dad3b556 224
225#ifndef __P
226# define __P(x) x
227#endif
This page took 0.096264 seconds and 5 git commands to generate.