Strip redundant Emacs mode markers from Perl scripts.
[distorted-backup] / configure.ac
CommitLineData
99248ed2
MW
1dnl -*-autoconf-*-
2dnl
3dnl Configure script for distorted.org.uk backup software
4dnl
5dnl (c) 2011 Mark Wooding
6dnl
7
8dnl----- Licensing notice ---------------------------------------------------
9dnl
10dnl This program is free software; you can redistribute it and/or modify
11dnl it under the terms of the GNU General Public License as published by
12dnl the Free Software Foundation; either version 2 of the License, or
13dnl (at your option) any later version.
14dnl
15dnl This program is distributed in the hope that it will be useful,
16dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
17dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18dnl GNU General Public License for more details.
19dnl
20dnl You should have received a copy of the GNU General Public License
21dnl along with this program; if not, write to the Free Software Foundation,
22dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23
24dnl--------------------------------------------------------------------------
25dnl Initialization.
26
27mdw_AUTO_VERSION
28AC_INIT([distorted-backup], AUTO_VERSION, [mdw@distorted.org.uk])
29AC_CONFIG_SRCDIR([bkpadmin.in])
30AC_CONFIG_AUX_DIR([config])
31AM_INIT_AUTOMAKE([foreign])
32mdw_SILENT_RULES
33
34AC_PROG_CC
35
36dnl--------------------------------------------------------------------------
37dnl C programming environment.
38
39PKG_CHECK_MODULES([mLib], [mLib >= 2.1.0])
49027c04
MW
40PKG_CHECK_MODULES([nettle], [nettle >= 2.4], [], [
41 ## That didn't work; unfortunately older Nettle packages don't have a
42 ## pkg-config dropping. Let's see whether it will work anyway.
43 nettlep=t
44 AC_CHECK_HEADER([nettle/sha.h], [], [nettlep=nil])
45 AC_CHECK_LIB([nettle], [nettle_sha256_init], [], [nettlep=nil])
46 case $nettlep in
47 nil) AC_MSG_ERROR([Failed to find Nettle library.]) ;;
48 esac
49 NETTLE_CFLAGS= NETTLE_LIBS=-lnettle])
99248ed2
MW
50
51dnl--------------------------------------------------------------------------
52dnl Perl programming environment.
53
54AC_ARG_VAR([PERL], [Path to your favourite Perl binary.])
55AC_PATH_PROGS([PERL], [perl perl5], [false])
56AX_PROG_PERL_VERSION([5.10],,
57 [AC_MSG_ERROR([Failed to find suitable Perl.])])
58
59dnl--------------------------------------------------------------------------
60dnl Output.
61
62AC_CONFIG_FILES(
63 [Makefile])
64AC_OUTPUT
65
66dnl----- That's all, folks --------------------------------------------------