Mercurial > dnsbl
annotate configure.in @ 348:8fe6d5120771
need to actually use the modified recipient in the verifier
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 23 Dec 2016 09:43:50 -0800 |
parents | e172dc10fe24 |
children | 5380552644e2 |
rev | line source |
---|---|
105 | 1 |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
2 AC_PREREQ(2.59) |
321
e172dc10fe24
add dkim white/black listing
Carl Byington <carl@five-ten-sg.com>
parents:
316
diff
changeset
|
3 AC_INIT(dnsbl,6.48,carl@five-ten-sg.com) |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
4 AC_CONFIG_SRCDIR([config.h.in]) |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
5 AC_CONFIG_HEADER([config.h]) |
310
802e2b779ed1
enable smtp verify logging
Carl Byington <carl@five-ten-sg.com>
parents:
305
diff
changeset
|
6 AC_CONFIG_MACRO_DIR([m4]) |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
7 |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
8 AM_INIT_AUTOMAKE($PACKAGE_NAME,$PACKAGE_VERSION) |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
9 |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
10 # Checks for programs. |
163 | 11 AC_PATH_PROG(BASH, bash) |
167
9b129ed78d7d
actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
carl
parents:
165
diff
changeset
|
12 if test "x$BASH" = x ; then |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
201
diff
changeset
|
13 AC_MSG_ERROR([bash required for init script]) |
167
9b129ed78d7d
actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
carl
parents:
165
diff
changeset
|
14 fi |
163 | 15 AC_PATH_PROG(SPAMC, spamc) |
167
9b129ed78d7d
actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
carl
parents:
165
diff
changeset
|
16 if test "x$SPAMC" = x ; then |
203
92a5c866bdfa
Verify from/to pairs even if they might be explicitly whitelisted.
Carl Byington <carl@five-ten-sg.com>
parents:
201
diff
changeset
|
17 AC_MSG_WARN([spamc not found. SpamAssassin filtering disabled]) |
167
9b129ed78d7d
actually use spamassassin result, allow build without spam assassin, only call it if some recipient needs it.
carl
parents:
165
diff
changeset
|
18 fi |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
19 AC_PROG_CXX |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
20 AC_PROG_CC |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
21 AC_PROG_CPP |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
22 AC_PROG_INSTALL |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
23 AC_PROG_LN_S |
229
b3652d1ae010
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
24 AC_PROG_LIBTOOL |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
25 AC_PROG_MAKE_SET |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
26 AC_PROG_RANLIB |
105 | 27 |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
28 # Checks for header files. |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
29 AC_HEADER_SYS_WAIT |
229
b3652d1ae010
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
30 AC_CHECK_HEADERS([arpa/inet.h fcntl.h netdb.h netinet/in.h regex.h sys/ioctl.h sys/socket.h syslog.h unistd.h]) |
105 | 31 |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
32 # Checks for typedefs, structures, and compiler characteristics. |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
33 AC_HEADER_STDBOOL |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
34 AC_C_CONST |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
35 AC_TYPE_PID_T |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
36 AC_TYPE_SIZE_T |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
37 |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
38 # Checks for library functions. |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
39 AC_FUNC_ERROR_AT_LINE |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
40 AC_FUNC_FORK |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
41 AC_FUNC_GETPGRP |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
42 AC_HEADER_STDC |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
43 AC_FUNC_STAT |
163 | 44 AC_FUNC_STRFTIME |
227
3fee608becbc
Fixes to compile on old systems without memrchr or string::clear().
Carl Byington <carl@five-ten-sg.com>
parents:
216
diff
changeset
|
45 AC_CHECK_FUNCS([daemon dup2 gethostbyname gethostname memmove memrchr memset regcomp socket strcasecmp strchr strdup strerror strncasecmp strrchr strstr strtol]) |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
46 |
229
b3652d1ae010
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
47 AC_CHECK_FUNCS(regexec,,[AC_CHECK_LIB(regex,regexec, |
b3652d1ae010
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
48 [REGEXLIB=-lregex |
b3652d1ae010
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
49 AC_DEFINE(HAVE_REGEXEC,1,[Define to 1 if you have the regexec function.])], |
b3652d1ae010
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
50 [AC_MSG_ERROR([No regex library found])])]) |
b3652d1ae010
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
51 AC_SUBST(REGEXLIB) |
b3652d1ae010
autoconf cleanup from libpst changes
Carl Byington <carl@five-ten-sg.com>
parents:
227
diff
changeset
|
52 |
162 | 53 # check for posix threads |
54 ACX_PTHREAD | |
55 | |
242
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
56 # find proper libresolv.a location |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
57 AC_MSG_CHECKING([for libresolv.a]) |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
58 if test -e /usr/lib64/libresolv.a; then |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
59 libresolvdir=/usr/lib64 |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
60 libresolvok=yes |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
61 else |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
62 if test -e /usr/lib/libresolv.a; then |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
63 libresolvdir=/usr/lib |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
64 libresolvok=yes |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
65 else |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
66 libresolvok=no |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
67 fi |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
68 fi |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
69 AC_MSG_RESULT($libresolvok) |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
70 AC_SUBST(LIBRESOLVDIR, [$libresolvdir]) |
d8ee4c97b9ab
64 bit fixes for libresolv.a
Carl Byington <carl@five-ten-sg.com>
parents:
236
diff
changeset
|
71 |
187
f0eda59e8afd
fix null pointer dereference from missing HELO command
carl
parents:
185
diff
changeset
|
72 # See if we have progress callback |
190
004b855c6c1f
fix null pointer dereference from missing HELO command
carl
parents:
189
diff
changeset
|
73 AC_CHECK_LIB([milter], |
004b855c6c1f
fix null pointer dereference from missing HELO command
carl
parents:
189
diff
changeset
|
74 [smfi_progress], |
004b855c6c1f
fix null pointer dereference from missing HELO command
carl
parents:
189
diff
changeset
|
75 [AC_DEFINE(_FFR_SMFI_PROGRESS, 1, Define to 1 to enable progress callback)], |
004b855c6c1f
fix null pointer dereference from missing HELO command
carl
parents:
189
diff
changeset
|
76 [AC_DEFINE(_FFR_SMFI_PROGRESS, 0, Define to 1 to enable progress callback)], |
004b855c6c1f
fix null pointer dereference from missing HELO command
carl
parents:
189
diff
changeset
|
77 [-lpthread] |
004b855c6c1f
fix null pointer dereference from missing HELO command
carl
parents:
189
diff
changeset
|
78 ) |
187
f0eda59e8afd
fix null pointer dereference from missing HELO command
carl
parents:
185
diff
changeset
|
79 |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
80 AC_CONFIG_FILES([Makefile |
163 | 81 dnsbl.rc |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
82 dnsbl.spec |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
83 html/Makefile |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
84 info/Makefile |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
85 man/Makefile |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
86 src/Makefile |
163 | 87 src/spamass.cpp |
148
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
88 xml/Makefile |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
89 xml/dnsbl]) |
9330b8d6a56b
add documentation fixes, allow env_from target of inherit
carl
parents:
147
diff
changeset
|
90 AC_OUTPUT |