1 dnl $Cambridge: exim/test/configure.ac,v 1.2 2007/01/23 11:01:10 ph10 Exp $
3 dnl Process this file with autoconf to produce a configure script.
5 dnl This is required at the start; the name is the name of a file
6 dnl it should be seeing, to verify it is in the same directory.
10 dnl A safety precaution
14 dnl Checks for programs.
18 dnl Checks for header files.
20 AC_CHECK_HEADERS(openssl/crypto.h,[CLIENT_SSL=bin/client-ssl])
21 AC_CHECK_HEADERS(gnutls/gnutls.h,[CLIENT_GNUTLS=bin/client-gnutls])
23 dnl The check on dynamically loaded modules requires the building of
24 dnl something to load. This seems to be something that varies between
25 dnl systems and compilers something awful. Therefore, we enable it only
26 dnl for those systems and compilers that we know about.
28 dnl I tried using AC_CANONICAL_HOST, but it insisted on looking for an
29 dnl "install" script for some weird reason.
34 gcc-*linux* | gcc-*Linux* | gcc-*LINUX* | gcc-FreeBSD)
36 LOADED_OPT="-shared -fPIC"
37 echo "Using gcc on $host_os: will compile dynamically loaded module"
41 echo "Will not compile dynamically loaded module: not known OS/CC combination"
45 dnl At least one operating system needs BIND_8_COMPAT to be defined.
49 BIND_8_COMPAT=-DBIND_8_COMPAT
53 dnl "Export" these variables
55 AC_SUBST(BIND_8_COMPAT)
57 AC_SUBST(CLIENT_GNUTLS)
61 dnl This must be last; it determines what files are written