configure.in revision 67950e1843bd879bab73d8752ee54f60bbd21987
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo SirainenAM_CONFIG_HEADER(config.h)
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo SirainenAM_INIT_AUTOMAKE(dovecot, 0.98.4)
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo SirainenAM_MAINTAINER_MODE
ae9691f7ef36d5272d72c90fa51393dfea5dd126Timo SirainenAC_STDC_HEADERS
86bdb644d147a73df85abce4325254d694217a5fTimo SirainenAC_ARG_PROGRAM
86bdb644d147a73df85abce4325254d694217a5fTimo SirainenAM_PROG_LIBTOOL
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo SirainenAC_CHECK_HEADERS(string.h stdlib.h unistd.h dirent.h)
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo Sirainen# check posix headers
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo SirainenAC_CHECK_HEADERS(sys/time.h)
f6ae9ae80a1fcf6c8f45ab759f0074caaa66c9c8Timo SirainenAC_ARG_ENABLE(ipv6,
f6ae9ae80a1fcf6c8f45ab759f0074caaa66c9c8Timo Sirainen[ --enable-ipv6 Enable IPv6 support (default)],
f6ae9ae80a1fcf6c8f45ab759f0074caaa66c9c8Timo Sirainen if test x$enableval = xno; then
f6ae9ae80a1fcf6c8f45ab759f0074caaa66c9c8Timo Sirainen want_ipv6=yes
86bdb644d147a73df85abce4325254d694217a5fTimo Sirainen want_ipv6=yes)
f6ae9ae80a1fcf6c8f45ab759f0074caaa66c9c8Timo SirainenAC_ARG_ENABLE(debug,
f6ae9ae80a1fcf6c8f45ab759f0074caaa66c9c8Timo Sirainen[ --enable-debug Enable some extra checks for debugging],
f6ae9ae80a1fcf6c8f45ab759f0074caaa66c9c8Timo Sirainen if test x$enableval = xyes; then
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo Sirainen AC_DEFINE(DEBUG)
ae9691f7ef36d5272d72c90fa51393dfea5dd126Timo SirainenAC_ARG_WITH(file-offset-size,
ae9691f7ef36d5272d72c90fa51393dfea5dd126Timo Sirainen[ --with-file-offset-size=BITS Set size of file offsets. Usually 32 or 64.
ae9691f7ef36d5272d72c90fa51393dfea5dd126Timo Sirainen (default: 64 if available)],
2eccb2637d0153bb7f9ad39a70f254cece74342cTimo Sirainen preferred_off_t_bits=$withval,
2eccb2637d0153bb7f9ad39a70f254cece74342cTimo Sirainen preferred_off_t_bits=64)
7877db7b5daad125b6cb3e015574f33871c9a51bTimo SirainenAC_ARG_WITH(mem-align,
7877db7b5daad125b6cb3e015574f33871c9a51bTimo Sirainen[ --with-mem-align=BYTES Set the memory alignment (default: 8)],
7877db7b5daad125b6cb3e015574f33871c9a51bTimo Sirainen mem_align=$withval,
7877db7b5daad125b6cb3e015574f33871c9a51bTimo SirainenAC_ARG_WITH(passwd,
10972f2a15f5538860fcc1d4adda227d59d2d757Timo Sirainen[ --with-passwd Build with /etc/passwd support (default)],
4ca2ccd50ad25260865f561e4ebf36899d7fe966Timo Sirainen if test x$withval = xno; then
bb869cc24b24a8df84a43154c628785d6aee784cTimo Sirainen want_passwd=no
662bb64be818407c6719a69780411f7ca8d6c96fAki Tuomi want_passwd=yes
e0ba54c7f985fc403b41c6e36d6a7f44908b23f0Timo Sirainen want_passwd=yes)
dnl * poll/select?
# -Wchar-subscripts -Wpointer-arith -Wcast-qual -Wcast-align -Wconversion -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
dnl * older autoconfs don't include sys/types.h, so do it manually
#include <stdio.h>
#include <sys/types.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/types.h>
#include <sys/socket.h>],
AC_DEFINE(socklen_t, int, Define to 'int' if <sys/socket.h> doesn't define.)
#include <time.h>],
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>],
#include <unistd.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
#include <sys/sendfile.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/uio.h>
dnl ** shadow/pam support
AC_CHECK_HEADER(security/pam_appl.h, [
vpop_libdeps="$vpopmail_home/etc/lib_deps"
VPOPMAIL_CFLAGS="`cat $vpopmail_home/etc/inc_deps` $CFLAGS"
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <arpa/inet.h>],
echo '#include "lib.h"' >> $file
echo '#include "mail-storage.h"' >> $file