summaryrefslogtreecommitdiffstats
path: root/rootcerts
diff options
context:
space:
mode:
Diffstat (limited to 'rootcerts')
-rw-r--r--rootcerts/.gitignore1
-rw-r--r--rootcerts/Makefile.am5
-rw-r--r--rootcerts/configure.in53
-rw-r--r--rootcerts/rootcertsdir.cnf.in1
4 files changed, 60 insertions, 0 deletions
diff --git a/rootcerts/.gitignore b/rootcerts/.gitignore
new file mode 100644
index 0000000..c787631
--- /dev/null
+++ b/rootcerts/.gitignore
@@ -0,0 +1 @@
+/rootcertsdir.cnf
diff --git a/rootcerts/Makefile.am b/rootcerts/Makefile.am
new file mode 100644
index 0000000..db19a65
--- /dev/null
+++ b/rootcerts/Makefile.am
@@ -0,0 +1,5 @@
+#
+# Copyright 2008 Double Precision, Inc. See COPYING for
+# distribution information.
+
+DISTCLEANFILES=rootcertsdir.cnf
diff --git a/rootcerts/configure.in b/rootcerts/configure.in
new file mode 100644
index 0000000..c458820
--- /dev/null
+++ b/rootcerts/configure.in
@@ -0,0 +1,53 @@
+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)
+AC_CONFIG_AUX_DIR(../..)
+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 "datarootdir=$datarootdir"
+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)
diff --git a/rootcerts/rootcertsdir.cnf.in b/rootcerts/rootcertsdir.cnf.in
new file mode 100644
index 0000000..8aed7a7
--- /dev/null
+++ b/rootcerts/rootcertsdir.cnf.in
@@ -0,0 +1 @@
+cacerts=@certdb@