Mercurial > dovecot > original-hg > dovecot-1.2
annotate configure.in @ 623:3fa9e363cd3d HEAD
SSL fixes and doc updates.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 20 Nov 2002 16:18:05 +0200 |
parents | 235188ee7a05 |
children | d0c09214b803 |
rev | line source |
---|---|
0 | 1 AC_INIT(src) |
2 | |
3 AM_CONFIG_HEADER(config.h) | |
353 | 4 AM_INIT_AUTOMAKE(dovecot, 0.98.4) |
0 | 5 |
6 AM_MAINTAINER_MODE | |
7 | |
8 AC_ISC_POSIX | |
9 AC_PROG_CC | |
10 AC_PROG_CPP | |
11 AC_STDC_HEADERS | |
12 AC_C_INLINE | |
13 AC_ARG_PROGRAM | |
14 AM_PROG_LIBTOOL | |
15 | |
224 | 16 AC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h) |
568
f2aa58c2afd0
SEARCH CHARSET support. Currently we do it through iconv() and only ASCII
Timo Sirainen <tss@iki.fi>
parents:
550
diff
changeset
|
17 AC_CHECK_HEADERS(sys/uio.h iconv.h linux/mman.h) |
0 | 18 |
19 # check posix headers | |
20 AC_CHECK_HEADERS(sys/time.h) | |
21 | |
22 AC_ARG_ENABLE(ipv6, | |
426 | 23 [ --enable-ipv6 Enable IPv6 support (default)], |
0 | 24 if test x$enableval = xno; then |
25 want_ipv6=no | |
26 else | |
27 want_ipv6=yes | |
28 fi, | |
426 | 29 want_ipv6=yes) |
0 | 30 |
544
42e65c2ba49d
Added --enable-debug. Currently it just forces file locks so that index
Timo Sirainen <tss@iki.fi>
parents:
530
diff
changeset
|
31 AC_ARG_ENABLE(debug, |
42e65c2ba49d
Added --enable-debug. Currently it just forces file locks so that index
Timo Sirainen <tss@iki.fi>
parents:
530
diff
changeset
|
32 [ --enable-debug Enable some extra checks for debugging], |
42e65c2ba49d
Added --enable-debug. Currently it just forces file locks so that index
Timo Sirainen <tss@iki.fi>
parents:
530
diff
changeset
|
33 if test x$enableval = xyes; then |
42e65c2ba49d
Added --enable-debug. Currently it just forces file locks so that index
Timo Sirainen <tss@iki.fi>
parents:
530
diff
changeset
|
34 AC_DEFINE(DEBUG) |
42e65c2ba49d
Added --enable-debug. Currently it just forces file locks so that index
Timo Sirainen <tss@iki.fi>
parents:
530
diff
changeset
|
35 fi) |
42e65c2ba49d
Added --enable-debug. Currently it just forces file locks so that index
Timo Sirainen <tss@iki.fi>
parents:
530
diff
changeset
|
36 |
546
e1254b838e0b
Added --enable-asserts (default) and fixed some warnings when building
Timo Sirainen <tss@iki.fi>
parents:
544
diff
changeset
|
37 AC_ARG_ENABLE(asserts, |
e1254b838e0b
Added --enable-asserts (default) and fixed some warnings when building
Timo Sirainen <tss@iki.fi>
parents:
544
diff
changeset
|
38 [ --enable-asserts Enable asserts (default)], |
e1254b838e0b
Added --enable-asserts (default) and fixed some warnings when building
Timo Sirainen <tss@iki.fi>
parents:
544
diff
changeset
|
39 if test x$enableval = xno; then |
e1254b838e0b
Added --enable-asserts (default) and fixed some warnings when building
Timo Sirainen <tss@iki.fi>
parents:
544
diff
changeset
|
40 AC_DEFINE(DISABLE_ASSERTS) |
e1254b838e0b
Added --enable-asserts (default) and fixed some warnings when building
Timo Sirainen <tss@iki.fi>
parents:
544
diff
changeset
|
41 fi) |
e1254b838e0b
Added --enable-asserts (default) and fixed some warnings when building
Timo Sirainen <tss@iki.fi>
parents:
544
diff
changeset
|
42 |
328
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
43 AC_ARG_WITH(file-offset-size, |
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
44 [ --with-file-offset-size=BITS Set size of file offsets. Usually 32 or 64. |
439
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
426
diff
changeset
|
45 (default: 64 if available)], |
328
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
46 preferred_off_t_bits=$withval, |
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
47 preferred_off_t_bits=64) |
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
48 |
439
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
426
diff
changeset
|
49 AC_ARG_WITH(mem-align, |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
426
diff
changeset
|
50 [ --with-mem-align=BYTES Set the memory alignment (default: 8)], |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
426
diff
changeset
|
51 mem_align=$withval, |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
426
diff
changeset
|
52 mem_align=8) |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
426
diff
changeset
|
53 |
328
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
54 AC_ARG_WITH(passwd, |
426 | 55 [ --with-passwd Build with /etc/passwd support (default)], |
328
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
56 if test x$withval = xno; then |
0 | 57 want_passwd=no |
58 else | |
59 want_passwd=yes | |
60 fi, | |
61 want_passwd=yes) | |
62 | |
328
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
63 AC_ARG_WITH(passwd-file, |
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
64 [ --with-passwd-file Build with passwd-like file support (default)], |
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
65 if test x$withval = xno; then |
0 | 66 want_passwd_file=no |
67 else | |
68 want_passwd_file=yes | |
69 fi, | |
70 want_passwd_file=yes) | |
71 | |
328
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
72 AC_ARG_WITH(shadow, |
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
73 [ --with-shadow Build with shadow password support (default)], |
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
74 if test x$withval = xno; then |
0 | 75 want_shadow=no |
76 else | |
77 want_shadow=yes | |
78 fi, | |
79 want_shadow=yes) | |
80 | |
328
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
81 AC_ARG_WITH(pam, |
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
82 [ --with-pam Build with PAM support (default)], |
a0abed892d11
s/--enable/--with/ to all auth modules. added --with-file-offset-size=BITS
Timo Sirainen <tss@iki.fi>
parents:
313
diff
changeset
|
83 if test x$withval = xno; then |
0 | 84 want_pam=no |
85 else | |
86 want_pam=yes | |
87 fi, | |
88 want_pam=yes) | |
89 | |
280
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
90 AC_ARG_WITH(vpopmail, |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
91 [ --with-vpopmail Build with vpopmail support (default)], |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
92 if test x$withval = xno; then |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
93 want_vpopmail=no |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
94 else |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
95 want_vpopmail=yes |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
96 fi, |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
97 want_vpopmail=yes) |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
98 |
550
3a83b05a0be3
--with-rawlog: Build support for logging traffic of user sessions. If
Timo Sirainen <tss@iki.fi>
parents:
547
diff
changeset
|
99 AC_ARG_WITH(rawlog, |
3a83b05a0be3
--with-rawlog: Build support for logging traffic of user sessions. If
Timo Sirainen <tss@iki.fi>
parents:
547
diff
changeset
|
100 [ --with-rawlog Build support for logging user traffic], |
3a83b05a0be3
--with-rawlog: Build support for logging traffic of user sessions. If
Timo Sirainen <tss@iki.fi>
parents:
547
diff
changeset
|
101 if test x$withval = xyes; then |
3a83b05a0be3
--with-rawlog: Build support for logging traffic of user sessions. If
Timo Sirainen <tss@iki.fi>
parents:
547
diff
changeset
|
102 AC_DEFINE(BUILD_RAWLOG) |
3a83b05a0be3
--with-rawlog: Build support for logging traffic of user sessions. If
Timo Sirainen <tss@iki.fi>
parents:
547
diff
changeset
|
103 fi) |
3a83b05a0be3
--with-rawlog: Build support for logging traffic of user sessions. If
Timo Sirainen <tss@iki.fi>
parents:
547
diff
changeset
|
104 |
622 | 105 AC_ARG_WITH(ssl, |
106 [ --with-ssl=[gnutls|openssl] Build with GNUTLS (default) or OpenSSL], | |
245 | 107 if test x$withval = xno; then |
244 | 108 want_gnutls=no |
622 | 109 want_openssl=no |
110 elif test x$withval = xgnutls; then | |
111 want_gnutls=yes | |
112 want_openssl=no | |
113 elif test x$withval = xopenssl; then | |
114 want_gnutls=no | |
115 want_openssl=yes | |
244 | 116 else |
117 want_gnutls=yes | |
622 | 118 want_openssl=yes |
119 fi, [ | |
120 want_gnutls=yes | |
121 want_openssl=yes | |
122 ]) | |
244 | 123 |
0 | 124 dnl ** |
125 dnl ** just some generic stuff... | |
126 dnl ** | |
127 | |
128 AC_CHECK_FUNC(socket, [], [ | |
129 AC_CHECK_LIB(socket, socket, [ | |
130 LIBS="$LIBS -lsocket" | |
131 ]) | |
132 ]) | |
133 | |
134 AC_CHECK_FUNC(inet_addr, [], [ | |
135 AC_CHECK_LIB(nsl, inet_addr, [ | |
136 LIBS="$LIBS -lnsl" | |
137 ]) | |
138 ]) | |
139 | |
494
83d4617e1dca
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
Timo Sirainen <tss@iki.fi>
parents:
464
diff
changeset
|
140 AC_CHECK_FUNC(fdatasync, [ |
83d4617e1dca
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
Timo Sirainen <tss@iki.fi>
parents:
464
diff
changeset
|
141 AC_DEFINE([HAVE_FDATASYNC]) |
83d4617e1dca
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
Timo Sirainen <tss@iki.fi>
parents:
464
diff
changeset
|
142 ], [ |
83d4617e1dca
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
Timo Sirainen <tss@iki.fi>
parents:
464
diff
changeset
|
143 AC_CHECK_LIB(rt, fdatasync, [ |
83d4617e1dca
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
Timo Sirainen <tss@iki.fi>
parents:
464
diff
changeset
|
144 AC_DEFINE([HAVE_FDATASYNC]) |
83d4617e1dca
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
Timo Sirainen <tss@iki.fi>
parents:
464
diff
changeset
|
145 LIBS="$LIBS -lrt" |
83d4617e1dca
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
Timo Sirainen <tss@iki.fi>
parents:
464
diff
changeset
|
146 ]) |
83d4617e1dca
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
Timo Sirainen <tss@iki.fi>
parents:
464
diff
changeset
|
147 ]) |
83d4617e1dca
Check fdatasync() from -lrt if it's not in libc (solaris). Also fallback to
Timo Sirainen <tss@iki.fi>
parents:
464
diff
changeset
|
148 |
0 | 149 dnl * after -lsocket and -lnsl tests, inet_aton() may be in them |
150 AC_CHECK_FUNCS(fcntl flock inet_aton sigaction getpagesize madvise setreuid) | |
411 | 151 AC_CHECK_FUNCS(strcasecmp stricmp vsnprintf memmove vsyslog writev) |
0 | 152 |
153 dnl * poll/select? | |
154 | |
155 AC_CHECK_FUNC(poll, [ | |
156 have_poll=yes | |
157 ], [ | |
158 have_poll=no | |
159 ]) | |
160 AM_CONDITIONAL(IOLOOP_POLL, test "$have_poll" = "yes") | |
161 | |
162 dnl * gcc specific options | |
163 if test "x$ac_cv_prog_gcc" = "xyes"; then | |
65
168e0bd616b6
added -Wcast-qual to list of "remember to test with" cflags :)
Timo Sirainen <tss@iki.fi>
parents:
60
diff
changeset
|
164 # -Wchar-subscripts -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations |
5
1b34ec11fff8
Message data is parsed in blocks (no longer entirely mmap()ed). Several
Timo Sirainen <tss@iki.fi>
parents:
0
diff
changeset
|
165 CFLAGS="$CFLAGS -Wall -W" |
0 | 166 fi |
167 | |
168 dnl * OS specific options | |
169 case "$host_os" in | |
170 hpux*) | |
171 CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" | |
172 ;; | |
173 *) | |
174 ;; | |
175 esac | |
176 | |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
177 dnl * off_t checks, try to make it 64bit |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
178 AC_DEFINE_UNQUOTED(_FILE_OFFSET_BITS, $preferred_off_t_bits) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
179 |
55
db8ea2c11ab7
whops, 64bit support was disabled.
Timo Sirainen <tss@iki.fi>
parents:
50
diff
changeset
|
180 AC_CHECK_SIZEOF(int) |
db8ea2c11ab7
whops, 64bit support was disabled.
Timo Sirainen <tss@iki.fi>
parents:
50
diff
changeset
|
181 AC_CHECK_SIZEOF(long) |
464
c634b705f24b
Removed several useless handers of printf_string_upper_bound(), and added a
Timo Sirainen <tss@iki.fi>
parents:
439
diff
changeset
|
182 AC_CHECK_SIZEOF(void *) |
55
db8ea2c11ab7
whops, 64bit support was disabled.
Timo Sirainen <tss@iki.fi>
parents:
50
diff
changeset
|
183 AC_CHECK_SIZEOF(long long) |
185 | 184 |
185 dnl * older autoconfs don't include sys/types.h, so do it manually | |
186 AC_MSG_CHECKING([size of ssize_t]) | |
187 AC_TRY_RUN([ | |
188 #include <stdio.h> | |
189 #include <sys/types.h> | |
190 int main() { | |
191 FILE *f=fopen("conftestval", "w"); | |
192 if (!f) exit(1); | |
193 fprintf(f, "%d\n", sizeof(ssize_t)); | |
194 exit(0); | |
195 } | |
196 ], [ | |
197 sizeof_ssize_t=`cat conftestval` | |
198 rm -f conftestval | |
199 ], [ | |
200 sizeof_ssize_t=0 | |
201 AC_ERROR([Unsupported ssize_t size]) | |
202 ]) | |
186
041fb6098877
result of ssize_t check wasn't reported
Timo Sirainen <tss@iki.fi>
parents:
185
diff
changeset
|
203 AC_MSG_RESULT($sizeof_ssize_t) |
55
db8ea2c11ab7
whops, 64bit support was disabled.
Timo Sirainen <tss@iki.fi>
parents:
50
diff
changeset
|
204 |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
205 AC_MSG_CHECKING([size of off_t]) |
185 | 206 AC_TRY_RUN([ |
207 #include <stdio.h> | |
208 #include <sys/types.h> | |
209 int main() { | |
210 FILE *f=fopen("conftestval", "w"); | |
211 if (!f) exit(1); | |
212 fprintf(f, "%d\n", sizeof(off_t)); | |
213 exit(0); | |
214 } | |
215 ], [ | |
216 sizeof_off_t=`cat conftestval` | |
217 rm -f conftestval | |
218 ], [ | |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
219 AC_ERROR([Unsupported off_t size]) |
185 | 220 ]) |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
221 AC_MSG_RESULT($sizeof_off_t) |
576 | 222 offt_bits=`expr 8 \* $sizeof_off_t` |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
223 |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
224 if test x$sizeof_off_t = x$ac_cv_sizeof_long; then |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
225 # try to use unsigned long always first |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
226 AC_DEFINE_UNQUOTED(OFF_T_MAX, LONG_MAX) |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
227 AC_DEFINE_UNQUOTED(PRIuUOFF_T, "lu") |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
228 AC_DEFINE(UOFF_T_LONG) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
229 elif test x$sizeof_off_t = x$ac_cv_sizeof_int; then |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
230 # next try int |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
231 AC_DEFINE_UNQUOTED(OFF_T_MAX, INT_MAX) |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
232 AC_DEFINE_UNQUOTED(PRIuUOFF_T, "u") |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
233 AC_DEFINE(UOFF_T_INT) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
234 elif test x$sizeof_off_t = x$ac_cv_sizeof_long_long; then |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
235 # and finally long long |
56 | 236 AC_DEFINE_UNQUOTED(OFF_T_MAX, LLONG_MAX) |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
237 AC_DEFINE_UNQUOTED(PRIuUOFF_T, "llu") |
50
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
238 AC_DEFINE(UOFF_T_LONG_LONG) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
239 else |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
240 AC_ERROR([Couldn't find integer type for off_t]) |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
241 fi |
d493b9cc265e
Introduced uoff_t which is the unsigned-equilevant of off_t. This was needed
Timo Sirainen <tss@iki.fi>
parents:
5
diff
changeset
|
242 |
185 | 243 if test x$sizeof_ssize_t = x$ac_cv_sizeof_int; then |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
244 AC_DEFINE_UNQUOTED(SSIZE_T_MAX, INT_MAX) |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
245 AC_DEFINE_UNQUOTED(PRIuSIZE_T, "u") |
191
e5465a0c6964
ssize_t should be checked against long before long long.
Timo Sirainen <tss@iki.fi>
parents:
186
diff
changeset
|
246 elif test x$sizeof_ssize_t = x$ac_cv_sizeof_long; then |
e5465a0c6964
ssize_t should be checked against long before long long.
Timo Sirainen <tss@iki.fi>
parents:
186
diff
changeset
|
247 AC_DEFINE_UNQUOTED(SSIZE_T_MAX, LONG_MAX) |
e5465a0c6964
ssize_t should be checked against long before long long.
Timo Sirainen <tss@iki.fi>
parents:
186
diff
changeset
|
248 AC_DEFINE_UNQUOTED(PRIuSIZE_T, "lu") |
185 | 249 elif test x$sizeof_ssize_t = x$ac_cv_sizeof_long_long; then |
183
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
250 AC_DEFINE_UNQUOTED(SSIZE_T_MAX, LLONG_MAX) |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
251 AC_DEFINE_UNQUOTED(PRIuSIZE_T, "llu") |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
252 else |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
253 AC_ERROR([Couldn't find integer type for ssize_t]) |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
254 fi |
4a7ab9e94f25
size_t fixes for lib/. Changed OFF_T_FORMAT to PRIuOFF_T which is more
Timo Sirainen <tss@iki.fi>
parents:
179
diff
changeset
|
255 |
179
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
256 if test x$ac_cv_sizeof_long_long != x0; then |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
257 AC_DEFINE(LARGEST_T_LONG_LONG) |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
258 else |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
259 AC_DEFINE(LARGEST_T_LONG) |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
260 fi |
0ffecd4e7e1a
added dec2str() function and largest_t type, removed itoa() and ltoa()
Timo Sirainen <tss@iki.fi>
parents:
175
diff
changeset
|
261 |
439
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
426
diff
changeset
|
262 dnl * memory alignment |
b66ccecbc8a6
Added --with-mem-align=BYTES option
Timo Sirainen <tss@iki.fi>
parents:
426
diff
changeset
|
263 AC_DEFINE_UNQUOTED(MEM_ALIGN_SIZE, $mem_align) |
0 | 264 |
265 dnl * socklen_t - AC_CHECK_TYPE() would be _really_ useful if it only would | |
266 dnl * accept header files where to find the typedef.. | |
267 AC_MSG_CHECKING([for socklen_t]) | |
268 AC_CACHE_VAL(i_cv_type_socklen_t, | |
269 [AC_TRY_COMPILE([ | |
270 #include <sys/types.h> | |
271 #include <sys/socket.h>], | |
272 [socklen_t t;], | |
273 i_cv_type_socklen_t=yes, | |
274 i_cv_type_socklen_t=no, | |
275 )]) | |
276 if test $i_cv_type_socklen_t = no; then | |
277 AC_DEFINE(socklen_t, int, Define to 'int' if <sys/socket.h> doesn't define.) | |
278 fi | |
279 AC_MSG_RESULT($i_cv_type_socklen_t) | |
280 | |
281 dnl * do we have tm_gmtoff | |
282 AC_MSG_CHECKING([for tm_gmtoff]) | |
283 AC_CACHE_VAL(i_cv_field_tm_gmtoff, | |
284 [AC_TRY_COMPILE([ | |
285 #include <time.h>], | |
286 [struct tm *tm; return tm->tm_gmtoff;], | |
287 i_cv_field_tm_gmtoff=yes, | |
288 i_cv_field_tm_gmtoff=no, | |
289 )]) | |
290 if test $i_cv_field_tm_gmtoff = yes; then | |
291 AC_DEFINE(HAVE_TM_GMTOFF) | |
292 fi | |
293 AC_MSG_RESULT($i_cv_field_tm_gmtoff) | |
294 | |
411 | 295 dnl * do we have struct iovec |
296 AC_MSG_CHECKING([for struct iovec]) | |
297 AC_CACHE_VAL(i_cv_struct_iovec, | |
412 | 298 [AC_TRY_COMPILE([ |
411 | 299 #include <sys/types.h> |
300 #include <sys/uio.h> | |
301 #include <unistd.h>], | |
302 [struct iovec *iovec;], | |
303 i_cv_struct_iovec=yes, | |
304 i_cv_struct_iovec=no)]) | |
305 | |
306 if test $i_cv_struct_iovec = yes; then | |
307 AC_DEFINE(HAVE_STRUCT_IOVEC) | |
308 fi | |
309 AC_MSG_RESULT($i_cv_struct_iovec) | |
310 | |
528
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
311 dnl * Linux compatible mremap() |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
312 AC_MSG_CHECKING([Linux compatible mremap()]) |
529
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
313 AC_TRY_COMPILE([ |
224 | 314 #include <unistd.h> |
315 #define __USE_GNU | |
316 #include <sys/mman.h> | |
529
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
317 ], [ |
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
318 mremap(0, 0, 0, MREMAP_MAYMOVE); |
224 | 319 ], [ |
320 AC_DEFINE(HAVE_LINUX_MREMAP) | |
321 AC_MSG_RESULT(yes) | |
322 ], [ | |
323 AC_MSG_RESULT(no) | |
324 ]) | |
325 | |
528
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
326 dnl * Linux compatible sendfile() |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
327 AC_MSG_CHECKING([Linux compatible sendfile()]) |
529
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
328 AC_TRY_COMPILE([ |
530
e815df17e52e
and fix linux-sendfile check so it fails with freebsd :)
Timo Sirainen <tss@iki.fi>
parents:
529
diff
changeset
|
329 #include <sys/types.h> |
e815df17e52e
and fix linux-sendfile check so it fails with freebsd :)
Timo Sirainen <tss@iki.fi>
parents:
529
diff
changeset
|
330 #include <sys/socket.h> |
e815df17e52e
and fix linux-sendfile check so it fails with freebsd :)
Timo Sirainen <tss@iki.fi>
parents:
529
diff
changeset
|
331 #include <sys/uio.h> |
528
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
332 #include <sys/sendfile.h> |
529
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
333 ], [ |
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
334 sendfile(0, 0, (void *) 0, 0); |
528
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
335 ], [ |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
336 AC_DEFINE(HAVE_LINUX_SENDFILE) |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
337 AC_MSG_RESULT(yes) |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
338 ], [ |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
339 AC_MSG_RESULT(no) |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
340 ]) |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
341 |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
342 dnl * FreeBSD compatible sendfile() |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
343 AC_MSG_CHECKING([FreeBSD compatible sendfile()]) |
529
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
344 AC_TRY_COMPILE([ |
528
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
345 #include <sys/types.h> |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
346 #include <sys/socket.h> |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
347 #include <sys/uio.h> |
529
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
348 ], [ |
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
349 struct sf_hdtr hdtr; |
3a1be480d16a
buggy checks. we were supposed to compile them, not run. plus fixes for
Timo Sirainen <tss@iki.fi>
parents:
528
diff
changeset
|
350 sendfile(0, 0, 0, 0, &hdtr, (void *) 0, 0); |
528
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
351 ], [ |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
352 AC_DEFINE(HAVE_FREEBSD_SENDFILE) |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
353 AC_MSG_RESULT(yes) |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
354 ], [ |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
355 AC_MSG_RESULT(no) |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
356 ]) |
a95b1ccff82e
Support FreeBSD-compatible sendfile(). Completely untested.
Timo Sirainen <tss@iki.fi>
parents:
494
diff
changeset
|
357 |
0 | 358 dnl ** |
622 | 359 dnl ** SSL |
0 | 360 dnl ** |
361 | |
623 | 362 have_ssl=no |
363 | |
244 | 364 if test $want_gnutls = yes; then |
622 | 365 AC_CHECK_LIB(gnutls, gnutls_global_init, [ |
623 | 366 AC_CHECK_HEADERS(gnutls/gnutls.h, [ |
367 AC_DEFINE(HAVE_SSL) | |
368 AC_DEFINE(HAVE_GNUTLS) | |
369 SSL_LIBS="-lgnutls -lgcrypt" | |
370 AC_SUBST(SSL_LIBS) | |
371 have_ssl="yes (GNUTLS)" | |
372 have_gnutls=yes | |
373 ]) | |
622 | 374 ], -lgcrypt) |
244 | 375 fi |
0 | 376 |
622 | 377 if test "$want_openssl" = "yes" -a "$have_ssl" = "no"; then |
378 AC_CHECK_LIB(ssl, SSL_read, [ | |
623 | 379 AC_CHECK_HEADERS(openssl/ssl.h openssl/err.h, [ |
380 AC_DEFINE(HAVE_SSL) | |
381 AC_DEFINE(HAVE_OPENSSL) | |
382 SSL_LIBS="-lssl -lcrypto" | |
383 AC_SUBST(SSL_LIBS) | |
384 have_ssl="yes (OpenSSL)" | |
385 have_openssl=yes | |
622 | 386 ]) |
387 ]) | |
388 fi | |
389 | |
0 | 390 dnl ** |
391 dnl ** shadow/pam support | |
392 dnl ** | |
393 | |
394 need_crypt=no | |
395 auths="" | |
396 | |
397 if test $want_passwd = yes; then | |
398 need_crypt=yes | |
399 AC_DEFINE(USERINFO_PASSWD) | |
400 auths="$auths passwd" | |
401 fi | |
402 | |
403 if test $want_passwd_file = yes; then | |
404 need_crypt=yes | |
405 AC_DEFINE(USERINFO_PASSWD_FILE) | |
406 auths="$auths passwd-file" | |
407 fi | |
408 | |
409 if test $want_shadow = yes; then | |
410 AC_CHECK_FUNC(getspnam, [ | |
411 need_crypt=yes | |
412 AC_DEFINE(USERINFO_SHADOW) | |
413 auths="$auths shadow" | |
414 ]) | |
415 fi | |
416 | |
417 if test $want_pam = yes; then | |
418 AC_CHECK_LIB(pam, pam_start, [ | |
419 AC_CHECK_HEADER(security/pam_appl.h, [ | |
420 USERINFO_LIBS="$USERINFO_LIBS -lpam" | |
421 AC_DEFINE(USERINFO_PAM) | |
422 auths="$auths pam" | |
547
39a24074abf4
Call pam_setcred() if it exists.
Timo Sirainen <tss@iki.fi>
parents:
546
diff
changeset
|
423 |
39a24074abf4
Call pam_setcred() if it exists.
Timo Sirainen <tss@iki.fi>
parents:
546
diff
changeset
|
424 AC_CHECK_LIB(pam, pam_setcred, [ |
39a24074abf4
Call pam_setcred() if it exists.
Timo Sirainen <tss@iki.fi>
parents:
546
diff
changeset
|
425 AC_DEFINE(HAVE_PAM_SETCRED) |
39a24074abf4
Call pam_setcred() if it exists.
Timo Sirainen <tss@iki.fi>
parents:
546
diff
changeset
|
426 ]) |
0 | 427 ]) |
428 ]) | |
429 fi | |
430 | |
280
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
431 if test $want_vpopmail = yes; then |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
432 vpopmail_home="`echo ~vpopmail`" |
281 | 433 vpop_libdeps="$vpopmail_home/etc/lib_deps" |
434 | |
435 AC_MSG_CHECKING([for vpopmail configuration at $vpop_libdeps]) | |
436 if test -f $vpop_libdeps; then | |
283 | 437 need_crypt=yes |
280
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
438 VPOPMAIL_CFLAGS="`cat $vpopmail_home/etc/inc_deps` $CFLAGS" |
281 | 439 VPOPMAIL_LIBS="`cat $vpop_libdeps`" |
280
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
440 AC_DEFINE(USERINFO_VPOPMAIL) |
282 | 441 auths="$auths vpopmail" |
281 | 442 AC_MSG_RESULT(found) |
280
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
443 else |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
444 want_vpopmail=no |
281 | 445 AC_MSG_RESULT(not found) |
280
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
446 fi |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
447 fi |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
448 |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
449 AC_SUBST(VPOPMAIL_CFLAGS) |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
450 AC_SUBST(VPOPMAIL_LIBS) |
fa2d1a1d025e
vpopmail authentication. compiles, not tested if it really works.
Timo Sirainen <tss@iki.fi>
parents:
247
diff
changeset
|
451 |
0 | 452 if test $need_crypt = yes; then |
453 AC_CHECK_LIB(crypt, crypt, [ | |
454 USERINFO_LIBS="$USERINFO_LIBS -lcrypt" | |
455 ], [ | |
456 AC_CHECK_FUNC(crypt,, [ | |
457 AC_ERROR([crypt() wasn't found]) | |
458 ]) | |
459 ]) | |
460 fi | |
461 | |
462 AC_SUBST(USERINFO_LIBS) | |
463 | |
464 dnl ** | |
465 dnl ** Index file compatibility flags | |
466 dnl ** | |
467 | |
468 dnl * currently just checking for endianess | |
469 | |
470 AC_C_BIGENDIAN | |
471 | |
472 if test $ac_cv_c_bigendian = yes; then | |
473 flags=0 | |
474 | |
475 else | |
476 flags=1 | |
477 fi | |
478 | |
479 AC_DEFINE_UNQUOTED(MAIL_INDEX_COMPAT_FLAGS, $flags) | |
480 | |
481 dnl ** | |
482 dnl ** IPv6 support | |
483 dnl ** | |
484 | |
485 if test "x$want_ipv6" = "xyes"; then | |
486 AC_MSG_CHECKING([for IPv6]) | |
487 AC_CACHE_VAL(i_cv_type_in6_addr, | |
488 [AC_TRY_COMPILE([ | |
489 #include <sys/types.h> | |
490 #include <sys/socket.h> | |
491 #include <netinet/in.h> | |
492 #include <netdb.h> | |
493 #include <arpa/inet.h>], | |
494 [struct in6_addr i;], | |
495 i_cv_type_in6_addr=yes, | |
496 i_cv_type_in6_addr=no, | |
497 )]) | |
498 if test $i_cv_type_in6_addr = yes; then | |
499 AC_DEFINE(HAVE_IPV6) | |
500 fi | |
501 AC_MSG_RESULT($i_cv_type_in6_addr) | |
502 fi | |
503 | |
504 dnl ** | |
505 dnl ** capabilities | |
506 dnl ** | |
507 | |
508 capability="IMAP4rev1" | |
622 | 509 if test "$have_ssl" != "no"; then |
0 | 510 capability="$capability STARTTLS" |
511 fi | |
512 AC_DEFINE_UNQUOTED(CAPABILITY_STRING, "$capability") | |
513 | |
514 dnl ** | |
515 dnl ** register the storage classes | |
516 dnl ** | |
517 | |
518 STORAGE="maildir mbox" | |
519 file="src/lib-storage/mail-storage-register.c" | |
520 | |
521 echo "/* this file is generated by configure */" > $file | |
522 echo '#include "lib.h"' >> $file | |
523 echo '#include "mail-storage.h"' >> $file | |
524 for storage in $STORAGE; do | |
525 echo "extern MailStorage ${storage}_storage;" >> $file | |
526 done | |
527 echo "void mail_storage_register_all(void) {" >> $file | |
528 for storage in $STORAGE; do | |
529 echo "mail_storage_class_register(&${storage}_storage);" >> $file | |
530 done | |
531 echo "}" >> $file | |
532 | |
533 AC_OUTPUT( | |
534 Makefile | |
535 doc/Makefile | |
536 src/Makefile | |
537 src/lib/Makefile | |
568
f2aa58c2afd0
SEARCH CHARSET support. Currently we do it through iconv() and only ASCII
Timo Sirainen <tss@iki.fi>
parents:
550
diff
changeset
|
538 src/lib-charset/Makefile |
0 | 539 src/lib-imap/Makefile |
540 src/lib-index/Makefile | |
541 src/lib-index/maildir/Makefile | |
542 src/lib-index/mbox/Makefile | |
543 src/lib-mail/Makefile | |
544 src/lib-storage/Makefile | |
545 src/lib-storage/index/Makefile | |
546 src/lib-storage/index/maildir/Makefile | |
547 src/lib-storage/index/mbox/Makefile | |
548 src/lib-storage/subscription-file/Makefile | |
549 src/auth/Makefile | |
550 src/imap/Makefile | |
551 src/login/Makefile | |
552 src/master/Makefile | |
553 stamp.h) | |
554 | |
555 echo | |
556 echo "Install prefix ............. : $prefix" | |
576 | 557 echo "File offsets ............... : ${offt_bits}bit" |
0 | 558 echo "Building with auth modules . :$auths" |
559 echo "Building with SSL support .. : $have_ssl" | |
560 echo "Building with IPv6 support . : $want_ipv6" |