Release 1.1.1.
[rsync-backup] / configure.ac
CommitLineData
f6b4ffdc
MW
1dnl -*-autoconf-*-
2dnl
3dnl Build-time configuration for rsync-backup
4dnl
5dnl (c) 2012 Mark Wooding
6dnl
7
8dnl----- Licensing notice ---------------------------------------------------
9dnl
10dnl This file is part of the `rsync-backup' program.
11dnl
12dnl rsync-backup is free software; you can redistribute it and/or modify
13dnl it under the terms of the GNU General Public License as published by
14dnl the Free Software Foundation; either version 2 of the License, or
15dnl (at your option) any later version.
16dnl
17dnl rsync-backup is distributed in the hope that it will be useful,
18dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
19dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20dnl GNU General Public License for more details.
21dnl
22dnl You should have received a copy of the GNU General Public License
23dnl along with rsync-backup; if not, write to the Free Software Foundation,
24dnl Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
25
26dnl--------------------------------------------------------------------------
27dnl Initialization.
28
29mdw_AUTO_VERSION
30AC_INIT([rsync-backup], AUTO_VERSION, [mdw@distorted.org.uk])
31AC_CONFIG_SRCDIR([rsync-backup.in])
32AC_CONFIG_AUX_DIR([config])
33AM_INIT_AUTOMAKE([foreign])
34mdw_SILENT_RULES
35
36dnl--------------------------------------------------------------------------
37dnl Paths.
38
39AC_ARG_WITH([mntbkpdir],
40 AS_HELP_STRING([--with-mntbkpdir], [location of the backup mount tree]),
41 [mntbkpdir=$withval],
42 [mntbkpdir=/mnt/bkp])
43AC_SUBST([mntbkpdir])
44
45AC_ARG_WITH([fshashdir],
46 AS_HELP_STRING([--with-fshashdir], [location for fshash cache files]),
47 [fshashdir=$withval],
48 [fshashdir=$localstatedir/cache/fshash])
49AC_SUBST([fshashdir])
50
51AC_ARG_WITH([logdir],
52 AS_HELP_STRING([--with-logdir], [location for logfiles]),
53 [logdir=$withval],
54 [logdir=$localstatedir/log/bkp])
55AC_SUBST([logdir])
56
57dnl--------------------------------------------------------------------------
58dnl Programming environments.
59
60dnl C compilers and libraries.
61AC_PROG_CC
62AX_CFLAGS_WARN_ALL
ff6237ea 63PKG_CHECK_MODULES([mLib], [mLib >= 2.2.1], [have_mlib=t], [have_mlib=nil])
b5d0a3db 64AM_CONDITIONAL([HAVE_MLIB], [test $have_mlib = t])
f6b4ffdc
MW
65
66dnl Bourne-Again Shell.
67AC_PATH_PROG([BASH], [bash])
68
69dnl Python.
70AC_PATH_PROG([PYTHON], [python])
71AX_PROG_PYTHON_VERSION([2.5],,
72 [AC_MSG_ERROR([Failed to find suitable Python.])])
73
74dnl--------------------------------------------------------------------------
75dnl Output.
76
77AC_CONFIG_FILES([Makefile])
78AC_OUTPUT
79
80dnl----- That's all, folks --------------------------------------------------