Change callout EHLO/HELO from smtp_active_hostname to the helo_data
[exim.git] / test / configure.ac
CommitLineData
151b83f8
PH
1dnl $Cambridge: exim/test/configure.ac,v 1.1 2006/02/06 16:07:10 ph10 Exp $
2
3dnl Process this file with autoconf to produce a configure script.
4
5dnl This is required at the start; the name is the name of a file
6dnl it should be seeing, to verify it is in the same directory.
7
8AC_INIT(listtests)
9
10dnl A safety precaution
11
12AC_PREREQ(2.57)
13
14dnl Checks for programs.
15
16AC_PROG_CC
17
18dnl Checks for header files.
19
20AC_CHECK_HEADERS(openssl/crypto.h,[CLIENT_SSL=bin/client-ssl])
21AC_CHECK_HEADERS(gnutls/gnutls.h,[CLIENT_GNUTLS=bin/client-gnutls])
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
34 gcc-*linux* | gcc-*Linux* | gcc-*LINUX* | gcc-FreeBSD)
35 LOADED=bin/loaded
36 LOADED_OPT=-shared
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
45dnl "Export" these variables
46
47AC_SUBST(CLIENT_SSL)
48AC_SUBST(CLIENT_GNUTLS)
49AC_SUBST(LOADED)
50AC_SUBST(LOADED_OPT)
51
52dnl This must be last; it determines what files are written
53
54AC_OUTPUT(Makefile)