File: configure.in

package info (click to toggle)
courier 0.60.0-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 52,288 kB
  • ctags: 12,677
  • sloc: ansic: 165,348; cpp: 24,820; sh: 16,410; perl: 6,839; makefile: 3,621; yacc: 289; sed: 16
file content (52 lines) | stat: -rw-r--r-- 1,096 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
dnl $Id: configure.in,v 1.12 2008/07/12 20:17:25 mrsam Exp $
dnl
dnl Copyright 2001-2008 Double Precision, Inc.  See COPYING for
dnl distribution information.

AC_INIT(rootcerts, 0.50, [courier-users@lists.sourceforge.net])

>confdefs.h  # Kill PACKAGE_ macros

AC_CONFIG_SRCDIR(rootcertsdir.cnf.in)
AM_INIT_AUTOMAKE([foreign no-define])
LPATH="$PATH:/usr/local/bin"

AC_PROG_INSTALL
AC_PROG_LN_S

test "x$prefix" = xNONE && prefix=$ac_default_prefix
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
eval "datadir=$datadir"

certdb=""

AC_ARG_WITH(certdb, [  --with-certdb=/pathname     Use external root certificate database in pathname], [
		case $withval in
		/*)
			certdb="$withval"
			;;
		*)
			AC_MSG_ERROR(--with-certdb requires an absolute pathname)
			;;
		esac
], [

for f in /etc/ssl/certs /etc/ssl/cert.pem /etc/pki/tls/cert.pem
do
	if test -f $f -o -d $f
	then
		certdb=$f
	fi
done

if test "$certdb" = ""
then
	certdb="/etc/ssl/cert.pem"

	AC_MSG_WARN([Cannot find known locations of CA certs, using $certdb])
fi
 ])

AC_SUBST(certdb)

AC_OUTPUT(Makefile rootcertsdir.cnf)