Updated embedded PCRE to version 7.4 to avoid 2 CVE issues:-
[exim.git] / test / configure.ac
CommitLineData
bbe15da8 1dnl $Cambridge: exim/test/configure.ac,v 1.2 2007/01/23 11:01:10 ph10 Exp $
151b83f8
PH
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
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
151b83f8
PH
53dnl "Export" these variables
54
bbe15da8 55AC_SUBST(BIND_8_COMPAT)
151b83f8
PH
56AC_SUBST(CLIENT_SSL)
57AC_SUBST(CLIENT_GNUTLS)
58AC_SUBST(LOADED)
59AC_SUBST(LOADED_OPT)
60
61dnl This must be last; it determines what files are written
62
63AC_OUTPUT(Makefile)