DMARC: default dmarc_tld_file to unset. Bug 2494
[exim.git] / test / configure.ac
CommitLineData
151b83f8
PH
1dnl Process this file with autoconf to produce a configure script.
2
3dnl This is required at the start; the name is the name of a file
4dnl it should be seeing, to verify it is in the same directory.
5
6AC_INIT(listtests)
7
8dnl A safety precaution
9
10AC_PREREQ(2.57)
11
12dnl Checks for programs.
13
14AC_PROG_CC
15
16dnl Checks for header files.
17
bba15024 18AC_CHECK_HEADERS(sys/socket.h)
151b83f8
PH
19AC_CHECK_HEADERS(openssl/crypto.h,[CLIENT_SSL=bin/client-ssl])
20AC_CHECK_HEADERS(gnutls/gnutls.h,[CLIENT_GNUTLS=bin/client-gnutls])
286b9d5f 21AC_CHECK_HEADERS(gnutls/gnutls.h,[B64_GNUTLS=bin/ed25519_privkey_pem_to_pubkey_raw_b64])
151b83f8
PH
22
23dnl The check on dynamically loaded modules requires the building of
24dnl something to load. This seems to be something that varies between
25dnl systems and compilers something awful. Therefore, we enable it only
26dnl for those systems and compilers that we know about.
27
28dnl I tried using AC_CANONICAL_HOST, but it insisted on looking for an
29dnl "install" script for some weird reason.
30
31host_os=`uname -s`
32
33case $CC-$host_os in
fe74809c 34 gcc-*linux* | gcc-*Linux* | gcc-*LINUX* | gcc-FreeBSD | gcc-*SunOS* | cc-*SunOS* )
151b83f8 35 LOADED=bin/loaded
bbe15da8 36 LOADED_OPT="-shared -fPIC"
151b83f8
PH
37 echo "Using gcc on $host_os: will compile dynamically loaded module"
38 ;;
39 *)
40 LOADED=
41 echo "Will not compile dynamically loaded module: not known OS/CC combination"
42 ;;
43esac
44
bbe15da8
PH
45dnl At least one operating system needs BIND_8_COMPAT to be defined.
46
47case $host_os in
48 Darwin)
49 BIND_8_COMPAT=-DBIND_8_COMPAT
50 ;;
51esac
52
a4ca1b01
JH
53dnl Solaris requires additional libraries for networking functions.
54
55AC_SEARCH_LIBS([inet_addr], [nsl])
56AC_SEARCH_LIBS([connect], [socket])
a28352a0
HSHR
57AC_SEARCH_LIBS([inet_pton], [nsl socket resolv])
58AC_SEARCH_LIBS([inet_ntop], [nsl socket resolv])
a4ca1b01 59
40e3c5bf
JH
60AC_CHECK_FUNCS_ONCE(getaddrinfo)
61
151b83f8
PH
62dnl "Export" these variables
63
bbe15da8 64AC_SUBST(BIND_8_COMPAT)
151b83f8
PH
65AC_SUBST(CLIENT_SSL)
66AC_SUBST(CLIENT_GNUTLS)
286b9d5f 67AC_SUBST(B64_GNUTLS)
151b83f8
PH
68AC_SUBST(LOADED)
69AC_SUBST(LOADED_OPT)
a4ca1b01 70AC_SUBST(LIBS)
151b83f8
PH
71
72dnl This must be last; it determines what files are written
73
74AC_OUTPUT(Makefile)