blob: e6892ee5538d6c598d32c3230a194cce4264cb15 [file] [log] [blame]
Damien Miller7f6ea021999-10-28 13:25:17 +10001/* config.h.in. Generated by hand, don't use autoheader. */
2
Damien Millerc7b38ce1999-11-09 10:28:04 +11003/* SSL directory. */
4#undef ssldir
5
Damien Miller3f905871999-11-15 17:10:57 +11006/* Location of lastlog file */
7#undef LASTLOG_LOCATION
8
Damien Millerc6398ef1999-11-20 12:18:40 +11009/* If lastlog is a directory */
10#undef LASTLOG_IS_DIR
11
Damien Miller3f905871999-11-15 17:10:57 +110012/* Location of random number pool */
Damien Millerab18c411999-11-11 10:40:23 +110013#undef RANDOM_POOL
14
15/* Are we using the Entropy gathering daemon */
16#undef HAVE_EGD
17
Damien Miller7f6ea021999-10-28 13:25:17 +100018/* 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
Damien Millerab18c411999-11-11 10:40:23 +110023
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
Damien Miller5ce662a1999-11-11 17:57:39 +110029
Damien Miller3f905871999-11-15 17:10:57 +110030/* Define if you want external askpass support */
Damien Millerd05a2471999-11-15 14:25:30 +110031#undef USE_EXTERNAL_ASKPASS
Damien Miller5ce662a1999-11-11 17:57:39 +110032
Damien Miller3f905871999-11-15 17:10:57 +110033/* Define if libc defines __progname */
34#undef HAVE___PROGNAME
35
Damien Miller80297751999-11-19 13:03:25 +110036/* 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
Damien Miller04f80141999-11-19 15:32:34 +110048/* Define if your libraries define login() */
49#undef HAVE_LOGIN
50
51/* Define if your libraries define daemon() */
52#undef HAVE_DAEMON
53
Damien Millerdd1c7ba1999-11-19 15:53:20 +110054/* Define if you want to allow MD5 passwords */
55#undef HAVE_MD5_PASSWORDS
56
Damien Miller859cec01999-11-22 14:27:24 +110057/* Define if you have an old version of PAM which takes only one argument */
58/* to pam_strerror */
59#undef HAVE_OLD_PAM
60
Damien Millerc6398ef1999-11-20 12:18:40 +110061/* Data types */
62#undef HAVE_QUAD_T
63#undef HAVE_INTXX_T
64#undef HAVE_U_INTXX_T
65#undef HAVE_UINTXX_T
66
Damien Miller6854f821999-11-13 10:49:55 +110067@BOTTOM@
68
Damien Miller3d1b22c1999-11-12 15:46:08 +110069/* ******************* Shouldn't need to edit below this line ************** */
70
Damien Miller3744b511999-11-23 11:24:32 +110071#include <sys/types.h> /* For u_intXX_t */
72#include <sys/socket.h> /* For SHUT_XXXX */
Damien Millerc6398ef1999-11-20 12:18:40 +110073
74#ifdef HAVE_PATHS_H
75# include <paths.h> /* For _PATH_XXX */
76#endif
Damien Miller4874c791999-11-16 13:29:26 +110077
Damien Miller3744b511999-11-23 11:24:32 +110078#ifdef HAVE_UTMP_H
79# include <utmp.h> /* For _PATH_XXX */
80#endif
81
Damien Millerb3ca3aa1999-11-22 13:57:07 +110082#ifdef HAVE_SYS_TIME_H
83# include <sys/time.h> /* For timersub */
84#endif
85
Damien Miller3744b511999-11-23 11:24:32 +110086#ifdef HAVE_MAILLOCK_H
87#include <maillock.h>
88#endif
89
Damien Miller5ce662a1999-11-11 17:57:39 +110090#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
Damien Miller0a6e6681999-11-15 09:56:06 +1100101
Damien Millerc6398ef1999-11-20 12:18:40 +1100102/* 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
Damien Miller0a6e6681999-11-15 09:56:06 +1100124#endif
125
Damien Millerc6398ef1999-11-20 12:18:40 +1100126/* 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
Damien Miller0a6e6681999-11-15 09:56:06 +1100153#endif
Damien Miller3f905871999-11-15 17:10:57 +1100154
Damien Millerc6398ef1999-11-20 12:18:40 +1100155/* 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
Damien Miller4874c791999-11-16 13:29:26 +1100159#endif
160
Damien Miller3f905871999-11-15 17:10:57 +1100161#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
Damien Millerd8087f61999-11-25 12:31:26 +1100170# else
171# define _PATH_UTMP "/var/adm/utmp"
Damien Miller3f905871999-11-15 17:10:57 +1100172# endif
173#endif
174
175#ifndef _PATH_WTMP
176# ifdef WTMP_FILE
177# define _PATH_WTMP WTMP_FILE
Damien Millerd8087f61999-11-25 12:31:26 +1100178# else
179# define _PATH_WTMP "/var/adm/wtmp"
Damien Miller3f905871999-11-15 17:10:57 +1100180# 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
Damien Miller3744b511999-11-23 11:24:32 +1100191#ifndef _PATH_DEVNULL
192# define _PATH_DEVNULL "/dev/null"
193#endif
194
Damien Miller3f905871999-11-15 17:10:57 +1100195#ifndef _PATH_MAILDIR
196# ifdef MAILDIR
197# define _PATH_MAILDIR MAILDIR
198# endif
199#endif
Damien Miller4874c791999-11-16 13:29:26 +1100200
201#ifndef MAX
202# define MAX(a,b) (((a)>(b))?(a):(b))
203# define MIN(a,b) (((a)<(b))?(a):(b))
204#endif
Damien Millerb3ca3aa1999-11-22 13:57:07 +1100205
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
Damien Miller859cec01999-11-22 14:27:24 +1100218
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