Commit | Line | Data |
---|---|---|
53263601 MW |
1 | dnl -*-autoconf-*- |
2 | dnl | |
3 | dnl Configuration script for distorted.org.uk key management | |
4 | dnl | |
5 | dnl (c) 2011 Mark Wooding | |
6 | dnl | |
7 | ||
8 | dnl----- Licensing notice --------------------------------------------------- | |
9 | dnl | |
599c8f75 MW |
10 | dnl This file is part of the distorted.org.uk key management suite. |
11 | dnl | |
12 | dnl distorted-keys is free software; you can redistribute it and/or modify | |
53263601 MW |
13 | dnl it under the terms of the GNU General Public License as published by |
14 | dnl the Free Software Foundation; either version 2 of the License, or | |
15 | dnl (at your option) any later version. | |
16 | dnl | |
599c8f75 | 17 | dnl distorted-keys is distributed in the hope that it will be useful, |
53263601 MW |
18 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of |
19 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
20 | dnl GNU General Public License for more details. | |
21 | dnl | |
22 | dnl You should have received a copy of the GNU General Public License | |
599c8f75 | 23 | dnl along with distorted-keys; if not, write to the Free Software Foundation, |
53263601 MW |
24 | dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
25 | ||
26 | dnl-------------------------------------------------------------------------- | |
27 | dnl Initialization. | |
28 | ||
29 | mdw_AUTO_VERSION | |
30 | AC_INIT([distorted-keys], AUTO_VERSION, [mdw@distorted.org.uk]) | |
31 | AC_CONFIG_SRCDIR([shamir.in]) | |
32 | AC_CONFIG_AUX_DIR([config]) | |
33 | AM_INIT_AUTOMAKE([foreign]) | |
34 | mdw_SILENT_RULES | |
35 | ||
c122b713 MW |
36 | dnl-------------------------------------------------------------------------- |
37 | dnl Other random configuration. | |
38 | ||
39 | AC_ARG_WITH([user], | |
40 | AS_HELP_STRING([--with-user], [which user should own the archive]), | |
41 | [user=$withval], | |
42 | [user=keys]) | |
43 | AC_SUBST([user]) | |
44 | ||
b401ccf1 MW |
45 | AC_ARG_WITH([userv-conf-dir], |
46 | AS_HELP_STRING([--with-userv-conf-dir], | |
47 | [where to install userv configuration]), | |
48 | [uservconfdir=$withval], | |
49 | [uservconfdir='${sysconfdir}/userv/default.d']) | |
50 | AC_SUBST([uservconfdir]) | |
51 | ||
53263601 MW |
52 | dnl-------------------------------------------------------------------------- |
53 | dnl Python programming environment. | |
54 | ||
55 | AC_PATH_PROG([PYTHON], [python]) | |
56 | AX_PROG_PYTHON_VERSION([2.5],, | |
57 | [AC_MSG_ERROR([Failed to find suitable Python.])]) | |
58 | ||
59 | dnl-------------------------------------------------------------------------- | |
60 | dnl Output. | |
61 | ||
62 | AC_CONFIG_FILES( | |
63 | [Makefile]) | |
64 | AC_OUTPUT | |
65 | ||
66 | dnl----- That's all, folks -------------------------------------------------- |